setMultiCpuUsage -localCpu 16
set VER_NAME [exec /bin/date +%m%d_%H%M]
update_names -net -nocase
set design_name [dbGet top.name]
remove_assigns
deleteEmptyModule
update_names -nocasesaveNetlist -includePowerGround -excludeLeafCell -includePhysicalCell {PLDB8 PLDID PLDIU PLDO8 PLDVDD1 PLDVDD2 PLDVSS3} -excludeCellInst {SR FILL32 FILL8 FILL4 FILL64 FILL1 FILL16 FILL2 PLcorner} ../output/latest/${design_name}_pg.v
saveNetlist -excludeLeafCell -includePhysicalCell {PLDB8 PLDID PLDIU PLDO8 } -excludeCellInst {SR FILL32 FILL8 FILL4 FILL64 FILL1 FILL16 FILL2 PLcorner PLDVDD1 PLDVDD2 PLDVSS3} ../output/latest/${design_name}.vdefOut -usedVia -routing ../output/latest/${design_name}.def.gz
defOut -scanChain ../output/latest/${design_name}.scandefset gds_files [list \/home/APR_PROJ/cad102_dir/zx5130/PR/libs/gds/SHS180A350DRTv2_std_v4p1_box.gds \/home/APR_PROJ/cad102_dir/zx5130/PR/libs/gds/SHS180A350DRTv2_IO_dg_v4p3_box.gds \/home/APR_PROJ/cad102_dir/zx5130/PR/libs/gds/dffrx1_RH_v4p1_box.gds \/home/APR_PROJ/cad102_dir/zx5130/PR/libs/gds/dfftrx1_RH_v4p0_box.gds \/home/APR_PROJ/cad102_dir/zx5130/RP_get_param_data/PR/pr/output/latest/get_param_data.gds.gz \/home/APR_PROJ/cad102_dir/zx5130/PR/libs/gds/SR.gds \
]
streamOut ../output/latest/${design_name}.gds.gz \-units 1000 \-structureName ${design_name} \-mapFile ../scr/streamOut.map \-merge $gds_files \-mode ALL# timeDesign -expandedViews -postRoute -pathreports -drvReports -numPaths 2000 -outDir reports/${design_name} -prefix ${design_name}
# timeDesign -expandedViews -postRoute -hold -pathreports -numPaths 1000 -outDir reports/${design_name} -prefix ${design_name}
# write_lef_abstract -5.6 -specifyTopLayer metal3 ../DB/rffe_slv_ctrl.lef