Академический Документы
Профессиональный Документы
Культура Документы
http://www.tuto rialspo int.co m/co mpute r_lo g ical_o rg aniz atio n/dig ital_re g iste rs.htm
Co pyrig ht tuto rials po int.co m
Flip-flop is a 1 bit memory cell which can be used for storing the dig ital data. T o increase the storag e capacity in terms of number of bits, we have to use a g roup of flip-flop. Such a g roup of flip-flop is known as a Reg ister . T he n-bit reg ister will consist of n number of flip-flop and it is capable of storing an n-bit word. T he binary data in a reg ister can be moved within the reg ister from one flip-flop to another. T he reg isters that allow such data transfers are called as shift reg isters . T here are four mode of opearation of a shift reg ister. Serial Input Serial Output Serial Input Parallel Output Parallel Input Serial Output Parallel Input Parallel Output
Operation
Before application of clock sig nal let Q 3 Q 2 Q 1 Q 0 = 0000 and apply LSB bit of the number to be entered to D in. So D in=D 3 =1. Apply the clock. On the first falling edg e of clock, the FF-3 is set, and stored word in the reg ister is Q 3 Q 2 Q 1 Q 0 = 1000.
Apply the next bit to D in. So D in=1. As soon as the next neg ative edg e of the clock hits, FF-2 will set and the stored word chang e to Q 3 Q 2 Q 1 Q 0 = 1100.
Apply the next bit to be stored i.e. 1 to D in. Apply the clock pulse. As soon as the third neg ative clock edg e hits, FF-1 will be set and output will be modified to Q 3 Q 2 Q 1 Q 0 = 1110.
Similarly with D in=1 and with the fourth neg ative clock edg e arriving , the stored word in the reg ister is Q 3 Q 2 Q 1 Q 0 = 1111.
Truth Table
Waveforms
T he binary input word B0 ,B1,B2,B3 is applied thoug h the same combinational circuit. T here are two modes in which this circuit can work namely shift mode or load mode.
Load mode
When the shift/load bar line is low (0), the AND g ate 2,4 and 6 become active. T hey will pass B1,B2,B3 bits to the corresponding flip-flops. On the low g oing edg e of clock, the binary input B0 ,B1,B2,B3 will g et loaded into the corresponding flip-flops. T hus parallel loading takes place.
Shift mode
When the shift/load bar line is low (1), the AND g ate 2,4 and 6 become inactive. Hence the parallel loading of the data becomes impossible. But the AND g ate 1,3 and 5 become active. T herefore the shifting of data from left to rig ht bit by bit on application of clock pulses. T hus the parallel in serial out operation take place.
Operation
S.N. 1 Condition With M = 1 : Shift rig ht operation O peration If M = 1, then the AND g ates 1,3,5 and 7 are enable whereas the remaining AND g ates 2,4,6 and 8 will be disabled.
T he data at D R is shifted to rig ht bit by bit from FF-3 to FF-0 on the application of clock pulses. T hus with M = 1 we g et the serial rig ht shift operation. 2 With M = 0 : Shift left operation
When the mode control M is connected to 0 then the AND g ates 2,4,6 and 8 are enabled while 1,3,5 and 7 are disabled. T he data at D L is shifted left bit by bit from FF-0 to FF-3 on the application of clock pulses. T hus with M = 0 we g et the serial rig ht shift operation.