test: silence spurious warning.
authorwhitequark <whitequark@whitequark.org>
Fri, 25 Oct 2019 18:44:27 +0000 (18:44 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 25 Oct 2019 18:49:28 +0000 (18:49 +0000)
nmigen_soc/test/test_csr_bus.py

index 0c9f8d4917dea8ecbf378f2fac806abccfc244f1..672674736facc201004323ceb44d1c46b5570fb9 100644 (file)
@@ -85,6 +85,7 @@ class InterfaceTestCase(unittest.TestCase):
 class DecoderTestCase(unittest.TestCase):
     def setUp(self):
         self.dut = Decoder(addr_width=16, data_width=8)
+        Fragment.get(self.dut, platform=None) # silence UnusedElaboratable
 
     def test_add_4b(self):
         self.assertEqual(self.dut.add(Element(4, "rw")),
@@ -197,6 +198,7 @@ class DecoderTestCase(unittest.TestCase):
 class DecoderAlignedTestCase(unittest.TestCase):
     def setUp(self):
         self.dut = Decoder(addr_width=16, data_width=8, alignment=2)
+        Fragment.get(self.dut, platform=None) # silence UnusedElaboratable
 
     def test_add_two(self):
         self.assertEqual(self.dut.add(Element(8, "rw")),