diff options
author | Nick McKinney <nick@kmonkey.net> | 2016-12-29 15:57:28 -0600 |
---|---|---|
committer | Nick McKinney <nick@kmonkey.net> | 2016-12-29 15:57:28 -0600 |
commit | 47983fc7710df0f2ab0bf5e27255d9d9e30ad1b7 (patch) | |
tree | 81ec9d5248da6450c3b67dfaaa0a2f10832e810f /regFile.v | |
parent | 7a8184a7c5b1e15c8c3446feb3a927b0fc347242 (diff) |
add initial zero values for registers
Diffstat (limited to 'regFile.v')
-rw-r--r-- | regFile.v | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -25,6 +25,17 @@ module regFile ( assign dataA = register[regA]; assign dataB = register[regB]; + initial begin + register[0] = 16'h0; + register[1] = 16'h0; + register[2] = 16'h0; + register[3] = 16'h0; + register[4] = 16'h0; + register[5] = 16'h0; + register[6] = 16'h0; + register[7] = 16'h0; + end + always @(posedge clk) begin if(we) begin register[regDest] <= { |