
The a pplications of the PISO shift register include the following. Module Shiftregister_PISO(Clk, Parallel_In,load, Serial_Out)
#Register truepianos code#
The verilog code for PISO shift register is shown below. PISO Shift Register Timing Diagram Verilog Code So the final data output after the fourth CLK will be 1011. After the second CLK pulse, the ‘1’ is moving to the third and fourth CLK pulses which are shown in the diagram. Once the CLK pulse is applied then all the data is to be shifted from Q A, Q B, Q C & Q D. Here we are using a positive edge CLK i/p signal. The timing diagram of the PISO shift register is shown below. If the CLK pulse ‘4’ is applied then the data is shifted like Q A becomes ‘0’, Q B becomes ‘0’, Q C becomes ‘0’ and Q D becomes ‘1’ as shown in the following table.

If the CLK pulse ‘3’ is applied then the data is shifted like Q A becomes ‘0’, Q B becomes ‘0’, Q C becomes ‘1’ and Q D becomes ‘1’ as shown in the following table. Once the CLK pulse is applied to FFs, then the data ‘1101’ is shifted to the right side from one OR gate to the other. Now we are applying the control signal ‘1 to NOT gate then the output of this gate will become ‘0’ then G4, G5 & G6 are enabled. So all the inputs are loaded and after that OR gates are also enabled and the data is to be loaded to the input of each Flip Flop. When the control signal applied to NOT gate is ‘0’ then its o/p will become‘1’ and ‘G1, ‘G2’ & ‘G3’ will enable, and ‘G4’, ‘G5’ & ‘G6’ will disable. Here, we are choosing the input data as 1101 then A=1, B=1, C=0 & D=1. Now we are going to see how the data is loaded.
#Register truepianos serial#
All the flip flops are to be connected in a single CLK pulse and the FFs outputs will be in the serial data output. The OR gate is connected to the second, third, and fourth Flip Flop’s inputs like D B, D C, and D D. The direct control signal is connected to one input of the ‘G4’, ‘G5’ & ‘G6’ and one more input of the ‘G4’, ‘G5’ & ‘G6’ are connected to the outputs of Flip Flops like QA, QB, and QC. Here, ‘A’ is directly connected to DA of the first flip flop. After that, NOT gate outputs are connected to ‘G1’, ‘G2’, and ‘G3’, and the other inputs of G1, G2 & G3 are B, C & D. One control signal (Shift/Load) is used to control the parallel input and serial output. In this parallel input serial output (PISO) shift register circuit, logic gates are used. Here, one CLK pulse is enough to load the 4-bit of data but four pulses are required to unload all the four bits.

After that, it is read out from the shift register serially 1-bit at a time from input pins on every CLK cycle. In the above-shown PISO shift register circuit, the input data is applied to the input pins of the shift registers from D A to D D at the same time. PISO Shift Register Circuit PISO Shift Register Working So the FFs in the circuit are synchronous through each other because a similar CLK signal is given to every flip flop. The previous FF’s o/p, as well as parallel input data, is simply connected to the i/p of the second flip flop.
