From 8c8849fc1991aee9fb5e4a8cf8821a4b1bb951d8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 19 Jul 2020 20:38:18 +0100 Subject: [PATCH] cannot use shape()[0] - must use width property --- nmigen_soc/wishbone/sram.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.30.2