From 99ae53bde1a94b90c1d9bbbe7fe272a9336200a6 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 85852e9829..0a403b2154 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