Add more R/W operations in test_soc
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 10 Jul 2020 14:13:40 +0000 (16:13 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 10 Jul 2020 14:13:40 +0000 (16:13 +0200)
gram/test/test_soc.py

index 4d243b8df5f8ec2498e94f19b4a0f841b4f91220..2c2fe433c52a07bd78e6210ada4f3ee92c79a4e7 100644 (file)
@@ -170,11 +170,17 @@ class SocTestCase(FHDLTestCase):
 
             yield from wb_write(soc.bus, 0x10000000 >> 2, 0xF00DFACE, 0xF, 128)
             yield from wb_write(soc.bus, 0x10000004 >> 2, 0x12345678, 0xF, 128)
+            yield from wb_write(soc.bus, 0x10000008 >> 2, 0x00BA0BAB, 0xF, 128)
 
             res = yield from wb_read(soc.bus, 0x10000000 >> 2, 0xF, 128)
             self.assertEqual(res, 0xF00DFACE)
 
+            yield from wb_write(soc.bus, 0x10000008 >> 2, 0xCAFE1000, 0xF, 128)
+
             res = yield from wb_read(soc.bus, 0x10000004 >> 2, 0xF, 128)
             self.assertEqual(res, 0x12345678)
 
+            res = yield from wb_read(soc.bus, 0x10000008 >> 2, 0xF, 128)
+            self.assertEqual(res, 0xCAFE1000)
+
         runSimulation(m, process, "test_soc_interleaved_read_write.vcd")