-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexternal.BUILD.bazel
More file actions
52 lines (47 loc) · 1.32 KB
/
external.BUILD.bazel
File metadata and controls
52 lines (47 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
_EXCLUDE = [
"rtl/memory/axi_memory_model.v", # simulation only
"rtl/memory/memory_controller_wrapper.v", # FPGA stubs
]
# All synthesizable RTL
filegroup(
name = "rtl",
srcs = glob(["rtl/**/*.v"], exclude = _EXCLUDE),
visibility = ["//visibility:public"],
)
# mac_pe only (leaf macro)
filegroup(
name = "mac_pe_rtl",
srcs = ["rtl/core/mac_pe.v"],
visibility = ["//visibility:public"],
)
# systolic_array — excludes mac_pe (provided as macro)
filegroup(
name = "systolic_array_rtl",
srcs = glob(["rtl/**/*.v"], exclude = _EXCLUDE + ["rtl/core/mac_pe.v"]),
visibility = ["//visibility:public"],
)
# TPC and above — excludes mac_pe and systolic_array (both provided as macros)
filegroup(
name = "tpc_rtl",
srcs = glob(
["rtl/**/*.v"],
exclude = _EXCLUDE + [
"rtl/core/mac_pe.v",
"rtl/core/systolic_array.v",
],
),
visibility = ["//visibility:public"],
)
# Top-level — excludes mac_pe, systolic_array, and TPC (all provided as macros)
filegroup(
name = "top_rtl",
srcs = glob(
["rtl/**/*.v"],
exclude = _EXCLUDE + [
"rtl/core/mac_pe.v",
"rtl/core/systolic_array.v",
"rtl/top/tensor_processing_cluster.v",
],
),
visibility = ["//visibility:public"],
)