GATE / CS ARCHIVE

GATE CSE 1991 / QUESTION 6(a)

Three-bit parallel-load shift register

Digital Logic · Flip-Flops, Registers & Sequential Circuits · Full GATE CSE 1991 paper

GATE 1991, Q6(a) 5 marks · Descriptive
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 6(a), GATE 1991: Using D flip-flops and gates, design a three-bit parallel-in/serial-out register shifting left to right. Inputs: CLK, parallel A,B,C; serial input S; LOAD/SHIFT control.
Tap to enlarge
Answer & solution

Answer: For L=1 load: D0=LA+L′S, D1=LB+L′Q0, D2=LC+L′Q1; serial output Q2. (no official key was published)

Let Q0,Q1,Q2 be the stored bits from left to right. Define L=1 as LOAD and L=0 as SHIFT, consistent with the uncomplemented LOAD and complemented SHIFT label. Place a 2:1 multiplexer before each D flip-flop and connect all three clock pins to CLK.

Connection schematic

A ─load─┐   B ─load─┐    C ─load─┐
S ─shift┴MUX→DFF Q0 ─shift┴MUX→DFF Q1 ─shift┴MUX→DFF Q2→OUT

Each MUX uses L as select; all DFFs use the same active clock edge.

The gate equations are D0=(L AND A) OR (NOT L AND S), D1=(L AND B) OR (NOT L AND Q0), D2=(L AND C) OR (NOT L AND Q1). Implement each mux with two AND gates and one OR gate, sharing an inverter for L.

On a load edge the state becomes (A,B,C). On successive shift edges it becomes (S1,A,B), then (S2,S1,A), then (S3,S2,S1). The bits shifted out, measured just before those edges, are C,B,A. All right-hand sides use the old state because the flip-flops update together; using the newly updated Q0 to compute Q1 would incorrectly move a bit through several stages in one clock. An asynchronous reset is optional, not required for loading.

Original paper, page 5