From: whitequark Date: Fri, 25 Oct 2019 18:44:27 +0000 (+0000) Subject: test: silence spurious warning. X-Git-Tag: 24jan2021_ls180~36 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=120ea5387c8598d69d9e81752949212f80305a43;p=nmigen-soc.git test: silence spurious warning. --- 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")),