rename_execute_retire::MOpInstance: use FETCH_BLOCK_ID_WIDTH

This commit is contained in:
Jacob Lifshay 2026-05-29 01:30:42 -07:00
parent 7acfaebfde
commit 9cecc6aaa0
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ

View file

@ -13,7 +13,7 @@ use crate::{
COMMON_MOP_SRC_LEN, L2RegNum, MOp, MOpDestReg, MOpRegNum, MOpTrait, PRegNum, ReadL2RegMOp, COMMON_MOP_SRC_LEN, L2RegNum, MOp, MOpDestReg, MOpRegNum, MOpTrait, PRegNum, ReadL2RegMOp,
UnitNum, UnitOutRegNum, WriteL2RegMOp, UnitNum, UnitOutRegNum, WriteL2RegMOp,
}, },
next_pc::{CallStackOp, SimValueDefault}, next_pc::{CallStackOp, FETCH_BLOCK_ID_WIDTH, SimValueDefault},
register::{FlagsMode, PRegFlagsPowerISA, PRegValue}, register::{FlagsMode, PRegFlagsPowerISA, PRegValue},
rename_execute_retire::{ rename_execute_retire::{
rename_table::{RenameTable, RenameTableDebugState, RenameTableEntry, RenameTableUpdate}, rename_table::{RenameTable, RenameTableDebugState, RenameTableEntry, RenameTableUpdate},
@ -42,7 +42,7 @@ pub type MOpId = UInt<{ MOP_ID_WIDTH }>;
#[hdl(custom_debug(sim))] #[hdl(custom_debug(sim))]
/// A &micro;Op along with the state needed for this instance of the &micro;Op. /// A &micro;Op along with the state needed for this instance of the &micro;Op.
pub struct MOpInstance<MOp> { pub struct MOpInstance<MOp> {
pub fetch_block_id: UInt<8>, pub fetch_block_id: UInt<{ FETCH_BLOCK_ID_WIDTH }>,
pub id: MOpId, pub id: MOpId,
pub pc: UInt<64>, pub pc: UInt<64>,
/// initialized to 0 by decoder, overwritten by `next_pc()` /// initialized to 0 by decoder, overwritten by `next_pc()`