Zero-cycle JUMP

This commit is contained in:
2023-12-12 17:15:29 +01:00
parent d519d9a37b
commit aecb19b4f4
3 changed files with 38 additions and 31 deletions

View File

@@ -53,9 +53,9 @@ pub extern "C" fn entry() -> ! {
barrier::dsb(barrier::SY);
pim_state.set_bank_mode(BankMode::PimAllBank);
compute_array.0[0].execute_instruction_read();
compute_array.0[2].execute_instruction_read();
compute_array.0[1].execute_instruction_read();
compute_array.0[2].execute_instruction_read();
compute_array.0[0].execute_instruction_read();
compute_array.0[2].execute_instruction_write();
dummy_array.execute_instruction_read();
pim_state.set_bank_mode(BankMode::SingleBank);
@@ -70,6 +70,8 @@ pub extern "C" fn entry() -> ! {
)
.unwrap();
writeln!(&mut uart, "ComputeArray:\n{:?}", compute_array).unwrap();
m5ops::exit();
loop {

View File

@@ -7,17 +7,17 @@ pub const TEST_KERNEL: Kernel = Kernel([
},
Instruction::MOV {
src: File::Bank,
dst: File::GrfA { index: 1 },
dst: File::GrfB { index: 0 },
},
Instruction::MAC {
src0: File::Bank,
src1: File::GrfA { index: 0 },
src2: File::GrfA { index: 1 },
dst: File::GrfA { index: 1 },
aam: false
src2: File::GrfB { index: 0 },
dst: File::GrfB { index: 0 },
aam: true
},
Instruction::FILL {
src: File::GrfA { index: 1 },
src: File::GrfB { index: 0 },
dst: File::Bank,
},
Instruction::EXIT,