Saturday 26 November 2016

MIPS SIMULATOR BY MUHAMMAD AIDIL HAKIM BIN AHMAD (D031610160)

MIPS SIMULATOR : FUNDAMENTALS OF EMULATION & QTSPIM
·        Untuk mempelajari seni bina MIPS, kita menggunakan emulator untuk memahami processor
·        Emulator sering digunakan untuk debugging
·        Untuk program pemasangan , kita boleh debug dan melihat bagaimana processor melaksanakan operasi pada cip melalui emulator.


Assembly vs. Machine Language
Assembly language is a convenient symbolic notation that is much easier to write and understand than a stream of ones and zeroes (machine language). In MIPS assembly language notation, the destination (result) is first in the operand list. This is generally the convention for the vast majority of assembly languages.
In contrast, machine language is the underlying reality of program representation (bit stream) that is fed into the processor. Each machine language instruction has the destination (result) register in the last position.
Although assembly language can provide convenient pseudo-instructions, it is the machine language instruction that is actually executed.



Important Note: When counting instructions to calculate the instruction count (IC) of a given program, count machine language instructions, since they are the only instructions executed. If you count assembly language instructions, then you will have an IC that is misleadingly small, since one assembly language instruction can be translated to several machine language instructions.
This concludes our overview of MIPS instruction format. We next examine how the MIPS architecture supports decision instructions and procedures.


QTSPIM
·        Perisian yang akan membantu kita untuk mensimulasikan pelaksanaan program MIPS pemasangan.
·        Menambahkan dalam arahan overhed seperti yang diperlukan dan kemas kini kandungan daftar dan ingatan sebagai setiap arahan untuk dilaksanakan.
·        Freeware dan boleh didapatkan senang melalui website: http://spimsimulator.sourceforge.net/














1. register display : memaparkan kesemua 32 registers dan kandungannya, sama ada dalam hex, binary atau decimal mengikut tetapan pengguna. Semua kandungan dalam registers adalah 0 pada mula-mulanya.
2. data display : mengandungi user data segment, user stack, dan kemel data segment.
3. text display : lajur pertama merupakan alamat memori. Lokasi arahan mesin ditunjukkan pada lajur kedua dalam hexadecimal.
4. SPIM messager : menunjukkan mesej simulator sama ada terdapat kesilapan kod atau tidak.