From 08a3b0ae4aaf9090beb0135a7975bc3422b9d7d7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 24 Jun 2022 10:17:02 +0200 Subject: [PATCH] build/generic_toolchain: Add build_placement_constraints method and switch other methods to *args, **kwargs for now. --- litex/build/generic_toolchain.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/litex/build/generic_toolchain.py b/litex/build/generic_toolchain.py index c4bea285b..956e3e8f5 100644 --- a/litex/build/generic_toolchain.py +++ b/litex/build/generic_toolchain.py @@ -22,10 +22,16 @@ class GenericToolchain: self.named_pc = [] self.named_sc = [] - def build_io_constraints(self, named_sc, named_pc): + def build_io_constraints(self, *args, **kwargs): + # FIXME: Switch to fixed parameter when determined? raise NotImplementedError("GenericToolchain.build_io_constraints must be overloaded.") - def build_timing_constraints(self, vns, clocks): + def build_placement_constraints(self, *args, **kwargs): + # FIXME: Switch to fixed parameter when determined? + pass # Pass since optional. + + def build_timing_constraints(self, *args, **kwargs): + # FIXME: Switch to fixed parameter when determined? pass # Pass since optional. def build_project(self):