Skip to content
BetterDL

Shift right

Also called: right shift, shift-right register, right-shift register

Moving every bit one place toward the LSB: in Q3 Q2 Q1 Q0 notation, the serial input enters Q3 and the old Q0 drops out.

A shift right moves every bit one place toward the LSB. With contents written Q3 Q2 Q1 Q0 (MSB on the left), the written number slides to the right:

  • The serial input enters Q3.
  • Each other bit takes the value of the bit on its left: D2 = Q3, D1 = Q2, D0 = Q1.
  • The old Q0 drops out. It is the serial output of a shift-right register.

Quick method: cross off the rightmost bit and write SI on the left. 0110 with SI = 1 becomes 1011.

What enters on the left decides what the shift means:

Because every flip-flop samples its neighbor's value from before the edge, all bits move at once. Textbooks draw shift registers in different directions, so always check which end is the input before tracing.

Worked examples

Example

One shift, flip-flop by flip-flop

A 4-bit shift-right register holds 0110 and SI = 1. Find each D just before the edge.

  1. 1.

    D3 = SI = 1.

  2. 2.

    D2 = Q3 = 0.

  3. 3.

    D1 = Q2 = 1.

  4. 4.

    D0 = Q1 = 1.

  5. 5.

    After the edge: 1011. The old Q0 (0) has dropped out.

Example

Serial bits arrive newest first

A 4-bit shift-right register starts at 0000. SI is 1, 1, 0, 0 on edges 1–4.

  1. 1.

    Edge 1: 1000. Edge 2: 1100. Edge 3: 0110. Edge 4: 0011.

  2. 2.

    The first bit sent is now in Q0, the last in Q3.

  3. 3.

    Read left to right, the register shows the newest bit first.

Common mistakes

  • Shifting one bit at a time, left to right. That copies new values instead of old ones and smears SI across the register.

  • Putting SI into Q0. For a shift right it enters Q3.

  • Assuming every textbook uses the same direction. Check the wiring before you trace.

Practice Shift right

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

Shift right is taught in Registers.