This commit is contained in:
Cooper Shaw
2026-10-06 19:42:55 -04:00
commit 5d743146e3
10703 changed files with 3804768 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
# Version:1.0 MMMC View Definition File
# Do Not Remove Above Line
# need to manually specify name because Cadence overrides it into a temp file
# ===== Create Library Set ===== #
create_library_set \
-name typical_libs \
-timing [ list \
"$::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T/lib/sky130_tt_1.8_25_nldm.lib" \
"$::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T_tech/lib/sky130_scl_9T_phyCells.lib" \
"$::config::INPUTS/CF_SRAM_1024x32/lib/CF_SRAM_1024x32_tt_180V_100C.lib" \
]
# ===== Create RC Corner ===== #
create_rc_corner \
-name typical_rc \
-T {25} \
-qx_tech_file "$::config::RESOURCES/cadence_sky130/sky130_release_0.1.0/quantus/extraction/typical/qrcTechFile" \
-preRoute_res {1} \
-preRoute_cap {1} \
-postRoute_res {1} \
-postRoute_cap {1} \
-postRoute_xcap {1} \
-preRoute_clkres {0} \
-preRoute_clkcap {0} \
-postRoute_clkres {0} \
-postRoute_clkcap {0}
# ===== Create Operation Condition ===== #
create_op_cond \
-name sky130_typical_op \
-library_file "$::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T/lib/sky130_tt_1.8_25_nldm.lib" \
-P {1} \
-V {1.8} \
-T {25}
# ===== Create Delay Corner ===== #
create_delay_corner \
-name typical_delay_corner \
-library_set {typical_libs} \
-opcond sky130_typical_op \
-rc_corner {typical_rc}
# ===== Create Constraint Mode ===== #
create_constraint_mode \
-name default \
-sdc_files [ list \
"$::config::DESIGN_ROOT/outputs/synthesis/$::config::DESIGN.sdc" \
]
# ===== Create Analysis View ===== #
create_analysis_view \
-name typical_analysis_view \
-constraint_mode {default} \
-delay_corner {typical_delay_corner}
# ===== Set Analysis View ===== #
set_analysis_view \
-setup {typical_analysis_view} \
-hold {typical_analysis_view}
+56
View File
@@ -0,0 +1,56 @@
# Clock
#clockDesign \
# -specFile Clock.ctstch \
# -outDir $::config::RPT_DIR/clock_report \
# -fixedInstBeforeCTS
set_analysis_view -setup {typical_analysis_view} -hold {typical_analysis_view}
set clockBuffers [list \
CLKBUFX2 \
CLKBUFX4 \
CLKBUFX8 \
];
set clockInverters [list \
CLKINVX1 \
CLKINVX2 \
CLKINVX4 \
CLKINVX8 \
];
set clockGatingCells [list \
ICGX1 \
];
set clockLogicCells [list \
CLKAND2X2 \
];
set_ccopt_property target_max_trans 150ps
set_ccopt_property target_skew 150ps
set_ccopt_property buffer_cells $clockBuffers
set_ccopt_property inverter_cells $clockInverters
# Check the delay cell parts using doc (DEL)
#set_ccopt_property delay_cells $clockDelayCells
set_ccopt_property clock_gating_cells $clockGatingCells
# ===== Check Design ===== #
check_design \
-type timing \
-out_file ${::config::RPT_DIR}/CTS/${::config::DESIGN}.check_design.timing
check_design \
-type cts \
-out_file ${::config::RPT_DIR}/CTS/${::config::DESIGN}.check_design.cts
check_design \
-type opt \
-out_file ${::config::RPT_DIR}/CTS/${::config::DESIGN}.check_design.opt
create_ccopt_clock_tree_spec
clock_opt_design -cts \
-outDir $::config::RPT_DIR/CTS/
+47
View File
@@ -0,0 +1,47 @@
# ===== Extract Timing ===== #
extractRC
#rcOut \
# -setload $::config::DBS_DIR/$::config::DESIGN.setload \
# -rc_corner typical_rc
#rcOut \
# -setres $::config::DBS_DIR/$::config::DESIGN.setres \
# -rc_corner typical_rc
#rcOut \
# -spf $::config::DBS_DIR/$::config::DESIGN.spf \
# -rc_corner typical_rc
rcOut \
-spef $::config::DBS_DIR/$::config::DESIGN.spef \
-rc_corner {typical_rc}
global dbgLefDefOutVersion
# ===== Extract SDF ===== #
write_sdf \
-recompute_delay_calc \
-precision 4 \
$::config::DBS_DIR/$::config::DESIGN.sdf
# ===== Save LEF ===== #
write_lef_abstract $::config::DBS_DIR/$::config::DESIGN.lef -specifyTopLayer 5 -stripePin -extractBlockPGPinLayers 5
# ===== Save DEF ===== #
set dbgLefDefOutVersion 5.7
defOut \
-floorplan -netlist \
-routing $::config::DBS_DIR/$::config::DESIGN.def
# ===== Save .lib ===== #
do_extract_model $::config::DBS_DIR/${::config::DESIGN}.lib -view typical_analysis_view
# ===== Save GDS ===== #
streamOut $::config::DBS_DIR/${::config::DESIGN}.gds -mapFile $::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T/gds/sky130_stream.mapFile -libName $::config::DESIGN -units 1000 -mode ALL
# ===== Save Netlist ===== #
saveNetlist $::config::DBS_DIR/${::config::DESIGN}_pnr.v -excludeLeafCell
saveNetlist $::config::DBS_DIR/${::config::DESIGN}.phy.v \
-phys \
-includepowerground \
-excludeLeafCell \
-excludeCellInst {FILL1 FILL2 FILL4 FILL8 FILL16 FILL32 FILL64 FILL_DECAP8 FILL_DECAP16}
# ===== Save the current design ===== #
saveDesign $::config::DBS_DIR/${::config::DESIGN}.enc
+11
View File
@@ -0,0 +1,11 @@
# ===== Add Filler Cells ===== #
setFillerMode -reset
setFillerMode \
-core { FILL1 FILL2 FILL4 FILL8 \
FILL_DECAP8 } \
-createRows true \
-doDRC true \
-ecoMode false
# ===== Add Filler Cells ===== #
addFiller -prefix FILL
+238
View File
@@ -0,0 +1,238 @@
# ===== Floorplan ===== #
## Chip Dimension
### TODO adjust to more appropriate values
### heads up: these variables aren't magic!
### make sure you pass them to the appropriate command.
set x_dim 10000
set y_dim 10000
## Core Offsets
### Sets an offset on where standard cells can be placed.
### This prevents the tools from placing cells under
### the design's power rings on the edges of the floorplan
set left_offset 9.6
set right_offset 9.6
set top_offset 9.6
set bottom_offset 9.6
# FloorPlan Cmd.
#floorPlan -site CoreSite \
# -s $x_dim $y_dim \
# $left_offset $right_offset $bottom_offset $top_offset
## TODO is this using the right variables?
floorPlan -site CoreSite -adjustToSite \
-s 10000 10000 \
$left_offset $bottom_offset $right_offset $top_offset
# Set Design Mode
setDesignMode -process 130 -topRoutingLayer 5
### ===== Place Blocks ===== #
# Edit halo around every block
## TODO are the values for these macro names right?
## reference chip_top.sv
set macro_name_1 data_sram
set macro_name_2 memory_sram
## TODO place blocks in an appropriate location (not 0,0!)
placeInstance $macro_name_1 0 0 -fixed
placeInstance $macro_name_2 0 0 -fixed
# add block halos
addHaloToBlock {21 21 21 21} macro_name_1
addHaloToBlock {21 21 21 21} macro_name_2
# ===== Power Plan ===== #
# ===== Define Global Nets ===== #
globalNetConnect VDD \
-type pgpin \
-pin VDD \
-inst *
globalNetConnect VSS \
-type pgpin \
-pin VSS \
-inst *
globalNetConnect VDD \
-type tiehi \
-all \
-override \
-verbose
globalNetConnect VSS \
-type tielo \
-all \
-override \
-verbose
# SRAM GNC Rules
globalNetConnect VSS \
-type pgpin \
-pin vgnd \
-inst *
globalNetConnect VSS \
-type pgpin \
-pin vnb \
-inst *
globalNetConnect VDD \
-type pgpin \
-pin vpwrm \
-inst *
globalNetConnect VDD \
-type pgpin \
-pin vpwrp \
-inst *
globalNetConnect VDD \
-type pgpin \
-pin vpwra \
-inst *
globalNetConnect VDD \
-type pgpin \
-pin vpb \
-inst *
# ===== Pre Process ===== #
set sprCreateIeRingNets {}
set sprCreateIeRingLayers {}
set sprCreateIeRingWidth 1.0
set sprCreateIeRingSpacing 1.0
set sprCreateIeRingOffset 1.0
set sprCreateIeRingThreshold 1.0
set sprCreateIeRingJogDistance 1.0
# ===== Core Power Ring===== #
setAddRingMode -stacked_via_top_layer met5
setAddRingMode -stacked_via_bottom_layer met1
#copy example. vssd1 on outside, vccd1 on inside
addRing \
-center 1 \
-type core_rings -follow io \
-jog_distance 0.4 \
-threshold 0.4 \
-nets {VSS VDD} \
-layer {bottom met5 top met5 right met4 left met4} \
-width 6.4 \
-spacing 3.2 \
-offset 0
# ===== Block Power Ring===== #
## TODO refer to part 2.3b
## TODO part 2.3c
addRing \
-around cluster \
## ^^ more flags here
## deselect macro groups
deselectAll
# ===== Route Power Wires ===== #
sroute \
-connect { floatingStripe padPin padRing corePin } \
-layerChangeRange { met1 met5 } \
-padPinPortConnect { allPort oneGeom } \
-stripeSCpinTarget { stripe blockring padring ring ringpin blockpin } \
-blockPin useLef \
-allowJogging 1 \
-crossoverViaLayerRange { met1 met5 } \
-allowLayerChange 1 \
-targetViaLayerRange { met1 met5 } \
-nets { VDD VSS }
sroute -connect { blockPin } \
-layerChangeRange { met3 met5 } \
-nets { VDD VSS } \
-blockPinTarget { nearestRingStripe nearestTarget } \
-allowLayerChange 1 \
-blockPinLayer { met3 }
# ===== Power Grid ===== #
setAddStripeMode \
-stacked_via_top_layer met5 \
-stacked_via_bottom_layer met1 \
-allow_jog {padcore_ring block_ring}
#-break_at {block_ring}
set minDis 16
set M2_Width 2
set M2_Offset [expr {$M2_Width/-2}]
set M2_Dis [expr {4*$minDis}]
set M2_Spacing [expr {$M2_Dis/2-$M2_Width}]
set M3_Width 2
set M3_Offset [expr {$M3_Width/-2}]
set M3_Dis [expr {4*$minDis}]
set M3_Spacing [expr {$M3_Dis/2-$M3_Width}]
#
### Many of these numbers are pulled directly
### From the openframe example project
set M4_Width 6.4
set M4_Offset [expr {$M4_Width/-2}]
set M4_Dis 40
set M4_Spacing 3.2
set M5_Width 6.4
set M5_Offset [expr {$M5_Width/-2}]
set M5_Dis 40
set M5_Spacing 3.2
addStripe \
-nets {VDD VSS} \
-layer met4 \
-direction vertical \
-width 6.4 \
-spacing 3.2 \
-set_to_set_distance 40 \
-xleft_offset $M4_Offset \
-switch_layer_over_obs false \
-max_same_layer_jog_length 2 \
-padcore_ring_top_layer_limit met5 \
-padcore_ring_bottom_layer_limit met1 \
-block_ring_top_layer_limit met5 \
-block_ring_bottom_layer_limit met1 \
-use_wire_group 0 \
-snap_wire_center_to_grid None
# Layer M5
setAddStripeMode \
-stacked_via_top_layer met5 \
-stacked_via_bottom_layer met1 \
-allow_jog none
#-break_at {block_ring}
addStripe \
-nets {VDD VSS} \
-layer met5 \
-direction horizontal \
-width 6.4 \
-spacing 3.2 \
-set_to_set_distance 40 \
-ybottom_offset $M5_Offset \
-merge_stripes_value $M5_Width \
-max_same_layer_jog_length 6 \
-padcore_ring_top_layer_limit met5 \
-padcore_ring_bottom_layer_limit met4 \
-block_ring_top_layer_limit met5 \
-block_ring_bottom_layer_limit met4
#-extend_to design_boundary \
# Remove routing blockage
##deleteRouteBlk -all
# ===== Spread Pins ===== #
# moved to the end of the file to avoid conflicting with power stripes
set pins_to_spread_in [dbget [dbget top.terms.isOutput 0 -p].name]
set pins_to_spread_out [dbget [dbget top.terms.isOutput 1 -p].name]
#input pins
editPin -spreadType SIDE -side RIGHT \
-layerH met4 -layerV met3 \
-pin $pins_to_spread_out -fixOverlap 1
editPin -spreadType SIDE -side LEFT \
-layerH met4 -layerV met3 \
-pin $pins_to_spread_in -fixOverlap 1
+20
View File
@@ -0,0 +1,20 @@
# Initializes Flow Settings
foreach dir [list $::config::DBS_DIR $::config::RPT_DIR $::config::LOG_DIR $::config::RPT_DIR/CTS] {
if {![file exists $dir]} {
file mkdir $dir
}
}
setDistributeHost -local
setMultiCpuUsage -localCpu 8 -verbose
set_global _enable_mmmc_by_default_flow $CTE::mmmc_default
sj_run_step step_init_design
#setDesignMode -process 130 -topRoutingLayer 5
# sources the MMMC view file (step_corners.tcl) registered via init_mmmc_file
init_design
setAnalysisMode -analysisType onChipVariation
+27
View File
@@ -0,0 +1,27 @@
# Sets up Flow Files
set ::conf_qxconf_file {NULL}
set ::conf_qxlib_file {NULL}
set ::init_qx_layermap_file "$::config::RESOURCES/cadence_sky130/sky130_release_0.1.0/libs/sky130_fd_pr_main/sky130_fd_pr_main.layermap"
set ::defHierChar {/}
set ::init_gnd_net {VSS}
set ::init_pwr_net {VDD}
set ::init_lef_file [list \
"$::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T_tech/lef/sky130_scl_9T.tlef" \
"$::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T/lef/sky130_scl_9T.lef" \
"$::config::RESOURCES/cadence_sky130/sky130_scl_9T_0.1.2/sky130_scl_9T_tech/lef/sky130_scl_9T_phyCells.lef" \
"$::config::INPUTS/CF_SRAM_1024x32/lef/CF_SRAM_1024x32.lef" \
]
# MMMC view definition -- must be registered before init_design or Innovus
# comes up physical-only and locks out all timing commands (TCLCMD-1239)
set ::init_mmmc_file "$::config::APR_SCRIPTS/steps/step_corners.tcl"
set ::init_top_cell chip_top
set ::init_verilog [list $::config::SYN_OUTPUT/$::config::DESIGN.gate.v]
set ::lsgOCPGainMult 1.000000
+42
View File
@@ -0,0 +1,42 @@
# ===== Verify the Geometry ===== #
setVerifyGeometryMode \
-area { 0 0 0 0 } \
-minWidth true \
-minSpacing true \
-minArea true \
-sameNet true \
-short true \
-overlap true \
-offRGrid false \
-offMGrid true \
-mergedMGridCheck true \
-minHole true \
-implantCheck true \
-minimumCut true \
-minStep true \
-viaEnclosure true \
-antenna false \
-insuffMetalOverlap true \
-pinInBlkg false \
-diffCellViol true \
-sameCellViol false \
-padFillerCellsOverlap true \
-routingBlkgPinOverlap true \
-routingCellBlkgOverlap true \
-regRoutingOnly false \
-stackedViasOnRegNet false \
-wireExt true \
-useNonDefaultSpacing false \
-maxWidth true \
-maxNonPrefLength -1 \
-error 10000 \
-warning 500
verifyGeometry \
-report $::config::RPT_DIR/$::config::DESIGN.geom.rpt
# ===== Verify Connectivity ===== #
verifyConnectivity \
-type all \
-error 10000 \
-warning 500 \
-report $::config::RPT_DIR/$::config::DESIGN.conn.rpt
+27
View File
@@ -0,0 +1,27 @@
## Place Standard Cell
setPlaceMode -reset
setPlaceMode \
-place_global_cong_effort auto \
-place_global_timing_effort high \
-place_global_clock_gate_aware true \
-place_global_clock_power_driven false \
-place_global_clock_power_driven_effort low \
-place_global_ignore_scan true \
-place_global_ignore_spare true \
-place_global_place_io_pins false \
-place_global_reorder_scan false \
-place_global_module_aware_spare false \
-place_detail_preserve_routing false \
-place_detail_remove_affected_routing false \
-place_detail_check_route false \
-place_detail_swap_eeq_cells false
place_design -noPrePlaceOpt
congRepair
# Check Placements
checkPlace $::config::RPT_DIR/$::config::DESIGN.checkPlace
# TODO 2.3b
# report utilization
+12
View File
@@ -0,0 +1,12 @@
# Set Tie High & Low
setTieHiLoMode -reset
setTieHiLoMode \
-cell { TIEHI TIELO } \
-honorDontTouch false \
-createHierPort false \
-prefix TIEHILO_ \
-maxDistance 2000
# Add Tie Cells
addTieHiLo -cell "TIEHI TIELO"
+10
View File
@@ -0,0 +1,10 @@
setOptMode \
-fixCap true \
-fixTran true \
-fixFanoutLoad false
optDesign -postCTS -hold -outDir $::config::RPT_DIR/timingReports
timeDesign -postCTS
timeDesign -postCTS -hold
saveDesign $::config::DESIGN.postCts.dat
+28
View File
@@ -0,0 +1,28 @@
# Set Optimization
setOptMode \
-effort high \
-leakagePowerEffort none \
-dynamicPowerEffort none \
-reclaimArea true \
-simplifyNetlist false \
-allEndPoints false \
-setupTargetSlack 0 \
-holdTargetSlack 0 \
-maxDensity 0.95 \
-drcMargin 0 \
-usefulSkew false \
-addPortAsNeeded false
# Timing Analysis Options
# #--- Note: (IMPOPT-6080) AAE-SI Optimization can only be turned on when the timing analysis mode is set to OCV.
#setDelayCalMode -engine aae -SIAware true -reportOutBound true
#setAnalysisMode -analysisType onChipVariation -cppr both
#setExtractRCMode -engine preRoute
#extractRC
# Optimize
setOptMode \
-fixCap true \
-fixTran true \
-fixFanoutLoad false
optDesign -preCTS -outDir $::config::RPT_DIR/timingReports
+41
View File
@@ -0,0 +1,41 @@
# ===== Detail Route ===== #
# Set NanoRoute
setNanoRouteMode -timingEngine {}
setNanoRouteMode -routeWithTimingDriven true
setNanoRouteMode -routeWithSiDriven false
#setNanoRouteMode -routeWithSiPostRouteFix false
#setNanoRouteMode -routeTopRoutingLayer 6
#setNanoRouteMode -routeBottomRoutingLayer default
#setNanoRouteMode -drouteEndIteration 5
# To remove most of the Short Edge Violations, Please use the following switch to keep all vias within the pin geometries:
setNanoRouteMode -routeWithViaInPin true
# Addition
#setNanoRouteMode -drouteAutoStop false
#setNanoRouteMode -drouteUseMultiCutViaEffort high
setNanoRouteMode -drouteFixAntenna true
#setNanoRouteMode -drouteSearchAndRepair true
#setNanoRouteMode -drouteStartIteration default
#setNanoRouteMode -drouteEndIteration 20
#setNanoRouteMode -hfrouteSearchRepair true
# For avoiding DRC error
#setNanoRouteMode -droutePostRouteSwapVia singleCut
# Route wires
routeDesign
routeDesign -wireOpt
setOptMode \
-fixFanoutLoad true
#optDesign -postRoute -hold
# DRC fix
#ecoRoute -fix_drc
# ===== Optimize ===== #
setOptMode \
-fixCap true \
-fixTran true \
-fixFanoutLoad false
optDesign -postRoute -hold
timeDesign -postRoute -hold