From ad19751fdf1925d0e92917f52c2369d59c87cef7 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 4 Aug 2020 12:00:53 +0200 Subject: [PATCH] Fix sel signal used in wishbone frontend --- gram/frontend/wishbone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2