Engineering How to Set Up a State Table for a 2-bit Gray Code Counter?

AI Thread Summary
To set up a state table for a 2-bit Gray code counter, the counter has two outputs, y1 and y2, which represent the more and less significant bits, respectively. When the control input x is 0, the outputs remain unchanged, while x = 1 triggers the counter to cycle through the Gray code sequence: 00, 01, 11, and 10. The state table should reflect these transitions, with y1 and y2 corresponding directly to the current state of the counter. Clarification was provided that y1 and y2 simply output the values of the counter's flip-flops. Understanding the Gray code sequence is essential for accurately completing the state table.
gomezfx
Messages
20
Reaction score
0

Homework Statement


A counter has two state outputs y1 (the more significant bit) and y2 (the less significant bit) and a control input x. When x = 0, the states of the counter’s flip-flops do not change. When x = 1, the states of the counter’s flip-flops cycle through the codes of a 2-bit Gray code sequence (00 – 01 – 11 – 10) on successive clock pulses.


Homework Equations





The Attempt at a Solution



I am having trouble setting up the state table. The gray code part is what's confusing me I think. Does anyone mind looking at my state table to verify if it's right. Also, how am I supposed to know what the outputs for y1 and y2 yield?

hw.png
 
Physics news on Phys.org
Your state table is OK. y1 and y2 just output the current state of the counter, so y1=a and y2 = b
 

Similar threads

Replies
5
Views
4K
Replies
2
Views
5K
Replies
1
Views
2K
Replies
10
Views
5K
Replies
12
Views
9K
Replies
7
Views
7K
Replies
10
Views
3K
Replies
10
Views
3K
Back
Top