How to make synchronous counter that counts 3,5,7,0 and repeats?
I'm assuming I'll need three T-flip-flops?
How to make synchronous counter that counts 3,5,7,0 and repeats?
I'm assuming I'll need three T-flip-flops?
Hmm, you could get it simpler if treat in another way: two upper bits are circling 0,1,2,3, and lower one is OR of upper ones.
Something like (pseudocode)
wire V[1:0];
wire Out[2:0];
@(posedge clk) {
V += 1;
Out[2] <= V[1]; Out[1] <= V[0]; Out[0] <= V[1] | V[0];
}