Skip to content
Snippets Groups Projects
Commit 44e4b9c5 authored by Reinier van der Walle's avatar Reinier van der Walle
Browse files

testbench should be skipped when te selected technology is not stratixiv

parent e717ab72
No related branches found
No related tags found
No related merge requests found
hdl_lib_name = rsp_terminal hdl_lib_name = rsp_terminal
hdl_library_clause_name = rsp_terminal_lib hdl_library_clause_name = rsp_terminal_lib
hdl_lib_uses_synth = common dp diag hdl_lib_uses_synth = common dp diag
hdl_lib_uses_sim = rsp_serdes tr_nonbonded hdl_lib_uses_sim = rsp_serdes tr_nonbonded technology
hdl_lib_technology = hdl_lib_technology =
......
...@@ -20,9 +20,11 @@ ...@@ -20,9 +20,11 @@
-- --
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
LIBRARY IEEE; LIBRARY IEEE, technology_lib;
USE IEEE.std_logic_1164.ALL; USE IEEE.std_logic_1164.ALL;
USE work.rsp_terminal_pkg.ALL; USE work.rsp_terminal_pkg.ALL;
USE technology_lib.technology_pkg.ALL;
USE technology_lib.technology_select_pkg.ALL;
-- > as 3 -- > as 3
-- > run -all --> OK, note that tb instances with g_phy_link_down_en=TRUE will cause expected 'Warning: rad_frame_rx timeout occurred!' -- > run -all --> OK, note that tb instances with g_phy_link_down_en=TRUE will cause expected 'Warning: rad_frame_rx timeout occurred!'
...@@ -64,12 +66,13 @@ BEGIN ...@@ -64,12 +66,13 @@ BEGIN
u_trnb_model_align : ENTITY work.tb_rsp_terminal GENERIC MAP (FALSE, 12, TRUE, "TRNB", 1, FALSE, c_phy_xon_delay, c_phy_propagation_delay) PORT MAP (tb_end_vec(7)); u_trnb_model_align : ENTITY work.tb_rsp_terminal GENERIC MAP (FALSE, 12, TRUE, "TRNB", 1, FALSE, c_phy_xon_delay, c_phy_propagation_delay) PORT MAP (tb_end_vec(7));
u_trnb_phy : ENTITY work.tb_rsp_terminal GENERIC MAP (FALSE, 12, FALSE, "TRNB", 0, FALSE, c_phy_xon_delay, c_phy_propagation_delay) PORT MAP (tb_end_vec(8)); u_trnb_phy : ENTITY work.tb_rsp_terminal GENERIC MAP (FALSE, 12, FALSE, "TRNB", 0, FALSE, c_phy_xon_delay, c_phy_propagation_delay) PORT MAP (tb_end_vec(8));
tb_end <= '1' WHEN tb_end_vec=c_tb_end_vec ELSE '0'; tb_end <= '1' WHEN tb_end_vec=c_tb_end_vec OR c_tech_select_default /= c_tech_stratixiv ELSE '0';
p_tb_end : PROCESS p_tb_end : PROCESS
BEGIN BEGIN
WAIT UNTIL tb_end='1'; WAIT UNTIL tb_end='1';
WAIT FOR 1 ns; ASSERT (c_tech_select_default = c_tech_stratixiv) REPORT "Technology is not stratixiv, skipping testbench..." SEVERITY WARNING;
WAIT FOR 1 ms;
REPORT "Multi tb simulation finished." SEVERITY FAILURE; REPORT "Multi tb simulation finished." SEVERITY FAILURE;
WAIT; WAIT;
END PROCESS; END PROCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment