From e70325aa62008f55bd8678cd56b8aff597b2776c Mon Sep 17 00:00:00 2001 From: tmeissner Date: Sat, 15 Nov 2014 03:03:13 +0100 Subject: [PATCH] use new overloaded procedures with added report string parameter --- test/QueueT.vhd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/QueueT.vhd b/test/QueueT.vhd index 31b0987..c1565b2 100644 --- a/test/QueueT.vhd +++ b/test/QueueT.vhd @@ -25,19 +25,19 @@ begin variable v_data : std_logic_vector(63 downto 0); begin -- check initial emptiness - assert_true(sv_simple_queue.is_empty); + assert_true(sv_simple_queue.is_empty, "Queue should be empty!"); for i in 0 to 63 loop sv_simple_queue.push(std_logic_vector(to_unsigned(i, 64))); end loop; -- check that it's full - assert_true(sv_simple_queue.is_full); + assert_true(sv_simple_queue.is_full, "Queue should be full!"); -- empty the queue for i in 0 to 63 loop sv_simple_queue.pop(v_data); assert_equal(v_data, std_logic_vector(to_unsigned(i, 64))); end loop; -- check emptiness - assert_true(sv_simple_queue.is_empty); + assert_true(sv_simple_queue.is_empty, "Queue should be empty!"); report "INFO: t_simple_queue test finished successfully"; wait; end process SimpleQueueTestP; @@ -47,19 +47,19 @@ begin variable v_data : std_logic_vector(63 downto 0); begin -- check initial emptiness - assert_true(sv_list_queue.is_empty); + assert_true(sv_list_queue.is_empty, "Queue should be empty!"); for i in 0 to 63 loop sv_list_queue.push(std_logic_vector(to_unsigned(i, 64))); end loop; -- check that it's full - assert_true(sv_list_queue.is_full); + assert_true(sv_list_queue.is_full, "Queue should be full!"); -- empty the queue for i in 0 to 63 loop sv_list_queue.pop(v_data); assert_equal(v_data, std_logic_vector(to_unsigned(i, 64))); end loop; -- check emptiness - assert_true(sv_list_queue.is_empty); + assert_true(sv_list_queue.is_empty, "Queue should be empty!"); report "INFO: t_list_queue test finished successfully"; wait; end process ListQueueTestP;