Skip to content

Commit 1f68a9c

Browse files
committed
bazel: add PLACE_DENSITY sweep for asap7/gcd
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent abf5056 commit 1f68a9c

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

flow/designs/asap7/gcd/BUILD.bazel

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
load("@bazel-orfs//:sweep.bzl", "orfs_sweep")
2+
load("//util:plot_congestion.bzl", "plot_congestion")
3+
4+
# Format densities, rounding to 2 decimal places.
5+
SWEEPS = {
6+
"PLACE_DENSITY": [str(0.35 + x * 0.01 + 0.005)[:4] for x in range(65)],
7+
"CORE_UTILIZATION": [str(40 + x * 5) for x in range(4)],
8+
}
9+
10+
SWEEP = "PLACE_DENSITY"
11+
12+
orfs_sweep(
13+
name = "gcd",
14+
arguments = {
15+
# Faster builds
16+
"SKIP_INCREMENTAL_REPAIR": "1",
17+
"GPL_TIMING_DRIVEN": "0",
18+
"SKIP_LAST_GASP": "1",
19+
# Various
20+
"DIE_AREA": "0 0 16.2 16.2",
21+
"CORE_AREA": "1.08 1.08 15.12 15.12",
22+
"PLACE_DENSITY": "0.35",
23+
"SDC_FILE": "$(location :constraint.sdc)",
24+
},
25+
other_variants = {"base": {}},
26+
sources = {
27+
"SDC_FILE": [":constraint.sdc"],
28+
},
29+
sweep = {
30+
value: {
31+
"arguments": {
32+
SWEEP: value,
33+
},
34+
"previous_stage": {
35+
"floorplan": "gcd_synth",
36+
},
37+
}
38+
for value in SWEEPS[SWEEP]
39+
},
40+
verilog_files = ["//designs/src/gcd:verilog"],
41+
)
42+
43+
plot_congestion(
44+
name = "plot",
45+
srcs = [":gcd_{value}_grt".format(value = value) for value in SWEEPS[SWEEP]],
46+
argument = SWEEP,
47+
values = SWEEPS[SWEEP],
48+
)

flow/designs/asap7/gcd/config.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NAME)/constr
77

88
export DIE_AREA = 0 0 16.2 16.2
99
export CORE_AREA = 1.08 1.08 15.12 15.12
10+
# The goal of this design is to have a smoketest that builds quickly,
11+
# that said, this design will go through grt with a 0.99 placement density.
1012
export PLACE_DENSITY = 0.35
1113

1214
# a smoketest for this option, there are a

flow/designs/src/gcd/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
filegroup(
2+
name = "verilog",
3+
srcs = glob(include = ["*.v"]),
4+
visibility = ["//visibility:public"],
5+
)

0 commit comments

Comments
 (0)