[rv_plic] Clean up core files
* Only depend primitives which we actually need.
* Depend on the tlul code (which is used in the SV files produced by
reggen) in the core which actually includes the relevant source files.
* Improve the description of core files a bit.
Signed-off-by: Philipp Wagner <phw@lowrisc.org>
diff --git a/hw/ip/rv_plic/rv_plic.core b/hw/ip/rv_plic/rv_plic.core
index ecb895f..ad35701 100644
--- a/hw/ip/rv_plic/rv_plic.core
+++ b/hw/ip/rv_plic/rv_plic.core
@@ -3,25 +3,25 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: "lowrisc:ip:rv_plic_example:0.1"
-description: "RISC-V PLIC"
+description: "RISC-V Platform Interrupt Controller (PLIC)"
filesets:
files_rtl:
depend:
- lowrisc:ip:rv_plic_component
+ - lowrisc:ip:tlul
+ - lowrisc:prim:subreg
files:
- rtl/rv_plic_reg_pkg.sv
- rtl/rv_plic_reg_top.sv
- rtl/rv_plic.sv
file_type: systemVerilogSource
-
parameters:
SYNTHESIS:
datatype: bool
paramtype: vlogdefine
-
targets:
default: &default_target
filesets:
@@ -38,6 +38,3 @@
mode: lint-only
verilator_options:
- "-Wall"
-
-
-
diff --git a/hw/ip/rv_plic/rv_plic_component.core b/hw/ip/rv_plic/rv_plic_component.core
index c207fbd..3e5f71b 100644
--- a/hw/ip/rv_plic/rv_plic_component.core
+++ b/hw/ip/rv_plic/rv_plic_component.core
@@ -3,13 +3,12 @@
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: "lowrisc:ip:rv_plic_component:0.1"
-description: "RISC-V PLIC component without the CSRs"
+description: "RISC-V Platform Interrupt Controller (PLIC)"
filesets:
files_rtl:
depend:
- - lowrisc:ip:tlul
- - lowrisc:prim:all
+ - lowrisc:prim:assert
files:
- rtl/rv_plic_gateway.sv
- rtl/rv_plic_target.sv
@@ -46,4 +45,3 @@
- tool_ascentlint ? (files_ascentlint_waiver)
- tool_veriblelint ? (files_veriblelint_waiver)
- files_rtl
-