Adarsh Kumar Choudhary adarshk007
Sushant Kumar Singh sushant00
The simulator: - reads the instruction from instruction memory - decodes the instruction - read the register - execute the operation - write back to the register file. The execution of instruction continues till it reaches instruction “swi 0x11”. In other words as soon as instruction reads “0xEF000011”, simulator stops and writes the updated memory contents on to a memory text file. The simulator also prints messages for each stage for example: - Fetch prints: o “FETCH:Fetch instruction 0xE3A0200A from address 0x0” - Decode o “DECODE: Operation is ADD, first operand R2, Second operand R3, destination register R1” o “DECODE: Read registers R2 = 10, R3 = 2” - Execute o “EXECUTE: ADD 10 and 2” - Memory o “MEMORY:No memory operation” - Write-back o “WRITEBACK: write 12 to R1”


