p-flops and a PLA implement a 3-bit Gray code up/down counter. The single bit input X = 0 denotes that the counter counts up at each clock cycle whereas X = 1 denotes that the counter counts down at each clock cycle. The outputs are the value of the counter. A Gray code is a sequence of binary numbers with the property that no more than 1 bit changes in going from one element of the sequence to another.
Computer Science
Using three D flip-flops and a PLA implement a 3-bit Gray code up/down counter.
The single bit input X = 0 denotes that the counter counts up at each clock cycle whereas X = 1 denotes that the counter counts down at each clock cycle.
The outputs are the value of the counter.
A Gray code is a sequence of binary numbers with the property that no more than 1 bit changes in going from one element of the sequence to another.
For example, a 3-bit binary Gray code up sequence is given by: 000, 001, 011, 010, 110, 111, 101, 100. The Gray code is cyclic so that the value after 100 in the sequence is 000. The Gray code down sequence is the above sequence traversed in the opposite direction.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images