In the circuit shown, the initial binary content of shift register A is 1101 and that of shift register B is 1010. The shift registers are positive-edge triggered, and the gates have no delay.
When the shift control is high, what will be the binary content of the shift registers A and B after four clock pulses?
Tap to open full sizeFigure description
Two 4-bit shift registers in cascade, both shifting to the right. Shift Register A holds, left to right, 1 1 0 1 (call the cells A1 A2 A3 A4). Shift Register B holds, left to right, 1 0 1 0 (B1 B2 B3 B4). The serial output of A (the rightmost cell A4) feeds the serial input of B (its leftmost cell). The serial input of A (leftmost cell A1) comes from a 2-input XOR gate. XOR input 1: a wire from the top of the second cell of A (A2) goes up and into a NOT gate (triangle pointing left with the bubble on its left-hand output); the inverter output runs left and down into the upper XOR input, so that input is A2 complemented. XOR input 2: a wire from the top of the rightmost cell of A (A4) goes up, runs left across the top of the figure, down the left side and right into the lower XOR input. Clocking: a 2-input AND gate takes 'Clock' and 'Shift Control'; its output is the common clock of both registers (drawn as arrows into the bottom of Shift Register A and Shift Register B). The registers are positive-edge triggered.
- (A)
A = 1101, B = 1101
- (B)
A = 1110, B = 1001
- (C)
A = 0101, B = 1101
- (D)
A = 1010, B = 1111