Skip to content

Commit 571d93f

Browse files
authored
Merge branch 'The-OpenROAD-Project:master' into at-cts-buf-distance
2 parents 8ac00ef + 38f93c6 commit 571d93f

File tree

6 files changed

+34
-62
lines changed

6 files changed

+34
-62
lines changed

flow/MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bazel_dep(name = "bazel-orfs")
1111
# To bump version, run: bazelisk run @bazel-orfs//:bump
1212
git_override(
1313
module_name = "bazel-orfs",
14-
commit = "9b00feceb3f2d695787c45708131a5e39e30d08e",
14+
commit = "126765508161956f8f82ae169084da0235230637",
1515
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
1616
)
1717

@@ -61,7 +61,7 @@ orfs.default(
6161
# and update "image" to point to the local image.
6262

6363
# Official image https://hub.docker.com/r/openroad/orfs/tags
64-
image = "docker.io/openroad/orfs:v3.0-2784-g6bb4f353",
64+
image = "docker.io/openroad/orfs:v3.0-2883-ge22e4fc7",
6565
# Use local files instead of docker image
6666
makefile = "//:makefile",
6767
makefile_yosys = "//:makefile_yosys",
@@ -79,7 +79,7 @@ orfs.default(
7979
# bazelisk build -c opt :openroad
8080
openroad = "//test:openroad",
8181
pdk = "//:asap7",
82-
sha256 = "67535c7e4a1bdf6adc98eebc3a17988c80674760293887447e750dd526fe6427",
82+
sha256 = "6ad0b1b7fbf290f33f0050ead4da181c83c6e8a9337b65f5f9cff65d67788424",
8383
)
8484
use_repo(orfs, "com_github_nixos_patchelf_download")
8585
use_repo(orfs, "docker_orfs")

flow/MODULE.bazel.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flow/designs/asap7/gcd/BUILD

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
load("@bazel-orfs//:openroad.bzl", "orfs_flow")
2+
3+
orfs_flow(
4+
name = "gcd",
5+
arguments = {
6+
# Faster builds
7+
"SKIP_INCREMENTAL_REPAIR": "1",
8+
"GPL_TIMING_DRIVEN": "0",
9+
"SKIP_LAST_GASP": "1",
10+
# Various
11+
"DIE_AREA": "0 0 16.2 16.2",
12+
"CORE_AREA": "1.08 1.08 15.12 15.12",
13+
"PLACE_DENSITY": "0.35",
14+
},
15+
sources = {
16+
"RULES_JSON": [":rules-base.json"],
17+
"SDC_FILE": [":constraint.sdc"],
18+
},
19+
verilog_files = ["//designs/src/gcd:verilog"],
20+
tags = ["manual"],
21+
)

flow/designs/asap7/gcd/BUILD.bazel

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

flow/util/genReportTable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
args = parser.parse_args()
5252

5353
goldFilename = f"metadata-{args.variant}-ok.json"
54-
runFilename = f"metadata-{args.variant}.json"
54+
runFilename = f"metadata.json"
5555

5656

5757
def readMetrics(fname, justLoad=False):

flow/util/uploadMetadata.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
args = parser.parse_args()
3232

3333

34-
def upload_data(db, datafile, platform, design, variant, args, rules):
34+
def upload_data(db, dataFile, platform, design, variant, args, rules):
3535
# Set the document data
3636
key = args.commitSHA + "-" + platform + "-" + design + "-" + variant
3737
doc_ref = db.collection("build_metrics").document(key)
@@ -166,9 +166,7 @@ def upload_data(db, datafile, platform, design, variant, args, rules):
166166
raise Exception(f"Failed to upload data for {platform} {design} {variant}.")
167167

168168

169-
def get_rules(platform, design, variant):
170-
runFilename = f"rules-{variant}.json"
171-
dataFile = os.path.join("designs", platform, design, runFilename)
169+
def get_rules(dataFile):
172170
data = {}
173171
if os.path.exists(dataFile):
174172
with open(dataFile) as f:
@@ -182,7 +180,7 @@ def get_rules(platform, design, variant):
182180
# Initialize Firestore client
183181
db = firestore.client()
184182

185-
runFilename = f"metadata-{args.variant}.json"
183+
RUN_FILENAME = "metadata.json"
186184

187185
for reportDir, dirs, files in sorted(os.walk("reports", topdown=False)):
188186
dirList = reportDir.split(os.sep)
@@ -193,14 +191,14 @@ def get_rules(platform, design, variant):
193191
platform = dirList[1]
194192
design = dirList[2]
195193
variant = dirList[3]
196-
dataFile = os.path.join(reportDir, runFilename)
194+
dataFile = os.path.join(reportDir, RUN_FILENAME)
197195
if not os.path.exists(dataFile):
198196
print(f"[WARN] No data file for {platform} {design} {variant}.")
199197
continue
200198
if platform == "sky130hd_fakestack" or platform == "src":
201199
print(f"[WARN] Skiping upload {platform} {design} {variant}.")
202200
continue
203201
print(f"[INFO] Get rules for {platform} {design} {variant}.")
204-
rules = get_rules(platform, design, variant)
202+
rules = get_rules(os.path.join("designs", platform, design, RUN_FILENAME))
205203
print(f"[INFO] Upload data for {platform} {design} {variant}.")
206204
upload_data(db, dataFile, platform, design, variant, args, rules)

0 commit comments

Comments
 (0)