litedram: Improve dram_tb error output
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 10 Jun 2020 07:58:27 +0000 (17:58 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 12 Jun 2020 11:01:34 +0000 (21:01 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
dram_tb.vhdl

index d08544c0cb9260cfe1563100e04ed603b1658566..f368e2f7ce1655edae6aba38af2537286194f83b 100644 (file)
@@ -236,14 +236,14 @@ begin
         wb_read(a);
         wait_acks(1);
         read_data(d);
-        assert d = x"0123456789abcdef" report "bad data" severity failure;
+        assert d = x"0123456789abcdef" report "bad data, got " & to_hstring(d) severity failure;
 
         report "Simple read hit...";
         clr_acks;
         wb_read(a);
         wait_acks(1);
         read_data(d);
-        assert d = x"0123456789abcdef" report "bad data" severity failure;
+        assert d = x"0123456789abcdef" report "bad data, got " & to_hstring(d) severity failure;
 
         report "Back to back 4 stores 4 reads on hit...";
         clr_acks;