# design cycle counting

Discussion in 'Homework Help' started by morzer, Nov 14, 2014.

1. ### morzer Thread Starter New Member

Nov 14, 2014
4
0
design counter odd number and even number
with cycle counting: 0-1-3-5-7-9-11-13-15-17-19-18-16-14-12-10-8-6-4-2-0
use Flip flop (not use IC)
help me

2. ### Papabravo Expert

Feb 24, 2006
10,340
1,850
What have you done to start the design process?
Do you know how many flip-flops you're going to need?
What are some of the special features of this sequence?

3. ### morzer Thread Starter New Member

Nov 14, 2014
4
0
This is my homework. I use 5 flip flop,

4. ### Papabravo Expert

Feb 24, 2006
10,340
1,850
Do you have a chart of the values for each flip-flop for each state? Can you show us the chart?

5. ### morzer Thread Starter New Member

Nov 14, 2014
4
0

True table, but I can't write logic functions. can you guide me?

6. ### Papabravo Expert

Feb 24, 2006
10,340
1,850
Rearrange the rows of the table so they are in the actual state sequence. Then look for patterns that you can use to your advantage.

7. ### WBahn Moderator

Mar 31, 2012
18,093
4,918
What kind of flip flops are you using? DFF, JKFF, TFF?

8. ### WBahn Moderator

Mar 31, 2012
18,093
4,918
I think the patterns are easier to see if the table is in the order of the states (as his table is) and not the sequence since the logic doesn't know or care about the prior or future members of the sequence.

Notice that the first column is named in a misleading way. It should be called State and not Clk.

9. ### morzer Thread Starter New Member

Nov 14, 2014
4
0
DFF, or A kind of flip flop do not complex so use for my process

10. ### WBahn Moderator

Mar 31, 2012
18,093
4,918
So, if you don't already know, spend some time getting comfortable with what a DFF is -- how it behaves and, specifically, how you can use logic to control what the next state of a given DFF will be.