Add batch 5 (Luthiraa_TALOS-V2, dawsonjon_fpu, The-OpenROAD-Project_OpenROAD-flow-scripts, antonblanchard_microwatt, alexforencich_verilog-i2c)
784ee2c verified Download The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/macro_place_util.tcl from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 3.07 kB
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/macro_place_util.tcl
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/macro_place_util.tcl
-
curl -L -o macro_place_util.tcl https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/macro_place_util.tcl
3.07 kB
| if { [find_macros] != "" } { | |
| if { ![env_var_exists_and_non_empty RTLMP_RPT_DIR] } { | |
| set ::env(RTLMP_RPT_DIR) "$::env(OBJECTS_DIR)/rtlmp" | |
| } | |
| if { ![env_var_exists_and_non_empty RTLMP_RPT_FILE] } { | |
| set ::env(RTLMP_RPT_FILE) "partition.txt" | |
| } | |
| if { ![env_var_exists_and_non_empty RTLMP_BLOCKAGE_FILE] } { | |
| set ::env(RTLMP_BLOCKAGE_FILE) "$::env(OBJECTS_DIR)/rtlmp/partition.txt.blockage" | |
| } | |
| # If wrappers defined replace macros with their wrapped version | |
| if { [env_var_exists_and_non_empty MACRO_WRAPPERS] } { | |
| source $::env(MACRO_WRAPPERS) | |
| set wrapped_macros [dict keys [dict get $wrapper around]] | |
| set db [ord::get_db] | |
| set block [ord::get_db_block] | |
| foreach inst [$block getInsts] { | |
| if { [lsearch -exact $wrapped_macros [[$inst getMaster] getName]] > -1 } { | |
| set new_master [dict get $wrapper around [[$inst getMaster] getName]] | |
| puts "Replacing [[$inst getMaster] getName] with $new_master for [$inst getName]" | |
| $inst swapMaster [$db findMaster $new_master] | |
| } | |
| } | |
| } | |
| lassign $::env(MACRO_PLACE_HALO) halo_x halo_y | |
| set halo_max [expr max($halo_x, $halo_y)] | |
| set blockage_width $halo_max | |
| if { [env_var_exists_and_non_empty MACRO_BLOCKAGE_HALO] } { | |
| set blockage_width $::env(MACRO_BLOCKAGE_HALO) | |
| } | |
| if { [env_var_exists_and_non_empty MACRO_PLACEMENT_TCL] } { | |
| log_cmd source $::env(MACRO_PLACEMENT_TCL) | |
| } | |
| set additional_rtlmp_args "" | |
| append_env_var additional_rtlmp_args RTLMP_MAX_LEVEL -max_num_level 1 | |
| append_env_var additional_rtlmp_args RTLMP_MAX_INST -max_num_inst 1 | |
| append_env_var additional_rtlmp_args RTLMP_MIN_INST -min_num_inst 1 | |
| append_env_var additional_rtlmp_args RTLMP_MAX_MACRO -max_num_macro 1 | |
| append_env_var additional_rtlmp_args RTLMP_MIN_MACRO -min_num_macro 1 | |
| append additional_rtlmp_args " -halo_width $halo_x" | |
| append additional_rtlmp_args " -halo_height $halo_y" | |
| append_env_var additional_rtlmp_args RTLMP_MIN_AR -min_ar 1 | |
| append_env_var additional_rtlmp_args RTLMP_AREA_WT -area_weight 1 | |
| append_env_var additional_rtlmp_args RTLMP_WIRELENGTH_WT -wirelength_weight 1 | |
| append_env_var additional_rtlmp_args RTLMP_OUTLINE_WT -outline_weight 1 | |
| append_env_var additional_rtlmp_args RTLMP_BOUNDARY_WT -boundary_weight 1 | |
| append_env_var additional_rtlmp_args RTLMP_NOTCH_WT -notch_weight 1 | |
| append_env_var additional_rtlmp_args RTLMP_RPT_DIR -report_directory 1 | |
| append_env_var additional_rtlmp_args RTLMP_KEEP_CLUSTERING \ | |
| -keep_clustering_data 0 | |
| append_env_var additional_rtlmp_args RTLMP_FENCE_LX -fence_lx 1 | |
| append_env_var additional_rtlmp_args RTLMP_FENCE_LY -fence_ly 1 | |
| append_env_var additional_rtlmp_args RTLMP_FENCE_UX -fence_ux 1 | |
| append_env_var additional_rtlmp_args RTLMP_FENCE_UY -fence_uy 1 | |
| append additional_rtlmp_args " -target_util [place_density_with_lb_addon]" | |
| set all_args $additional_rtlmp_args | |
| if { [env_var_exists_and_non_empty RTLMP_ARGS] } { | |
| set all_args $::env(RTLMP_ARGS) | |
| } | |
| log_cmd rtl_macro_placer {*}$all_args | |
| } else { | |
| puts "No macros found: Skipping macro_placement" | |
| } | |