Skip to content

Commit 328b41b

Browse files
committed
bazel: clean up top level folder
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent f189531 commit 328b41b

File tree

3 files changed

+66
-73
lines changed

3 files changed

+66
-73
lines changed

flow/BUILD.bazel

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
load("@bazel-orfs//:openroad.bzl", "orfs_flow")
2+
3+
filegroup(
4+
name = "constraints-swerv",
5+
srcs = [
6+
"designs/asap7/swerv_wrapper/constraint.sdc",
7+
],
8+
visibility = [":__subpackages__"],
9+
)
10+
11+
filegroup(
12+
name = "additional_lefs",
13+
srcs = glob(include = ["designs/asap7/swerv_wrapper/lef/*.lef"]),
14+
)
15+
16+
filegroup(
17+
name = "additional_libs",
18+
srcs = glob(include = ["designs/asap7/swerv_wrapper/lib/*.lib"]),
19+
)
20+
21+
all_sources = [
22+
":additional_lefs",
23+
":additional_libs",
24+
]
25+
26+
orfs_flow(
27+
name = "swerv_wrapper",
28+
arguments = {
29+
"LIB_MODEL": "CCS",
30+
"SYNTH_HIERARCHICAL": "1",
31+
"RTLMP_MAX_INST": "30000",
32+
"RTLMP_MIN_INST": "5000",
33+
"RTLMP_MAX_MACRO": "30",
34+
"RTLMP_MIN_MACRO": "4",
35+
"DIE_AREA": "0 0 550 600",
36+
"CORE_AREA": "5 5 545 595",
37+
"PLACE_PINS_ARGS": "-exclude left:* -exclude right:*",
38+
"PLACE_PINS_ARGS": "-exclude left:* -exclude right:*",
39+
"PLACE_DENSITY_LB_ADDON": "0.20",
40+
"TNS_END_PERCENT": "100",
41+
"PWR_NETS_VOLTAGEsS": "",
42+
"GND_NETS_VOLTAGES": "",
43+
},
44+
sources = {
45+
"ADDITIONAL_LEFS": ":additional_lefs",
46+
"ADDITIONAL_LIBS": ":additional_libs",
47+
"SDC_FILE": ":constraints-swerv",
48+
},
49+
stage_sources = {
50+
"synth": all_sources,
51+
"floorplan": all_sources,
52+
"place": all_sources,
53+
"cts": all_sources,
54+
"route": all_sources,
55+
"final": all_sources,
56+
},
57+
verilog_files = [
58+
"macros.v",
59+
"//designs/src/swerv_wrapper:verilog",
60+
],
61+
)

flow/designs/src/swerv/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)