Efinix: dbparser, add get_gpio_instance_from_pin

This commit is contained in:
Franck Jullien 2021-09-28 18:04:49 +02:00
parent 32f4d246f4
commit b2e09832e5
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,6 @@ class EfinixDbParser():
for d in data: for d in data:
if d[0] == device: if d[0] == device:
print(d)
return d return d
return None return None
@ -94,3 +93,7 @@ class EfinixDbParser():
inst = self.get_instance_name_xml(dmap, pad) inst = self.get_instance_name_xml(dmap, pad)
return self.get_pll_inst_from_gpio_inst(dmap, inst) return self.get_pll_inst_from_gpio_inst(dmap, inst)
def get_gpio_instance_from_pin(self, pin):
dmap = self.get_device_map(self.device)
return self.get_pad_name_xml(dmap, pin)