Question: Write the SystemVerilog code for this OTTER register file module. I have this so far: module REGFILE ( input [ 4 : 0 ] ADR
Write the SystemVerilog code for this OTTER register file module. I have this so far:
module REGFILE
input : ADR
input : ADR
input : WADR,
input : WDATA,
input : WE
input clk
output : RS
output : RS
;
reg : REGFILE :;
always @posedge clk begin
if WE begin
REGFILEWADR WDATA;
end
end
assign RS REGFILEADR;
assign RS REGFILEADR;
I also have to initialize all registers to zero and this code was given to help with that:
logic : ram :;
Initialize the memory to be all s
initial begin
int i;
for i; i; ii begin
rami;
end
end
Im not sure how to implement the initializing to part.
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
