aboutsummaryrefslogtreecommitdiff
path: root/src/pc_reg.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/pc_reg.v')
-rw-r--r--src/pc_reg.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pc_reg.v b/src/pc_reg.v
index 91bf85f..2bdb540 100644
--- a/src/pc_reg.v
+++ b/src/pc_reg.v
@@ -10,7 +10,7 @@ module pc_reg (
parameter PC_INITIAL = 32'h0001_0000;
-always @ (posedge clk) begin
+always @ (posedge clk or negedge rstn) begin
if (!rstn) pc <= PC_INITIAL;
else if (we) pc <= pc_in;
end