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"):