DLD Lab 12
DLD Lab 12
------------------------------
In this open-ended lab, students need to implement a special shift register which can perform
different shifting operations including universal shift register options. The students need to
explore:
• Multiple shifting
Pre-Lab:
Register
A register is a digital circuit, which can store data. An 𝑛 − 𝑏𝑖𝑡 register consists of 𝑛 −flip
flops capable of storing 𝑛 − 𝑏𝑖𝑡𝑠 of binary information. The two common features of
registers are:
Data storage
Data movement
Shift Register
A shift register is a group of flip-flops set up in a linear fashion with their inputs and outputs
connected in such a way that the data is shifted from one flip flop to another when the circuit
is active.
Depending on the signal values on the select lines of the multiplexers, the
register can retain its current state, shift right, shift left or be loaded in parallel.
Each operation is the result of an active edge on the clock line.
To operate USR in a specific mode, it must first select the mode. To accomplish
mode selection the universal register uses a set of two selector switches, S1 and
S0. As shown in Table 12.1, each permutation of the switches corresponds to a
loading/input mode.
Operating S1 S0
Mode
No Change 0 0
Shift-Right 0 1
Shift-Left 1 0
Parallel Load 1 1
In Lab Task:
SHIFT REGISTER USING MUX4_1 AND D FLIP FLOP:
Simulation:
LAB #12: Implementation of a Special Shift Register on FPGA
INLAB TASK 2:
Special Shift Register:
VERILOG CODE FOR SHIFT REGISTER:
SIMULATION:
LAB #12: Implementation of a Special Shift Register on FPGA
SIMULATION:
LAB #12: Implementation of a Special Shift Register on FPGA
Conclusion/Critical Analysis:
In this lab we write a Verilog code of special shift register which can perform different
shifting operations including universal shift register, used the suitable flipflop
Block diagrams of these different shifting operations are also attached in this report.
We also did comparative analysis of a special shift register using D flipflop and
Behavioral Model.
We also write Verilog code for 𝑛 − 𝑏𝑖𝑡 special shift REGISTER.
We also write their test cases and simulate it for verification.
All results supported my observations.
----------------------------