Commit 2555760c authored by Michael Munch's avatar Michael Munch
Browse files

Correct latching of error code

parent 836488c9
......@@ -156,6 +156,13 @@ begin
cnt <= cnt + 1;
if (vc_busy = '0') then
-- Latch error code when busy pulled
if (active_1) then
p1_int_err_code_latched <= vc_int_err_code;
end if;
if (active_2) then
p2_int_err_code_latched <= vc_int_err_code;
end if;
active_1 <= false;
active_2 <= false;
end if;
......@@ -175,11 +182,9 @@ begin
-- vc_int_data_strobe will not come on the first cycle.
if (active_1 and vc_int_data_strobe = '1') then
p1_int_data_o_latched <= vc_int_data_o;
p1_int_err_code_latched <= vc_int_err_code;
end if;
if (active_2 and vc_int_data_strobe = '1') then
p2_int_data_o_latched <= vc_int_data_o;
p2_int_err_code_latched <= vc_int_err_code;
end if;
end if;
......
......@@ -58,7 +58,6 @@ entity vme_data_bus is
signal vme_berr_n_i : in std_logic;
-- signal vme_berr_n_o : out std_logic;
signal vme_berr_n_dir : out std_logic := c_PIN_IN;
---------------------------------
......@@ -298,7 +297,6 @@ begin
vme_dtack_n_dir <= c_PIN_IN;
vme_ds_n_dir <= c_PIN_IN;
vme_ds_n_o <= "11";
vme_berr_n_dir <= c_PIN_IN;
int_data_strobe <= c_DATA_CLEAR;
-- Munk: Retain error code until starting next cycle
......
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