Вы находитесь на странице: 1из 6

DIGITAL REGISTERS

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

Serial Input Serial Output


Let all the flip-flop be initially in the reset condition i.e. Q 3 = Q 2 = Q 1 = Q 0 = 0. If we entry of a four bit binary number 1 1 1 1 into the reg ister. When this is to be done, this number should be applied to D in bit by with the LSB bit applied first. T he D input of FF-3 i.e. D 3 is connected to serial data input D in. Output of FF-3 i.e. Q 3 is connected to the input of the next flip-flop i.e. D 2 and so on.

Block Diag ram

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

Serial Input Parallel Output


In such types of operations, the data is entered serially and taken out in parallel fashion. Data is loaded bit by bit. T he outputs are disabled as long as the data is loading . As soon as the data loading g ets completed, all the flip-flops contain their required data, the outputs are enabled so that all the loaded data is made available over all the output lines at the same time. 4 clock cycles are required to load a four bit word. Hence the speed of operation of SIPO mode is same as that of SISO mode.

Block Diag ram

Parallel Input Serial Output (PISO)


Data bits are entered in parallel fashion. T he circuit shown below is a four bit parallel input serial output reg ister. Output of previous Flip Flop is connected to the input of the next one via a combinational circuit.

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.

Block Diag ram

Parallel Input Parallel Output (PIPO)


In this mode, the 4 bit binary input B0 ,B1,B2,B3 is applied to the data inputs D 0 ,D 1,D 2,D 3 respectively of the four flip-flops. As soon as a neg ative clock edg e is applied, the input binary bits will be loaded into the flip-flops simultaneously. T he loaded bits will appear simultaneously to the output side. Only clock pulse is essential to load all the bits.

Block Diag ram

Bidirectional Shift Reg ister


If a binary number is shifted left by one position then it is equivalent to multiplying the orig inal number by 2. Similarly if a binary number is shifted rig ht by one position then it is equivalent to dividing the orig inal number by 2. Hence if we want to use the shift reg ister to multiply and divide the g iven binary number, then we should be able to move the data in either left or rig ht direction. Such a reg ister is called as a bi-directional reg ister. A four bit bi-directional shift reg ister is shown in fig . T here are two serial inputs namely the serial rig ht shift data input DR and the serial left shift data input DL along with a mode select input (M).

Block Diag ram

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.

Universal Shift Reg ister


A shift reg ister which can shift the data in only one direction is called a uni-directional shift reg ister. A shift reg ister which can shift the data in both directions is called a bi-directional shift reg ister. Applying the same log ic, a shift reg ister which can shift the data in both directions as well as load it parallely, then it is known as a universal shift reg ister. T he shift reg ister is capable of performing the following operation Parallel loading Lift shifting Rig ht shifting T he mode control input is connected to log ic 1 for parallel loading operation whereas it is connected to 0 for serial shifting . With mode control pin connected to g round, the universal shift reg ister acts as a bi-directional reg ister. For serial left operation, the input is applied to the serial input which g oes to AND g ate-1 shown in fig ure. Whereas for the shift rig ht operation, the serial input is applied to D input.

Block Diag ram

Вам также может понравиться