Question: Write test bench code in SystemVerilog for Vivado to test this OTTER register module. I have this for my code for the register. module REGFILE

Write test bench code in SystemVerilog for Vivado to test this OTTER register module. I have this for my code for the register.
module REGFILE(
input [4:0] ADR1,
input [4:0] ADR2,
input [4:0] WADR,
input [31:0] WDATA,
input [0:0] WE,
input clk,
output [31:0] RS1,
output [31:0] RS2
);
reg [31:0] REGFILE [31:0];
always @(posedge clk) begin
if (WE) begin
REGFILE[WADR]= WDATA;
end
end
assign RS1= REGFILE[ADR1];
assign RS2= REGFILE[ADR2];
endmoduleFigure 3.1: Register File Black Box Diagram
 Write test bench code in SystemVerilog for Vivado to test this

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 Databases Questions!