Benjamin182
New Contributor
4 years agoHow to setup constraint for a PWM DDR output
Hi,
I've got a design with a master 100-MHz clock. We need a PWM with a 5-ns resolution. One solution that I've come up with is to use a DDR output block to decrease the resolution from 10 ns to 5 ns. It works well in simulation.
For example, if I want a 25 ns pulse, the input to the DDR output block will look like this
Cycle 0 : "11",
Cycle 1 : "11",
Cycle 2 : "10"
There is a delay of 10 ns between each cycles and the output will be a 25-ns pulse.
However, I'm stuck with the FPGA constraint. I don't care much about the output delay between the 100-MHz clock and the DDR output, I care mostly about the pulse width. How should I constraint my sdc?