radif_pkg
Shared RadIF register-interface package. Defines register response constants, address/data records, and utility functions used by RadIF bridges and register banks.
Constants
RADIF_OP_CAPS
constant RADIF_OP_CAPS : std_logic_vector(7 downto 0) := x"7F";RADIF_OP_NOP
constant RADIF_OP_NOP : std_logic_vector(7 downto 0) := x"00";RADIF_OP_REG_READ
constant RADIF_OP_REG_READ : std_logic_vector(7 downto 0) := x"02";RADIF_OP_REG_WRITE
constant RADIF_OP_REG_WRITE : std_logic_vector(7 downto 0) := x"01";RADIF_OP_STREAM_READ
constant RADIF_OP_STREAM_READ : std_logic_vector(7 downto 0) := x"11";RADIF_OP_STREAM_WRITE
constant RADIF_OP_STREAM_WRITE : std_logic_vector(7 downto 0) := x"10";RADIF_STATUS_BAD_CRC
constant RADIF_STATUS_BAD_CRC : std_logic_vector(7 downto 0) := x"02";RADIF_STATUS_BAD_OP
constant RADIF_STATUS_BAD_OP : std_logic_vector(7 downto 0) := x"03";RADIF_STATUS_ERROR
constant RADIF_STATUS_ERROR : std_logic_vector(7 downto 0) := x"01";RADIF_STATUS_OK
constant RADIF_STATUS_OK : std_logic_vector(7 downto 0) := x"00";Functions
radif_crc16_step
function radif_crc16_step(crc_in : std_logic_vector(15 downto 0); data_in : std_logic_vector(7 downto 0)) return std_logic_vector;radif_word_bytes
function radif_word_bytes(data : std_logic_vector) return natural;