Home / Learn Verilog / Pulse Stretcher
Pulse Stretcher
Make short pulses visible.
In shortMake short pulses visible.
What's actually going on
What it is
A counter holds the output high for N cycles after each input pulse.
Why it matters
Status LEDs, interrupt lines.
Mechanically speaking
Reload the counter on each pulse.
Shows up in
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Stretch to 5 clocksVerilog: edit and run
A one-clock pulse becomes a five-clock pulse.
Check yourself
1. Stretcher output stays high while counter is...
Counting down.