You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5e3e3ec
Browse filesBrowse the repository at this point in the historyBrowse files
bazel-orfs validates every variable used by a design's config.mk against
flow/scripts/variables.yaml. These three are real ORFS variables already
used by platform configs, Tcl scripts, or recognised by bazel-orfs as
source-typed, but were missing schema declarations, which made the bazel
load phase fail for any design that referenced them:
- LIB_MODEL: selects NLDM vs CCS lib files in
flow/platforms/asap7/config.mk and gates CCS-specific branches in
flow/scripts/load.tcl. Used by asap7/gcd-ccs and asap7/swerv_wrapper.
- MIN_CLK_ROUTING_LAYER: lower bound for clock-net routing in
flow/platforms/{asap7,sky130hd,nangate45,sky130hs}/fastroute.tcl.
Platforms set defaults; designs (asap7/riscv32i-mock-sram fakeram,
sky130hd/ibex) override. No stages: list — floorplan.tcl sources the
platform fastroute.tcl too, mirroring MIN/MAX_ROUTING_LAYER.
- SDC_FILE_EXTRA: per-design extra Tcl hook source'd from a design's
own SDC / io.tcl. bazel-orfs's config_mk_parser already classifies
this as a source-typed (path-label) variable in SOURCE_VARS, so
the value is staged into the sandbox. Used by asap7/mock-cpu.
flow/scripts/variables.json and docs/user/FlowVariables.md regenerated
via flow/scripts/yaml_to_json.py and flow/scripts/generate-variables-docs.py
so the derived artefacts stay in sync.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Copy file name to clipboardExpand all lines: docs/user/FlowVariables.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,7 @@ configuration file.
173
173
| <aname="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.||
174
174
| <aname="LEC_CHECK"></a>LEC_CHECK| Perform a formal equivalence check between before and after netlists. If this fails, report an issue to OpenROAD.| 0|
175
175
| <aname="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
+
| <aname="LIB_MODEL"></a>LIB_MODEL| Selects between NLDM and CCS timing models for the ASAP7 platform. Valid values: NLDM (default), CCS. Used in flow/platforms/asap7/config.mk to pick the LIB_DIR subdirectory and accumulate the corresponding $(CORNER)_$(LIB_MODEL)_LIB_FILES list, and in flow/scripts/load.tcl to gate CCS-specific Tcl branches.| NLDM|
176
177
| <aname="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.||
177
178
| <aname="MACRO_EXTENSION"></a>MACRO_EXTENSION| Sets the number of GCells added to the blockages boundaries from macros.||
178
179
| <aname="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.||
@@ -188,6 +189,7 @@ configuration file.
188
189
| <aname="MAX_REPAIR_TIMING_ITER"></a>MAX_REPAIR_TIMING_ITER| Maximum number of iterations for repair setup and repair hold.||
189
190
| <aname="MAX_ROUTING_LAYER"></a>MAX_ROUTING_LAYER| The highest metal layer name to be used in routing.||
190
191
| <aname="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
+
| <aname="MIN_CLK_ROUTING_LAYER"></a>MIN_CLK_ROUTING_LAYER| The lowest metal layer name to be used for clock-net routing in global routing. Used in flow/platforms/*/fastroute.tcl as the lower bound of `set_routing_layers -clock`. Typically higher than MIN_ROUTING_LAYER so clock nets prefer the upper, lower-RC layers. No `stages:` list because floorplan.tcl also `source`s the platform fastroute.tcl.||
191
193
| <aname="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|
192
194
| <aname="MIN_ROUTING_LAYER"></a>MIN_ROUTING_LAYER| The lowest metal layer name to be used in routing.||
193
195
| <aname="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.||
@@ -266,6 +268,7 @@ configuration file.
266
268
| <aname="RUN_SCRIPT"></a>RUN_SCRIPT| Path to script to run from `make run`, python or tcl script detected by .py or .tcl extension.||
267
269
| <aname="SC_LEF"></a>SC_LEF| Path to technology standard cell LEF file.||
268
270
| <aname="SDC_FILE"></a>SDC_FILE| The path to design constraint (SDC) file.||
271
+
| <aname="SDC_FILE_EXTRA"></a>SDC_FILE_EXTRA| Path to an extra Tcl file the design's own SDC / io.tcl can `source` for per-design hooks (constraints that don't fit cleanly in the shared SDC_FILE). bazel-orfs classifies this as a source-typed variable (path label), so the value is staged into the sandbox. Used by flow/designs/asap7/mock-cpu.||
269
272
| <aname="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.||
270
273
| <aname="SEAL_GDS"></a>SEAL_GDS| Seal macro to place around the design.||
271
274
| <aname="SETUP_MOVE_SEQUENCE"></a>SETUP_MOVE_SEQUENCE| Passed as -sequence to repair_timing. This should be a string of move keywords separated by commas.||
0 commit comments