Commit 70c3899a authored by Michael Munch's avatar Michael Munch
Browse files

Added timeout signal

parent fcc36f75
Pipeline #19381 failed with stage
in 18 seconds
......@@ -181,7 +181,7 @@ entity vme_data_bus is
signal int_blt_decided : in std_logic;
signal int_blt_continue : in std_logic;
signal int_timeout_n : in std_logic;
signal int_timeout_n : in std_logic
);
end entity;
......@@ -475,11 +475,11 @@ begin
if (vme_berr_n_i & int_timeout_n /= "11") then
vme_ds_n_o <= "11";
vme_as_n_o <= '1';
if (int_timeout_n = '0') then
int_err_code <= c_ERR_TIMEOUT;
else
int_err_code <= c_ERR_BERR;
end if;
int_err_code <= (
c_ERR_BERR_I => not vme_berr_n_i,
c_ERR_TIMEOUT_I => not int_timeout_n,
others => '0'
);
busy <= '0';
state <= IDLE;
......
......@@ -90,6 +90,10 @@ package vme_pkg is
constant c_ERR_ADDR_MODE : err_vec_t := "0010";
constant c_ERR_BERR : err_vec_t := "0100";
constant c_ERR_TIMEOUT : err_vec_t := "1000";
constant c_ERR_TRANSFER_MODE_I: natural := 0;
constant c_ERR_ADDR_MODE_I : natural := 1;
constant c_ERR_BERR_I : natural := 2;
constant c_ERR_TIMEOUT_I : natural := 3;
end package;
......
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