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 32-bit barrel shifter.
Outcome: Gate level implementation for the following components.
SHIFT32
Complete gate level description of following components in barrel_shifter.v file.
SHIFT32_L
SHIFT32_R
BARREL_SHIFTER32
SHIFT32
Compile entire Project and simulate following modules in ModelSim simulator.
BARREL_SHIFTER32_TB
Observe corresponding outcomes on waveform windows and fix any issue.
Each testbench will generate corresponding output file.
OUTPUT/barret_shifter_tb.out
This will also generate pass/total statistics on console.
This should match with corresponding golden output file in CS147-Project03/GOLDEN/ directory.
barret_shifter_tb.out.golden
Add more testing in these testbenches to make sure outcome is correct.
// Name: barrel_shifter.v
// Module: SHIFT32_L , SHIFT32_R, SHIFT32
// Notes: 32-bit barrel shifter
include "prj_definition.v"
//32-bit shift amount shifter
module SHIFT32(Y,D,S, LnR);
// output list
output [31:0] Y;
// input list
input [31:0] D;
input [31:0] S;
input LnR;
// TBD
endmodule
// Shift with control L or R shift
module BARREL_SHIFTER32(Y,D,S, LnR);
// output list
output [31:0] Y;
// input list
input [31:0] D;
input [4:0] S;
input LnR;
// TBD
endmodule
// Right shifter
module SHIFT32_R(Y,D,S);
// output list
output [31:0] Y;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!