forked from libre-chip/cpu
start adding ROB
This commit is contained in:
parent
4ff75313e7
commit
6c91d1b0b0
4 changed files with 32643 additions and 30962 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -21,10 +21,13 @@ use std::num::NonZeroUsize;
|
|||
#[test]
|
||||
fn test_reg_alloc() {
|
||||
let _n = SourceLocation::normalize_files_for_tests();
|
||||
let mut config = CpuConfig::new(vec![
|
||||
UnitConfig::new(UnitKind::AluBranch),
|
||||
UnitConfig::new(UnitKind::AluBranch),
|
||||
]);
|
||||
let mut config = CpuConfig::new(
|
||||
vec![
|
||||
UnitConfig::new(UnitKind::AluBranch),
|
||||
UnitConfig::new(UnitKind::AluBranch),
|
||||
],
|
||||
NonZeroUsize::new(20).unwrap(),
|
||||
);
|
||||
config.fetch_width = NonZeroUsize::new(2).unwrap();
|
||||
let m = reg_alloc(&config);
|
||||
let mut sim = Simulation::new(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue