mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
liteusb: add basic wishbone frontend (We could also reuse Etherbone in the future)
This commit is contained in:
parent
cd3a51ada6
commit
a8b8af220a
1 changed files with 14 additions and 0 deletions
14
misoclib/com/liteusb/frontend/wishbone.py
Normal file
14
misoclib/com/liteusb/frontend/wishbone.py
Normal file
|
@ -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)
|
||||
]
|
Loading…
Reference in a new issue