Commit bd2d93ae authored by Håkan Johansson's avatar Håkan Johansson
Browse files

Place BERR_HIGH_WAIT after TIMEOUT_WAIT, to follow flow of states better.

parent 03c83305
......@@ -664,12 +664,6 @@ begin
state <= IDLE;
busy <= '0';
when BERR_HIGH_WAIT =>
--if (last_berr_n = '1' and vme_berr_n_i = '1') then
if (vme_berr_n_i = '1') then
state <= IDLE;
end if;
-- Timeout! Something is preventing the state machine
-- from completing. Either an external error (e.g. a
-- non-responding module), or a bug in this code.
......@@ -718,6 +712,13 @@ begin
vme_berr_n_dir <= c_PIN_IN;
state <= BERR_HIGH_WAIT;
end if;
when BERR_HIGH_WAIT =>
--if (last_berr_n = '1' and vme_berr_n_i = '1') then
if (vme_berr_n_i = '1') then
state <= IDLE;
end if;
end case;
-- This is after state machine, such that it can force
......
Supports Markdown
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