Skip to content

Commit 46c097d

Browse files
authored
Merge pull request #4850 from oharboe/make-issue-relative-work-home
makeIssue and generate_vars: in Python, a test for every past fix, and three more fixes
2 parents 270d7f0 + 774e032 commit 46c097d

10 files changed

Lines changed: 1467 additions & 252 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ configuration file.
290290
| <a name="SETUP_MOVE_SEQUENCE"></a>SETUP_MOVE_SEQUENCE| Passed as -sequence to repair_timing. This should be a string of move keywords separated by commas.| |
291291
| <a name="SETUP_REPAIR_PHASES"></a>SETUP_REPAIR_PHASES| Passed as -phases to repair_timing. This should be a string of setup repair phase names separated by spaces. Set to PARALLEL_EVAL to repair setup timing with the experimental parallel evaluation policy. When unset, repair_timing runs its default phases.| |
292292
| <a name="SETUP_SLACK_MARGIN"></a>SETUP_SLACK_MARGIN| Specifies a time margin for the slack when fixing setup violations. This option allows you to overfix or underfix(negative value, terminate retiming before 0 or positive slack). See HOLD_SLACK_MARGIN for more details.| 0|
293+
| <a name="SIG_MAP_FILE"></a>SIG_MAP_FILE| Signal map file for ICeWall-based floorplan initialization: the signal each pad of the FOOTPRINT file connects to.| |
293294
| <a name="SKIP_ANTENNA_REPAIR"></a>SKIP_ANTENNA_REPAIR| Skips antenna repair entirely.| 0|
294295
| <a name="SKIP_ANTENNA_REPAIR_POST_DRT"></a>SKIP_ANTENNA_REPAIR_POST_DRT| Skips antenna repair post-detailed routing.| 0|
295296
| <a name="SKIP_BUFFER_REMOVAL"></a>SKIP_BUFFER_REMOVAL| Passed as -skip_buffer_removal to repair_timing. Do not remove buffers as a transform to fix timing violations (default: allow buffer removal).| |
@@ -481,6 +482,7 @@ configuration file.
481482
- [SETUP_MOVE_SEQUENCE](#SETUP_MOVE_SEQUENCE)
482483
- [SETUP_REPAIR_PHASES](#SETUP_REPAIR_PHASES)
483484
- [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN)
485+
- [SIG_MAP_FILE](#SIG_MAP_FILE)
484486
- [SKIP_BUFFER_REMOVAL](#SKIP_BUFFER_REMOVAL)
485487
- [SKIP_CRIT_VT_SWAP](#SKIP_CRIT_VT_SWAP)
486488
- [SKIP_FLOORPLAN_REPAIR_TIMING](#SKIP_FLOORPLAN_REPAIR_TIMING)

‎flow/scripts/variables.mk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export COMMAND_LINE_ARGS := $(foreach V,$(.VARIABLES),$(if $(filter command% lin
206206
.PHONY: vars
207207
vars:
208208
mkdir -p $(OBJECTS_DIR)
209-
$(UTILS_DIR)/generate-vars.sh $(OBJECTS_DIR)/vars
209+
$(PYTHON_EXE) $(UTILS_DIR)/generate_vars.py $(OBJECTS_DIR)/vars
210210

211211
.PHONY: print-%
212212
print-%:

‎flow/scripts/variables.yaml‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,13 @@ TECH_LEF:
134134
description: >
135135
A technology LEF file of the PDK that includes all relevant information
136136
regarding metal layers, vias, and spacing requirements.
137+
type: file
138+
platform: true
137139
SC_LEF:
138140
description: |
139141
Path to technology standard cell LEF file.
142+
type: file
143+
platform: true
140144
GDS_FILES:
141145
description: |
142146
Path to platform GDS files.
@@ -145,6 +149,8 @@ LIB_FILES:
145149
A Liberty file of the standard cell library with PVT characterization,
146150
input and output characteristics, timing and power definitions for each
147151
cell.
152+
type: file
153+
platform: true
148154
LIB_MODEL:
149155
description: >
150156
Selects between NLDM and CCS timing models for the ASAP7 platform.
@@ -398,6 +404,7 @@ SYNTH_NETLIST_FILES:
398404
subsequent modules are silently ignored and only the first module is used.
399405
stages:
400406
- synth
407+
type: file
401408
SYNTH_CANONICALIZE_TCL:
402409
description: >
403410
Specifies a Tcl script with commands to run as part of the synth
@@ -453,16 +460,22 @@ LATCH_MAP_FILE:
453460
Optional mapping file supplied to Yosys to map latches
454461
stages:
455462
- synth
463+
type: file
464+
platform: true
456465
CLKGATE_MAP_FILE:
457466
description: |
458467
Optional mapping file supplied to Yosys to map clock gating cells
459468
stages:
460469
- synth
470+
type: file
471+
platform: true
461472
ADDER_MAP_FILE:
462473
description: |
463474
Optional mapping file supplied to Yosys to map adders
464475
stages:
465476
- synth
477+
type: file
478+
platform: true
466479
INFER_CLKGATES:
467480
description: >
468481
Enables Yosys clock gate inference. By default, it uses the Liberty cell
@@ -637,6 +650,8 @@ TAPCELL_TCL:
637650
Path to Endcap and Welltie cells file.
638651
stages:
639652
- floorplan
653+
type: file
654+
platform: true
640655
MACRO_PLACEMENT_TCL:
641656
description: |
642657
Specifies the path of a TCL file on how to place macros manually.
@@ -649,13 +664,16 @@ MACRO_PLACEMENT_TCL:
649664
and those locations impact global placement.
650665
stages:
651666
- floorplan
667+
type: file
652668
PDN_TCL:
653669
description: >
654670
File path which has a set of power grid policies used by pdn to be applied
655671
to the design, such as layers to use, stripe width and spacing to generate
656672
the actual metal straps.
657673
stages:
658674
- floorplan
675+
type: file
676+
platform: true
659677
GLOBAL_CONNECT_TCL:
660678
description: >
661679
File path to the add_global_connection rules that connect the supply pins
@@ -666,16 +684,21 @@ GLOBAL_CONNECT_TCL:
666684
grids.
667685
stages:
668686
- floorplan
687+
type: file
688+
platform: true
669689
MAKE_TRACKS:
670690
description: |
671691
Tcl file that defines add routing tracks to a floorplan.
672692
stages:
673693
- floorplan
694+
type: file
695+
platform: true
674696
IO_CONSTRAINTS:
675697
description: |
676698
File path to the IO constraints .tcl file. Also used for manual placement.
677699
stages:
678700
- floorplan
701+
type: file
679702
IO_PLACER_H:
680703
description: >
681704
A list of metal layers on which the I/O pins are placed horizontally (top and
@@ -1071,9 +1094,13 @@ OR_SEED:
10711094
RCX_RULES:
10721095
description: |
10731096
RC Extraction rules file path.
1097+
type: file
1098+
platform: true
10741099
FILL_CONFIG:
10751100
description: |
10761101
JSON rule file for metal fill during chip finishing.
1102+
type: file
1103+
platform: true
10771104
KLAYOUT_TECH_FILE:
10781105
description: |
10791106
A mapping from LEF/DEF to GDS using the KLayout tool.
@@ -1109,6 +1136,7 @@ VERILOG_FILES:
11091136
of modules.
11101137
stages:
11111138
- synth
1139+
type: file
11121140
VERILOG_DEFINES:
11131141
description: >
11141142
Preprocessor defines passed to the language frontend.
@@ -1121,13 +1149,17 @@ SDC_FILE:
11211149
The path to design constraint (SDC) file.
11221150
stages:
11231151
- synth
1152+
type: file
11241153
ADDITIONAL_FILES:
11251154
description: |
11261155
Additional files to be added to `make issue` archive.
1156+
type: file
1157+
platform: true
11271158
ADDITIONAL_LEFS:
11281159
description: >
11291160
Hardened macro LEF view files listed here. The LEF information of the
11301161
macros is immutable and used throughout all stages. Stored in the .odb file.
1162+
type: file
11311163
ADDITIONAL_LIBS:
11321164
description: >
11331165
Hardened macro library files listed here. The library information is
@@ -1185,6 +1217,8 @@ DFF_LIB_FILE:
11851217
synthesis. Takes precedence over DFF_MAP_FILE when set.
11861218
stages:
11871219
- synth
1220+
type: file
1221+
platform: true
11881222
SYNTH_KEEP_MODULES:
11891223
description: |
11901224
Mark modules to keep from getting removed in flattening.
@@ -1271,6 +1305,7 @@ MACRO_WRAPPERS:
12711305
The wrapper file that replaces existing macros with their wrapped version.
12721306
stages:
12731307
- floorplan
1308+
type: file
12741309
CTS_BUF_DISTANCE:
12751310
description: |
12761311
Distance (in microns) between buffers.
@@ -1327,6 +1362,8 @@ POST_CTS_TCL:
13271362
Specifies a Tcl script with commands to run after CTS is completed.
13281363
stages:
13291364
- cts
1365+
type: file
1366+
platform: true
13301367
POST_DENSITY_FILL_TCL:
13311368
description: |
13321369
Specifies a Tcl script with commands to run after density fill.
@@ -1342,6 +1379,8 @@ POST_DETAIL_ROUTE_TCL:
13421379
Specifies a Tcl script with commands to run after detailed route.
13431380
stages:
13441381
- route
1382+
type: file
1383+
platform: true
13451384
POST_FILLCELL_TCL:
13461385
description: |
13471386
Specifies a Tcl script with commands to run after fillcell insertion.
@@ -1357,6 +1396,8 @@ POST_FLOORPLAN_TCL:
13571396
Specifies a Tcl script with commands to run after floorplan is completed.
13581397
stages:
13591398
- floorplan
1399+
type: file
1400+
platform: true
13601401
POST_GLOBAL_PLACE_SKIP_IO_TCL:
13611402
description: |
13621403
Specifies a Tcl script with commands to run after global placement (skip IO).
@@ -1387,6 +1428,8 @@ POST_PDN_TCL:
13871428
Specifies a Tcl script with commands to run after PDN generation.
13881429
stages:
13891430
- floorplan
1431+
type: file
1432+
platform: true
13901433
POST_RESIZE_TCL:
13911434
description: |
13921435
Specifies a Tcl script with commands to run after resize.
@@ -1480,6 +1523,8 @@ PRE_TAPCELL_TCL:
14801523
FASTROUTE_TCL:
14811524
description: |
14821525
Specifies a Tcl script with commands to run before FastRoute.
1526+
type: file
1527+
platform: true
14831528
USE_FILL:
14841529
description: >
14851530
Whether to perform metal density filling.
@@ -1497,6 +1542,8 @@ PRE_GLOBAL_ROUTE_TCL:
14971542
Specifies a Tcl script with commands to run before global route.
14981543
stages:
14991544
- grt
1545+
type: file
1546+
platform: true
15001547
GLOBAL_ROUTE_ARGS:
15011548
description: >
15021549
Replaces default arguments for global route. The -congestion_iterations
@@ -1693,11 +1740,20 @@ FOOTPRINT:
16931740
Custom footprint definition file for ICeWall-based floorplan initialization. Mutually exclusive with FLOORPLAN_DEF or DIE_AREA/CORE_AREA or CORE_UTILIZATION.
16941741
stages:
16951742
- floorplan
1743+
type: file
1744+
SIG_MAP_FILE:
1745+
description: |
1746+
Signal map file for ICeWall-based floorplan initialization: the signal
1747+
each pad of the FOOTPRINT file connects to.
1748+
stages:
1749+
- floorplan
1750+
type: file
16961751
FOOTPRINT_TCL:
16971752
description: |
16981753
Specifies a Tcl script with custom footprint-related commands for floorplan setup.
16991754
stages:
17001755
- floorplan
1756+
type: file
17011757
FLOW_INPUT_VARIANT:
17021758
description: >
17031759
Flow variant a stage reads the previous stage's result from, the
@@ -1850,6 +1906,8 @@ CDL_FILE:
18501906
for generating Circuit Description Language output.
18511907
stages:
18521908
- final
1909+
type: file
1910+
platform: true
18531911
OPT_POST_GRT_WNS:
18541912
default: 1
18551913
description: >

0 commit comments

Comments
 (0)