From: Jean THOMAS Date: Tue, 4 Aug 2020 10:00:53 +0000 (+0200) Subject: Fix sel signal used in wishbone frontend X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad19751fdf1925d0e92917f52c2369d59c87cef7;p=gram.git Fix sel signal used in wishbone frontend --- diff --git a/gram/frontend/wishbone.py b/gram/frontend/wishbone.py index 658bf9d..611be50 100644 --- a/gram/frontend/wishbone.py +++ b/gram/frontend/wishbone.py @@ -46,7 +46,7 @@ class gramWishbone(Peripheral, Elaboratable): with m.Switch(self.bus.adr & ratio_bitmask): for i in range(self.ratio): with m.Case(i): - m.d.comb += self.native_port.wdata.we.eq(Repl(self.bus.sel, self.bus.granularity//8) << (self.ratio*i)) + m.d.comb += self.native_port.wdata.we.eq(Repl(sel, self.bus.granularity//8) << (self.ratio*i)) with m.Switch(self.bus.adr & ratio_bitmask): for i in range(self.ratio):