2081 10

BIT103 ยท 2081 ยท 5 marks

Define shift register. Explain the operation of 4-bit Serial-In Serial-Out Shift register with data input 1011. [1+4]

Define shift register. Explain the operation of 4-bit Serial-In Serial-Out Shift register with data input 1011. [1+4]

Digital LogicChapter 10: Shift Registers and Data ProcessingSerial-in serial-out shift registerNumerical: SISO shift register

Shift Register: Definition and 4-bit SISO Operation

Given

  • Register type: 4-bit Serial-In Serial-Out (SISO)
  • Number of flip-flops: 4
  • Data input: 1011
  • Marks distribution: 1 (definition) + 4 (operation)

No values missing. The entry convention (MSB-first vs LSB-first) is not specified; I will state the convention used explicitly.


Solution

Definition of Shift Register (1 mark)

A shift register is a sequential logic circuit made of a cascade of flip-flops (usually D flip-flops) connected in series, in which the stored data bits are shifted one position from one flip-flop to the next on every clock pulse. It is used for temporary storage of data and for serial/parallel data conversion.


4-bit SISO Shift Register (4 marks)

Circuit Description

Four D flip-flops are connected in cascade. The serial input feeds FF0; the output $Q$ of each flip-flop drives the $D$ input of the next; all flip-flops share a common clock. Data appears serially at $Q_3$.

Serial                                                    Serial
Input  -->[ FF0 ]-->[ FF1 ]-->[ FF2 ]-->[ FF3 ]--> Output
  D       Q0         Q1         Q2         Q3
                    CLK (common)

Entry convention (chosen): Data 1011 is entered MSB first, so bits enter in order 1, 0, 1, 1.


State Table (shift right, right-most bit entered first at FF0)

Shift direction. On each clock: new bit -> Q0, old Q0 -> Q1, old Q1 -> Q2, old Q2 -> Q3, old Q3 -> out.

ClockInput DQ0Q1Q2Q3Serial Out
Initial--0000--
1110000
2001000
3110100
4111011

Verification of shifting

  • Clock 1: D=1 -> Q0=1, rest 0. State = 1000 โœ“
  • Clock 2: D=0 -> Q0=0, old Q0(1)->Q1. State = 0100 โœ“
  • Clock 3: D=1 -> Q0=1, old Q0(0)->Q1, old Q1(1)->Q2. State = 1010 โœ“
  • Clock 4: D=1 -> Q0=1, old Q0(1)->Q1, old Q1(0)->Q2, old Q2(1)->Q3. State = 1101; the bit leaving Q3 is the old Q3, which is 0.

At the end of clock 4 the register holds the whole word, because the bit entered at clock 1 has been clocked through all four stages and now sits in Q3. Shifting it back out takes three further pulses, so a full load and unload of an n = 4 stage register takes 2n - 1 = 7 clock pulses in total.

Read-out phase (feeding 0s after loading):

ClockInputQ0Q1Q2Q3Serial Out
4 (loaded)11101--
5001101 (last bit out)
6000110
7000011
8000001 (first bit out)

So after loading in 4 pulses, the data is retrieved serially over the next 4 pulses. It is worth noting that at clock 4 the bit sitting at Q3 is the LSB-side bit that was loaded first, but the systematic read-out still requires clocks 5 to 8.


Key Characteristics

FeatureDescription
Data entry1 bit/clock (serial)
Data output1 bit/clock (serial)
Pulses to load 4 bits4
Pulses to read 4 bits4 more
Main useTime delay / data buffering

Final Result

The 4-bit SISO register loads 1011 in 4 clock pulses. Register state sequence: 0000 -> 1000 -> 0100 -> 1010 -> 1101. The stored data is then read out serially over the next 4 pulses. Note that "serial output = 1 at clock 4" is imprecise, since full retrieval needs clocks 5 to 8.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.