From 0fcc27f58f18756bf8f1d1b355b938578f346e26 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 24 Aug 2024 12:20:19 +0200 Subject: [PATCH] build/colognechip/colognechip.py: simplify constrains file with the new toolchain --- litex/build/colognechip/colognechip.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/litex/build/colognechip/colognechip.py b/litex/build/colognechip/colognechip.py index 5ae48da0a..bd44e6324 100644 --- a/litex/build/colognechip/colognechip.py +++ b/litex/build/colognechip/colognechip.py @@ -44,18 +44,6 @@ class CologneChipToolchain(GenericToolchain): # IO Constraints (.ccf) ------------------------------------------------------------------------ - def _get_pin_direction(self, pinname): - pins = self.platform.constraint_manager.get_io_signals() - for pin in sorted(pins, key=lambda x: x.duid): - if (pinname.split("[")[0] == pin.name): - if pin.direction == "output": - return "Pin_out" - elif pin.direction == "input": - return "Pin_in" - else: - return "Pin_inout" - return "Unknown" - def build_io_constraints(self): ccf = [] @@ -70,8 +58,7 @@ class CologneChipToolchain(GenericToolchain): for name, pin, other in flat_sc: pin_cst = "" if pin != "X": - direction = self._get_pin_direction(name) - pin_cst = f"{direction} \"{name}\" Loc = \"{pin}\"" + pin_cst = f"Net \"{name}\" Loc = \"{pin}\"" for c in other: if isinstance(c, Misc):