-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dv,mem_bkdr_util] Move otp specific code to otp_ctrl
Change the code to take a handle to the OTP mem_bkdr_util instance, and use that to perform plain reads and writes to the underlying memory. The otp_ctrl code in mem_bkdr_util was making this utility to become top-specific, which is wrong for a generic utility, and caused build failures. Change the uses of the affected functions in top_earlgrey dv code. The main change is the move of hw/dv/sv/mem_bkdr_util/mem_bkdr_util__otp.sv to hw/ip_templates/otp_ctrl/dv/ev/otp_ctrl_mem_bkdr_util_pkg.sv, and changing the functions to take a mem_bkdr_util handle. For some reason git didn't detect this as a move. Part of #25891 Signed-off-by: Guillermo Maturana <[email protected]>
- Loading branch information
Showing
39 changed files
with
979 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
hw/ip_templates/otp_ctrl/dv/env/otp_ctrl_mem_bkdr_util.core.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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: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: | ||
depend: | ||
- lowrisc:dv:mem_bkdr_util | ||
- lowrisc:dv:crypto_dpi_present | ||
- lowrisc:dv:lc_ctrl_dv_utils | ||
- ${instance_vlnv("lowrisc:ip:otp_ctrl_top_specific_pkg:1.0")} | ||
files: | ||
- otp_scrambler_pkg.sv | ||
- otp_ctrl_mem_bkdr_util_pkg.sv | ||
file_type: systemVerilogSource | ||
|
||
targets: | ||
default: | ||
filesets: | ||
- files_dv |
Oops, something went wrong.