Forum Discussion
Altera_Forum
Honored Contributor
17 years agoGenerating PWM in cyclon2
Hello I am trying to write codes to generate PWM pulses in my FPGA, but it seems it does not funtion. The input "rst" reset the program but it does not synchronize with the "rst" input. Can any o...
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- I want the pwm output to be zero until the rst pin goes high --- Quote End --- But you coded
if (rst = '0') then
cnt <= (cnt+1); So it's counting and toggling the output while rst is low. Unfortunately, I don't understand the intended operation and how it's related to PWM.