summaryrefslogtreecommitdiff
path: root/regFile.v
diff options
context:
space:
mode:
Diffstat (limited to 'regFile.v')
-rw-r--r--regFile.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/regFile.v b/regFile.v
index 7410847..3220aa0 100644
--- a/regFile.v
+++ b/regFile.v
@@ -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] <= {