From: Luke Kenneth Casson Leighton Date: Sun, 19 Jul 2020 19:38:18 +0000 (+0100) Subject: cannot use shape()[0] - must use width property X-Git-Tag: 24jan2021_ls180~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c8849fc1991aee9fb5e4a8cf8821a4b1bb951d8;p=nmigen-soc.git cannot use shape()[0] - must use width property --- diff --git a/nmigen_soc/wishbone/sram.py b/nmigen_soc/wishbone/sram.py index 3007172..dbb7615 100644 --- a/nmigen_soc/wishbone/sram.py +++ b/nmigen_soc/wishbone/sram.py @@ -86,8 +86,8 @@ class SRAM(Elaboratable): wrport.addr.eq(self.bus.adr[:len(rdport.addr)]), wrport.data.eq(self.bus.dat_w) ] - n_wrport = wrport.en.shape()[0] - n_bussel = self.bus.sel.shape()[0] + n_wrport = wrport.en.width + n_bussel = self.bus.sel.width assert n_wrport == n_bussel, "bus enable count %d " \ "must match memory wen count %d" % (n_wrport, n_bussel) wen = Signal()