From 6c0a758468c79f80ecaf285a215a0ddeb0b7e958 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Mon, 20 Sep 2021 10:57:20 +0200 Subject: [PATCH] Added syn_useioff attribute support for Oxide toolchain and for the DDRTristate in Crosslink NX Signed-off-by: Maciej Kurc --- litex/build/lattice/common.py | 1 + litex/build/lattice/oxide.py | 1 + 2 files changed, 2 insertions(+) diff --git a/litex/build/lattice/common.py b/litex/build/lattice/common.py index 36dfe2b6b..d325c4f1c 100644 --- a/litex/build/lattice/common.py +++ b/litex/build/lattice/common.py @@ -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 diff --git a/litex/build/lattice/oxide.py b/litex/build/lattice/oxide.py index f2042480c..f59863937 100644 --- a/litex/build/lattice/oxide.py +++ b/litex/build/lattice/oxide.py @@ -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