From: Florent Kermarrec Date: Fri, 1 May 2015 18:20:20 +0000 (+0200) Subject: liteusb: add basic wishbone frontend (We could also reuse Etherbone in the future) X-Git-Tag: 24jan2021_ls180~2277 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8b8af220a8c03260899fe02a69e442a2e4fe2b0;p=litex.git liteusb: add basic wishbone frontend (We could also reuse Etherbone in the future) --- 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) + ]