Forum Discussion
Altera_Forum
Honored Contributor
17 years agoRegister your PWM signal whose falling edge you want to detect and then AND the registered signal with the NOT of non-registered one.
eg. pwm pwm_reg pwm_reg <= pwm; (always at clock) falling_edge <= ~pwm & pwm_reg; (assign statement) sorry i don't know vhdl that's why i have written like this. Hope you understand what i am trying to say. -AmitGarg