Package: otp_ctrl_part_pkg
- File: otp_ctrl_part_pkg.sv
Description
Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0
Package partition metadata.
DO NOT EDIT THIS FILE DIRECTLY.
It has been generated with
$ ./util/design/gen-otp-mmap.py --seed 10556718629619452145
Signals
| Name | Type | Description |
|---|---|---|
| otp_ctrl_part_pkg | endpackage |
Constants
| Name | Type | Value | Description |
|---|---|---|---|
| NumScrmblKeys | int | 3 | ////////////////////////////////// Scrambling Constants and Types // ////////////////////////////////// |
| NumDigestSets | int | 4 | |
| ScrmblKeySelWidth | int | vbits(NumScrmblKeys) | |
| DigestSetSelWidth | int | vbits(NumDigestSets) | |
| ConstSelWidth | int | ScrmblKeySelWidth | |
| key_array_t | key_array_t | ||
| digest_const_array_t | digest_const_array_t | Note: digest set 0 is used for computing the partition digests. Constants at higher indices are used to compute the scrambling keys. | |
| digest_iv_array_t | digest_iv_array_t | ||
| PartInfoDefault | part_info_t | ||
| NumAgents | int | undefined | |
| OTP_HW_CFG_DEFAULT | otp_hw_cfg_t | logic [15871:0] | default value for intermodule |
Types
| Name | Type | Description |
|---|---|---|
| digest_mode_e | enum logic [ConstSelWidth-1:0] { StandardMode, ChainedMode } |
|
| key_array_t | logic [NumScrmblKeys-1:0][ScrmblKeyWidth-1:0] | |
| digest_const_array_t | logic [NumDigestSets-1:0][ScrmblKeyWidth-1:0] | |
| digest_iv_array_t | logic [NumDigestSets-1:0][ScrmblBlockWidth-1:0] | |
| key_sel_e | enum logic [ConstSelWidth-1:0] { Secret0Key, Secret1Key, Secret2Key } |
|
| digest_sel_e | enum logic [ConstSelWidth-1:0] { CnstyDigest, FlashDataKey, FlashAddrKey, SramDataKey } |
|
| part_variant_e | enum logic [1:0] { Unbuffered, Buffered, LifeCycle } |
/////////////////////////////////// Typedefs for Partition Metadata // /////////////////////////////////// |
| part_info_t | struct packed { part_variant_e variant; logic [OtpByteAddrWidth-1:0] offset; logic [OtpByteAddrWidth-1:0] size; key_sel_e key_sel; logic secret; logic hw_digest; logic write_lock; logic read_lock; logic ecc_fatal; } |
|
| otp_hw_cfg_data_t | struct packed { logic [63:0] hw_cfg_digest; logic [31:0] unallocated; logic [7:0] en_entropy_src_fw_over; logic [7:0] en_entropy_src_fw_read; logic [7:0] en_csrng_sw_app_read; logic [7:0] en_sram_ifetch; logic [255:0] manuf_state; logic [255:0] device_id; } |
Breakout types for easier access of individual items. |