About this block
Simulate it in the Verilog IDE
4-Bit Counter Match Pulse is a Verilog reference block in the Counters catalog. Up/down, modulo, and loadable binary counters with enable logic. Marked Easy: a small block you can read, simulate, and synthesize in one sitting.
This Intellectual Property (IP) implements a 4-bit up-counter with a configurable match detection feature. It generates a single-cycle pulse (match_stb) when the counter value equals a target value (match). Upon matching, the counter automatically resets to zero, making it ideal for periodic event generation, timeout counters, and sequence detection.
This IP provides a robust, synchronous 4-bit counter with match detection capabilities.
It is designed for simplicity and ease of integration, featuring a clear interface and comprehensive verification.
- Choose Open in IDE. RTL Studio loads the packaged workspace for 4-Bit Counter Match Pulse.
- Read the Verilog module in the editor. The catalog line for this block: 4-Bit Counter Match Pulse.
- Run the packaged testbench with the in-browser Verilator simulator, then open the VCD in the waveform viewer.
- Run Yosys in the same IDE for a generic netlist. Sky130 liberty mapping is a separate Pro library option.
RTL Studio is the Verilog simulator and IDE around this block: Slang lint, Verilator, VCD waveforms, and Yosys, in the browser. Simulation guide · Yosys guide.
Features
- 4-Bit Up-Counter: Counts from 0 to 15.
- Configurable Match: Target value set via the
matchinput port. - Synchronous Reset: Active-low reset (
rst_n) clears the counter state. - Enable Control:
ensignal allows pausing/resuming the count. - Match Pulse:
match_stbasserts for exactly one clock cycle whendout == match. - Auto-Reset: Counter resets to 0 immediately after a match is detected.
More in Counters
- 16-Bit Cycle Counter with Prescaler — L1 Upgrade — L2 Upgrade
- 4-Bit Counter with Wrap Strobe
- 4-Bit Down Counter
- 4-Digit BCD Up/Down Counter with Carry/Borrow
- 8-Bit Binary Up Counter — L1 Upgrade — L2 Upgrade
- 8-Bit Johnson Counter (Twisted Ring) — L1 Upgrade — L2 Upgrade
- 8-Bit Leading Zero Counter — L1 Upgrade — L2 Upgrade
- 8-Bit Ring Counter
- 8-Bit Up/Down Counter
- Bidirectional Counter 4-Bit — L1 Upgrade — L2 Upgrade
- Decade BCD Counter 1-Digit — L1 Upgrade
- Dual Compare-Match Counter 8 — L1 Upgrade — L2 Upgrade
- Event Counter with Capture
- Gray-Code Counter 8-Bit — L2 Upgrade
- Loadable 4-Bit Up Counter
- Loadable Down Counter 8-Bit — L1 Upgrade — L2 Upgrade