build/efinix: Add add_iface_ios.

This commit is contained in:
Florent Kermarrec 2021-11-09 16:11:21 +01:00
parent aec8276cdb
commit d806b880a0
1 changed files with 8 additions and 1 deletions

View File

@ -107,11 +107,18 @@ class EfinixPlatform(GenericPlatform):
return sc return sc
return None return None
def add_iface_io(self, name, size=1, append=True): def add_iface_io(self, name, size=1):
self.add_extension([(name, 0, Pins(size))]) self.add_extension([(name, 0, Pins(size))])
self.toolchain.excluded_ios.append(name) self.toolchain.excluded_ios.append(name)
return self.request(name) return self.request(name)
def add_iface_ios(self, io):
self.add_extension(io)
tmp = self.request(io[0][0])
for s in tmp.flatten():
self.toolchain.excluded_ios.append(s)
return tmp
def get_pll_resource(self, name): def get_pll_resource(self, name):
self.pll_used.append(name) self.pll_used.append(name)
self.pll_available.remove(name) self.pll_available.remove(name)