From b2e09832e5fe665931e5d4e6d32a080b7e5dcf15 Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Tue, 28 Sep 2021 18:04:49 +0200 Subject: [PATCH] Efinix: dbparser, add get_gpio_instance_from_pin --- litex/build/efinix/dbparser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex/build/efinix/dbparser.py b/litex/build/efinix/dbparser.py index 100b92e5f..d8426dc7d 100644 --- a/litex/build/efinix/dbparser.py +++ b/litex/build/efinix/dbparser.py @@ -20,7 +20,6 @@ class EfinixDbParser(): for d in data: if d[0] == device: - print(d) return d return None @@ -94,3 +93,7 @@ class EfinixDbParser(): inst = self.get_instance_name_xml(dmap, pad) 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)