Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

counter with similar states

Status
Not open for further replies.

sgharagoz

Junior Member level 3
Joined
Aug 6, 2008
Messages
30
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,288
Activity points
1,458
Hi there,

How do you design a counter that has a similar state such as, 1100,0110,0011,0110,1100,......

Thanks
 

That looks to me like a left-right shift register. Shift right twice, shift left twice, repeat.


It certainly doesn't make a lot of sense, though. You've only got three states, but you are using 4 bits (you could use 2).

You COULD just make a divide-by-3 counter, and decode the counter outputs to give you the 4-bit outputs you want.
 

Thanks for your input.

What I dont understand is that if you draw the FSM, 0110 is a state between the other two states, which means on the next clk cycle, the next state could be either 0011, or 1100!!!
Is there any way we could differentiate them?
 

As I explained, you've really only got 3 states, regardless of what the outputs look like. If you've actually got a 4-bit state variable, then you will have 13 unused states. There is nothing intrinsically 'wrong' with this, assuming you account for these unused states. If you are creating an FPGA or ASIC your tools should be able to handle these unused states with no problem.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top