From 71a0e398a7dc8c8d61e1ed2a4a3e842fd00595be Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Wed, 10 May 2023 04:04:02 +0700 Subject: [PATCH] Avalon2Wishbone test: assert readdatavalid on bursts --- test/test_avalon_mm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_avalon_mm.py b/test/test_avalon_mm.py index 4e7dbbd81..8ddd0aa00 100644 --- a/test/test_avalon_mm.py +++ b/test/test_avalon_mm.py @@ -44,9 +44,13 @@ class TestAvalon2Wishbone(unittest.TestCase): yield from dut.avl.bus_write(0x0, [0x01234567, 0x89abcdef, 0xdeadbeef, 0xc0ffee00, 0x76543210]) yield self.assertEqual((yield from dut.avl.bus_read(0x0000, burstcount=5)), 0x01234567) + self.assertEqual((yield dut.avl.readdatavalid), 1) self.assertEqual((yield from dut.avl.continue_read_burst()), 0x89abcdef) + self.assertEqual((yield dut.avl.readdatavalid), 1) self.assertEqual((yield from dut.avl.continue_read_burst()), 0xdeadbeef) + self.assertEqual((yield dut.avl.readdatavalid), 1) self.assertEqual((yield from dut.avl.continue_read_burst()), 0xc0ffee00) + self.assertEqual((yield dut.avl.readdatavalid), 1) self.assertEqual((yield from dut.avl.continue_read_burst()), 0x76543210) yield yield