Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 563 Bytes

File metadata and controls

29 lines (26 loc) · 563 Bytes

ScalarSimulation

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