From 120ea5387c8598d69d9e81752949212f80305a43 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 25 Oct 2019 18:44:27 +0000 Subject: [PATCH] test: silence spurious warning. --- nmigen_soc/test/test_csr_bus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nmigen_soc/test/test_csr_bus.py b/nmigen_soc/test/test_csr_bus.py index 0c9f8d4..6726747 100644 --- a/nmigen_soc/test/test_csr_bus.py +++ b/nmigen_soc/test/test_csr_bus.py @@ -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")), -- 2.30.2