From a8b8af220a8c03260899fe02a69e442a2e4fe2b0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 1 May 2015 20:20:20 +0200 Subject: [PATCH] liteusb: add basic wishbone frontend (We could also reuse Etherbone in the future) --- misoclib/com/liteusb/frontend/wishbone.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 misoclib/com/liteusb/frontend/wishbone.py diff --git a/misoclib/com/liteusb/frontend/wishbone.py b/misoclib/com/liteusb/frontend/wishbone.py new file mode 100644 index 00000000..fceb54f5 --- /dev/null +++ b/misoclib/com/liteusb/frontend/wishbone.py @@ -0,0 +1,14 @@ +from migen.fhdl.std import * + +from misoclib.com.liteusb.common import * +from misoclib.tools.litescope.bridge.wishbone import LiteScopeWishboneBridge + +class LiteUSBWishboneBridge(LiteScopeWishboneBridge): + def __init__(self, port, clk_freq): + LiteScopeWishboneBridge.__init__(self, port, clk_freq) + self.comb += [ + port.sink.sop.eq(1), + port.sink.eop.eq(1), + port.sink.length.eq(1), + port.sink.dst.eq(port.tag) + ] -- 2.30.2