File tree Expand file tree Collapse file tree 24 files changed +31
-212
lines changed Expand file tree Collapse file tree 24 files changed +31
-212
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ filegroup(
14
14
name = "cores" ,
15
15
srcs = [
16
16
"check_tool_requirements.core" ,
17
+ "tool_requirements.py" ,
17
18
"topgen.core" ,
18
19
"topgen-reg-only.core" ,
20
+ "//util:check_tool_requirements.py" ,
19
21
],
20
22
)
21
23
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ string_list_flag(
35
35
fusesoc_build (
36
36
name = "verilator_real" ,
37
37
srcs = [
38
- ":all_files " ,
38
+ "//hw/top " ,
39
39
],
40
40
cores = [
41
41
"//:cores" ,
@@ -101,25 +101,6 @@ genrule(
101
101
visibility = ["//visibility:public" ],
102
102
)
103
103
104
- # TODO(lowRISC/opentitan#7972): Globbing all of the //hw/... hierarchy together
105
- # is a bit of a hack. Longer term, we need proper rules for expressing the
106
- # relationships between verilog components.
107
- filegroup (
108
- name = "all_files" ,
109
- srcs = glob (
110
- ["**" ],
111
- # TODO(lowRISC/opentitan#15882): make Verilator work with foundry repo present.
112
- exclude = ["foundry/**" ],
113
- ) + [
114
- "//:tool_requirements.py" ,
115
- "//hw/ip:all_files" ,
116
- "//hw/ip_templates:all_files" ,
117
- "//hw/top_earlgrey:all_files" ,
118
- "//util:check_tool_requirements.py" ,
119
- ],
120
- visibility = ["//visibility:public" ],
121
- )
122
-
123
104
pkg_files (
124
105
name = "package" ,
125
106
srcs = ["verilator_bin" ],
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ fusesoc_build(
40
40
name = "fpga_cw310" ,
41
41
testonly = True ,
42
42
srcs = [
43
- "//hw:all_files " ,
43
+ "//hw/top " ,
44
44
_CW310_TESTROM ,
45
45
_OTP_RMA ,
46
46
],
@@ -90,7 +90,7 @@ fusesoc_build(
90
90
name = "fpga_cw310_hyperdebug" ,
91
91
testonly = True ,
92
92
srcs = [
93
- "//hw:all_files " ,
93
+ "//hw/top " ,
94
94
_CW310_TESTROM ,
95
95
_OTP_RMA ,
96
96
],
@@ -140,7 +140,7 @@ fusesoc_build(
140
140
name = "fpga_cw340" ,
141
141
testonly = True ,
142
142
srcs = [
143
- "//hw:all_files " ,
143
+ "//hw/top " ,
144
144
_CW340_TESTROM ,
145
145
_OTP_RMA ,
146
146
],
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])
6
6
7
7
filegroup (
8
8
name = "all_files" ,
9
- srcs = glob (["**" ]),
9
+ srcs = glob (
10
+ ["**" ],
11
+ ),
10
12
)
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: Apache-2.0
4
4
5
5
package (default_visibility = ["//visibility:public" ])
6
-
7
- filegroup (
8
- name = "all_files" ,
9
- srcs = glob (["**" ]) + [
10
- "//hw/ip/adc_ctrl" ,
11
- "//hw/ip/aes" ,
12
- "//hw/ip/aon_timer" ,
13
- "//hw/ip/csrng" ,
14
- "//hw/ip/edn" ,
15
- "//hw/ip/entropy_src" ,
16
- "//hw/ip/gpio" ,
17
- "//hw/ip/hmac" ,
18
- "//hw/ip/i2c" ,
19
- "//hw/ip/keymgr" ,
20
- "//hw/ip/kmac" ,
21
- "//hw/ip/lc_ctrl" ,
22
- "//hw/ip/otbn:all_files" ,
23
- "//hw/ip/otp_ctrl" ,
24
- "//hw/ip/pattgen" ,
25
- "//hw/ip/pinmux:all_files" ,
26
- "//hw/ip/prim" ,
27
- "//hw/ip/prim_generic:all_files" ,
28
- "//hw/ip/prim_xilinx:all_files" ,
29
- "//hw/ip/prim_xilinx_ultrascale:all_files" ,
30
- "//hw/ip/pwm" ,
31
- "//hw/ip/rom_ctrl" ,
32
- "//hw/ip/rv_core_ibex" ,
33
- "//hw/ip/rv_dm" ,
34
- "//hw/ip/rv_timer" ,
35
- "//hw/ip/spi_device" ,
36
- "//hw/ip/spi_host" ,
37
- "//hw/ip/sram_ctrl" ,
38
- "//hw/ip/sysrst_ctrl" ,
39
- "//hw/ip/tlul" ,
40
- "//hw/ip/trial1:all_files" ,
41
- "//hw/ip/uart" ,
42
- "//hw/ip/usbdev" ,
43
- ],
44
- )
Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ load("//rules/opentitan:hw.bzl", "opentitan_ip")
6
6
7
7
package (default_visibility = ["//visibility:public" ])
8
8
9
- filegroup (
10
- name = "all_files" ,
11
- srcs = glob (["**" ]) + [
12
- ],
13
- )
14
-
15
9
opentitan_ip (
16
10
name = "prim" ,
17
11
doc = glob (["doc/**" ]),
Original file line number Diff line number Diff line change @@ -6,13 +6,6 @@ load("//rules/opentitan:hw.bzl", "opentitan_ip")
6
6
7
7
package (default_visibility = ["//visibility:public" ])
8
8
9
- filegroup (
10
- name = "all_files" ,
11
- srcs = glob (["**" ]) + [
12
- "//hw/ip/tlul/data:all_files" ,
13
- ],
14
- )
15
-
16
9
opentitan_ip (
17
10
name = "tlul" ,
18
11
doc = glob (["doc/**" ]),
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: Apache-2.0
4
4
5
5
package (default_visibility = ["//visibility:public" ])
6
-
7
- filegroup (
8
- name = "all_files" ,
9
- srcs = glob (["**" ]) + [
10
- "//hw/ip_templates/clkmgr:all_files" ,
11
- "//hw/ip_templates/flash_ctrl:all_files" ,
12
- "//hw/ip_templates/pwrmgr:all_files" ,
13
- "//hw/ip_templates/rstmgr:all_files" ,
14
- ],
15
- )
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])
6
6
7
7
filegroup (
8
8
name = "all_files" ,
9
- srcs = glob (["**" ]),
9
+ srcs = glob (
10
+ ["**" ],
11
+ ),
10
12
)
Original file line number Diff line number Diff line change @@ -70,19 +70,19 @@ opentitan_top(
70
70
],
71
71
rtl = glob ([
72
72
"*.core" ,
73
- "dv/**" ,
74
73
"rtl/**" ,
75
74
"lint/**" ,
76
- ]),
77
- )
78
-
79
- filegroup (
80
- name = "all_files" ,
81
- srcs = glob (["**" ]) + [
75
+ "util/**" ,
76
+ ]) + [
77
+ "//:cores" , # FIXME move those files somewhere else?
78
+ "//hw/dv:all_files" ,
79
+ "//hw/lint:all_files" ,
80
+ "//hw/top_earlgrey/dv:all_files" ,
81
+ "//hw/vendor:all_files" ,
82
+ # The following will be moved to a proper IP when the pinmux port to ipgen is complete.
83
+ "//hw/ip/pinmux:all_files" ,
82
84
"//hw/top_earlgrey/data:all_files" ,
83
- "//hw/top_earlgrey/dv/verilator:all_files" ,
84
- "//hw/top_earlgrey/ip:all_files" ,
85
- "//hw/top_earlgrey/sw:all_files" ,
85
+ "//hw/top_earlgrey/ip/pinmux:all_files" ,
86
86
],
87
87
)
88
88
Original file line number Diff line number Diff line change 4
4
5
5
package (default_visibility = ["//visibility:public" ])
6
6
7
+ filegroup (
8
+ name = "all_files" ,
9
+ srcs = glob (["**" ]),
10
+ )
11
+
7
12
filegroup (
8
13
name = "config" ,
9
14
srcs = [
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ load("//rules/opentitan:hw.bzl", "opentitan_ip")
6
6
7
7
package (default_visibility = ["//visibility:public" ])
8
8
9
- filegroup (
10
- name = "all_files" ,
11
- srcs = glob (["**" ]) + [
12
- ],
13
- )
14
-
15
9
opentitan_ip (
16
10
name = "xbar" ,
17
11
doc = glob (["doc/**" ]),
Original file line number Diff line number Diff line change @@ -6,13 +6,6 @@ load("//rules/opentitan:hw.bzl", "opentitan_ip")
6
6
7
7
package (default_visibility = ["//visibility:public" ])
8
8
9
- filegroup (
10
- name = "all_files" ,
11
- srcs = glob (["**" ]) + [
12
- "//hw/top_earlgrey/ip/xbar_main/data:all_files" ,
13
- ],
14
- )
15
-
16
9
opentitan_ip (
17
10
name = "xbar_main" ,
18
11
doc = glob (["doc/**" ]),
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,13 +6,6 @@ load("//rules/opentitan:hw.bzl", "opentitan_ip")
6
6
7
7
package (default_visibility = ["//visibility:public" ])
8
8
9
- filegroup (
10
- name = "all_files" ,
11
- srcs = glob (["**" ]) + [
12
- "//hw/top_earlgrey/ip/xbar_peri/data:all_files" ,
13
- ],
14
- )
15
-
16
9
opentitan_ip (
17
10
name = "xbar_peri" ,
18
11
doc = glob (["doc/**" ]),
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,8 +21,3 @@ ld_library(
21
21
name = "top_earlgrey_memory" ,
22
22
includes = ["top_earlgrey_memory.ld" ],
23
23
)
24
-
25
- filegroup (
26
- name = "all_files" ,
27
- srcs = glob (["**" ]),
28
- )
Original file line number Diff line number Diff line change @@ -6,13 +6,8 @@ load("@rules_rust//rust:defs.bzl", "rust_library")
6
6
7
7
package (default_visibility = ["//visibility:public" ])
8
8
9
- filegroup (
10
- name = "all_files" ,
11
- srcs = glob (["**" ]),
12
- )
13
-
14
9
rust_library (
15
10
name = "top_earlgrey" ,
16
- srcs = [ ":all_files" ] ,
11
+ srcs = glob ([ "*.rs" ]) ,
17
12
crate_root = "mod.rs" ,
18
13
)
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ package(default_visibility = ["//visibility:public"])
6
6
7
7
filegroup (
8
8
name = "all_files" ,
9
- srcs = glob (["**" ]),
9
+ srcs = glob (
10
+ ["**" ],
11
+ ),
10
12
)
You can’t perform that action at this time.
0 commit comments