from migen.fhdl import verilog, edif
from migen.fhdl.structure import _Fragment
from mibuild import tools
+from mibuild.xilinx_common import *
from misoclib.gensoc import cpuif
if not isinstance(soc, _Fragment):
soc = soc.get_fragment()
platform.finalize(soc)
- src = verilog.convert(soc, ios)
+ so = {
+ NoRetiming: XilinxNoRetiming,
+ MultiReg: XilinxMultiReg,
+ AsyncResetSynchronizer: XilinxAsyncResetSynchronizer
+ }
+ src = verilog.convert(soc, ios, special_overrides=so)
tools.write_to_file("build/litesata.v", src)
if actions["build-bitstream"]:
interrupt_map = {}
cpu_type = None
def __init__(self, platform, clk_freq):
+ self.clk_freq = clk_freq
# UART <--> Wishbone bridge
self.submodules.uart2wb = UART2Wishbone(platform.request("serial"), clk_freq, baud=921600)