build/microsemi/libero_soc: add {} around port name.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 22 Nov 2018 16:37:03 +0000 (17:37 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 22 Nov 2018 16:37:03 +0000 (17:37 +0100)
litex/build/microsemi/libero_soc.py

index f1a5a1c523103a8d2857f6f69c7dd7daebfb2f2f..fca2d6fa12c80e337a616c5d213e461e7a479435 100644 (file)
@@ -24,7 +24,7 @@ def _format_constraint(c):
 def _format_pdc(signame, pin, others):
     fmt_c = [_format_constraint(c) for c in ([Pins(pin)] + others)]
     r = "set_io "
-    r += "-port_name {} ".format(signame)
+    r += "-port_name {{{}}} ".format(signame)
     for c in  ([Pins(pin)] + others):
         r += _format_constraint(c)
     r += "-fixed true "