efinix: check SLEWRATE property when adding a 'normal' GPIO

This commit is contained in:
Franck Jullien 2021-12-17 10:32:41 +01:00
parent df20ea5aa8
commit ca67ed8c13
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@ def _format_constraint(c, signame, fmt_r, fragment, platform):
prop = "DRIVE_STRENGTH"
val = c.misc.split("=")[1]
if "SLEWRATE" in c.misc:
prop = "SLEW_RATE"
val = "1"
if prop == "":
# Print error, warning ??
return ""