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/deleteNonClkNets.tcl from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 931 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/deleteNonClkNets.tcl
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/deleteNonClkNets.tcl
-
curl -L -o deleteNonClkNets.tcl https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/flow/scripts/deleteNonClkNets.tcl
931 Bytes
| source $::env(SCRIPTS_DIR)/util.tcl | |
| read_lef $::env(TECH_LEF) | |
| read_lef $::env(SC_LEF) | |
| if { [info exist ::env(ADDITIONAL_LEFS)] } { | |
| foreach lef $::env(ADDITIONAL_LEFS) { | |
| read_lef $lef | |
| } | |
| } | |
| # Read liberty files | |
| source $::env(SCRIPTS_DIR)/read_liberty.tcl | |
| # Read def and sdc | |
| read_def $::env(RESULTS_DIR)/6_final.def | |
| set block [[[ord::get_db] getChip] getBlock] | |
| set nets [$block getNets] | |
| set insts [$block getInsts] | |
| # Delete all non-clock nets | |
| foreach net $nets { | |
| set sigType [$net getSigType] | |
| set wire [$net getWire] | |
| if { "$sigType" eq "SIGNAL" && "$wire" ne "NULL" } { | |
| odb::dbWire_destroy $wire | |
| } elseif { | |
| "$sigType" eq "POWER" || | |
| "$sigType" eq "GROUND" | |
| } { | |
| $net destroySWires | |
| } | |
| } | |
| # Delete fill cells to clean up screenshot | |
| foreach inst $insts { | |
| if { "[[$inst getMaster] getType]" eq "CORE_SPACER" } { | |
| odb::dbInst_destroy $inst | |
| } | |
| } | |
| write_def $::env(RESULTS_DIR)/6_final_only_clk.def | |