Radical Computer Technologies
Type Reference

radif Types

Documentation version: 0.2.2-beta.1

Package-level records, subtypes, constants, and helper functions for the radif library.

radif_pkg interfaces/hdl/radif/src/radif_pkg.vhd

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
constant RADIF_OP_CAPS : std_logic_vector(7 downto 0) := x"7F";
RADIF_OP_NOP constant
constant RADIF_OP_NOP : std_logic_vector(7 downto 0) := x"00";
RADIF_OP_REG_READ constant
constant RADIF_OP_REG_READ : std_logic_vector(7 downto 0) := x"02";
RADIF_OP_REG_WRITE constant
constant RADIF_OP_REG_WRITE : std_logic_vector(7 downto 0) := x"01";
RADIF_OP_STREAM_READ constant
constant RADIF_OP_STREAM_READ : std_logic_vector(7 downto 0) := x"11";
RADIF_OP_STREAM_WRITE constant
constant RADIF_OP_STREAM_WRITE : std_logic_vector(7 downto 0) := x"10";
RADIF_STATUS_BAD_CRC constant
constant RADIF_STATUS_BAD_CRC : std_logic_vector(7 downto 0) := x"02";
RADIF_STATUS_BAD_OP constant
constant RADIF_STATUS_BAD_OP : std_logic_vector(7 downto 0) := x"03";
RADIF_STATUS_ERROR constant
constant RADIF_STATUS_ERROR : std_logic_vector(7 downto 0) := x"01";
RADIF_STATUS_OK constant
constant RADIF_STATUS_OK : std_logic_vector(7 downto 0) := x"00";

Functions

radif_crc16_step function
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
function radif_word_bytes(data : std_logic_vector) return natural;