start debugging reg_alloc with simulator

This commit is contained in:
Jacob Lifshay 2024-12-20 00:26:16 -08:00
parent bf34dee043
commit 12481cfab3
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ
8 changed files with 1211 additions and 37 deletions

View file

@ -2,9 +2,9 @@
// See Notices.txt for copyright information
use crate::{
config::CpuConfig,
instruction::{MOp, UnitNum},
instruction::MOp,
unit::{TrapData, UnitTrait},
util::tree_reduce::{tree_reduce, tree_reduce_with_state},
util::tree_reduce::tree_reduce_with_state,
};
use fayalite::{module::instance_with_loc, prelude::*, util::ready_valid::ReadyValid};
use std::num::NonZeroUsize;
@ -124,5 +124,13 @@ pub fn reg_alloc(config: &CpuConfig) {
);
connect(unit_free_regs_tracker.cd, cd);
// TODO: finish
connect(
unit_free_regs_tracker.free_in[0].data,
HdlOption[UInt[config.out_reg_num_width]].uninit(), // FIXME: just for debugging
);
connect(
unit_free_regs_tracker.alloc_out[0].ready,
Bool.uninit(), // FIXME: just for debugging
);
}
}