# bazel-orfs Bazel front-end for the ORFS Make flow. Designs declared via `config.mk` are exposed as Bazel targets through [bazel-orfs](https://github.com/The-OpenROAD-Project/bazel-orfs). ## Targets For a design at `flow/designs///` with `DESIGN_NAME = `: | Target | Output | |---|---| | `_synth` | Yosys synthesis | | `_floorplan` | Floorplan + I/O placement | | `_place` | Placement | | `_cts` | Clock tree synthesis | | `_grt` | Global routing | | `_route` | Detailed routing | | `_final` | Final + fill | | `_generate_abstract` | LEF/LIB abstract | | `_test` | Full flow + QoR check against `rules-base.json` | | `_update` | Rebuild and write thresholds back to `rules-base.json` | Stages depend on the previous, so `_final` runs the whole flow. ```bash bazelisk build //flow/designs/asap7/gcd:gcd_synth bazelisk test //flow/designs/asap7/gcd:gcd_test bazelisk run //flow/designs/asap7/gcd:gcd_update bazelisk query //flow/designs/asap7/...:* ``` ## Adding a design ```starlark # flow/designs///BUILD.bazel load("//flow/designs:design.bzl", "design") design() ``` If `flow/designs/src//BUILD.bazel` is missing, add: ```starlark load("//flow/designs:design.bzl", "files") files("verilog") ``` A design counts as CI-tested iff `rules-base.json` exists; without it the generated targets get `tags = ["manual"]`. ## Parallelism Each OpenROAD invocation takes `-threads `. A wildcard `bazelisk test` runs designs in parallel and overcommits the host. Cap with `--jobs=N`.