ready to fulfill detail functions

This commit is contained in:
2024-07-30 13:23:20 +00:00
parent 33e2120130
commit e0d6a82066
6 changed files with 198 additions and 10 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#ifndef ALU_H
#include "tools.h"
namespace ZYM {
struct ALU_Input {
dark::Wire<7 + 3 + 1> request_full_id;
dark::Wire<32> operand1;
@ -8,16 +9,18 @@ struct ALU_Input {
dark::Wire<5> request_ROB_index;
};
struct ALU_Output {
dark::Register<1> done;
dark::Register<32> result;
dark::Register<2> alu_status;
dark::Register<5> result_ROB_index;
dark::Register<32> result;
dark::Register<32> completed_alu_resulting_PC;
};
struct ALU : public dark::Module<ALU_Input, ALU_Output> {
ALU() {
// Constructor
}
void update() {
void work() {
// Update function
}
};
}
#endif