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 Oct 29, 2024
1 parent deaa683 commit c18ba4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/top_earlgrey/ip/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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
13 changes: 13 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,14 @@ filegroup(
"//hw/top_earlgrey/ip/xbar_peri/data:all_files",
],
)

opentitan_ip(
name = "xbar_peri",
doc = glob(["doc/**"]),
rtl = glob([
"dv/**",
"rtl/**",
"lint/**",
"*.core",
]),
)

0 comments on commit c18ba4b

Please sign in to comment.