forked from libre-chip/cpu
start debugging reg_alloc with simulator
This commit is contained in:
parent
bf34dee043
commit
12481cfab3
8 changed files with 1211 additions and 37 deletions
|
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue