mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
9 lines
391 B
Python
9 lines
391 B
Python
from migen.fhdl.std import *
|
|
|
|
from misoclib.tools.wishbone import WishboneStreamingBridge
|
|
from misoclib.com.uart.phy.serial import UARTPHYSerial
|
|
|
|
class UARTWishboneBridge(WishboneStreamingBridge):
|
|
def __init__(self, pads, clk_freq, baudrate=115200):
|
|
self.submodules.phy = UARTPHYSerial(pads, clk_freq, baudrate)
|
|
WishboneStreamingBridge.__init__(self, self.phy, clk_freq)
|