build.plat,lib.cdc,vendor: unify platform related diagnostics. NFC.
This commit is contained in:
parent
0858b8bf6c
commit
f87c00e6c3
3 changed files with 22 additions and 18 deletions
10
nmigen/vendor/xilinx_spartan_3_6.py
vendored
10
nmigen/vendor/xilinx_spartan_3_6.py
vendored
|
|
@ -418,8 +418,9 @@ class XilinxSpartan3Or6Platform(TemplatedPlatform):
|
|||
|
||||
def get_ff_sync(self, ff_sync):
|
||||
if ff_sync._max_input_delay is not None:
|
||||
raise NotImplementedError("Platform {!r} does not support constraining input delay "
|
||||
"for FFSynchronizer".format(self))
|
||||
raise NotImplementedError("Platform '{}' does not support constraining input delay "
|
||||
"for FFSynchronizer"
|
||||
.format(type(self).__name__))
|
||||
|
||||
m = Module()
|
||||
flops = [Signal(ff_sync.i.shape(), name="stage{}".format(index),
|
||||
|
|
@ -433,8 +434,9 @@ class XilinxSpartan3Or6Platform(TemplatedPlatform):
|
|||
|
||||
def get_reset_sync(self, reset_sync):
|
||||
if reset_sync._max_input_delay is not None:
|
||||
raise NotImplementedError("Platform {!r} does not support constraining input delay "
|
||||
"for ResetSynchronizer".format(self))
|
||||
raise NotImplementedError("Platform '{}' does not support constraining input delay "
|
||||
"for ResetSynchronizer"
|
||||
.format(type(self).__name__))
|
||||
|
||||
m = Module()
|
||||
m.domains += ClockDomain("reset_sync", async_reset=True, local=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue