- 2082 Baisakh · 6 marks
4-bit bidirectional shift register
Short answer
A 4-bit bidirectional shift register uses a mode line R/L' to control direction. When R/L'=1 it shifts right (QA←DR, QB←QA, QC←QB, QD←QC); when R/L'=0 it shifts left (QD←DL, QC←QD, QB←QC, QA←QB). IC 74194 is a standard implementation.
Explain operation of the 4-bit bidirectional shift register with truth table and timing diagram.
A bidirectional shift register can shift its data either to the right or to the left, selected by a mode control line RIGHT/LEFT' (M). It uses four D flip-flops with a common clock and a 2-to-1 AND-OR selector in front of each D input.
Circuit
One stage (stage B) of the register:
QA ------------->+-----+
R/L' ---+------->| AND |--+
| +-----+ | +----+
| +->| OR |--> DB
| +-----+ +->| |
+-[NOT]->| AND |--+ +----+
QC ------------->+-----+
DB = M.QA + M'.QC (M = R/L')
Full register:
DR ->[sel]->FF-A <-> [sel]->FF-B <-> [sel]->FF-C
<-> [sel]->FF-D <-[sel]<- DL
DA = M.DR + M'.QB DB = M.QA + M'.QC
DC = M.QB + M'.QD DD = M.QC + M'.DL
- M = 1 (shift right): the upper AND gates are enabled. Each flip-flop takes the output of the stage on its left: . Serial data enters at DR and leaves at QD.
- M = 0 (shift left): the lower AND gates are enabled. Each flip-flop takes the output of the stage on its right: . Serial data enters at DL and leaves at QA.
Truth (function) table
| R/L' (M) | CLK | QA+ | QB+ | QC+ | QD+ | Operation |
|---|---|---|---|---|---|---|
| x | no edge | QA | QB | QC | QD | Hold |
| 1 | rising edge | DR | QA | QB | QC | Shift right |
| 0 | rising edge | QB | QC | QD | DL | Shift left |
Example and timing diagram
Starting from 0000: shift right for 4 clocks with DR = 1, 0, 1, 1; then shift left for 3 clocks with DL = 0, 1, 1.
| CLK | Mode | DR | DL | QA | QB | QC | QD |
|---|---|---|---|---|---|---|---|
| 0 | - | - | - | 0 | 0 | 0 | 0 |
| 1 | Right | 1 | x | 1 | 0 | 0 | 0 |
| 2 | Right | 0 | x | 0 | 1 | 0 | 0 |
| 3 | Right | 1 | x | 1 | 0 | 1 | 0 |
| 4 | Right | 1 | x | 1 | 1 | 0 | 1 |
| 5 | Left | x | 0 | 1 | 0 | 1 | 0 |
| 6 | Left | x | 1 | 0 | 1 | 0 | 1 |
| 7 | Left | x | 1 | 1 | 0 | 1 | 1 |
1 2 3 4 5 6 7
CLK _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|
R/L' ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|____________
DR ‾‾‾|___|‾‾‾‾‾‾‾|____________
DL ___________________|‾‾‾‾‾‾‾|
QA _|‾‾‾|___|‾‾‾‾‾‾‾‾‾‾‾|___|‾‾
QB _____|‾‾‾|___|‾‾‾|___|‾‾‾|__
QC _________|‾‾‾|___|‾‾‾|___|‾‾
QD _____________|‾‾‾|___|‾‾‾‾‾‾
During clocks 1 to 4 the bits move towards QD; from clock 5 the direction reverses and the bits move towards QA while new bits enter at QD. Bidirectional (universal) shift registers such as IC 74194 are used for multiplication/division by 2 and in serial data handling.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Shift register and 4-bit PISO operation · Digital Logic, chapter 7
- SISO shift register with timing diagram · Digital Logic, chapter 7 · asked 9×
- SIPO register with timing diagram · Digital Logic, chapter 7 · asked 2×
- 4-bit PISO shift register working · Digital Logic, chapter 7 · asked 2×
- Shift register uses; 4-bit ring counter · Digital Logic, chapter 7
- PISO shift register with 1011 data · Digital Logic, chapter 7 · asked 4×
- JK flip-flop operation and truth table · Basic Electronics Engineering, chapter 6
- 8255 mode 2 operation with timing diagram · Instrumentation II, chapter 2
- Short note: Shift register and counter · Basic Electronics Engineering, chapter 6
- Timing diagram of LDA 2080H · Microprocessor, chapter 2 · asked 2×