From 05366e24d8b3cfca4b856b1b3740d535cbdf7dd7 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Mon, 13 May 2024 08:06:30 +0200 Subject: async reset --- src/control_unit.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control_unit.v') diff --git a/src/control_unit.v b/src/control_unit.v index 9431c25..0565d5e 100644 --- a/src/control_unit.v +++ b/src/control_unit.v @@ -72,7 +72,7 @@ end reg [3:0] state, next_state; -always @ (posedge clk) begin +always @ (posedge clk or negedge rstn) begin if (!rstn) state <= s00_fetch; else state <= next_state; end -- cgit v1.2.3