Sequential Circuits
- 4 Bit Ripple Counter

4 Bit Ripple Counter

Syntax

4BIT_RIPPLE_COUNTER {[Subcircuit-label-n] [label-n]}
# Where, the Subcircuit labels are CNT, RST, Q(0-3)
# All Subcircuit labels are mandatory
$ Order is arbitrary

Example

4BIT_RIPPLE_COUNTER CNT clk RST rst Q0 q0 Q1 q1 Q2 q2 Q3 q3 
# CNT: Negative edge-triggered count input (clock), 
# RST: Active-low asynchronous reset input, 
# Q(0-3): Count output

4-BIT-RIPPLE COUNTER: Generates the 4 bit up counting sequence 0000 to 1111 (0 to 15 decimal) timed by the clock.