Skip to content

Commit

Permalink
[tools,ipgen] Improve VLNV renaming
Browse files Browse the repository at this point in the history
Fixes lowRISC#26540

Signed-off-by: Guillermo Maturana <[email protected]>
  • Loading branch information
matutem committed Mar 6, 2025
1 parent 334dea2 commit e379f24
Show file tree
Hide file tree
Showing 259 changed files with 783 additions and 609 deletions.
2 changes: 1 addition & 1 deletion hw/dv/sv/flash_phy_prim_agent/flash_phy_prim_agent.core
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ filesets:
depend:
- lowrisc:dv:dv_utils
- lowrisc:dv:dv_lib
- lowrisc:ip_interfaces:flash_ctrl_pkg
- lowrisc:virtual_ip:flash_ctrl_pkg
files:
- flash_phy_prim_if.sv
- flash_phy_prim_agent_pkg.sv
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/keymgr/keymgr.core
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ filesets:
- lowrisc:prim:sec_anchor
- lowrisc:prim:secded
- lowrisc:prim:sparse_fsm
- lowrisc:ip_interfaces:flash_ctrl_pkg
- lowrisc:virtual_ip:flash_ctrl_pkg
- lowrisc:ip:keymgr_pkg
- lowrisc:ip:kmac_pkg
- lowrisc:ip:otp_ctrl_pkg
Expand Down
4 changes: 2 additions & 2 deletions hw/ip/lc_ctrl/lc_ctrl.core
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ filesets:
- lowrisc:prim:sparse_fsm
- lowrisc:ip:lc_ctrl_pkg
- lowrisc:ip:tlul
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:virtual_ip:pwrmgr_pkg
- lowrisc:ip:otp_ctrl_pkg
- lowrisc:ip:kmac_pkg
- lowrisc:ip:rv_dm
- lowrisc:ip_interfaces:alert_handler_pkg
- lowrisc:virtual_ip:alert_handler_pkg
files:
- rtl/lc_ctrl_regs_reg_top.sv
- rtl/lc_ctrl_dmi_reg_top.sv
Expand Down
4 changes: 2 additions & 2 deletions hw/ip/prim_generic/prim_generic_flash.core
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ filesets:
- lowrisc:prim:ram_1p
- "fileset_partner ? (partner:systems:ast_pkg)"
- "!fileset_partner ? (lowrisc:systems:ast_pkg)"
- lowrisc:ip_interfaces:flash_ctrl_pkg
- lowrisc:ip_interfaces:flash_ctrl_prim_reg_top
- lowrisc:virtual_ip:flash_ctrl_pkg
- lowrisc:virtual_ip:flash_ctrl_prim_reg_top
files:
- rtl/prim_generic_flash_bank.sv
- rtl/prim_generic_flash.sv
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/soc_dbg_ctrl/soc_dbg_ctrl.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filesets:
- lowrisc:prim:all
- lowrisc:ip:tlul
- lowrisc:ip:soc_dbg_ctrl_pkg
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:virtual_ip:pwrmgr_pkg
- lowrisc:ip:lc_ctrl_pkg
files:
- rtl/soc_dbg_ctrl_reg_pkg.sv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "module_instance_name"
desc: "instance name in case there are multiple AC Range Check instances"
Expand Down
2 changes: 1 addition & 1 deletion hw/ip_templates/alert_handler/alert_handler_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAPI=2:
name: ${instance_vlnv(f"lowrisc:ip:{module_instance_name}_pkg:0.1")}
description: "Alert Handler constants in packages"
virtual:
- "lowrisc:ip_interfaces:${module_instance_name}_pkg"
- "lowrisc:virtual_ip:${module_instance_name}_pkg"

filesets:
files_rtl:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "n_alerts"
desc: "Number of alert sources"
Expand Down
2 changes: 1 addition & 1 deletion hw/ip_templates/clkmgr/clkmgr.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ filesets:
files_rtl:
depend:
- lowrisc:ip:lc_ctrl_pkg
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg", pwrmgr_vlnv_prefix)}
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg")}
- lowrisc:ip:tlul
- lowrisc:prim:all
- lowrisc:prim:buf
Expand Down
4 changes: 2 additions & 2 deletions hw/ip_templates/clkmgr/clkmgr_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ 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
name: ${instance_vlnv("lowrisc:systems:clkmgr_pkg:0.1")}
name: ${instance_vlnv("lowrisc:ip:clkmgr_pkg:0.1")}
description: "Top specific clock manager package"
virtual:
- lowrisc:ip_interfaces:clkmgr_pkg
- lowrisc:virtual_ip:clkmgr_pkg

filesets:
files_rtl:
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/clkmgr/data/clkmgr.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "src_clks"
desc: "The source clocks"
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/flash_ctrl/data/flash_ctrl.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "banks"
desc: "Number of banks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ filesets:
- lowrisc:dv:crypto_dpi_prince:0.1
- lowrisc:dv:crypto_dpi_present:0.1
- lowrisc:prim:secded:0.1
- ${instance_vlnv("lowrisc:ip_interfaces:flash_ctrl_pkg")}
- ${instance_vlnv("lowrisc:ip:flash_ctrl_pkg")}
- lowrisc:dv:mem_bkdr_util
files:
- flash_ctrl_bkdr_util_pkg.sv
Expand Down
4 changes: 2 additions & 2 deletions hw/ip_templates/flash_ctrl/flash_ctrl_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ CAPI=2:
name: ${instance_vlnv("lowrisc:ip:flash_ctrl_pkg:0.1")}
description: "Top specific flash package"
virtual:
- lowrisc:ip_interfaces:flash_ctrl_pkg
- lowrisc:virtual_ip:flash_ctrl_pkg

filesets:
files_rtl:
depend:
- ${top_pkg_vlnv}
- lowrisc:prim:util
- lowrisc:ip:lc_ctrl_pkg
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg", pwrmgr_vlnv_prefix)}
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg")}
- lowrisc:ip:jtag_pkg
- lowrisc:ip:edn_pkg
- lowrisc:tlul:headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAPI=2:
name: ${instance_vlnv("lowrisc:ip:flash_ctrl_prim_reg_top:1.0")}
description: "Generic register top for the FLASH wrapper"
virtual:
- lowrisc:ip_interfaces:flash_ctrl_prim_reg_top
- lowrisc:virtual_ip:flash_ctrl_prim_reg_top

filesets:
files_rtl:
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/otp_ctrl/data/otp_ctrl.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "otp_mmap"
desc: "An object containing the memory map and all attributes"
Expand Down
4 changes: 1 addition & 3 deletions hw/ip_templates/otp_ctrl/dv/cov/otp_ctrl_cov.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:dv:otp_ctrl_cov")}
description: "OTP_CTRL functional coverage and bind files"
virtual:
- lowrisc:ip_interfaces:otp_ctrl_cov

filesets:
files_rtl:
depend:
- lowrisc:ip_interfaces:pwrmgr_pkg
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg")}
- ${instance_vlnv("lowrisc:ip:otp_ctrl_top_specific_pkg")}

files_dv:
Expand Down
2 changes: 0 additions & 2 deletions hw/ip_templates/otp_ctrl/dv/env/otp_ctrl_env.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:dv:otp_ctrl_env:0.1")}
description: "OTP_CTRL DV UVM environment"
virtual:
- lowrisc:ip_interfaces:otp_ctrl_env

filesets:
files_dv:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:dv:otp_ctrl_mem_bkdr_util:0.1")}
description: "OTP_CTRL mem_bkdr_util support package"
virtual:
- lowrisc:ip_interfaces:otp_ctrl_mem_bkdr_util

filesets:
files_dv:
Expand Down
2 changes: 0 additions & 2 deletions hw/ip_templates/otp_ctrl/dv/otp_ctrl_sim.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:dv:otp_ctrl_sim:0.1")}
description: "OTP_CTRL DV sim target"
virtual:
- lowrisc:ip_interfaces:otp_ctrl_sim

filesets:
files_rtl:
Expand Down
2 changes: 0 additions & 2 deletions hw/ip_templates/otp_ctrl/dv/sva/otp_ctrl_sva.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:dv:otp_ctrl_sva:0.1")}
description: "OTP_CTRL assertion modules and bind file."
virtual:
- lowrisc:ip_interfaces:otp_ctrl_sva

filesets:
files_dv:
Expand Down
2 changes: 0 additions & 2 deletions hw/ip_templates/otp_ctrl/dv/tests/otp_ctrl_test.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:dv:otp_ctrl_test:0.1")}
description: "OTP_CTRL DV UVM test"
virtual:
- lowrisc:ip_interfaces:otp_ctrl_test

filesets:
files_dv:
Expand Down
4 changes: 2 additions & 2 deletions hw/ip_templates/otp_ctrl/otp_ctrl.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAPI=2:
name: ${instance_vlnv("lowrisc:ip:otp_ctrl:1.0")}
description: "OTP Controller"
virtual:
- lowrisc:ip_interfaces:otp_ctrl
- lowrisc:virtual_ip:otp_ctrl

filesets:
files_rtl:
Expand All @@ -25,7 +25,7 @@ filesets:
- lowrisc:prim:secded
- lowrisc:prim:edn_req
- lowrisc:prim:sec_anchor
- lowrisc:ip_interfaces:pwrmgr_pkg
- ${instance_vlnv("lowrisc:ip:pwrmgr_pkg")}
- lowrisc:ip:edn_pkg
- lowrisc:prim:sparse_fsm
- "fileset_partner ? (partner:systems:ast_pkg)"
Expand Down
2 changes: 1 addition & 1 deletion hw/ip_templates/otp_ctrl/otp_ctrl_prim_reg_top.core
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filesets:
# otp_ctrl_prim_reg_top.sv should depend on generic items for now.
# This may change and will require reworking the flow to generate
# the otp prim.
- lowrisc:ip_interfaces:otp_ctrl_top_specific_pkg
- lowrisc:virtual_ip:otp_ctrl_top_specific_pkg
files:
- rtl/otp_ctrl_prim_reg_top.sv
file_type: systemVerilogSource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAPI=2:
name: ${instance_vlnv("lowrisc:ip:otp_ctrl_top_specific_pkg:1.0")}
description: "OTP Controller Top Specific Packages"
virtual:
- lowrisc:ip_interfaces:otp_ctrl_top_specific_pkg
- lowrisc:virtual_ip:otp_ctrl_top_specific_pkg

filesets:
files_rtl:
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/pinmux/data/pinmux.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "n_wkup_detect"
desc: "Number of wakeups"
Expand Down
2 changes: 1 addition & 1 deletion hw/ip_templates/pinmux/pinmux_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAPI=2:
name: ${instance_vlnv("lowrisc:ip:pinmux_pkg:0.1")}
description: "Pinmux package"
virtual:
- lowrisc:ip_interfaces:pinmux_pkg
- lowrisc:virtual_ip:pinmux_pkg

filesets:
files_rtl:
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/pwrmgr/data/pwrmgr.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "NumWkups"
desc: "Number of wakeup requests"
Expand Down
2 changes: 1 addition & 1 deletion hw/ip_templates/pwrmgr/pwrmgr_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CAPI=2:
name: ${instance_vlnv("lowrisc:ip:pwrmgr_pkg:0.1")}
description: "Power manager package"
virtual:
- lowrisc:ip_interfaces:pwrmgr_pkg
- lowrisc:virtual_ip:pwrmgr_pkg

filesets:
files_rtl:
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/racl_ctrl/data/racl_ctrl.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "module_instance_name"
desc: "instance name in case there are multiple RACL Ctrl instances"
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/rstmgr/data/rstmgr.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "clks"
desc: "List of source clocks, as in 'aon', 'io', 'io_div2'"
Expand Down
2 changes: 0 additions & 2 deletions hw/ip_templates/rstmgr/rstmgr_pkg.core.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ CAPI=2:
# SPDX-License-Identifier: Apache-2.0
name: ${instance_vlnv("lowrisc:ip:rstmgr_pkg:0.1")}
description: "Reset manager package"
virtual:
- lowrisc:ip_interfaces:rstmgr_pkg

filesets:
files_rtl:
Expand Down
6 changes: 6 additions & 0 deletions hw/ip_templates/rv_plic/data/rv_plic.tpldesc.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
type: "string"
default: ""
}
{
name: "uniquified_modules"
desc: "A dictionary mapping template_names to uniquified_names"
type: "object"
default: {"clkmgr": "clkmgr1"}
}
{
name: "src"
desc: "Number of interrupt sources"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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
name: lowrisc:opentitan:top_darjeeling_ac_range_check:0.1
name: lowrisc:darjeeling_ip:ac_range_check:0.1
description: "AC Range Check RTL"

filesets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@
nr_role_bits: 4
nr_ctn_uid_bits: 5
topname: darjeeling
uniquified_modules:
{
racl_ctrl: racl_ctrl
ac_range_check: ac_range_check
alert_handler: alert_handler
rv_plic: rv_plic
}
}
}
Loading

0 comments on commit e379f24

Please sign in to comment.