SAIFIINDUSTRIES's picture
Add batch 5 (Luthiraa_TALOS-V2, dawsonjon_fpu, The-OpenROAD-Project_OpenROAD-flow-scripts, antonblanchard_microwatt, alexforencich_verilog-i2c)
784ee2c verified
|
Raw History Blame Contribute Delete
1.57 kB

bazel-orfs

Bazel front-end for the ORFS Make flow. Designs declared via config.mk are exposed as Bazel targets through bazel-orfs.

Targets

For a design at flow/designs/<platform>/<design>/ with DESIGN_NAME = <n>:

Target Output
<n>_synth Yosys synthesis
<n>_floorplan Floorplan + I/O placement
<n>_place Placement
<n>_cts Clock tree synthesis
<n>_grt Global routing
<n>_route Detailed routing
<n>_final Final + fill
<n>_generate_abstract LEF/LIB abstract
<n>_test Full flow + QoR check against rules-base.json
<n>_update Rebuild and write thresholds back to rules-base.json

Stages depend on the previous, so _final runs the whole flow.

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

# flow/designs/<platform>/<design>/BUILD.bazel
load("//flow/designs:design.bzl", "design")

design()

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

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 <nproc>. A wildcard bazelisk test runs designs in parallel and overcommits the host. Cap with --jobs=N.