From 65d7ea67bbf3dbdac9c3a0e3a129c35c77fffcbd 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 cd80176..273f608 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