Commit ffa531dc authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

vme_bus: don't go to CHECK_TRANSFER_TYPE if DS inactive, causes an infinite loop

parent dbf0b46b
......@@ -268,7 +268,7 @@ begin
variable addr_word_incr : natural range 0 to 7;
begin
if rising_edge(clk_i) then
if rst_n_i = '0' or vme_as_n_i = '1' then
if rst_n_i = '0' or vme_as_n_i /= '0' then
-- FSM reset after power up,
-- software reset, manually reset,
-- on rising edge of AS.
......@@ -297,6 +297,7 @@ begin
s_ADDRlatched <= (others => '0');
s_AMlatched <= (others => '0');
s_DSlatched_n <= (others => '1');
s_vme_addr_reg <= (others => '0');
s_vme_addr_dir <= '0';
......@@ -459,7 +460,7 @@ begin
-- MBLT: ack address.
-- (Data are also read but discarded).
s_mainFSMstate <= DTACK_LOW;
else
elsif s_DSlatched_n /= "11" then
s_mainFSMstate <= CHECK_TRANSFER_TYPE;
end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment