Skip to content
Snippets Groups Projects
Commit 258b4a4f authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use c_tb_timeout to raise ERROR if there is no result.

parent b331f7ef
No related branches found
No related tags found
1 merge request!289Rename c_sdp_W_fsub_wg into c_sdp_W_local_oscillator. Use...
Pipeline #38756 passed
......@@ -45,6 +45,9 @@ END tb_nw_arp_request;
ARCHITECTURE tb OF tb_nw_arp_request IS
-- Use c_tb_timeout to raise ERROR if there is no result
CONSTANT c_tb_timeout : NATURAL := 100;
SIGNAL tb_end : STD_LOGIC := '0';
SIGNAL clk : STD_LOGIC := '1';
SIGNAL dp_pps : STD_LOGIC := '1';
......@@ -77,7 +80,7 @@ BEGIN
dp_pps <= '0';
proc_common_wait_some_cycles(clk, 10);
src_in.ready <= '1';
proc_common_wait_until_evt(clk, src_out.eop);
proc_common_wait_until_evt(c_tb_timeout, clk, src_out.eop);
tb_end <= '1';
-- End with WAIT to avoid Warning: (vcom-1090) Possible infinite loop:
-- Process contains no WAIT statement.
......
......@@ -42,6 +42,9 @@ END tb_nw_ping_response;
ARCHITECTURE tb OF tb_nw_ping_response IS
-- Use c_tb_timeout to raise ERROR if there is no result
CONSTANT c_tb_timeout : NATURAL := 100;
CONSTANT c_data_w : NATURAL := 64;
CONSTANT c_nof_ping_packet_fields : NATURAL := 21;
......@@ -183,7 +186,7 @@ BEGIN
p_tb_end : PROCESS
BEGIN
FOR I IN 0 TO 2*c_nof_ping_responses LOOP
proc_common_wait_until_evt(clk, nw_ping_response_src_out.eop);
proc_common_wait_until_evt(c_tb_timeout, clk, nw_ping_response_src_out.eop);
END LOOP;
tb_end <= '1';
-- End with WAIT to avoid Warning: (vcom-1090) Possible infinite loop:
......
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