Go to the documentation of this file. 1 ------------------------------------------------------------------------------- 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2015-08-09 5 -- Last update: 2016-07-12 6 ------------------------------------------------------------------------------- 7 -- Description: RSSI Package File 8 ------------------------------------------------------------------------------- 9 -- This file is part of 'SLAC Firmware Standard Library'. 10 -- It is subject to the license terms in the LICENSE.txt file found in the 11 -- top-level directory of this distribution and at: 12 -- https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. 13 -- No part of 'SLAC Firmware Standard Library', including this file, 14 -- may be copied, modified, propagated, or distributed except according to 15 -- the terms contained in the LICENSE.txt file. 16 ------------------------------------------------------------------------------- 19 use ieee.std_logic_1164.
all;
27 --! @ingroup protocols_rssi 29 -------------------------------------------------------------------------- 30 -- Common constant definitions 31 -------------------------------------------------------------------------- 36 tKeepMode => TKEEP_COMP_C, 37 tUserMode => TUSER_FIRST_LAST_C, 49 -------------------------------------------------------------------------- 51 -------------------------------------------------------------------------- 100 keep : slv(
15 downto 0);
106 seqN => (others => '0'), 108 keep => (
others => '1'),
115 -------------------------------------------------------------------------- 116 -- Function declarations 117 -------------------------------------------------------------------------- 118 -- Swap little and big endians 119 -- 64-bit header word 126 -------------------------------------------------------------------------- 128 -------------------------------------------------------------------------- 129 -- Swap little or big endians 64-bit header 131 variable vSlv :
slv(63 downto 0);
133 vSlv :=
(others => '
0'
);
135 for i
in 7 downto 0 loop 136 vSlv
((8*
(7-i
))+
7 downto 8*
(7-i
)) := data_slv
((8*i
)+
7 downto 8*i
);
142 -------------------------------------------------------------------------------------------- 143 end package body RssiPkg;