Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prim,ipgen] Fix up some hierarchies of fusesoc cores #25703

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hw/ip/prim/prim_mubi.core
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ filesets:
- lowrisc:prim:assert
- lowrisc:prim:buf
- lowrisc:prim:flop
- lowrisc:prim:mubi_pkg
files:
- rtl/prim_mubi_pkg.sv
- rtl/prim_mubi4_sender.sv
- rtl/prim_mubi4_sync.sv
- rtl/prim_mubi4_dec.sv
Expand Down
45 changes: 45 additions & 0 deletions hw/ip/prim/prim_mubi_pkg.core
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
CAPI=2:
# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
#
# ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------//
# PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND:
#
# util/design/gen-mubi.py
#
name: "lowrisc:prim:mubi_pkg:0.1"
description: "Multibit types and functions"
filesets:
files_rtl:
depend:
- lowrisc:prim:assert
files:
- rtl/prim_mubi_pkg.sv
file_type: systemVerilogSource

files_verilator_waiver:
depend:
# common waivers
- lowrisc:lint:common

files_ascentlint_waiver:
depend:
# common waivers
- lowrisc:lint:common
files:
- lint/prim_mubi.waiver
file_type: waiver

files_veriblelint_waiver:
depend:
# common waivers
- lowrisc:lint:common

targets:
default: &default_target
filesets:
- tool_verilator ? (files_verilator_waiver)
- tool_ascentlint ? (files_ascentlint_waiver)
- tool_veriblelint ? (files_veriblelint_waiver)
- files_rtl
2 changes: 1 addition & 1 deletion hw/ip/prim_generic/prim_generic_flash.core
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: "prim"
filesets:
files_rtl:
depend:
- lowrisc:ip:tlul
- lowrisc:tlul:headers
- lowrisc:prim:ram_1p
- "fileset_partner ? (partner:systems:ast_pkg)"
- "!fileset_partner ? (lowrisc:systems:ast_pkg)"
Expand Down
4 changes: 3 additions & 1 deletion hw/ip/tlul/adapter_sram.core
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ description: "TL-UL to SRAM adapter (device)"
filesets:
files_rtl:
depend:
- lowrisc:prim:util
- lowrisc:prim:assert
- lowrisc:prim:flop
- lowrisc:prim:sec_anchor
- lowrisc:prim:util
- lowrisc:tlul:common
files:
- rtl/tlul_sram_byte.sv
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/tlul/headers.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filesets:
depend:
- lowrisc:constants:top_pkg
- lowrisc:prim:secded
- lowrisc:prim:mubi
- lowrisc:prim:mubi_pkg
files:
- rtl/tlul_pkg.sv
file_type: systemVerilogSource
Expand Down
2 changes: 2 additions & 0 deletions hw/ip_templates/clkmgr/clkmgr_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ filesets:
- lowrisc:constants:top_pkg
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:prim:mubi
- lowrisc:tlul:headers
files:
- rtl/clkmgr_reg_pkg.sv
- rtl/clkmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
5 changes: 3 additions & 2 deletions hw/ip_templates/clkmgr/clkmgr_reg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:prim:subreg
- ${instance_vlnv("lowrisc:ip:clkmgr_pkg")}
files:
- rtl/clkmgr_reg_pkg.sv
- rtl/clkmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
1 change: 1 addition & 0 deletions hw/ip_templates/flash_ctrl/flash_ctrl_prim_reg_top.core
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ filesets:
files_rtl:
depend:
- lowrisc:ip_interfaces:flash_ctrl_pkg
- lowrisc:prim:subreg
files:
- rtl/flash_ctrl_prim_reg_top.sv
file_type: systemVerilogSource
Expand Down
1 change: 1 addition & 0 deletions hw/ip_templates/flash_ctrl/flash_ctrl_reg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/flash_ctrl_reg_pkg.sv
Expand Down
1 change: 1 addition & 0 deletions hw/ip_templates/pinmux/pinmux_reg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/pinmux_reg_pkg.sv
Expand Down
1 change: 1 addition & 0 deletions hw/ip_templates/pwrmgr/pwrmgr.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ filesets:
depend:
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg:0.1")}
- ${instance_vlnv("lowrisc:ip:pwrmgr_reg:0.1")}
- lowrisc:ip:rom_ctrl_pkg
- lowrisc:ip:rv_core_ibex_pkg
- lowrisc:ip:pwrmgr_component
file_type: systemVerilogSource
Expand Down
4 changes: 2 additions & 2 deletions hw/ip_templates/pwrmgr/pwrmgr_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ virtual:

filesets:
files_rtl:
depend:
- ${instance_vlnv("lowrisc:ip:pwrmgr_reg")}
% if wait_for_external_reset:
depend:
- lowrisc:ip:rom_ctrl_pkg
% endif
files:
- rtl/pwrmgr_reg_pkg.sv
- rtl/pwrmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
4 changes: 2 additions & 2 deletions hw/ip_templates/pwrmgr/pwrmgr_reg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg")}
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/pwrmgr_reg_pkg.sv
- rtl/pwrmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
3 changes: 2 additions & 1 deletion hw/ip_templates/rstmgr/rstmgr_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ filesets:
depend:
- lowrisc:ip_interfaces:alert_handler_reg
- lowrisc:ip_interfaces:pwrmgr_pkg
- ${instance_vlnv("lowrisc:ip:rstmgr_reg")}
- lowrisc:tlul:headers
files:
- rtl/rstmgr_reg_pkg.sv
- rtl/rstmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
5 changes: 3 additions & 2 deletions hw/ip_templates/rstmgr/rstmgr_reg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:prim:subreg
- ${instance_vlnv("lowrisc:ip:rstmgr_pkg")}
files:
- rtl/rstmgr_reg_pkg.sv
- rtl/rstmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
2 changes: 2 additions & 0 deletions hw/top_darjeeling/ip_autogen/clkmgr/clkmgr_pkg.core
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ filesets:
- lowrisc:constants:top_pkg
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:prim:mubi
- lowrisc:tlul:headers
files:
- rtl/clkmgr_reg_pkg.sv
- rtl/clkmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
5 changes: 3 additions & 2 deletions hw/top_darjeeling/ip_autogen/clkmgr/clkmgr_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:prim:subreg
- lowrisc:opentitan:top_darjeeling_clkmgr_pkg
files:
- rtl/clkmgr_reg_pkg.sv
- rtl/clkmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
1 change: 1 addition & 0 deletions hw/top_darjeeling/ip_autogen/pinmux/pinmux_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/pinmux_reg_pkg.sv
Expand Down
1 change: 1 addition & 0 deletions hw/top_darjeeling/ip_autogen/pwrmgr/pwrmgr.core
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ filesets:
depend:
- lowrisc:opentitan:top_darjeeling_pwrmgr_pkg:0.1
- lowrisc:opentitan:top_darjeeling_pwrmgr_reg:0.1
- lowrisc:ip:rom_ctrl_pkg
- lowrisc:ip:rv_core_ibex_pkg
- lowrisc:ip:pwrmgr_component
file_type: systemVerilogSource
Expand Down
2 changes: 1 addition & 1 deletion hw/top_darjeeling/ip_autogen/pwrmgr/pwrmgr_pkg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:opentitan:top_darjeeling_pwrmgr_reg
- lowrisc:ip:rom_ctrl_pkg
files:
- rtl/pwrmgr_reg_pkg.sv
- rtl/pwrmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
4 changes: 2 additions & 2 deletions hw/top_darjeeling/ip_autogen/pwrmgr/pwrmgr_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:opentitan:top_darjeeling_pwrmgr_pkg
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/pwrmgr_reg_pkg.sv
- rtl/pwrmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
3 changes: 2 additions & 1 deletion hw/top_darjeeling/ip_autogen/rstmgr/rstmgr_pkg.core
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ filesets:
depend:
- lowrisc:ip_interfaces:alert_handler_reg
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:opentitan:top_darjeeling_rstmgr_reg
- lowrisc:tlul:headers
files:
- rtl/rstmgr_reg_pkg.sv
- rtl/rstmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
5 changes: 3 additions & 2 deletions hw/top_darjeeling/ip_autogen/rstmgr/rstmgr_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:prim:subreg
- lowrisc:opentitan:top_darjeeling_rstmgr_pkg
files:
- rtl/rstmgr_reg_pkg.sv
- rtl/rstmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
2 changes: 2 additions & 0 deletions hw/top_earlgrey/ip_autogen/clkmgr/clkmgr_pkg.core
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ filesets:
- lowrisc:constants:top_pkg
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:prim:mubi
- lowrisc:tlul:headers
files:
- rtl/clkmgr_reg_pkg.sv
- rtl/clkmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
5 changes: 3 additions & 2 deletions hw/top_earlgrey/ip_autogen/clkmgr/clkmgr_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:prim:subreg
- lowrisc:opentitan:top_earlgrey_clkmgr_pkg
files:
- rtl/clkmgr_reg_pkg.sv
- rtl/clkmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ filesets:
files_rtl:
depend:
- lowrisc:ip_interfaces:flash_ctrl_pkg
- lowrisc:prim:subreg
files:
- rtl/flash_ctrl_prim_reg_top.sv
file_type: systemVerilogSource
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/ip_autogen/flash_ctrl/flash_ctrl_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/flash_ctrl_reg_pkg.sv
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/ip_autogen/pinmux/pinmux_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/pinmux_reg_pkg.sv
Expand Down
1 change: 1 addition & 0 deletions hw/top_earlgrey/ip_autogen/pwrmgr/pwrmgr.core
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ filesets:
depend:
- lowrisc:opentitan:top_earlgrey_pwrmgr_pkg:0.1
- lowrisc:opentitan:top_earlgrey_pwrmgr_reg:0.1
- lowrisc:ip:rom_ctrl_pkg
- lowrisc:ip:rv_core_ibex_pkg
- lowrisc:ip:pwrmgr_component
file_type: systemVerilogSource
Expand Down
3 changes: 1 addition & 2 deletions hw/top_earlgrey/ip_autogen/pwrmgr/pwrmgr_pkg.core
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ virtual:

filesets:
files_rtl:
depend:
- lowrisc:opentitan:top_earlgrey_pwrmgr_reg
files:
- rtl/pwrmgr_reg_pkg.sv
- rtl/pwrmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
4 changes: 2 additions & 2 deletions hw/top_earlgrey/ip_autogen/pwrmgr/pwrmgr_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:opentitan:top_earlgrey_pwrmgr_pkg
- lowrisc:prim:subreg
- lowrisc:tlul:headers
files:
- rtl/pwrmgr_reg_pkg.sv
- rtl/pwrmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
3 changes: 2 additions & 1 deletion hw/top_earlgrey/ip_autogen/rstmgr/rstmgr_pkg.core
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ filesets:
depend:
- lowrisc:ip_interfaces:alert_handler_reg
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:opentitan:top_earlgrey_rstmgr_reg
- lowrisc:tlul:headers
files:
- rtl/rstmgr_reg_pkg.sv
- rtl/rstmgr_pkg.sv
file_type: systemVerilogSource

Expand Down
5 changes: 3 additions & 2 deletions hw/top_earlgrey/ip_autogen/rstmgr/rstmgr_reg.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ virtual:
filesets:
files_rtl:
depend:
- lowrisc:tlul:headers
- lowrisc:ip:tlul
- lowrisc:prim:subreg
- lowrisc:opentitan:top_earlgrey_rstmgr_pkg
files:
- rtl/rstmgr_reg_pkg.sv
- rtl/rstmgr_reg_top.sv
file_type: systemVerilogSource

Expand Down
2 changes: 1 addition & 1 deletion util/design/data/prim_mubi.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ filesets:
- lowrisc:prim:assert
- lowrisc:prim:buf
- lowrisc:prim:flop
- lowrisc:prim:mubi_pkg
files:
- rtl/prim_mubi_pkg.sv
% for n in range(1, n_max_nibbles+1):
- rtl/prim_mubi${4*n}_sender.sv
- rtl/prim_mubi${4*n}_sync.sv
Expand Down
Loading
Loading