From b35664c1d2cf71bca643614b43db5609d28f6df4 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Fri, 17 Jul 2020 15:13:26 +0200 Subject: [PATCH] Add more read transactions, add checks, ASAP --- gram/simulation/simsoctb.v | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gram/simulation/simsoctb.v b/gram/simulation/simsoctb.v index cd3b433..bb3a321 100644 --- a/gram/simulation/simsoctb.v +++ b/gram/simulation/simsoctb.v @@ -183,7 +183,13 @@ module simsoctb; #2000; wishbone_read(32'h10000000 >> 2, tmp); - #2000 assert_equal_32(tmp, 32'hFACECA8C); + assert_equal_32(tmp, 32'hFACECA8C); + wishbone_read(32'h10000004 >> 2, tmp); + assert_equal_32(tmp, 32'h0A0A0A0A); + wishbone_read(32'h10000008 >> 2, tmp); + assert_equal_32(tmp, 32'hFAAFFEEF); + wishbone_read(32'h1000000C >> 2, tmp); + assert_equal_32(tmp, 32'h12345678); // Write wishbone_write(32'h10000000 >> 2, 32'h12345678); @@ -191,6 +197,9 @@ module simsoctb; wishbone_write(32'h10000100 >> 2, 32'h00000000); #10000; wishbone_read(32'h10000000 >> 2, tmp); + assert_equal_32(tmp, 32'h12345678); + + $finish; end task wishbone_write; -- 2.30.2