Simulated the scalar processor using C++
commands to execute in terminal:- g++ main.cpp ./a.out
- Place DCache.txt, ICache.txt, RF.txt in input folder as specified in pdf
- Output.txt, DCache.txt will be generated in output folder as specified in pdf
Instruction Set:-
ADD : 0
SUB : 1
MUL : 2
INC : 3
AND : 4
OR : 5
XOR : 6
NOT : 7
SLLI : 8
SRLI : 9
LI : a
LD : b
ST : c
JMP : d
BEQZ : e
HLT : f