From a899a081e494d27399e19581f2b66f74d513d031 Mon Sep 17 00:00:00 2001 From: Nils Wistoff Date: Tue, 3 Sep 2024 11:13:27 +0200 Subject: [PATCH] axi_adapter/fence.t: Assert busy_o when any outstanding AW (#52) Assert `busy_o` whenever there is any outstanding AW transaction to prevent protocol violations (microreset during an inflight transaction). Signed-off-by: Nils Wistoff --- core/cache_subsystem/axi_adapter.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cache_subsystem/axi_adapter.sv b/core/cache_subsystem/axi_adapter.sv index 7ce95017f6..e50f183301 100644 --- a/core/cache_subsystem/axi_adapter.sv +++ b/core/cache_subsystem/axi_adapter.sv @@ -95,8 +95,8 @@ module axi_adapter #( assign any_outstanding_aw = outstanding_aw_cnt_q != '0; - // Busy if we're not idle - assign busy_o = state_q != IDLE; + // Busy if we're not idle or have outstanding writes + assign busy_o = (state_q != IDLE) || any_outstanding_aw; always_comb begin : axi_fsm // Default assignments