Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update Caliptra RTL #1588

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hw/latest/registers/src/csrng.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/doe.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/dv.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/ecc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/el2_pic_ctrl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/entropy_src.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/hmac.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/kv.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
6 changes: 3 additions & 3 deletions hw/latest/registers/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![no_std]
#![allow(clippy::erasing_op)]
Expand Down Expand Up @@ -141,7 +141,7 @@ pub mod regs {
pub fn hmac_block_dest_valid(&self) -> bool {
((self.0 >> 7) & 1) != 0
}
/// SHA BLOCK is a valid destination
/// Reserved field. No SHA key vault interface
#[inline(always)]
pub fn sha_block_dest_valid(&self) -> bool {
((self.0 >> 8) & 1) != 0
Expand Down Expand Up @@ -203,7 +203,7 @@ pub mod regs {
pub fn hmac_block_dest_valid(self, val: bool) -> Self {
Self((self.0 & !(1 << 7)) | (u32::from(val) << 7))
}
/// SHA BLOCK is a valid destination
/// Reserved field. No SHA key vault interface
#[inline(always)]
pub fn sha_block_dest_valid(self, val: bool) -> Self {
Self((self.0 & !(1 << 8)) | (u32::from(val) << 8))
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/mbox.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/pv.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/sha256.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/sha512.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/sha512_acc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
37 changes: 34 additions & 3 deletions hw/latest/registers/src/soc_ifc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down Expand Up @@ -689,6 +689,8 @@ impl<TMmio: ureg::Mmio> RegisterBlock<TMmio> {
}
}
/// SOC provided count in cycles for WDT1 timeout.
/// [br]Caliptra Access: RW
/// [br]SOC Access: RW
///
/// Read value: [`u32`]; Write value: [`u32`]
#[inline(always)]
Expand All @@ -703,6 +705,8 @@ impl<TMmio: ureg::Mmio> RegisterBlock<TMmio> {
}
}
/// Adaptive threshold values for entropy source health tests.
/// [br]Caliptra Access: RW
/// [br]SOC Access: RW
///
/// Read value: [`soc_ifc::regs::CptraItrngEntropyConfig0ReadVal`]; Write value: [`soc_ifc::regs::CptraItrngEntropyConfig0WriteVal`]
#[inline(always)]
Expand All @@ -717,6 +721,8 @@ impl<TMmio: ureg::Mmio> RegisterBlock<TMmio> {
}
}
/// Repetition count value for entropy source health tests.
/// [br]Caliptra Access: RW
/// [br]SOC Access: RW
///
/// Read value: [`soc_ifc::regs::CptraItrngEntropyConfig1ReadVal`]; Write value: [`soc_ifc::regs::CptraItrngEntropyConfig1WriteVal`]
#[inline(always)]
Expand All @@ -731,6 +737,8 @@ impl<TMmio: ureg::Mmio> RegisterBlock<TMmio> {
}
}
/// Set of reserved registers for survivability
/// [br]Caliptra Access: RW
/// [br]SOC Access: RW
///
/// Read value: [`u32`]; Write value: [`u32`]
#[inline(always)]
Expand Down Expand Up @@ -1016,7 +1024,7 @@ impl<TMmio: ureg::Mmio> RegisterBlock<TMmio> {
)
}
}
/// Control register to set the number of cycles for which FW update reset must be asserted. Default is 5. Max value is 255 (8 bit).
/// Control register to set the number of cycles for which FW update reset must be asserted. Minimum value is 5. Max value is 255 (8 bit).
/// [br]Caliptra Access: RW
/// [br]SOC Access: RO
///
Expand Down Expand Up @@ -2197,6 +2205,11 @@ pub mod regs {
pub fn uart_en(&self) -> bool {
((self.0 >> 3) & 1) != 0
}
///
#[inline(always)]
pub fn lms_acc_en(&self) -> bool {
((self.0 >> 4) & 1) != 0
}
}
impl From<u32> for CptraHwConfigReadVal {
#[inline(always)]
Expand Down Expand Up @@ -2228,6 +2241,11 @@ pub mod regs {
pub fn nmi_pin(&self) -> bool {
((self.0 >> 2) & 1) != 0
}
///
#[inline(always)]
pub fn crypto_err(&self) -> bool {
((self.0 >> 3) & 1) != 0
}
/// Construct a WriteVal that can be used to modify the contents of this register value.
#[inline(always)]
pub fn modify(self) -> CptraHwErrorFatalWriteVal {
Expand Down Expand Up @@ -2264,6 +2282,11 @@ pub mod regs {
pub fn nmi_pin(self, val: bool) -> Self {
Self((self.0 & !(1 << 2)) | (u32::from(val) << 2))
}
///
#[inline(always)]
pub fn crypto_err(self, val: bool) -> Self {
Self((self.0 & !(1 << 3)) | (u32::from(val) << 3))
}
}
impl From<u32> for CptraHwErrorFatalWriteVal {
#[inline(always)]
Expand Down Expand Up @@ -2347,7 +2370,10 @@ pub mod regs {
#[derive(Clone, Copy)]
pub struct CptraHwRevIdReadVal(u32);
impl CptraHwRevIdReadVal {
///
/// Caliptra official release version. Bit field encoding is:
/// [br][lb]15:8[rb] Patch version
/// [br][lb] 7:4[rb] Minor version
/// [br][lb] 3:0[rb] Major version
#[inline(always)]
pub fn cptra_generation(&self) -> u32 {
(self.0 >> 0) & 0xffff
Expand Down Expand Up @@ -3588,6 +3614,11 @@ pub mod regs {
pub fn mask_nmi_pin(&self) -> bool {
((self.0 >> 2) & 1) != 0
}
///
#[inline(always)]
pub fn mask_crypto_err(&self) -> bool {
((self.0 >> 3) & 1) != 0
}
/// Construct a WriteVal that can be used to modify the contents of this register value.
#[inline(always)]
pub fn modify(self) -> InternalHwErrorFatalMaskWriteVal {
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/soc_ifc_trng.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/spi_host.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/registers/src/uart.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Licensed under the Apache-2.0 license.
//
// generated by caliptra_registers_generator with caliptra-rtl repo at e928359b071f3c354a194a31c2b3bdac8adb20d0
// generated by caliptra_registers_generator with caliptra-rtl repo at 41b77ba0a885fdeaa548e6f80030d6797c76a5f8
//
#![allow(clippy::erasing_op)]
#![allow(clippy::identity_op)]
Expand Down
2 changes: 1 addition & 1 deletion hw/latest/rtl
Submodule rtl updated 201 files
Loading