Struct hazardflow_designs::cpu::riscv_isa::Instruction
source · pub struct Instruction {
pub is_illegal: bool,
pub br_type: HOption<BrType>,
pub rs1_addr: HOption<U<{ _ }>>,
pub rs2_addr: HOption<U<{ _ }>>,
pub rd_addr: HOption<U<{ _ }>>,
pub imm: u32,
pub alu_op: AluOp,
pub wb_sel: HOption<WbSel>,
pub csr_info: HOption<CsrInfo>,
pub mem_info: HOption<(MemOpFcn, MemOpTyp)>,
/* private fields */
}
Expand description
Decoded instruction.
It does not contain the resolved register values.
Fields§
§is_illegal: bool
§br_type: HOption<BrType>
§rs1_addr: HOption<U<{ _ }>>
§rs2_addr: HOption<U<{ _ }>>
§rd_addr: HOption<U<{ _ }>>
§imm: u32
§alu_op: AluOp
§wb_sel: HOption<WbSel>
§csr_info: HOption<CsrInfo>
§mem_info: HOption<(MemOpFcn, MemOpTyp)>
Implementations§
Trait Implementations§
source§impl Clone for Instruction
impl Clone for Instruction
source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Instruction
impl Debug for Instruction
source§impl From<u32> for Instruction
impl From<u32> for Instruction
impl Copy for Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more