forked from Github_Repos/cvw
Register file comments about reset
This commit is contained in:
parent
03f23d2aaa
commit
799736632b
@ -49,6 +49,7 @@ module regfile (
|
|||||||
// register 0 hardwired to 0
|
// register 0 hardwired to 0
|
||||||
|
|
||||||
// reset is intended for simulation only, not synthesis
|
// reset is intended for simulation only, not synthesis
|
||||||
|
// can logic be adjusted to not need resettable registers?
|
||||||
|
|
||||||
always_ff @(negedge clk) // or posedge reset) // *** make this a preload in testbench rather than reset
|
always_ff @(negedge clk) // or posedge reset) // *** make this a preload in testbench rather than reset
|
||||||
if (reset) for(i=1; i<NUMREGS; i++) rf[i] <= 0;
|
if (reset) for(i=1; i<NUMREGS; i++) rf[i] <= 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user