diff --git a/libraries/technology/ip_stratixiv/phy_xaui/tb_ip_stratixiv_phy_xaui.vhd b/libraries/technology/ip_stratixiv/phy_xaui/tb_ip_stratixiv_phy_xaui.vhd index cfe838a725abf12f72e4e05cec2f5d54b6446a97..8050482ff181699a3c330231cb77543f096347b7 100644 --- a/libraries/technology/ip_stratixiv/phy_xaui/tb_ip_stratixiv_phy_xaui.vhd +++ b/libraries/technology/ip_stratixiv/phy_xaui/tb_ip_stratixiv_phy_xaui.vhd @@ -23,7 +23,7 @@ -- Purpose: Test bench for the MegaWizard-generated ip_stratixiv_phy_xaui_0. -- Usage: -- > do wave_tb_ip_stratixiv_phy_xaui.do --- > run 3 us +-- > run -all LIBRARY IEEE, common_lib; USE IEEE.STD_LOGIC_1164.ALL; @@ -67,6 +67,14 @@ ARCHITECTURE str of tb_ip_stratixiv_phy_xaui IS BEGIN + -- Duration + p_tb_end : PROCESS + BEGIN + WAIT FOR 3 us; + ASSERT FALSE REPORT "Simulation finished." SEVERITY FAILURE; + WAIT; + END PROCESS; + tr_clk <= NOT tr_clk AFTER c_tr_clk_per/2; tx_clk <= NOT tx_clk AFTER c_tx_clk_per/2; mm_clk <= NOT mm_clk AFTER c_mm_clk_per/2; @@ -95,6 +103,13 @@ BEGIN WAIT; END PROCESS; + p_xgmii_data_verify : PROCESS + BEGIN + WAIT FOR 2 us; + ASSERT xgmii_rx_d = c_xgmii_d_test REPORT "tb_ip_stratixiv_phy_xaui : Wrong xgmii_rx_d result value" SEVERITY ERROR; + WAIT; + END PROCESS; + -- Combine data and control into XGMII xgmii_tx_dc <= xgmii_dc(xgmii_tx_d, xgmii_tx_c);