Skip to content

Commit 375865f

Browse files
committed
build: drop unused entries
- variables.yaml: drop SYNTH_NUM_PARTITIONS. ORFS doesn't read it; only bazel-orfs's parallel-synth wrapper does, and that's a bazel-orfs internal concern. - .bazelrc: drop --experimental_isolated_extension_usages. We don't use isolate=True on any use_extension call. - flow/designs/asap7/minimal/BUILD.bazel: drop the orfs_design loads the file no longer needs since orfs_design isn't called here. - bazel-orfs.md: drop the "Local bazel-orfs" section and update the add-a-design snippets to use the new design.bzl macros. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 5ac403f commit 375865f

6 files changed

Lines changed: 6 additions & 34 deletions

File tree

‎.bazelrc‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
build --incompatible_strict_action_env
2-
common --experimental_isolated_extension_usages
32
build --cxxopt "-std=c++20" --host_cxxopt "-std=c++20"
43
try-import %workspace%/user.bazelrc

‎bazel-orfs.md‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,22 @@ bazelisk query //flow/designs/asap7/...:*
3535

3636
```starlark
3737
# flow/designs/<platform>/<design>/BUILD.bazel
38-
load("@bazel-orfs//:openroad.bzl", "orfs_design")
39-
load("@orfs_designs//:designs.bzl", "DESIGNS")
38+
load("//flow/designs:design.bzl", "design")
4039

41-
exports_files(glob(["*"]))
42-
43-
orfs_design(designs = DESIGNS)
40+
design()
4441
```
4542

4643
If `flow/designs/src/<n>/BUILD.bazel` is missing, add:
4744

4845
```starlark
49-
exports_files(glob(["*.v", "*.sv"], allow_empty = True), visibility = ["//visibility:public"])
50-
filegroup(name = "verilog", srcs = glob(["*.v", "*.sv"], allow_empty = True), visibility = ["//visibility:public"])
46+
load("//flow/designs:design.bzl", "files")
47+
48+
files("verilog")
5149
```
5250

5351
A design counts as CI-tested iff `rules-base.json` exists; without it
5452
the generated targets get `tags = ["manual"]`.
5553

56-
## Local bazel-orfs
57-
58-
Replace the `git_override` for `bazel-orfs` and `bazel-orfs-verilog` in
59-
`MODULE.bazel` with `local_path_override` pointing at the checkout
60-
(and `…/verilog` for the latter).
61-
6254
## Parallelism
6355

6456
Each OpenROAD invocation takes `-threads <nproc>`. A wildcard

‎docs/user/FlowVariables.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ configuration file.
303303
| <a name="SYNTH_MINIMUM_KEEP_SIZE"></a>SYNTH_MINIMUM_KEEP_SIZE| For hierarchical synthesis, we keep modules of larger area than given by this variable and flatten smaller modules. The area unit used is the size of a basic nand2 gate from the platform's standard cell library. The default value is platform specific.| 0|
304304
| <a name="SYNTH_MOCK_LARGE_MEMORIES"></a>SYNTH_MOCK_LARGE_MEMORIES| Reduce Yosys inferred memories larger than SYNTH_MEMORY_MAX_BITS to 1 row. Yosys will generally infer memories from behavioral Verilog code, whether the memories are in standalone modules or instantiated within some larger module. fakeram and empty Verilog memories(blackboxes) of memories will not be inferred memories by Yosys and are therefore not affected by this variable. This is useful and convenient to separate the concern of instantiating and placing memories from investigating other issues with a design, though it comes at the expense of the increased accuracy that using realistic fakemem would provide. Memories with a single 1 row will of course have unrealistically good timing and area characteristics, but timing will still correctly terminate in a register. Large port memories, typically register files, will still have the retain a lot of the port logic that can be useful to investigate issues. This can be especially useful during development of designs where the behavioral model comes first and suitable memories are matched up when the design RTL is stable. A typical use case would be Chisel which will generate a behavioral model for a memories with the required clocks, ports, etc. in addition to a computer readable file with the specification of the memories that is used to [automatically](https://chipyard.readthedocs.io/en/stable/Tools/Barstools.html/) match up suitable memory macros later in the flow. During an architectural screening study, a large range of memory configurations can be investigated quickly with this option, without getting bogged down in the concern of how to realize the memories in silicon for emphemral RTL configurations that exist only long enough to run through the ORFS flow to create a table of some characteristics of a design configuration.| 0|
305305
| <a name="SYNTH_NETLIST_FILES"></a>SYNTH_NETLIST_FILES| Skips synthesis and uses the supplied netlist files. If the netlist files contains duplicate modules, which can happen when using hierarchical synthesis on indvidual netlist files and combining here, subsequent modules are silently ignored and only the first module is used.| |
306-
| <a name="SYNTH_NUM_PARTITIONS"></a>SYNTH_NUM_PARTITIONS| Total number of partitions used by the parallel synthesis flow. Set automatically by bazel-orfs based on SYNTH_KEEP_MODULES; not typically set by users.| |
307306
| <a name="SYNTH_OPERATIONS_ARGS"></a>SYNTH_OPERATIONS_ARGS| Extra arguments appended to the Yosys synth command operations list. When set, replaces the default Kogge-Stone adder extra-map.| |
308307
| <a name="SYNTH_OPT_HIER"></a>SYNTH_OPT_HIER| Optimize constants across hierarchical boundaries.| |
309308
| <a name="SYNTH_REPEATABLE_BUILD"></a>SYNTH_REPEATABLE_BUILD| License to prune anything that makes builds less repeatable, typically used with Bazel to ensure that builds are bit-for-bit identical so that caching works optimally. Removes debug information that encodes paths, timestamps, etc.| 0|
@@ -364,7 +363,6 @@ configuration file.
364363
- [SYNTH_MINIMUM_KEEP_SIZE](#SYNTH_MINIMUM_KEEP_SIZE)
365364
- [SYNTH_MOCK_LARGE_MEMORIES](#SYNTH_MOCK_LARGE_MEMORIES)
366365
- [SYNTH_NETLIST_FILES](#SYNTH_NETLIST_FILES)
367-
- [SYNTH_NUM_PARTITIONS](#SYNTH_NUM_PARTITIONS)
368366
- [SYNTH_OPERATIONS_ARGS](#SYNTH_OPERATIONS_ARGS)
369367
- [SYNTH_OPT_HIER](#SYNTH_OPT_HIER)
370368
- [SYNTH_REPEATABLE_BUILD](#SYNTH_REPEATABLE_BUILD)
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
load("@bazel-orfs//:openroad.bzl", "orfs_design")
2-
load("@orfs_designs//:designs.bzl", "DESIGNS")
3-
41
exports_files(glob(["*"]))
52

6-
# TODO(bazel-orfs): orfs_design(designs = DESIGNS)
7-
# Blocked: no VERILOG_FILES in config.mk (test-only design with empty SDC).
3+
# Skipped: minimal has no VERILOG_FILES in config.mk (empty SDC test design).

‎flow/scripts/variables.json‎

Lines changed: 0 additions & 6 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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,10 +1585,3 @@ CDL_FILE:
15851585
for generating Circuit Description Language output.
15861586
stages:
15871587
- final
1588-
SYNTH_NUM_PARTITIONS:
1589-
description: >
1590-
Total number of partitions used by the parallel synthesis flow.
1591-
Set automatically by bazel-orfs based on SYNTH_KEEP_MODULES; not
1592-
typically set by users.
1593-
stages:
1594-
- synth

0 commit comments

Comments
 (0)