From ecba31b5cff483220727fd7a31ae493402a473ea Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Wed, 22 Jul 2020 16:43:46 +0200 Subject: [PATCH] Fix granularity and sel in UARTBridge --- examples/uartbridge.py | 2 +- gram/simulation/uartbridge.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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): -- 2.30.2