blob: c5be0f5d17c588de1f6c50770f010ea81e508df7 [file] [log] [blame]
Chris Frantz340e6232021-08-25 15:56:28 -07001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
Chris Frantz6da32ea2021-11-22 13:12:08 -08004
5load("//rules:fusesoc.bzl", "fusesoc_build")
6
7package(default_visibility = ["//visibility:public"])
8
9fusesoc_build(
10 name = "verilator",
11 srcs = [
12 ":all_files",
13 ],
14 cores = [
15 "//:cores",
16 ],
Chris Frantz96e00542021-12-15 13:21:15 -080017 data = ["//hw/ip/otbn:all_files"],
Chris Frantz6da32ea2021-11-22 13:12:08 -080018 systems = ["lowrisc:dv:chip_verilator_sim"],
19 target = "sim",
20)
21
Chris Frantz0b548fa2021-11-22 14:08:11 -080022# TODO(lowRISC/opentitan#7972): Globbing all of the //hw/... hierarchy together
23# is a bit of a hack. Longer term, we need proper rules for expressing the
24# relationships between verilog components.
Chris Frantz6da32ea2021-11-22 13:12:08 -080025filegroup(
26 name = "all_files",
27 srcs = glob(["**"]) + [
28 "//hw/ip:all_files",
29 "//hw/top_earlgrey:all_files",
30 ],
31)