Home › Practice › RTL Design › Dual-edge detector
Dual-edge detector
EasyRTLsequential
Detect both rising and falling edges on input d.
riseis1when currentd=1and the value sampled at the previous risingclkedge was0(d & ~d_prev).fallis1when currentd=0and the previous sampled value was1(~d & d_prev).rstis synchronous, active-high, and clears the stored previous value to0.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.