diff --git a/litex/build/generic_platform.py b/litex/build/generic_platform.py index 31ae6e29c..b40a3ad7a 100644 --- a/litex/build/generic_platform.py +++ b/litex/build/generic_platform.py @@ -350,7 +350,7 @@ class GenericPlatform: def do_finalize(self, fragment, *args, **kwargs): """overload this and e.g. add_platform_command()'s after the modules had their say""" - if self.use_default_clk: + if self.use_default_clk and hasattr(self, "default_clk_period"): try: self.add_period_constraint( self.lookup_request(self.default_clk_name),