Forum Discussion
Altera_Forum
Honored Contributor
8 years agoBest practices for verifying PWM (measuring time)...
Folks: I am writing a testbench for a pulse-width modulator and wanted to check for several hundred different values. I figured I'd use a loop for each value, but I'm not sure of the best way to ...
Altera_Forum
Honored Contributor
8 years agoPerhaps this post might help...
https://alteraforum.com/forum/showthread.php?t=6493 Combine that with a 'wait until {rising/falling edge(signal)}' and you should be able to automatically measure the mark or space width. Cheers, Alex