1 ----------------------------------------------------------------------------------
9 ----------------------------------------------------------------------------------
11 use IEEE.STD_LOGIC_1164.
ALL;
19 -- Uncomment the following library declaration if using
20 -- arithmetic functions with Signed or Unsigned values
23 -- Uncomment the following library declaration if instantiating
24 -- any Xilinx primitives in this code.
26 --use UNISIM.VComponents.all;
34 ncs : in ;
--ports forwarded to the vme register instances
114 ia_vme => ADDR_REG_RW_BCID_RESET_VAL ,
133 ia_vme => ADDR_REG_RO_BC_RESET_ERROR_COUNTER ,
147 ia_vme => ADDR_REG_RW_BC_RESET_ERROR_COUNTER_RESET,
164 --orbit has 3564 bunches
168 if rising_edge(clk_40) then
std_logic error_counter_reset
in addr_vmestd_logic_vector (15 downto 0)
std_logic_vector (15 downto 0) data_from_vme_REG_RW_BCID_RESET_VAL
std_logic_vector (2 downto 0) bus_drive_local
out data_vmestd_logic_vector (15 downto 0)
std_logic_vector (15 downto 0) data_from_vme_REG_RW_BC_RESET_ERROR_COUNTER_RESET
out data_from_vmestd_logic_vector (width - 1 downto 0)
out BCID_outstd_logic_vector (11 downto 0)
unsigned (11 downto 0) BCID_reg
in data_vme_from_belowarr_16
--! inputs from local registers and from
in data_vme_instd_logic_vector (15 downto 0)
unsigned (11 downto 0) BCID_reset_val
std_logic_vector (15 downto 0) data_to_vme_REG_RW_BCID_RESET_VAL
out data_vme_outstd_logic_vector (15 downto 0)
in data_to_vmestd_logic_vector (width - 1 downto 0)
arr_16 (2 downto 0) data_vme_out_local
out data_vme_upstd_logic_vector (15 downto 0)
--! connect this to
in addr_vmestd_logic_vector (15 downto 0)
in data_vme_instd_logic_vector (15 downto 0)
out bus_drive_upstd_logic
or of all bus drive requests from below
std_logic_vector (15 downto 0) data_to_vme_REG_RW_BC_RESET_ERROR_COUNTER_RESET
in addr_vmestd_logic_vector (15 downto 0)
out data_vme_outstd_logic_vector (15 downto 0)
unsigned (11 downto 0) BCID_next
unsigned (15 downto 0) bc_reset_error_counter
in data_to_vmestd_logic_vector (width - 1 downto 0)
in bus_drive_from_belowstd_logic_vector