Commit 9ae530e9 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

rtl/VME_bus.vhd: reset internal address/AM register when AS is inactive…

rtl/VME_bus.vhd: reset internal address/AM register when AS is inactive (prevents two cards DTACKing same access bug)
parent 8006dbda
...@@ -866,7 +866,7 @@ s_VMEdataInput <= unsigned(VME_DATA_i); ...@@ -866,7 +866,7 @@ s_VMEdataInput <= unsigned(VME_DATA_i);
p_addrLatching : process(clk_i) p_addrLatching : process(clk_i)
begin begin
if rising_edge(clk_i) then if rising_edge(clk_i) then
if s_reset = '1' then if s_reset = '1' or s_mainFSMreset = '1' then
s_VMEaddrLatched <= (others => '0'); s_VMEaddrLatched <= (others => '0');
s_LWORDlatched <= '0'; s_LWORDlatched <= '0';
s_AMlatched <= (others => '0'); s_AMlatched <= (others => '0');
...@@ -875,10 +875,6 @@ begin ...@@ -875,10 +875,6 @@ begin
s_VMEaddrLatched <= s_VMEdataInput & s_VMEaddrInput; s_VMEaddrLatched <= s_VMEdataInput & s_VMEaddrInput;
s_LWORDlatched <= s_LWORDinput; s_LWORDlatched <= s_LWORDinput;
s_AMlatched <= VME_AM_i; s_AMlatched <= VME_AM_i;
else
s_VMEaddrLatched <= s_VMEaddrLatched;
s_LWORDlatched <= s_LWORDlatched;
s_AMlatched <= s_AMlatched;
end if; end if;
end if; end if;
end if; 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