Skip to content

Commit 08ca8d2

Browse files
authored
Merge pull request The-OpenROAD-Project#3493 from The-OpenROAD-Project-staging/secure-update-variables-yaml
Removed `stages` of SYNTH_WRAPPED_OPERATORS and SWAP_ARITH_OPERATORS in variables.yaml
2 parents a7849c0 + 8ba85bb commit 08ca8d2

File tree

4 files changed

+11
-32
lines changed

4 files changed

+11
-32
lines changed

docs/user/FlowVariables.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@ configuration file.
265265
- [MIN_BUF_CELL_AND_PORTS](#MIN_BUF_CELL_AND_PORTS)
266266
- [SDC_FILE](#SDC_FILE)
267267
- [SDC_GUT](#SDC_GUT)
268-
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
269268
- [SYNTH_BLACKBOXES](#SYNTH_BLACKBOXES)
270269
- [SYNTH_CANONICALIZE_TCL](#SYNTH_CANONICALIZE_TCL)
271270
- [SYNTH_GUT](#SYNTH_GUT)
@@ -277,7 +276,6 @@ configuration file.
277276
- [SYNTH_NETLIST_FILES](#SYNTH_NETLIST_FILES)
278277
- [SYNTH_OPT_HIER](#SYNTH_OPT_HIER)
279278
- [SYNTH_RETIME_MODULES](#SYNTH_RETIME_MODULES)
280-
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
281279
- [TIEHI_CELL_AND_PORT](#TIEHI_CELL_AND_PORT)
282280
- [TIELO_CELL_AND_PORT](#TIELO_CELL_AND_PORT)
283281
- [VERILOG_DEFINES](#VERILOG_DEFINES)
@@ -340,8 +338,6 @@ configuration file.
340338
- [SKIP_REPAIR_TIE_FANOUT](#SKIP_REPAIR_TIE_FANOUT)
341339
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
342340
- [SKIP_VT_SWAP](#SKIP_VT_SWAP)
343-
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
344-
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
345341
- [TAPCELL_TCL](#TAPCELL_TCL)
346342
- [TIEHI_CELL_AND_PORT](#TIEHI_CELL_AND_PORT)
347343
- [TIELO_CELL_AND_PORT](#TIELO_CELL_AND_PORT)
@@ -366,8 +362,6 @@ configuration file.
366362
- [PLACE_PINS_ARGS](#PLACE_PINS_ARGS)
367363
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
368364
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
369-
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
370-
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
371365

372366
## cts variables
373367

@@ -394,8 +388,6 @@ configuration file.
394388
- [SKIP_PIN_SWAP](#SKIP_PIN_SWAP)
395389
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
396390
- [SKIP_VT_SWAP](#SKIP_VT_SWAP)
397-
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
398-
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
399391
- [TNS_END_PERCENT](#TNS_END_PERCENT)
400392

401393
## grt variables
@@ -418,8 +410,6 @@ configuration file.
418410
- [SKIP_PIN_SWAP](#SKIP_PIN_SWAP)
419411
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
420412
- [SKIP_VT_SWAP](#SKIP_VT_SWAP)
421-
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
422-
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
423413
- [TNS_END_PERCENT](#TNS_END_PERCENT)
424414

425415
## route variables
@@ -435,8 +425,6 @@ configuration file.
435425
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
436426
- [SKIP_DETAILED_ROUTE](#SKIP_DETAILED_ROUTE)
437427
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
438-
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
439-
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
440428

441429
## final variables
442430

@@ -450,6 +438,10 @@ configuration file.
450438
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
451439
- [SKIP_DETAILED_ROUTE](#SKIP_DETAILED_ROUTE)
452440
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
441+
442+
## All stages variables
443+
444+
- [OPENROAD_HIERARCHICAL](#OPENROAD_HIERARCHICAL)
453445
- [SWAP_ARITH_OPERATORS](#SWAP_ARITH_OPERATORS)
454446
- [SYNTH_WRAPPED_OPERATORS](#SYNTH_WRAPPED_OPERATORS)
455447

@@ -461,10 +453,6 @@ configuration file.
461453

462454
- [RULES_JSON](#RULES_JSON)
463455

464-
## All stages variables
465-
466-
467-
468456
## Uncategorized variables
469457

470458
- [ADDITIONAL_FILES](#ADDITIONAL_FILES)
@@ -492,7 +480,6 @@ configuration file.
492480
- [KLAYOUT_TECH_FILE](#KLAYOUT_TECH_FILE)
493481
- [LIB_FILES](#LIB_FILES)
494482
- [MACRO_EXTENSION](#MACRO_EXTENSION)
495-
- [OPENROAD_HIERARCHICAL](#OPENROAD_HIERARCHICAL)
496483
- [PLATFORM](#PLATFORM)
497484
- [PLATFORM_TCL](#PLATFORM_TCL)
498485
- [PROCESS](#PROCESS)

flow/scripts/generate-variables-docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
markdown_table += table_header + table_rows
4545

46-
for stage in stages + ["All stages", "Uncategorized"]:
46+
for stage in stages + ["Uncategorized"]:
4747
markdown_table += f"## {stage} variables\n\n"
4848
stage_keys = [
4949
key

flow/scripts/non_stage_variables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
for key, value in data.items():
1919
if "stages" not in value:
2020
continue
21+
if "All stages" in value["stages"]:
22+
continue
2123
if sys.argv[1] in value["stages"]:
2224
continue
2325
# This variable is in a stage, but not in this stage

flow/scripts/variables.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -297,24 +297,12 @@ SYNTH_WRAPPED_OPERATORS:
297297
design. These options are available for switching among in later stages of
298298
the flow.
299299
stages:
300-
- synth
301-
- floorplan
302-
- place
303-
- cts
304-
- grt
305-
- route
306-
- final
300+
- All stages
307301
SWAP_ARITH_OPERATORS:
308302
description: >
309303
Improve timing QoR by swapping ALU and MULT arithmetic operators.
310304
stages:
311-
- synth
312-
- floorplan
313-
- place
314-
- cts
315-
- grt
316-
- route
317-
- final
305+
- All stages
318306
FLOORPLAN_DEF:
319307
description: |
320308
Use the DEF file to initialize floorplan.
@@ -1071,3 +1059,5 @@ OPENROAD_HIERARCHICAL:
10711059
otherwise considered flat. Will eventually be the default and
10721060
this option will be retired.
10731061
default: 0
1062+
stages:
1063+
- All stages

0 commit comments

Comments
 (0)