MSI Shift Registers

29
MSI Shift Registers • 74LS194 4-Bit Bidirectional Universal Shift Register • may be used in the following data register transfers – serial-serial, – shift left, – shift right, – serial-parallel, – parallel-serial, – and parallel- parallel 1

description

Lec 18

Transcript of MSI Shift Registers

Page 1: MSI Shift Registers

MSI Shift Registers• 74LS194 4-Bit

Bidirectional Universal Shift Register

• may be used in the following data register transfers– serial-serial, – shift left, – shift right, – serial-parallel, – parallel-serial, – and parallel-parallel

1

Page 2: MSI Shift Registers

MSI Shift Registers

• 74LS194 4-Bit Bidirectional Universal Shift Register

2

Page 3: MSI Shift Registers

MSI Shift Registers

• 74LS194 control inputs S1 and S0

3

Page 4: MSI Shift Registers

MSI Shift Registers

• 74LS194 4-Bit Bidirectional Universal Shift Register

4

01 11 10 00 01 11 10 0001 11 10 0001 11 10 00

Page 5: MSI Shift Registers

MSI Shift Registers

• 74LS194 4-Bit Bidirectional Universal Shift Register

5

Page 6: MSI Shift Registers

6

“Universal” shift register

74x194

• Shift left• Shift right• Load• Hold

Page 7: MSI Shift Registers

7

MSI Shift Registers

• One stage of the 74x194

Page 8: MSI Shift Registers
Page 9: MSI Shift Registers

MSI Shift Register 74195

Page 10: MSI Shift Registers

MSI Shift Register 74195

Page 11: MSI Shift Registers

MSI Shift Register 74195

or D0–D3or D0–D3

Page 12: MSI Shift Registers

MSI Shift Register 74195

Page 13: MSI Shift Registers

MSI Shift Register 74195• 74195 logic diagram

/P3/P3/P0/P0 /P1/P1 /P2/P2

Page 14: MSI Shift Registers

Ring Counter

14

• A ring counter is a loop of flip-flops interconnected in such a manner that only one of the devices may be in a specified state at one time

• If the specified state is HIGH, then only one device may be HIGH at one time.

• As the clock, or input, signal is received, the specified state will shift to the next device at a rate of 1 shift per clock, or input, pulse.

Page 15: MSI Shift Registers

MSI Shift Registers

• 74LS194 control inputs S1 and S0

15

Page 16: MSI Shift Registers

16

Shift-Register Counters

• Ring counter

• For Shift right

S0Vcc, S1 for Load and Reset, AVcc, BCD Gnd,

QD RIN, LIN is not connected

Page 17: MSI Shift Registers

Ring counter (Self correcting)• 4 bit, 4 state with a single circulating 1

Page 18: MSI Shift Registers

00010001

00100010

01000100

10001000

10101010

01010101 11011101

01100110

00110011 10111011

11101110

01110111 11111111

1100110010011001

00000000

State diagram for a self correcting ring counter

Page 19: MSI Shift Registers

Ring counter (Self correcting)• 4 bit, 4 state with a single circulating 0

Page 20: MSI Shift Registers

20

Johnson Counter (“Twisted ring” counter)

Page 21: MSI Shift Registers

21

Timing diagram for a 4-bit Johnson counter

Page 22: MSI Shift Registers

State Name

Q3 Q2 Q1 Q0 Decoding

S1 0 0 0 0 Q3’•Q0’

S2 0 0 0 1 Q1’•Q0

S3 0 0 1 1 Q2’•Q0

S4 0 1 1 1 Q3’•Q2

S5 1 1 1 1 Q3•Q0

S6 1 1 1 0 Q1•Q0’

S7 1 1 0 0 Q2•Q1’

S8 1 0 0 0 Q3•Q2’

States of an 4-bit Johnson counter

* Can be decoded with 2-input gates

Page 23: MSI Shift Registers

23

Self correcting Johnson Counter• n-bit counter • 2n - 2n unused states• 0x…x0 → 00…01• 2 input NOR gate

performs correction

Page 24: MSI Shift Registers

Linear Feedback Shift Register Counter• n-bit shift register counters have far less than the

maximum number of 2n normal states • n states for ring counter, 2n states for Johnson counter• An n-bit LFSR counter can have 2n – 1 states

also called as maximum length sequence generator• Design is based on the theory of finite fields• Developed by French mathematician Evariste Galois• Serial input is connected to the sum modulo 2 of a

certain set of output bits• These feedback connections determine the state

sequence of the counter• By convention, outputs are always numbered and

shifted in the direction shown in figure on next slide

Page 25: MSI Shift Registers

25

• There exists at least one equation which makes the counter go through all the 2n - 1 states before repeating

• It can never cycle through all 2n states

• Regardless of the connection pattern 0…0 → 0…0

Page 26: MSI Shift Registers

26

Feedback equations for LFSR counters

Page 27: MSI Shift Registers

3-bit LFSR counter

X0X0

X1X1X2X2

X3X3

X2 X1 X0

1 0 0

0 1 0

1 0 1

1 1 0

1 1 1

0 1 1

0 0 1

1 0 0

Sequence

Page 28: MSI Shift Registers

Modified LFSR Counter• An LFSR can be modified to have 2n states including

the all 0’s state• In an n-bit LFSR counter, an extra EXOR gate and an

n – 1 input NOR gate connected to all the shift register outputs except X0 accomplishes the task

• The states are not visited in binary order • Usually used where this characteristic is an advantage

- Generating test inputs for logic circuits- Encoding and decoding circuits for certain error-

detecting and error-correcting codes including CRC codes

- Scrambling and descrambling data patterns in data communications- Pseudo random binary sequence generator

Page 29: MSI Shift Registers

Modified 3-bit LFSR counter to include all 0’s

X2 X1 X0

1 0 0

0 1 0

1 0 1

1 1 0

1 1 1

0 1 1

0 0 1

0 0 0

1 0 0

Sequence

X0X0

X1X1

X2X2

X3X3