design cycle counting

Thread Starter

morzer

Joined Nov 14, 2014
4
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
 

Papabravo

Joined Feb 24, 2006
21,226
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?
 

Papabravo

Joined Feb 24, 2006
21,226
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.
 

WBahn

Joined Mar 31, 2012
30,072
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.
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.
 

WBahn

Joined Mar 31, 2012
30,072
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.
 
Top