Package: axistream_bfm_pkg

Description

========================================================================================================================

Constants

Name Type Value Description
C_SCOPE string "AXISTREAM_BFM"
C_MAX_TUSER_BITS positive 8 ======================================================================================================================== C_MAX_*_BITS : Maximum number of bits per data word supported by the BFM. These constant can be increased as needed.
C_MAX_TSTRB_BITS positive 32 Must be large enough for number of data bytes per transfer, C_MAX_TSTRB_BITS >= tdata/8
C_MAX_TID_BITS positive 8 Recommended maximum in protocol specification (ARM IHI0051A)
C_MAX_TDEST_BITS positive 4 Recommended maximum in protocol specification (ARM IHI0051A)
C_RANDOM integer -1
C_MULTIPLE_RANDOM integer -2
C_AXISTREAM_BFM_CONFIG_DEFAULT t_axistream_bfm_config ( max_wait_cycles => 100,
max_wait_cycles_severity => ERROR,
clock_period => -1 ns,
clock_period_margin => 0 ns,
clock_margin_severity => TB_ERROR,
setup_time => -1 ns,
hold_time => -1 ns,
bfm_sync => SYNC_ON_CLOCK_ONLY,
match_strictness => MATCH_EXACT,
byte_endianness => LOWER_BYTE_LEFT,
valid_low_at_word_num => 0,
valid_low_multiple_random_prob => 0.5,
valid_low_duration => 0,
valid_low_max_random_duration => 5,
check_packet_length => false,
protocol_error_severity => ERROR,
ready_low_at_word_num => 0,
ready_low_multiple_random_prob => 0.5,
ready_low_duration => 0,
ready_low_max_random_duration => 5,
ready_default_value => '0',
id_for_bfm => ID_BFM )
Define the default value for the BFM config

Types

Name Type Description
t_user_array array(natural range <>) of std_logic_vector(C_MAX_TUSER_BITS-1 downto 0)
t_strb_array array(natural range <>) of std_logic_vector(C_MAX_TSTRB_BITS-1 downto 0)
t_id_array array(natural range <>) of std_logic_vector(C_MAX_TID_BITS-1 downto 0)
t_dest_array array(natural range <>) of std_logic_vector(C_MAX_TDEST_BITS-1 downto 0)
t_axistream_if ======================================================================================================================== Interface record for BFM signals
t_axistream_bfm_config Configuration record to be assigned in the test harness.

Functions

Description

BFM procedures

  • This function returns an AXI Stream interface with initialized signals.
  • All input signals are initialized to 0
  • All output signals are initialized to Z

Description

AXIStream Transmit


Source: BFM
Sink: DUT
ยจ
DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description
Overloaded version without records
DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description
Overload for default strb_array, id_array, dest_array
DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description
Overload for default user_array, strb_array, id_array, dest_array
DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description

AXIStream Receive


Source: DUT
Sink: BFM

DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
Overloaded version without records
DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
Overloaded version without records

Description

AXIStream Expect


DEPRECATE: procedure with data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description
Overloaded version without records
DEPRECATE: procedure with exp_data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description
Overload for default strb_array, id_array, dest_array
DEPRECATE: procedure with exp_data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload

Description
Overload for default user_array, strb_array, id_array, dest_array
DEPRECATE: procedure with exp_data_array as t_byte_array will be removed in next major release

Description
t_slv_array overload

Description
std_logic_vector overload