-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExecuteStage.h
More file actions
27 lines (24 loc) · 1.15 KB
/
ExecuteStage.h
File metadata and controls
27 lines (24 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class ExecuteStage: public Stage {
private:
uint64_t valE, dstE, e_Cnd;
bool M_bubble;
void setMInput(M * mreg, uint64_t stat,
uint64_t icode, uint64_t Cnd, uint64_t valE, uint64_t valA,
uint64_t dstE, uint64_t dstM);
public:
bool doClockLow(PipeReg ** pregs, Stage ** stages);
void doClockHigh(PipeReg ** pregs);
void setvalE(E * ereg, M * mreg, uint64_t valE);
uint64_t getaluA(uint64_t icode, uint64_t valA, uint64_t valC);
uint64_t getaluB(uint64_t icode, uint64_t valB);
uint64_t getalufun(uint64_t icode, uint64_t ifun);
bool setcc(uint64_t icode, uint64_t m_stat, uint64_t W_stat);
uint64_t getdstE(uint64_t icode, uint64_t Cnd, uint64_t dstE);
uint64_t ALU(uint64_t icode, uint64_t ifun, uint64_t aluA, uint64_t aluB, uint64_t m_stat, uint64_t W_stat);
void CC(uint64_t ccNum, bool value);
uint64_t cond(uint64_t icode, uint64_t ifun);
uint64_t gete_dstE();
uint64_t gete_valE();
bool calculateControlSignals(uint64_t m_stat, uint64_t W_stat);
uint64_t gete_Cnd();
};