From a55821e9cbe886a286eea62f777fd116ab5835cf Mon Sep 17 00:00:00 2001 From: Michael Platzer Date: Wed, 6 Jul 2022 11:46:18 +0200 Subject: [PATCH] Fix controller FSM's XIF commit tracking signals Ensure that the controller FSM's XIF commit transaction tracking signals are reset every time a new instruction enters the EX stage (now ensured by simply resetting these signals anytime the EX stage is ready). Fixes #610. Signed-off-by: Michael Platzer --- rtl/cv32e40x_controller_fsm.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/cv32e40x_controller_fsm.sv b/rtl/cv32e40x_controller_fsm.sv index 520abceb..a8755a39 100644 --- a/rtl/cv32e40x_controller_fsm.sv +++ b/rtl/cv32e40x_controller_fsm.sv @@ -1166,7 +1166,7 @@ module cv32e40x_controller_fsm import cv32e40x_pkg::*; commit_valid_q <= 1'b0; commit_kill_q <= 1'b0; end else begin - if ((ex_valid_i && wb_ready_i) || ctrl_fsm_o.kill_ex) begin + if (ex_ready_i) begin commit_valid_q <= 1'b0; commit_kill_q <= 1'b0; end else begin