Compare commits

...

2 Commits

Author SHA1 Message Date
kutningjo
4e8daa20bd Adds all test temp files to ignore 2024-10-30 07:57:04 +01:00
kutningjo
691160d653 Adds missing functions to test_utility 2024-10-30 07:56:00 +01:00
2 changed files with 16 additions and 12 deletions

17
.gitignore vendored
View File

@ -1,11 +1,6 @@
U1_Datentypen/.libwork
U1_Datentypen/modelsim.ini
U1_Datentypen/transcript
U1_Datentypen/vish_stacktrace.vstf
U1_Datentypen/vsim.wlf
U1_Datentypen/work/
U2_Entity_Component/.libwork
U2_Entity_Component/modelsim.ini
U2_Entity_Component/transcript
U2_Entity_Component/vsim.wlf
U2_Entity_Component/work/
*/vish_stacktrace.vstf
*/.libwork
*/modelsim.ini
*/transcript
*/vsim.wlf
*/work/

View File

@ -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 &