Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion flow/scripts/cdl.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ source $::env(SCRIPTS_DIR)/load.tcl
erase_non_stage_variables final
load_design 6_final.odb 6_final.sdc

write_cdl -masters $::env(CDL_FILE) $::env(RESULTS_DIR)/6_final.cdl
write_cdl -masters $::env(CDL_FILE) -include_fillers \
$::env(RESULTS_DIR)/6_final.cdl
Comment on lines +5 to +6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Hardcoding the -include_fillers flag may cause issues for other platforms or PDKs where filler cells do not have CDL models or are intended to be excluded from LVS. It is recommended to make this flag configurable via an environment variable, allowing platforms like IHP to enable it while keeping it optional for others. This follows the repository's pattern of using environment variables for optional tool flags.

set include_fillers ""
if { [env_var_exists_and_non_empty CDL_INCLUDE_FILLERS] && $::env(CDL_INCLUDE_FILLERS) } {
  set include_fillers "-include_fillers"
}

write_cdl -masters $::env(CDL_FILE) {*}$include_fillers \
          $::env(RESULTS_DIR)/6_final.cdl
References
  1. Optional tool flags that are platform-specific should be controlled by environment variables to avoid regressions on other platforms.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maliberty I basically had the same question for you. Do you want this configurable?