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.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pc_reg.v b/src/pc_reg.v
index 9d7600b..91bf85f 100644
--- a/src/pc_reg.v
+++ b/src/pc_reg.v
@@ -1,15 +1,15 @@
module pc_reg (
input clk,
input rstn,
+
input we,
input [31:0] pc_in,
+
output reg [31:0] pc
);
-
parameter PC_INITIAL = 32'h0001_0000;
-
always @ (posedge clk) begin
if (!rstn) pc <= PC_INITIAL;
else if (we) pc <= pc_in;