Skip to content

Commit cd9ad21

Browse files
committed
floorplan: dry run of PDN to check for errors
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 0533e1f commit cd9ad21

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ configuration file.
140140
| <a name="FILL_CELLS"></a>FILL_CELLS| Fill cells are used to fill empty sites. If not set or empty, fill cell insertion is skipped.| |
141141
| <a name="FILL_CONFIG"></a>FILL_CONFIG| JSON rule file for metal fill during chip finishing.| |
142142
| <a name="FLOORPLAN_DEF"></a>FLOORPLAN_DEF| Use the DEF file to initialize floorplan. Mutually exclusive with FOOTPRINT or DIE_AREA/CORE_AREA or CORE_UTILIZATION.| |
143+
| <a name="FLOORPLAN_PDN_DRY_RUN"></a>FLOORPLAN_PDN_DRY_RUN| Perform a dry run of the PDN step to check for errors without writing the ODB and SDC files early in the floorplan flow. This makes it easier to connect any errors to the cause: unworkable floorplan.| 1|
143144
| <a name="FLOW_VARIANT"></a>FLOW_VARIANT| Flow variant to use, used in the flow variant directory name.| base|
144145
| <a name="FOOTPRINT"></a>FOOTPRINT| Custom footprint definition file for ICeWall-based floorplan initialization. Mutually exclusive with FLOORPLAN_DEF or DIE_AREA/CORE_AREA or CORE_UTILIZATION.| |
145146
| <a name="FOOTPRINT_TCL"></a>FOOTPRINT_TCL| Specifies a Tcl script with custom footprint-related commands for floorplan setup.| |
@@ -322,6 +323,7 @@ configuration file.
322323
- [CORE_UTILIZATION](#CORE_UTILIZATION)
323324
- [DIE_AREA](#DIE_AREA)
324325
- [FLOORPLAN_DEF](#FLOORPLAN_DEF)
326+
- [FLOORPLAN_PDN_DRY_RUN](#FLOORPLAN_PDN_DRY_RUN)
325327
- [FOOTPRINT](#FOOTPRINT)
326328
- [FOOTPRINT_TCL](#FOOTPRINT_TCL)
327329
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)

‎flow/scripts/floorplan.tcl‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,9 @@ source_env_var_if_exists IO_CONSTRAINTS
152152

153153
orfs_write_db $::env(RESULTS_DIR)/2_1_floorplan.odb
154154
orfs_write_sdc $::env(RESULTS_DIR)/2_1_floorplan.sdc
155+
156+
if { $::env(FLOORPLAN_PDN_DRY_RUN) } {
157+
puts "PDN dry run to check for errors"
158+
set ::env(WRITE_ODB_AND_SDC_EACH_STAGE) 0
159+
source $::env(SCRIPTS_DIR)/pdn.tcl
160+
}

‎flow/scripts/variables.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,14 @@ SWAP_ARITH_OPERATORS:
393393
Improve timing QoR by swapping ALU and MULT arithmetic operators.
394394
stages:
395395
- All stages
396+
FLOORPLAN_PDN_DRY_RUN:
397+
description: >
398+
Perform a dry run of the PDN step to check for errors without writing
399+
the ODB and SDC files early in the floorplan flow. This makes it easier
400+
to connect any errors to the cause: unworkable floorplan.
401+
stages:
402+
- floorplan
403+
default: 1
396404
FLOORPLAN_DEF:
397405
description: |
398406
Use the DEF file to initialize floorplan. Mutually exclusive with FOOTPRINT or DIE_AREA/CORE_AREA or CORE_UTILIZATION.

0 commit comments

Comments
 (0)