From 9d238994a08574263419e854fef80fc4e5560482 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Mon, 28 Jan 2019 15:49:36 +0000 Subject: [PATCH] More repeat for random flow control. Added instance for pulsed flow control. Added instance for combinatorial. --- .../tb_tb_dp_deinterleave_one_to_n_to_one.vhd | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/libraries/base/dp/tb/vhdl/tb_tb_dp_deinterleave_one_to_n_to_one.vhd b/libraries/base/dp/tb/vhdl/tb_tb_dp_deinterleave_one_to_n_to_one.vhd index 71a214a9e0..531e38fd75 100644 --- a/libraries/base/dp/tb/vhdl/tb_tb_dp_deinterleave_one_to_n_to_one.vhd +++ b/libraries/base/dp/tb/vhdl/tb_tb_dp_deinterleave_one_to_n_to_one.vhd @@ -39,6 +39,9 @@ ARCHITECTURE tb OF tb_tb_dp_deinterleave_one_to_n_to_one IS SIGNAL tb_end : STD_LOGIC := '0'; -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end' + CONSTANT c_rep_act : NATURAL := 5; + CONSTANT c_rep_rnd : NATURAL := 100; + BEGIN -- -- general @@ -58,20 +61,26 @@ BEGIN -- | | g_pkt_len -- | | | g_pkt_gap -- | | | | - u_act_act_pipe_1_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 1, 12, 0); - u_act_act_pipe_2_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 2, 12, 0); - u_act_act_pipe_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 3, 12, 0); - u_act_act_pipe_4_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 4, 12, 0); - u_act_act_pipe_4_12_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 4, 12, 7); - u_act_act_pipe_4_13_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 4, 13, 0); - u_act_act_pipe_4_13_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, 5, 4, 13, 7); + u_act_act_pipe_1_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 1, 12, 0); + u_act_act_pipe_2_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 2, 12, 0); + u_act_act_pipe_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 3, 12, 0); + u_act_act_pipe_4_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 4, 12, 0); + u_act_act_pipe_4_12_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 4, 12, 7); + u_act_act_pipe_4_13_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 4, 13, 0); + u_act_act_pipe_4_13_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_active, e_active, TRUE, FALSE, 1, c_rep_act, 4, 13, 7); - u_rnd_rnd_pipe_1_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 1, 12, 0); - u_rnd_rnd_pipe_2_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 2, 12, 0); - u_rnd_rnd_pipe_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 3, 12, 0); - u_rnd_rnd_pipe_4_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 4, 12, 0); - u_rnd_rnd_pipe_4_12_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 4, 12, 7); - u_rnd_rnd_pipe_4_13_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 4, 13, 0); - u_rnd_rnd_pipe_4_13_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, 5, 4, 13, 7); + u_rnd_rnd_pipe_1_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 1, 12, 0); + u_rnd_rnd_pipe_2_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 2, 12, 0); + u_rnd_rnd_pipe_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 3, 12, 0); + u_rnd_rnd_pipe_4_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 4, 12, 0); + u_rnd_rnd_pipe_4_12_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 4, 12, 7); + u_rnd_rnd_pipe_4_13_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 4, 13, 0); + u_rnd_rnd_pipe_4_13_7 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 1, c_rep_rnd, 4, 13, 7); + + u_pls_pls_comb_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_pulse, e_pulse, TRUE, FALSE, 0, c_rep_rnd, 3, 12, 0); + u_pls_pls_pipe_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_pulse, e_pulse, TRUE, FALSE, 1, c_rep_rnd, 3, 12, 0); + u_rnd_rnd_comb_3_12_0 : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, TRUE, FALSE, 0, c_rep_rnd, 3, 12, 0); + u_rnd_rnd_comb_3_12_0_nofifo : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, FALSE, FALSE, 0, c_rep_rnd, 3, 12, 0); + u_rnd_rnd_pipe_3_12_0_nofifo : ENTITY work.tb_dp_deinterleave_one_to_n_to_one GENERIC MAP(e_random, e_random, FALSE, FALSE, 1, c_rep_rnd, 3, 12, 0); END tb; -- GitLab