Skip to content

Commit

Permalink
orfs: bump
Browse files Browse the repository at this point in the history
do-yosys-stats is no more, hierarchical synthesis is now done in a
single stage.
  • Loading branch information
oharboe committed Jan 12, 2025
1 parent 752405c commit 380bb85
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/scripts/build_local_target.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ do
stages=()
if [[ $stage == "synth" ]]; then
stages+=("do-yosys-canonicalize")
stages+=("do-yosys-stats")
stages+=("do-yosys")
stages+=("do-synth")
elif [[ $stage == "grt" ]]; then
Expand Down
22 changes: 11 additions & 11 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ module(
compatibility_level = 1,
)

orfs = use_extension("//:extension.bzl", "orfs_repositories")
orfs.default(
# a local only or remote docker image. Local docker images do not
# have a sha256.
image = "docker.io/openroad/orfs:v3.0-1985-gf6274eee",
# Comment out line below for local only docker images
sha256 = "9c7b880d2148d6744280e36f492e2b3539dbb3301b71314d0772cdf85bb59bb4",
)
use_repo(orfs, "com_github_nixos_patchelf_download")
use_repo(orfs, "docker_orfs")

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
Expand Down Expand Up @@ -50,3 +39,14 @@ pip.parse(
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pip")

orfs = use_extension("//:extension.bzl", "orfs_repositories")
orfs.default(
# a local only or remote docker image. Local docker images do not
# have a sha256.
image = "docker.io/openroad/orfs:v3.0-2024-g6a47bb89",
# Comment out line below for local only docker images
sha256 = "6b1a31959f0f70716d6eb8a6fb3d36ea854cddb3a1d4612bfb961d37071c20eb",
)
use_repo(orfs, "com_github_nixos_patchelf_download")
use_repo(orfs, "docker_orfs")
6 changes: 3 additions & 3 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ bazel run <target>_<stage>_deps -- <absolute_path>
<absolute_path>/make do-<stage>
```

> **NOTE:** The synthesis stage requires the `do-yosys-canonicalize`, `do-yosys-stats` and `do-yosys` steps to be completed beforehand.
> **NOTE:** The synthesis stage requires the `do-yosys-canonicalize` and `do-yosys` steps to be completed beforehand.
> These steps are necessary to generate the required `.rtlil` file for the synthesis stage.
>
> ```bash
> source <orfs_path>/env.sh
>
> bazel run <target>_synth_deps -- <absolute_path>
> <absolute_path>/make do-yosys-canonicalize do-yosys-stats do-yosys do-synth
> <absolute_path>/make do-yosys-canonicalize do-yosys do-synth
> ```
### Override BUILD configuration variables
Expand Down Expand Up @@ -453,7 +453,7 @@ Let's assume we want to perform a `floorplan` stage for the `L1MetadataArray` de
bazel run @bazel-orfs//:L1MetadataArray_synth_deps -- `pwd`/build
# Build Synthesis stage for L1MetadataArray target using local ORFS
build/make do-yosys-canonicalize do-yosys-stats do-yosys do-synth
build/make do-yosys-canonicalize do-yosys do-synth
# Initialize dependencies for the Floorplan stage for L1MetadataArray target
bazel run @bazel-orfs//:L1MetadataArray_floorplan_deps -- `pwd`/build
Expand Down
1 change: 0 additions & 1 deletion openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@ def _yosys_impl(ctx):
"--old-file",
canon_output.path,
"yosys-dependencies",
"do-yosys-stats",
"do-yosys",
"do-synth",
],
Expand Down

0 comments on commit 380bb85

Please sign in to comment.