(Counter Design) Consider the design of a 4-bit Gray-code counter (that is, only one of the state bits changes for each transition) that counts in the following sequence: 00,0001,0011,0010,0110,01110101,0100,1100,1101,1111 11101010, 1011, 1001, 1000,and then back to 0000,00011 etc(a)Draw a state diagram and next-state table.
时间: 2024-04-26 14:27:02 浏览: 96
Here is the state diagram and next-state table for the 4-bit Gray-code counter:
![State diagram](https://i.imgur.com/kD8GKkY.png)
| Current State | Next State |
| --- | --- |
| 0000 | 0001 |
| 0001 | 0011 |
| 0011 | 0010 |
| 0010 | 0110 |
| 0110 | 0111 |
| 0111 | 0100 |
| 0100 | 1100 |
| 1100 | 1101 |
| 1101 | 1111 |
| 1111 | 1110 |
| 1110 | 1010 |
| 1010 | 1011 |
| 1011 | 1001 |
| 1001 | 1000 |
| 1000 | 0000 |
阅读全文