Question: Create testbench code to test multuple values in SystemVerilog for this OTTER Register file, this is my code that only tests one set of values:
Create testbench code to test multuple values in SystemVerilog for this OTTER Register file, this is my code that only tests one set of values:
module tbREGFILE;
reg : ADR;
reg : ADR;
reg : WADR;
reg : WDATA;
reg WE;
reg clk;
logic : RS;
logic : RS;
REGFILE UUT
ADRADR
ADRADR
WADRWADR
WDATAWDATA
WEWE
clkclk
RSRS
RSRS
;
initial begin
clk ;
forever # clk ~clk;
end
initial begin
ADRb;
ADRb;
WADR b;
WDATA h;
WE b;
#;
WDATA h;
WE b;
#;
WE b;
#;
$finish;
end
endmodule
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
