efinix add SCHMITT_TRIGGER support

This commit is contained in:
Dolu1990 2024-08-28 19:59:30 +02:00
parent cb6e28aaa2
commit d4003b8cfa
2 changed files with 8 additions and 0 deletions

View File

@ -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]

View File

@ -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]