From 8f2c3f5cd5f6c5b3728dfbc550fe4c84d064f5f5 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Fri, 21 Nov 2014 00:05:33 +0100 Subject: [PATCH] printing hex string instead of binary ones in std_logic_vector versions of assert_(un)qual() procedures --- sim/AssertP.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/AssertP.vhd b/sim/AssertP.vhd index a70b8fc..b833761 100644 --- a/sim/AssertP.vhd +++ b/sim/AssertP.vhd @@ -97,7 +97,7 @@ package body AssertP is begin if (str'length = 0) then assert a = b - report "FAILURE: " & to_string(a) & " should be equal to " & to_string(b) + report "FAILURE: 0x" & to_hstring(a) & " should be equal to 0x" & to_hstring(b) severity level; else assert a = b @@ -145,7 +145,7 @@ package body AssertP is begin if (str'length = 0) then assert a /= b - report "FAILURE: " & to_string(a) & " should not be equal to " & to_string(b) + report "FAILURE: " & to_hstring(a) & " should not be equal to " & to_hstring(b) severity level; else assert a /= b