Question: Objective: To implement a Verilog gate level model for 3 2 - bit barrel shifter. Outcome: Gate level implementation for the following components. SHIFT 3
Objective: To implement a Verilog gate level model for bit barrel shifter.
Outcome: Gate level implementation for the following components.
SHIFT
Complete gate level description of following components in barrelshifter.v file.
SHIFTL
SHIFTR
BARRELSHIFTER
SHIFT
Compile entire Project and simulate following modules in ModelSim simulator.
BARRELSHIFTERTB
Observe corresponding outcomes on waveform windows and fix any issue.
Each testbench will generate corresponding output file.
OUTPUTbarretshiftertbout
This will also generate passtotal statistics on console.
This should match with corresponding golden output file in CSProjectGOLDEN directory.
barretshiftertbout.golden
Add more testing in these testbenches to make sure outcome is correct.
Name: barrelshifter.v
Module: SHIFTL SHIFTR SHIFT
Notes: bit barrel shifter
include prjdefinition.v
bit shift amount shifter
module SHIFTYDS LnR;
output list
output : Y;
input list
input : D;
input : S;
input LnR;
TBD
endmodule
Shift with control L or R shift
module BARRELSHIFTERYDS LnR;
output list
output : Y;
input list
input : D;
input : S;
input LnR;
TBD
endmodule
Right shifter
module SHIFTRYDS;
output list
output : Y;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
