build/osfpga: Add fake OSFPGAAsyncResetSynchronizer and false_path_constraint to be able to generate more cores.

Code will be replaced when information will be available.
This commit is contained in:
Florent Kermarrec 2022-11-21 12:30:36 +01:00
parent 9a8c19d3b0
commit 4b22a7b109
2 changed files with 18 additions and 2 deletions

View File

@ -9,6 +9,19 @@ from migen.genlib.resetsync import AsyncResetSynchronizer
from litex.build.io import * from litex.build.io import *
# OS-FPGA Special Overrides ------------------------------------------------------------------------ # OS-FPGA AsyncResetSynchronizer -------------------------------------------------------------------
osfpga_special_overrides = {} class OSFPGAAsyncResetSynchronizerImpl(Module):
def __init__(self, cd, async_reset):
self.comb += cd.rst.eq(async_reset) # FIXME: Implement.
class OSFPGAAsyncResetSynchronizer:
@staticmethod
def lower(dr):
return OSFPGAAsyncResetSynchronizerImpl(dr.cd, dr.async_reset)
# OS-FPGA Special Overrides -------------------------------------------------------------------------
osfpga_special_overrides = {
AsyncResetSynchronizer: OSFPGAAsyncResetSynchronizer,
}

View File

@ -38,3 +38,6 @@ class OSFPGAPlatform(GenericPlatform):
def add_period_constraint(self, clk, period): def add_period_constraint(self, clk, period):
if clk is None: return if clk is None: return
self.toolchain.add_period_constraint(self, clk, period) self.toolchain.add_period_constraint(self, clk, period)
def add_false_path_constraint(self, from_, to):
pass # FIXME: Implement.