Added syn_useioff attribute support for Oxide toolchain and for the DDRTristate in Crosslink NX

Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
This commit is contained in:
Maciej Kurc 2021-09-20 10:57:20 +02:00
parent e8e14d8ca5
commit 6c0a758468
2 changed files with 2 additions and 0 deletions

View File

@ -309,6 +309,7 @@ class LatticeNXDDRTristateImpl(Module):
self.specials += SDROutput(oe1|oe2, _oe, clk)
self.specials += DDRInput(_i, o1, o2, clk)
self.specials += Tristate(io, _o, _oe, _i)
_oe.attr.add("syn_useioff")
class LatticeNXDDRTristate:
@staticmethod

View File

@ -108,6 +108,7 @@ def _run_script(script):
class LatticeOxideToolchain:
attr_translate = {
"keep": ("keep", "true"),
"syn_useioff": ("syn_useioff", 1),
}
special_overrides = common.lattice_NX_special_overrides_for_oxide