efuse_pkg
Define shared eFuse field-map rules, shadow range maps, and bus typedef helpers.
Provides rule_t, shadow_word_range_map_t, and related constants imported by the controller, guard, shadow regs, and token processing. Also defines the lifecycle-state encoding, fuse commands, and address-decode selects, and includes the AXI, APB, and fuse-command typedef macros used by interface blocks.
efuse_req_decode_select_e
Enum (logic [$clog2( NumEndPointsDecode )-1:0])
| Value | Number | Description |
|---|---|---|
INTERFACE_SEL | 1'd0 | |
SHIM_SEL | 1'd1 |
efuse_reg_map_e
Enum (logic [$clog2( NumEndPointsReg )-1:0])
| Value | Number | Description |
|---|---|---|
SHADOW_REG_MAP | 2'd0 | |
EFUSE_CSR_REG_MAP | 2'd1 | |
EFUSE_MMR_REG_MAP | 2'd2 | |
ERR_DECODE | 2'd3 |
tdr_t
///////////////////////////
Alias for logic [TdrWidth-1:0]
lc_state_raw_e
Enum (logic [LcStateRawWidth-1:0])
| Value | Number | Description |
|---|---|---|
LC_TEST_DEV | 4'b0000 | |
LC_PROD | 4'b0001 | |
LC_RMA_SIP_0 | 4'b0010 | |
LC_RMA_SIP_1 | 4'b0011 | |
LC_RMA_CHIP_0 | 4'b0110 | |
LC_RMA_CHIP_1 | 4'b0111 | |
LC_PROD_END | 4'b1000 |
shadow_word_range_t
Packed struct
| Field | Type | Description |
|---|---|---|
valid | logic | |
first_word | logic [31:0] | |
last_word | logic [31:0] |
shadow_word_range_map_t
Alias for shadow_word_range_t [MaxClass1ShadowRanges-1:0]
fuse_command_e
///////////////////////////
Enum (logic [1:0])
| Value | Number | Description |
|---|---|---|
FUSE_COMMAND_READ | 2'b00 | |
FUSE_COMMAND_PROGRAM | 2'b01 | |
FUSE_COMMAND_PROGRAM_READ_BACK | 2'b10 |
rule_t
Packed struct
| Field | Type | Description |
|---|---|---|
idx | logic [EfuseFieldMapIdxWidth - 1:0] | |
lock | logic [3:0] | |
start_addr | logic [31:0] | |
end_addr | logic [31:0] |
is_invalid_lc_state
Returns 1 iff s is outside the LC_STATE encodings
Function returning logic
| Name | Direction | Type | Description |
|---|---|---|---|
s | input | logic [LcStateRawWidth-1:0] |
make_shadow_word_range
Function returning shadow_word_range_t
| Name | Direction | Type | Description |
|---|---|---|---|
register_offset_bytes | input | int unsigned | |
register_width_bits | input | int unsigned | |
shadow_word_width_bits | input | int unsigned |
shadow_range_word_count
Function returning int unsigned
| Name | Direction | Type | Description |
|---|---|---|---|
range_cfg | input | shadow_word_range_t |
shadow_range_map_word_count
Function returning int unsigned
| Name | Direction | Type | Description |
|---|---|---|---|
range_map | input | shadow_word_range_map_t |
shadow_range_map_contains_word
Function returning logic
| Name | Direction | Type | Description |
|---|---|---|---|
range_map | input | shadow_word_range_map_t | |
word_idx | input | int unsigned |
class1_shadow_storage_idx
Function returning int unsigned
| Name | Direction | Type | Description |
|---|---|---|---|
range_map | input | shadow_word_range_map_t | |
word_idx | input | int unsigned |
normal_shadow_storage_idx
Function returning int unsigned
| Name | Direction | Type | Description |
|---|---|---|---|
range_map | input | shadow_word_range_map_t | |
word_idx | input | int unsigned |
shadow_range_map_is_valid
Function returning logic
| Name | Direction | Type | Description |
|---|---|---|---|
range_map | input | shadow_word_range_map_t | |
num_shadow_words | input | int unsigned |