Package: hmac_env_pkg

Description

Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0

Constants

Name Type Value Description
uint32 uint32 16 local parameters and types
HMAC_MSG_FIFO_DEPTH_BYTES uint32 HMAC_MSG_FIFO_DEPTH * 4
uint32 uint32 2048
uint32 uint32 32'h800
HMAC_MSG_FIFO_LAST_ADDR uint32 HMAC_MSG_FIFO_BASE + HMAC_MSG_FIFO_SIZE - 1
uint32 uint32 64
uint32 uint32 65 48 cycles of hashing, 16 cycles to rd next 16 words, 1 cycle to update digest
uint32 uint32 80 80 cycles for hmac key padding
uint32 uint32 1 1 cycles to write a msg word to hmac_msg_fifo
uint uint 1 alerts
LIST_OF_ALERTS string {
"fatal_fault"}

Types

Name Type Description
hmac_intr_e enum {
HmacDone,
HmacMsgFifoEmpty,
HmacErr }
hmac_sta_e enum {
HmacStaMsgFifoEmpty,
HmacStaMsgFifoFull,
HmacStaMsgFifoDepth = 4 }
hmac_cfg_e enum {
HmacEn,
ShaEn,
EndianSwap,
DigestSwap }
hmac_cmd_e enum {
HashStart,
HashProcess }
err_code_e enum bit [TL_DW-1:0] {
NoError = 32'h 0000_0000,
SwPushMsgWhenShaDisabled = 32'h 0000_0001,
SwHashStartWhenShaDisabled = 32'h 0000_0002,
SwUpdateSecretKeyInProcess = 32'h 0000_0003,
SwHashStartWhenActive = 32'h 0000_0004,
SwPushMsgWhenIdle = 32'h 0000_0005 }
hmac_env_cfg undefined
hmac_env_cov undefined
hmac_virtual_sequencer cip_base_virtual_sequencer #(hmac_env_cfg,
hmac_env_cov)
d2h_a_ready_vif virtual pins_if #(1)