From 955f5d408051d75f20355b6c5f4fb98d64d8c263 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 29 Mar 2022 15:28:52 +0100 Subject: [PATCH] self.specials does not exist, Instances must be added as submodules --- src/soc/bus/tercel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/bus/tercel.py b/src/soc/bus/tercel.py index a927ef25..1e204b5a 100644 --- a/src/soc/bus/tercel.py +++ b/src/soc/bus/tercel.py @@ -162,7 +162,7 @@ class Tercel(Elaboratable): comb += pins.cs.eq(~self.cs_n_out) # ECP5 needs special handling for the SPI clock, sigh. if self.lattice_ecp5_usrmclk: - self.specials += Instance("USRMCLK", + m.submodules += Instance("USRMCLK", i_USRMCLKI = self.spi_clk, i_USRMCLKTS = 0 ) -- 2.30.2