Skip to content

Commit 5ac403f

Browse files
committed
build: drop design-specific entries from variables.yaml
LIB_MODEL, SDC_FILE_EXTRA, MOCK_ALU_OPERATIONS, MOCK_ALU_WIDTH and MIN_CLK_ROUTING_LAYER are read by individual designs, not by ORFS itself. They belong in user_arguments on the orfs_flow() call site; landing them in the global variables.yaml conflated project knobs with ORFS knobs. Designs that reference these variables (asap7/gcd-ccs, asap7/mock-cpu, asap7/mock-alu, asap7/swerv_wrapper, asap7/riscv32i-mock-sram) now hit bazel-orfs's variable check at load time. Re-enabling them needs orfs_design() to forward user_arguments through to orfs_flow(). SYNTH_NUM_PARTITIONS stays — bazel-orfs auto-injects it for SYNTH_HIERARCHICAL designs and a downstream variables.yaml is the only hook that gates the validator today. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 32f10a8 commit 5ac403f

3 files changed

Lines changed: 0 additions & 109 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ configuration file.
173173
| <a name="LEC_AUX_VERILOG_FILES"></a>LEC_AUX_VERILOG_FILES| Additional Verilog files (e.g. blackbox stubs) to include in LEC equivalence checks. Appended to the generated Verilog netlist before running the formal equivalence check.| |
174174
| <a name="LEC_CHECK"></a>LEC_CHECK| Perform a formal equivalence check between before and after netlists. If this fails, report an issue to OpenROAD.| 0|
175175
| <a name="LIB_FILES"></a>LIB_FILES| A Liberty file of the standard cell library with PVT characterization, input and output characteristics, timing and power definitions for each cell.| |
176-
| <a name="LIB_MODEL"></a>LIB_MODEL| Selects the standard cell library timing model. Set to CCS to use composite current source liberty files; default selects the NLDM (non-linear delay model) variant.| |
177176
| <a name="MACRO_BLOCKAGE_HALO"></a>MACRO_BLOCKAGE_HALO| Distance beyond the edges of a macro that will also be covered by the blockage generated for that macro. Note that the default macro blockage halo comes from the largest of the specified MACRO_PLACE_HALO x or y values. This variable overrides that calculation.| |
178177
| <a name="MACRO_EXTENSION"></a>MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.| |
179178
| <a name="MACRO_PLACEMENT_TCL"></a>MACRO_PLACEMENT_TCL| Specifies the path of a TCL file on how to place macros manually. The user may choose to place just some of the macros in the design. The macro placer will handle the remaining unplaced macros.| |
@@ -189,11 +188,8 @@ configuration file.
189188
| <a name="MAX_REPAIR_TIMING_ITER"></a>MAX_REPAIR_TIMING_ITER| Maximum number of iterations for repair setup and repair hold.| |
190189
| <a name="MAX_ROUTING_LAYER"></a>MAX_ROUTING_LAYER| The highest metal layer name to be used in routing.| |
191190
| <a name="MIN_BUF_CELL_AND_PORTS"></a>MIN_BUF_CELL_AND_PORTS| Used to insert a buffer cell to pass through wires. Used in synthesis.| |
192-
| <a name="MIN_CLK_ROUTING_LAYER"></a>MIN_CLK_ROUTING_LAYER| Lowest metal layer that clock tree synthesis may use for clock routing. Mirrors MIN_ROUTING_LAYER but applies to clock nets.| |
193191
| <a name="MIN_PLACE_STEP_COEF"></a>MIN_PLACE_STEP_COEF| Sets the minimum phi coefficient (pcof_min / µ_k Lower Bound) for global placement optimization. This parameter controls the step size lower bound in the RePlAce Nesterov optimization algorithm. Lower values may improve convergence but can increase runtime. Valid range: 0.95-1.05| 0.95|
194192
| <a name="MIN_ROUTING_LAYER"></a>MIN_ROUTING_LAYER| The lowest metal layer name to be used in routing.| |
195-
| <a name="MOCK_ALU_OPERATIONS"></a>MOCK_ALU_OPERATIONS| Comma-separated list of ALU operations baked into the generated mock-alu RTL (e.g. ADD,SUB,AND). Consumed by the Chisel generator in src/mock-alu.| |
196-
| <a name="MOCK_ALU_WIDTH"></a>MOCK_ALU_WIDTH| Datapath width in bits for the generated mock-alu RTL. Consumed by the Chisel generator in src/mock-alu.| |
197193
| <a name="NUM_CORES"></a>NUM_CORES| Passed to `openroad -threads $(NUM_CORES)`, defaults to numbers of cores in system as determined by system specific code in Makefile, `nproc` is tried first. OpenROAD does not limit itself to this number of cores across OpenROAD running instances, which can lead to overprovisioning in contexts such as bazel-orfs where there could be many routing, or place jobs running at the same time.| |
198194
| <a name="OPENROAD_HIERARCHICAL"></a>OPENROAD_HIERARCHICAL| Feature toggle to enable to run OpenROAD in hierarchical mode, otherwise considered flat. Will eventually be the default and this option will be retired.| 0|
199195
| <a name="OR_K"></a>OR_K| Passed as -or_k to detailed routing.| |
@@ -270,7 +266,6 @@ configuration file.
270266
| <a name="RUN_SCRIPT"></a>RUN_SCRIPT| Path to script to run from `make run`, python or tcl script detected by .py or .tcl extension.| |
271267
| <a name="SC_LEF"></a>SC_LEF| Path to technology standard cell LEF file.| |
272268
| <a name="SDC_FILE"></a>SDC_FILE| The path to design constraint (SDC) file.| |
273-
| <a name="SDC_FILE_EXTRA"></a>SDC_FILE_EXTRA| Path to an additional Tcl file sourced from constraint.sdc and from place_pins I/O scripts. Used by designs that share helper Tcl between SDC and pin placement (e.g. mock-cpu).| |
274269
| <a name="SDC_GUT"></a>SDC_GUT| Load design and remove all internal logic before doing synthesis. This is useful when creating a mock .lef abstract that has a smaller area than the amount of logic would allow. bazel-orfs uses this to mock SRAMs, for instance.| |
275270
| <a name="SEAL_GDS"></a>SEAL_GDS| Seal macro to place around the design.| |
276271
| <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.| |
@@ -348,14 +343,10 @@ configuration file.
348343
- [DFF_LIB_FILE](#DFF_LIB_FILE)
349344
- [DFF_MAP_FILE](#DFF_MAP_FILE)
350345
- [LATCH_MAP_FILE](#LATCH_MAP_FILE)
351-
- [LIB_MODEL](#LIB_MODEL)
352346
- [MIN_BUF_CELL_AND_PORTS](#MIN_BUF_CELL_AND_PORTS)
353-
- [MOCK_ALU_OPERATIONS](#MOCK_ALU_OPERATIONS)
354-
- [MOCK_ALU_WIDTH](#MOCK_ALU_WIDTH)
355347
- [POST_SYNTH_TCL](#POST_SYNTH_TCL)
356348
- [PRE_SYNTH_TCL](#PRE_SYNTH_TCL)
357349
- [SDC_FILE](#SDC_FILE)
358-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
359350
- [SDC_GUT](#SDC_GUT)
360351
- [SLANG_PLUGIN_PATH](#SLANG_PLUGIN_PATH)
361352
- [SYNTH_ARGS](#SYNTH_ARGS)
@@ -405,7 +396,6 @@ configuration file.
405396
- [FOOTPRINT_TCL](#FOOTPRINT_TCL)
406397
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)
407398
- [IO_CONSTRAINTS](#IO_CONSTRAINTS)
408-
- [LIB_MODEL](#LIB_MODEL)
409399
- [MACRO_BLOCKAGE_HALO](#MACRO_BLOCKAGE_HALO)
410400
- [MACRO_PLACEMENT_TCL](#MACRO_PLACEMENT_TCL)
411401
- [MACRO_PLACE_HALO](#MACRO_PLACE_HALO)
@@ -448,7 +438,6 @@ configuration file.
448438
- [RTLMP_OUTLINE_WT](#RTLMP_OUTLINE_WT)
449439
- [RTLMP_RPT_DIR](#RTLMP_RPT_DIR)
450440
- [RTLMP_WIRELENGTH_WT](#RTLMP_WIRELENGTH_WT)
451-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
452441
- [SETUP_MOVE_SEQUENCE](#SETUP_MOVE_SEQUENCE)
453442
- [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN)
454443
- [SKIP_BUFFER_REMOVAL](#SKIP_BUFFER_REMOVAL)
@@ -483,7 +472,6 @@ configuration file.
483472
- [GPL_TIMING_DRIVEN](#GPL_TIMING_DRIVEN)
484473
- [IO_PLACER_H](#IO_PLACER_H)
485474
- [IO_PLACER_V](#IO_PLACER_V)
486-
- [LIB_MODEL](#LIB_MODEL)
487475
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
488476
- [MAX_PLACE_STEP_COEF](#MAX_PLACE_STEP_COEF)
489477
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
@@ -506,7 +494,6 @@ configuration file.
506494
- [PRE_REPAIR_TIMING_POST_PLACE_TCL](#PRE_REPAIR_TIMING_POST_PLACE_TCL)
507495
- [PRE_RESIZE_TCL](#PRE_RESIZE_TCL)
508496
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
509-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
510497
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
511498
- [TNS_END_PERCENT](#TNS_END_PERCENT)
512499

@@ -525,14 +512,11 @@ configuration file.
525512
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)
526513
- [LEC_AUX_VERILOG_FILES](#LEC_AUX_VERILOG_FILES)
527514
- [LEC_CHECK](#LEC_CHECK)
528-
- [LIB_MODEL](#LIB_MODEL)
529515
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
530516
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
531-
- [MIN_CLK_ROUTING_LAYER](#MIN_CLK_ROUTING_LAYER)
532517
- [POST_CTS_TCL](#POST_CTS_TCL)
533518
- [PRE_CTS_TCL](#PRE_CTS_TCL)
534519
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
535-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
536520
- [SETUP_MOVE_SEQUENCE](#SETUP_MOVE_SEQUENCE)
537521
- [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN)
538522
- [SKIP_BUFFER_REMOVAL](#SKIP_BUFFER_REMOVAL)
@@ -552,7 +536,6 @@ configuration file.
552536
- [ENABLE_RESISTANCE_AWARE](#ENABLE_RESISTANCE_AWARE)
553537
- [GLOBAL_ROUTE_ARGS](#GLOBAL_ROUTE_ARGS)
554538
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)
555-
- [LIB_MODEL](#LIB_MODEL)
556539
- [MAX_REPAIR_ANTENNAS_ITER_GRT](#MAX_REPAIR_ANTENNAS_ITER_GRT)
557540
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
558541
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
@@ -561,7 +544,6 @@ configuration file.
561544
- [PRE_GLOBAL_ROUTE_TCL](#PRE_GLOBAL_ROUTE_TCL)
562545
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
563546
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
564-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
565547
- [SETUP_MOVE_SEQUENCE](#SETUP_MOVE_SEQUENCE)
566548
- [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN)
567549
- [SKIP_ANTENNA_REPAIR](#SKIP_ANTENNA_REPAIR)
@@ -584,7 +566,6 @@ configuration file.
584566
- [DETAILED_ROUTE_END_ITERATION](#DETAILED_ROUTE_END_ITERATION)
585567
- [DISABLE_VIA_GEN](#DISABLE_VIA_GEN)
586568
- [FILL_CELLS](#FILL_CELLS)
587-
- [LIB_MODEL](#LIB_MODEL)
588569
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
589570
- [MAX_REPAIR_ANTENNAS_ITER_DRT](#MAX_REPAIR_ANTENNAS_ITER_DRT)
590571
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
@@ -597,7 +578,6 @@ configuration file.
597578
- [PRE_FILLCELL_TCL](#PRE_FILLCELL_TCL)
598579
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
599580
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
600-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
601581
- [SKIP_ANTENNA_REPAIR_POST_DRT](#SKIP_ANTENNA_REPAIR_POST_DRT)
602582
- [SKIP_DETAILED_ROUTE](#SKIP_DETAILED_ROUTE)
603583
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
@@ -610,7 +590,6 @@ configuration file.
610590
- [CDL_FILE](#CDL_FILE)
611591
- [GDS_ALLOW_EMPTY](#GDS_ALLOW_EMPTY)
612592
- [GND_NETS_VOLTAGES](#GND_NETS_VOLTAGES)
613-
- [LIB_MODEL](#LIB_MODEL)
614593
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
615594
- [MIN_ROUTING_LAYER](#MIN_ROUTING_LAYER)
616595
- [POST_DENSITY_FILL_TCL](#POST_DENSITY_FILL_TCL)
@@ -620,7 +599,6 @@ configuration file.
620599
- [PWR_NETS_VOLTAGES](#PWR_NETS_VOLTAGES)
621600
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
622601
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
623-
- [SDC_FILE_EXTRA](#SDC_FILE_EXTRA)
624602
- [SKIP_DETAILED_ROUTE](#SKIP_DETAILED_ROUTE)
625603
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
626604

‎flow/scripts/variables.json‎

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flow/scripts/variables.yaml‎

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,55 +1585,10 @@ CDL_FILE:
15851585
for generating Circuit Description Language output.
15861586
stages:
15871587
- final
1588-
LIB_MODEL:
1589-
description: >
1590-
Selects the standard cell library timing model. Set to CCS to use
1591-
composite current source liberty files; default selects the NLDM
1592-
(non-linear delay model) variant.
1593-
stages:
1594-
- synth
1595-
- floorplan
1596-
- place
1597-
- cts
1598-
- grt
1599-
- route
1600-
- final
1601-
MIN_CLK_ROUTING_LAYER:
1602-
description: >
1603-
Lowest metal layer that clock tree synthesis may use for clock
1604-
routing. Mirrors MIN_ROUTING_LAYER but applies to clock nets.
1605-
stages:
1606-
- cts
1607-
SDC_FILE_EXTRA:
1608-
description: >
1609-
Path to an additional Tcl file sourced from constraint.sdc and from
1610-
place_pins I/O scripts. Used by designs that share helper Tcl
1611-
between SDC and pin placement (e.g. mock-cpu).
1612-
stages:
1613-
- synth
1614-
- floorplan
1615-
- place
1616-
- cts
1617-
- grt
1618-
- route
1619-
- final
16201588
SYNTH_NUM_PARTITIONS:
16211589
description: >
16221590
Total number of partitions used by the parallel synthesis flow.
16231591
Set automatically by bazel-orfs based on SYNTH_KEEP_MODULES; not
16241592
typically set by users.
16251593
stages:
16261594
- synth
1627-
MOCK_ALU_OPERATIONS:
1628-
description: >
1629-
Comma-separated list of ALU operations baked into the generated
1630-
mock-alu RTL (e.g. ADD,SUB,AND). Consumed by the Chisel generator
1631-
in src/mock-alu.
1632-
stages:
1633-
- synth
1634-
MOCK_ALU_WIDTH:
1635-
description: >
1636-
Datapath width in bits for the generated mock-alu RTL. Consumed by
1637-
the Chisel generator in src/mock-alu.
1638-
stages:
1639-
- synth

0 commit comments

Comments
 (0)