From d4003b8cfafba4973792e97b5be3e32e0ff1ab15 Mon Sep 17 00:00:00 2001 From: Dolu1990 Date: Wed, 28 Aug 2024 19:59:30 +0200 Subject: [PATCH] efinix add SCHMITT_TRIGGER support --- litex/build/efinix/efinity.py | 4 ++++ litex/build/efinix/platform.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/litex/build/efinix/efinity.py b/litex/build/efinix/efinity.py index 0f782ac6b..e668f8700 100644 --- a/litex/build/efinix/efinity.py +++ b/litex/build/efinix/efinity.py @@ -164,6 +164,10 @@ class EfinityToolchain(GenericToolchain): prop = "PULL_OPTION" val = c.misc + if c.misc == "SCHMITT_TRIGGER": + prop = "SCHMITT_TRIGGER" + val = "1" + if "DRIVE_STRENGTH" in c.misc: prop = "DRIVE_STRENGTH" val = c.misc.split("=")[1] diff --git a/litex/build/efinix/platform.py b/litex/build/efinix/platform.py index 9808369ef..4b5777aa9 100644 --- a/litex/build/efinix/platform.py +++ b/litex/build/efinix/platform.py @@ -109,6 +109,10 @@ class EfinixPlatform(GenericPlatform): prop = "PULL_OPTION" val = o.misc ret.append((prop, val)) + if o.misc == "SCHMITT_TRIGGER": + prop = "SCHMITT_TRIGGER" + val = "1" + ret.append((prop, val)) if "DRIVE_STRENGTH" in o.misc: prop = "DRIVE_STRENGTH" val = o.misc.split("=")[1]