Chris Frantz | 340e623 | 2021-08-25 15:56:28 -0700 | [diff] [blame] | 1 | # Copyright lowRISC contributors. |
| 2 | # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
Chris Frantz | 6da32ea | 2021-11-22 13:12:08 -0800 | [diff] [blame] | 4 | |
| 5 | load("//rules:fusesoc.bzl", "fusesoc_build") |
| 6 | |
| 7 | package(default_visibility = ["//visibility:public"]) |
| 8 | |
| 9 | fusesoc_build( |
| 10 | name = "verilator", |
| 11 | srcs = [ |
| 12 | ":all_files", |
| 13 | ], |
| 14 | cores = [ |
| 15 | "//:cores", |
| 16 | ], |
Chris Frantz | 96e0054 | 2021-12-15 13:21:15 -0800 | [diff] [blame] | 17 | data = ["//hw/ip/otbn:all_files"], |
Chris Frantz | 6da32ea | 2021-11-22 13:12:08 -0800 | [diff] [blame] | 18 | systems = ["lowrisc:dv:chip_verilator_sim"], |
| 19 | target = "sim", |
| 20 | ) |
| 21 | |
Chris Frantz | 0b548fa | 2021-11-22 14:08:11 -0800 | [diff] [blame] | 22 | # 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 Frantz | 6da32ea | 2021-11-22 13:12:08 -0800 | [diff] [blame] | 25 | filegroup( |
| 26 | name = "all_files", |
| 27 | srcs = glob(["**"]) + [ |
| 28 | "//hw/ip:all_files", |
| 29 | "//hw/top_earlgrey:all_files", |
| 30 | ], |
| 31 | ) |