Skip to content

Commit a85382a

Browse files
authored
Merge pull request #3126 from jeffng-or/cts-enable-lib-variable
added CTS_LIB_NAME flow variable to specify liberty lib name for buff…
2 parents 7598c89 + 2bb1272 commit a85382a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/user/FlowVariables.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ configuration file.
7575
| <a name="CORNER"></a>CORNER| PVT corner library selection. Only available for ASAP7 and GF180 PDKs.| | |
7676
| <a name="CTS_ARGS"></a>CTS_ARGS| Override `clock_tree_synthesis` arguments.| | |
7777
| <a name="CTS_BUF_DISTANCE"></a>CTS_BUF_DISTANCE| Distance (in microns) between buffers.| | |
78-
| <a name="CTS_BUF_LIST"></a>CTS_BUF_LIST| List of cells used to construct the clock tree.| | |
78+
| <a name="CTS_BUF_LIST"></a>CTS_BUF_LIST| List of cells used to construct the clock tree. Overrides buffer inference.| | |
7979
| <a name="CTS_CLUSTER_DIAMETER"></a>CTS_CLUSTER_DIAMETER| Maximum diameter (in microns) of sink cluster.| 20| |
8080
| <a name="CTS_CLUSTER_SIZE"></a>CTS_CLUSTER_SIZE| Maximum number of sinks per cluster.| 50| |
81+
| <a name="CTS_LIB_NAME"></a>CTS_LIB_NAME| Name of the Liberty library to use in selecting the clock buffers.| | |
8182
| <a name="CTS_SNAPSHOT"></a>CTS_SNAPSHOT| Creates ODB/SDC files prior to clock net and setup/hold repair.| | |
8283
| <a name="DESIGN_NAME"></a>DESIGN_NAME| The name of the top-level module of the design.| | |
8384
| <a name="DESIGN_NICKNAME"></a>DESIGN_NICKNAME| DESIGN_NICKNAME just changes the directory name that ORFS outputs to be DESIGN_NICKNAME instead of DESIGN_NAME in case DESIGN_NAME is unwieldy or conflicts with a different design.| | |
@@ -309,6 +310,7 @@ configuration file.
309310
- [CTS_BUF_LIST](#CTS_BUF_LIST)
310311
- [CTS_CLUSTER_DIAMETER](#CTS_CLUSTER_DIAMETER)
311312
- [CTS_CLUSTER_SIZE](#CTS_CLUSTER_SIZE)
313+
- [CTS_LIB_NAME](#CTS_LIB_NAME)
312314
- [CTS_SNAPSHOT](#CTS_SNAPSHOT)
313315
- [DETAILED_METRICS](#DETAILED_METRICS)
314316
- [EQUIVALENCE_CHECK](#EQUIVALENCE_CHECK)

flow/scripts/cts.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ append_env_var cts_args CTS_BUF_DISTANCE -distance_between_buffers 1
2424
append_env_var cts_args -sink_clustering_size CTS_CLUSTER_SIZE 1
2525
append_env_var cts_args -sink_clustering_max_diameter CTS_CLUSTER_DIAMETER 1
2626
append_env_var cts_args CTS_BUF_LIST -buf_list 1
27+
append_env_var cts_args CTS_LIB_NAME -library 1
28+
2729

2830
if {[env_var_exists_and_non_empty CTS_ARGS]} {
2931
set cts_args $::env(CTS_ARGS)

flow/scripts/variables.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ CTS_BUF_DISTANCE:
720720
- cts
721721
CTS_BUF_LIST:
722722
description: |
723-
List of cells used to construct the clock tree.
723+
List of cells used to construct the clock tree. Overrides buffer inference.
724724
stages:
725725
- cts
726726
CTS_CLUSTER_DIAMETER:
@@ -737,6 +737,11 @@ CTS_CLUSTER_SIZE:
737737
stages:
738738
- cts
739739
tunable: 1
740+
CTS_LIB_NAME:
741+
description: |
742+
Name of the Liberty library to use in selecting the clock buffers.
743+
stages:
744+
- cts
740745
CTS_SNAPSHOT:
741746
description: |
742747
Creates ODB/SDC files prior to clock net and setup/hold repair.

0 commit comments

Comments
 (0)