Design a 3-bit cyclic counter that outputs the sequence 0, 1, 3, 7, 6, 4, 0, 1, … (of period 6).
module cyclic_counter(count, clk, rst);
output [2:0] count;
input clk, rst;clk is the clock signal.
rst is the synchronous reset signal.
count is the output of the counter.
Author: Jordi Cortadella
Generation: 2026-02-03T12:20:52.543Z
© Jutge.org, 2006–2026.
https://jutge.org