200 likes | 1.03k Views
EKT 221 : Digital 2 RTL : Bidirectional Shift Register. Today’s Outline. Bidirectional Shift Registers. Bidirectional Shift Register. Unidirectional Register Capable of shifting in only one direction (like what we have discussed in last lecture) Shift on clock pulse Shift & Load
E N D
Today’s Outline • Bidirectional Shift Registers
Bidirectional Shift Register • Unidirectional Register • Capable of shifting in only one direction (like what we have discussed in last lecture) • Shift on clock pulse • Shift & Load • Shift, Load & Hold * shift occurs in one direction only • Bidirectional Register • A register that can shift in both directions • Shift Left (sl) • Shift Right (sr) And at the same time is capable of HOLD and LOAD
A0 A1 A2 A3 4 to 1 mux S0 S1 Bidirectional Shift Register • By placing a 4-input multiplexer in front of each D flip-flop in a shift register, we can implement a circuit with shift right, shift left, parallel load, hold. • Each stage consists of a D-FF and 4:1 multiplexer 0 1 2 3 D
Bidirectional Shift Register How do we represent his in RTL?? (No Transfer occurs) S1S0 : Q sl Q S1S0 : Q sr Q S1S0 : Q D
Bidirectional Shift Register Let’s analyze the one stage diagram of a Bidirectional Shift Register with parallel load.
4 Bits Bidirectional Shift Register with Parallel Load Serial outputs: (Right Shift) (Left Shift)
Bidirectional Shift Register • Shift registers can also be designed to shift more than a single bit position right or left • Shift register can be designed to shift a variable number of bit positions specified by a variable called a shift amount.