From a9be15e60466bf015e3cd20e0ef2a1e7a47e04ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= <tomasz.wlostowski@cern.ch>
Date: Tue, 31 Jan 2012 16:04:08 +0100
Subject: [PATCH] wishbone/wb_slave_adapter: checks stall line only in
 PIPELINED mode

---
 modules/wishbone/wb_slave_adapter/wb_slave_adapter.vhd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/wishbone/wb_slave_adapter/wb_slave_adapter.vhd b/modules/wishbone/wb_slave_adapter/wb_slave_adapter.vhd
index cd801762..273f6085 100644
--- a/modules/wishbone/wb_slave_adapter/wb_slave_adapter.vhd
+++ b/modules/wishbone/wb_slave_adapter/wb_slave_adapter.vhd
@@ -154,7 +154,7 @@ begin  -- rtl
       else
         case fsm_state is
           when IDLE =>
-            if(slave_in.stb = '1' and master_in.stall = '0' and master_in.ack = '0') then
+            if(slave_in.stb = '1' and (master_in.stall = '0' or g_master_mode = CLASSIC) and master_in.ack = '0') then
               fsm_state <= WAIT4ACK;
             end if;
           when WAIT4ACK =>
-- 
GitLab