Skip to content

Commit

Permalink
[bazel,xbar_peri] Use new rules to describe IP
Browse files Browse the repository at this point in the history
This commit was generated by running
/home/pamaury/project/opentitan/util/rewrite_hw.py -v -g --root /home/pamaury/project/opentitan --no-regs --top hw/top_earlgrey hw/top_earlgrey/ip/xbar_peri

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Nov 12, 2024
1 parent db29abc commit 58f5795
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions hw/top_earlgrey/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ opentitan_top(
files = glob(["**"]),
hjson = "//hw/top_earlgrey/data:autogen/top_earlgrey.gen.hjson",
ips = [
"//hw/top_earlgrey/ip/xbar_peri",
"//hw/top_earlgrey/ip/xbar_main",
"//hw/top_earlgrey/ip/xbar",
"//hw/top_earlgrey/ip/sensor_ctrl",
Expand Down
2 changes: 1 addition & 1 deletion hw/top_earlgrey/ip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ filegroup(
"//hw/top_earlgrey/ip/sensor_ctrl",
"//hw/top_earlgrey/ip/xbar",
"//hw/top_earlgrey/ip/xbar_main",
"//hw/top_earlgrey/ip/xbar_peri:all_files",
"//hw/top_earlgrey/ip/xbar_peri",
"//hw/top_earlgrey/ip_autogen/alert_handler",
"//hw/top_earlgrey/ip_autogen/clkmgr",
"//hw/top_earlgrey/ip_autogen/flash_ctrl",
Expand Down
7 changes: 7 additions & 0 deletions hw/top_earlgrey/ip/xbar_peri/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

load("//rules/opentitan:hw.bzl", "opentitan_ip")

package(default_visibility = ["//visibility:public"])

filegroup(
Expand All @@ -10,3 +12,8 @@ filegroup(
"//hw/top_earlgrey/ip/xbar_peri/data:all_files",
],
)

opentitan_ip(
name = "xbar_peri",
files = glob(["**"]),
)

0 comments on commit 58f5795

Please sign in to comment.