From: Jean THOMAS Date: Wed, 22 Jul 2020 14:43:46 +0000 (+0200) Subject: Fix granularity and sel in UARTBridge X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecba31b5cff483220727fd7a31ae493402a473ea;p=gram.git Fix granularity and sel in UARTBridge --- diff --git a/examples/uartbridge.py b/examples/uartbridge.py index b211a4c..d5a886e 100644 --- a/examples/uartbridge.py +++ b/examples/uartbridge.py @@ -11,7 +11,7 @@ __ALL__ = ["UARTBridge"] class UARTBridge(Elaboratable): def __init__(self, divisor, pins): self.bus = wishbone.Interface(addr_width=30, - data_width=32, granularity=32) + data_width=32, granularity=8) self._pins = pins self._divisor = divisor diff --git a/gram/simulation/uartbridge.py b/gram/simulation/uartbridge.py index 747f63f..d5a886e 100644 --- a/gram/simulation/uartbridge.py +++ b/gram/simulation/uartbridge.py @@ -11,7 +11,7 @@ __ALL__ = ["UARTBridge"] class UARTBridge(Elaboratable): def __init__(self, divisor, pins): self.bus = wishbone.Interface(addr_width=30, - data_width=32, granularity=32) + data_width=32, granularity=8) self._pins = pins self._divisor = divisor @@ -102,6 +102,7 @@ class UARTBridge(Elaboratable): self.bus.stb.eq(1), self.bus.we.eq(0), self.bus.cyc.eq(1), + self.bus.sel.eq(0xF), ] with m.If(self.bus.ack):