Digital Logic Help: Understanding Q1+ and Q0+ from a Truth Table

  • Thread starter Thread starter Jon Rigby
  • Start date Start date
  • Tags Tags
    Digital Logic
Click For Summary
The discussion focuses on understanding the values of Q1+ and Q0+ from a truth table in digital logic. The "+" sign indicates the state after the next clock cycle, with the truth table showing current states and inputs on the left and next states and outputs on the right. An example illustrates that if the current state is Q1=0, Q0=0, and X=1, the next state will be Q1=0, Q0=1, and Z=0. It is suggested that two D-Type latches can hold the state bits, and a ROM can implement the truth table, although logic gates could also be used. Additionally, the importance of including a reset pin to initialize the latches is noted.
Jon Rigby
Messages
1
Reaction score
0
I cannot figure out where the values from Q1+ and Q0+ are coming from. What truth table are these coming from?? I would greatly appreciate any help. Thank you.
 

Attachments

  • 20160504_092327.jpg
    20160504_092327.jpg
    25.7 KB · Views: 606
Engineering news on Phys.org
With reference to the truth table you posted...

The left hand side of the truth table lists the "current state" and any inputs (eg X).
The right hand side of the truth table lists the "next state" and any outputs (eg Z).

The "+" sign basically means "after the next clock". So the column headed Q1+ is telling you what Q1 will become after the next clock.

So for example if we look at the second line of the truth table it is telling us that..

If the current state is Q1=0, Q0=0 and X=1 then the next state after the clock will be Q1=0, Q0=1 and Z=0

State.jpg
 
PS Here is one way to build the state machine in your problem..
State Machine.png


Two D-Type latches are used to hold the state bits. A very small Read Only Memory (ROM) is used to implement the truth table. Q0, Q1 and X are used as address bits to the ROM. The ROM data outputs D0, D1, D2 are used to generate the "next state" Q0+ and Q1+ and the output Z.

State 1.jpg


You don't have to use a ROM to implement this. You could work out how to generate (for example) Q0+ from Q1,Q0 an X using logic gates instead.

One thing missing from my circuit is a reset pin. Typically this would reset both latches to 00 (or some other known state) when power is first applied.
 
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
15
Views
2K
Replies
80
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K