From: Florent Kermarrec Date: Thu, 19 Nov 2015 13:57:09 +0000 (+0100) Subject: build/generic_platform: add support for int parameter for Pins (useful for core gener... X-Git-Tag: 24jan2021_ls180~2047 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb22a207f1948105f7fcc9b4d6ff93d4f2bbda5f;p=litex.git build/generic_platform: add support for int parameter for Pins (useful for core generation) --- diff --git a/litex/build/generic_platform.py b/litex/build/generic_platform.py index c41df891..a5a12fe1 100644 --- a/litex/build/generic_platform.py +++ b/litex/build/generic_platform.py @@ -15,7 +15,10 @@ class Pins: def __init__(self, *identifiers): self.identifiers = [] for i in identifiers: - self.identifiers += i.split() + if isinstance(i, int): + self.identifiers += ["X"]*i + else: + self.identifiers += i.split() def __repr__(self): return "{}('{}')".format(self.__class__.__name__,