Skip to content

Commit 24f46b6

Browse files
authored
Merge pull request #2761 from Pinata-Consulting/swerv_wrapper-bazel-orfs-cleaner-example
asap7/swerv_wrapper: improve example
2 parents 807c130 + 69c5eae commit 24f46b6

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

flow/designs/asap7/swerv_wrapper/BUILD.bazel

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@bazel-orfs//:openroad.bzl", "orfs_macro")
12
load("@bazel-orfs//:sweep.bzl", "orfs_sweep")
23
load("//util:plot_congestion.bzl", "plot_congestion")
34

@@ -9,6 +10,19 @@ SWEEPS = {
910

1011
SWEEP = "PLACE_DENSITY_LB_ADDON"
1112

13+
FAKERAMS = [
14+
"fakeram7_64x21",
15+
"fakeram7_256x34",
16+
"fakeram7_2048x39",
17+
]
18+
19+
[orfs_macro(
20+
name = top,
21+
lef = "lef/{}.lef".format(top),
22+
lib = "lib/{}.lib".format(top),
23+
module_top = top,
24+
) for top in FAKERAMS]
25+
1226
orfs_sweep(
1327
name = "swerv_wrapper",
1428
arguments = {
@@ -26,10 +40,9 @@ orfs_sweep(
2640
"PWR_NETS_VOLTAGEsS": "",
2741
"GND_NETS_VOLTAGES": "",
2842
},
43+
macros = FAKERAMS,
2944
other_variants = {"base": {}},
3045
sources = {
31-
"ADDITIONAL_LEFS": glob(include = ["lef/*.lef"]),
32-
"ADDITIONAL_LIBS": glob(include = ["lib/*.lib"]),
3346
"SDC_FILE": [":constraint.sdc"],
3447
},
3548
sweep = {

0 commit comments

Comments
 (0)