380 likes | 1.14k Views
Shift Registers. pp. 353-356. Shift Registers. Capability to shift bits In one or both directions Why? Part of standard CPU instruction set Cheap multiplication Serial communications Just a chain of flip-flops. Simple 4-Bit Shift Register.
E N D
Shift Registers pp. 353-356
Shift Registers • Capability to shift bits • In one or both directions • Why? • Part of standard CPU instruction set • Cheap multiplication • Serial communications • Just a chain of flip-flops
Simple 4-Bit Shift Register • In the simplest case, the shift register is simply a set of D flip-flops connected in a row like this: • Shift Registers move data laterally within the register toward its MSB (Most Significant Bit), or LSB (Least Significant Bit) position
Simple 4-Bit Shift Register (continued) • Data input, In, is called a serial input or the shift right input. • Data output, Out, is often called the serial output.
Simple 4-Bit Shift Register (continued) • Clocked in common • The vector (A, B, C, Out) is called the parallel output.
Shift Register with Parallel Load • Can provide parallel outputs from flip-flops • And also parallel inputs
Shift Register with Parallel Load (continued) • Shift • Parallel load • “no change” • Schematic next
------------------------------------ ------------------------------------ Function Table --------------------------------------------- Fig. 7-10 Shift Register with Parallel Load
Why is this useful? • Basis for serial communications • Keyboard • Serial port • Now mainly for modems
Bidirectional Shift Register • Shift either way • Now we have following possible inputs • Parallel load • Shift from left • Shift from right • Also “no change” • Schematic next
Shift Registers with Additional Functions • Shift registers can also be designed to shift more than a single bitposition right or left • Shift register can be designed to shift a variable number of bit positions specified by a variable called a shift amount.