Skip to content

Commit 27d9727

Browse files
committed
Merge branch 'master' into flow-mpl-related-vars
Signed-off-by: Arthur Koucher <[email protected]>
2 parents 2662904 + 8bdaf88 commit 27d9727

File tree

108 files changed

+8449
-7391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+8449
-7391
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: ORFS variables.yaml tester and linter
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
docs-test-job:
8+
name: 'Tests for variables.yaml'
9+
if: github.event_name == 'pull_request' || github.event_name == 'push'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
- name: Run generate-variables-docs.py
15+
run: |
16+
python3 flow/scripts/generate-variables-docs.py
17+
- name: Check if FlowVariables.md is up to date
18+
run: |
19+
git diff --exit-code docs/user/FlowVariables.md
20+
- name: Run yamlfix check
21+
run: |
22+
pip install yamlfix==1.17.0
23+
yamlfix -c yamlfix.toml flow/scripts/variables.yaml --check

docs/user/FlowVariables.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ configuration file.
238238
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
239239
- [PDN_TCL](#PDN_TCL)
240240
- [PLACE_DENSITY](#PLACE_DENSITY)
241+
- [PLACE_DENSITY_LB_ADDON](#PLACE_DENSITY_LB_ADDON)
241242
- [PLACE_PINS_ARGS](#PLACE_PINS_ARGS)
242243
- [PLACE_SITE](#PLACE_SITE)
243244
- [REMOVE_ABC_BUFFERS](#REMOVE_ABC_BUFFERS)
@@ -282,6 +283,7 @@ configuration file.
282283
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
283284
- [MIN_ROUTING_LAYER](#MIN_ROUTING_LAYER)
284285
- [PLACE_DENSITY](#PLACE_DENSITY)
286+
- [PLACE_DENSITY_LB_ADDON](#PLACE_DENSITY_LB_ADDON)
285287
- [PLACE_PINS_ARGS](#PLACE_PINS_ARGS)
286288
- [ROUTING_LAYER_ADJUSTMENT](#ROUTING_LAYER_ADJUSTMENT)
287289
- [SKIP_REPORT_METRICS](#SKIP_REPORT_METRICS)
@@ -387,7 +389,6 @@ configuration file.
387389
- [KLAYOUT_TECH_FILE](#KLAYOUT_TECH_FILE)
388390
- [LIB_FILES](#LIB_FILES)
389391
- [MACRO_EXTENSION](#MACRO_EXTENSION)
390-
- [PLACE_DENSITY_LB_ADDON](#PLACE_DENSITY_LB_ADDON)
391392
- [PLATFORM](#PLATFORM)
392393
- [PRESERVE_CELLS](#PRESERVE_CELLS)
393394
- [PROCESS](#PROCESS)

etc/DependencyInstaller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _installCommon() {
2929
source /opt/rh/rh-python38/enable
3030
set -u
3131
fi
32-
local pkgs="pandas numpy firebase_admin click pyyaml"
32+
local pkgs="pandas numpy firebase_admin click pyyaml yamlfix"
3333
if [[ $(id -u) == 0 ]]; then
3434
pip3 install --no-cache-dir -U $pkgs
3535
else

flow/BUILD.bazel

Lines changed: 0 additions & 263 deletions
This file was deleted.

flow/MODULE.bazel

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""ORFS bazel setup."""
2+
13
module(
24
name = "orfs",
35
version = "0.0.1",
@@ -7,7 +9,7 @@ module(
79
bazel_dep(name = "bazel-orfs")
810
git_override(
911
module_name = "bazel-orfs",
10-
commit = "b12fc7a172d4211315ec36214f872595e084ab25",
12+
commit = "f11fbdb35eeae7f8d5e08a58fb7d040f11cb9f04",
1113
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1214
)
1315

@@ -22,3 +24,38 @@ git_override(
2224
# module_name = "bazel-orfs", path = "../bazel-orfs"
2325
#)
2426

27+
bazel_dep(name = "rules_python", version = "0.31.0")
28+
29+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
30+
python.toolchain(
31+
ignore_root_user_error = True,
32+
python_version = "3.12",
33+
)
34+
35+
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
36+
pip.parse(
37+
hub_name = "orfs-pip",
38+
python_version = "3.12",
39+
requirements_lock = "//:util/requirements_lock.txt",
40+
)
41+
use_repo(pip, "orfs-pip")
42+
43+
orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
44+
orfs.default(
45+
# To build an ORFS image from a PR:
46+
# ./build_openroad.sh --latest
47+
#
48+
# Check out the PRs and modify the local repository as needed
49+
# ./build_openroad.sh --no_init
50+
#
51+
# docker tag docker.io/openroad/flow-ubuntu22.04-builder:c46d41 gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41
52+
# docker push gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41
53+
# image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:c46d41",
54+
#
55+
# Official image https://hub.docker.com/r/openroad/orfs/tags
56+
image = "docker.io/openroad/orfs:v3.0-2130-g6b38aeeb",
57+
# image = "gcr.io/ascenium/orfs-megaboom/flow-ubuntu22.04-builder:3d2c3d-2",
58+
sha256 = "f5b573d244862bc59f858e2a3586c48aef70989e98f6541099bd15a720e28e7e",
59+
)
60+
use_repo(orfs, "com_github_nixos_patchelf_download")
61+
use_repo(orfs, "docker_orfs")

0 commit comments

Comments
 (0)