From: Luke Kenneth Casson Leighton Date: Mon, 24 May 2021 17:21:00 +0000 (+0100) Subject: whoops sort out name of SPBlock RAM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddc7422700fc85bf0ddc61b98c3e34af34877abb;p=soc.git whoops sort out name of SPBlock RAM --- diff --git a/src/soc/bus/SPBlock512W64B8W.py b/src/soc/bus/SPBlock512W64B8W.py index 9b25f104..994f9626 100644 --- a/src/soc/bus/SPBlock512W64B8W.py +++ b/src/soc/bus/SPBlock512W64B8W.py @@ -52,7 +52,7 @@ class SPBlock512W64B8W(Elaboratable): sram = Instance("spblock_512w64b8w", i_a=a, o_q=q, i_d=d, i_we=we, i_clk=ClockSignal()) - m.submodules['spblock_512w64b8w_%s'] = sram + m.submodules['spblock_512w64b8w_%d' % self.idx] = sram # has to be added to the actual module rather than the instance # sram.attrs['blackbox'] = 1