From 658edab1a1a7ebb39f786c1fb64cbe5426fd1443 Mon Sep 17 00:00:00 2001 From: Rahul Kumar Date: Thu, 25 Apr 2024 20:24:47 -0700 Subject: [PATCH] remove use of my constraint mode --- hammer/common/cadence/__init__.py | 1 + hammer/par/innovus/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hammer/common/cadence/__init__.py b/hammer/common/cadence/__init__.py index e64bd6afc..e805e516a 100644 --- a/hammer/common/cadence/__init__.py +++ b/hammer/common/cadence/__init__.py @@ -13,6 +13,7 @@ class CadenceTool(HasSDCSupport, HasCPFSupport, HasUPFSupport, TCLTool, HammerTool): """Mix-in trait with functions useful for Cadence-based tools.""" + constraint_mode = "my_constraint_mode" @property diff --git a/hammer/par/innovus/__init__.py b/hammer/par/innovus/__init__.py index 99988342b..4d61623e5 100644 --- a/hammer/par/innovus/__init__.py +++ b/hammer/par/innovus/__init__.py @@ -563,8 +563,8 @@ def place_opt_design(self) -> bool: if self.hierarchical_mode.is_nonleaf_hierarchical(): self.verbose_append(''' flatten_ilm - update_constraint_mode -name my_constraint_mode -ilm_sdc_files {sdc} - '''.format(sdc=self.post_synth_sdc), clean=True) + update_constraint_mode -name {name} -ilm_sdc_files {sdc} + '''.format(name=self.constraint_mode, sdc=self.post_synth_sdc), clean=True) # Use place_opt_design V2 (POD-Turbo). Option must be explicitly set only in 22.1. if self.version() >= self.version_number("221") and self.version() < self.version_number("231"):