Package: rgmii_bfm_pkg
- File: rgmii_bfm_pkg.vhd
Description
================================================================================================================================
Constants
Name | Type | Value | Description |
---|---|---|---|
C_SCOPE | string | "RGMII BFM" | |
C_RGMII_BFM_CONFIG_DEFAULT | t_rgmii_bfm_config | ( max_wait_cycles => 10, max_wait_cycles_severity => ERROR, clock_period => -1 ns, rx_clock_skew => -1 ns, match_strictness => MATCH_EXACT, id_for_bfm => ID_BFM ) |
Define the default value for the BFM config |
Types
Name | Type | Description |
---|---|---|
t_rgmii_tx_if | Interface record for BFM signals to DUT | |
t_rgmii_rx_if | Interface record for BFM signals from DUT | |
t_rgmii_bfm_config | Configuration record to be assigned in the test harness. |
Functions
- init_rgmii_if_signals () return t_rgmii_tx_if
Description
BFM procedures
This function returns an RGMII interface with initialized signals.
All input signals are initialized to 0
All output signals are initialized to Z
- init_rgmii_if_signals () return t_rgmii_rx_if
- rgmii_write ( constant data_array : in t_byte_array;
constant msg : in string := "";
signal rgmii_tx_if : inout t_rgmii_tx_if;
constant scope : in string := C_SCOPE;
constant msg_id_panel : in t_msg_id_panel := shared_msg_id_panel;
constant config : in t_rgmii_bfm_config := C_RGMII_BFM_CONFIG_DEFAULT ) return ()
Description
RGMII Write
BFM -> DUT
- rgmii_read ( variable data_array : out t_byte_array;
variable data_len : out natural;
constant msg : in string := "";
signal rgmii_rx_if : inout t_rgmii_rx_if;
constant scope : in string := C_SCOPE;
constant msg_id_panel : in t_msg_id_panel := shared_msg_id_panel;
constant config : in t_rgmii_bfm_config := C_RGMII_BFM_CONFIG_DEFAULT;
constant ext_proc_call : in string := "" -- External proc_call. Overwrite if called from another BFM procedure ) return ()
Description
RGMII Read
DUT -> BFM
- rgmii_expect ( constant data_exp : in t_byte_array;
constant msg : in string := "";
signal rgmii_rx_if : inout t_rgmii_rx_if;
constant alert_level : in t_alert_level := ERROR;
constant scope : in string := C_SCOPE;
constant msg_id_panel : in t_msg_id_panel := shared_msg_id_panel;
constant config : in t_rgmii_bfm_config := C_RGMII_BFM_CONFIG_DEFAULT ) return ()