Suppose you are constructing a 3-bit counter using three D flip-flops and some s
ID: 3795960 • Letter: S
Question
Suppose you are constructing a 3-bit counter using three D flip-flops and some selection of gates. The inputs to the system are Reset (sets every output to zero) and Inc (a signal to increment the counter). The outputs are the value of the counter C2C1C0. When the counter has the value 7 and is incremented, it should become zero. Draw the D flip-flop and logic gates for CO (the least significant bit) only. You may use a block diagram for the D flip-flop. Assume we have a 16-bit Arithmetic Logic Unit. List the inputs and outputs in binary for the ALU if we are using it to determine if X = 30_10Explanation / Answer
2.
input 1 (30)10 = 0000 0000 0001 1110
input 2 (26)10 = 0000 0000 0001 1010
operation (set less than)(11)10 =0000 0000 0000 1011
output = 0000 0000 0000 0000
zeroflag(z)= 1
negativeflag(N)= 0