aboutsummaryrefslogtreecommitdiff
path: root/src/instruction_reg.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/instruction_reg.v')
-rw-r--r--src/instruction_reg.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/instruction_reg.v b/src/instruction_reg.v
index 3c81cf6..d98ab6d 100644
--- a/src/instruction_reg.v
+++ b/src/instruction_reg.v
@@ -7,7 +7,7 @@ module instruction_reg (
output reg [31:0] pc_buf, instr
);
-always @ (posedge clk) begin
+always @ (posedge clk or negedge rstn) begin
if (!rstn) begin
pc_buf <= 32'b0;
instr <= 32'b0;