From 691160d653ccf9eaf4fe1d8c366c33beba00b691 Mon Sep 17 00:00:00 2001 From: kutningjo Date: Wed, 30 Oct 2024 07:56:00 +0100 Subject: [PATCH] Adds missing functions to test_utility --- scripts/test_utility.vhd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/test_utility.vhd b/scripts/test_utility.vhd index cb1b586..f398a82 100644 --- a/scripts/test_utility.vhd +++ b/scripts/test_utility.vhd @@ -12,6 +12,7 @@ package test_utility is type real_array is array ( natural range <> ) of real; + procedure assert_eq( a : in std_logic; b : in std_logic ); procedure assert_eq( a : in std_logic_vector; b : in std_logic_vector ); procedure assert_near( variable a : in real; @@ -27,9 +28,17 @@ end package test_utility; package body test_utility is + procedure assert_eq( a : in std_logic; b : in std_logic ) is + begin + assert( a = b ) + report TEST_FAIL & "assert_eq" & LF & + " a: " & to_string( a ) & LF & + " b: " & to_string( b ) & LF + severity error; + end procedure assert_eq; + procedure assert_eq( a : in std_logic_vector; b : in std_logic_vector ) is begin - assert( a = b ) report TEST_FAIL & "assert_eq" & LF & " a: " & to_string( a ) & LF &