Struct PkaStatus
#[repr(transparent)]pub struct PkaStatus(pub u32);Expand description
This register holds the status for the PKA pipeline.
Tuple Fields§
§0: u32Implementations§
§impl PkaStatus
impl PkaStatus
pub const fn alu_msb_4bits(&self) -> u8
pub const fn alu_msb_4bits(&self) -> u8
The most significant 4-bits of the operand updated in shift operation.
pub const fn set_alu_msb_4bits(&mut self, val: u8)
pub const fn set_alu_msb_4bits(&mut self, val: u8)
The most significant 4-bits of the operand updated in shift operation.
pub const fn alu_lsb_4bits(&self) -> u8
pub const fn alu_lsb_4bits(&self) -> u8
The least significant 4-bits of the operand updated in shift operation.
pub const fn set_alu_lsb_4bits(&mut self, val: u8)
pub const fn set_alu_lsb_4bits(&mut self, val: u8)
The least significant 4-bits of the operand updated in shift operation.
pub const fn alu_sign_out(&self) -> bool
pub const fn alu_sign_out(&self) -> bool
Indicates the MSB sign of the last operation.
pub const fn set_alu_sign_out(&mut self, val: bool)
pub const fn set_alu_sign_out(&mut self, val: bool)
Indicates the MSB sign of the last operation.
pub const fn set_alu_carry(&mut self, val: bool)
pub const fn set_alu_carry(&mut self, val: bool)
Holds the carry of the last ALU operation.
pub const fn alu_carry_mod(&self) -> bool
pub const fn alu_carry_mod(&self) -> bool
Holds the carry of the last modular operation.
pub const fn set_alu_carry_mod(&mut self, val: bool)
pub const fn set_alu_carry_mod(&mut self, val: bool)
Holds the carry of the last modular operation.
pub const fn alu_sub_is_zero(&self) -> bool
pub const fn alu_sub_is_zero(&self) -> bool
Indicates the last subtraction operation sign.
pub const fn set_alu_sub_is_zero(&mut self, val: bool)
pub const fn set_alu_sub_is_zero(&mut self, val: bool)
Indicates the last subtraction operation sign.
pub const fn alu_out_zero(&self) -> bool
pub const fn alu_out_zero(&self) -> bool
Indicates if the result of ALU OUT is zero.
pub const fn set_alu_out_zero(&mut self, val: bool)
pub const fn set_alu_out_zero(&mut self, val: bool)
Indicates if the result of ALU OUT is zero.
pub const fn alu_modovrflw(&self) -> bool
pub const fn alu_modovrflw(&self) -> bool
Modular overflow flag.
pub const fn set_alu_modovrflw(&mut self, val: bool)
pub const fn set_alu_modovrflw(&mut self, val: bool)
Modular overflow flag.
pub const fn div_by_zero(&self) -> bool
pub const fn div_by_zero(&self) -> bool
Indication if the division is done by zero.
pub const fn set_div_by_zero(&mut self, val: bool)
pub const fn set_div_by_zero(&mut self, val: bool)
Indication if the division is done by zero.
pub const fn modinv_of_zero(&self) -> bool
pub const fn modinv_of_zero(&self) -> bool
Indicates the modular inverse of zero.
pub const fn set_modinv_of_zero(&mut self, val: bool)
pub const fn set_modinv_of_zero(&mut self, val: bool)
Indicates the modular inverse of zero.
pub const fn set_opcode(&mut self, val: u8)
pub const fn set_opcode(&mut self, val: u8)
Opcode of the last operation