Manual Mile PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

User's Manual

MIPS Interactive Learning Environment

MILE Simulator
Version 1.0

User's Manual
, 2011

User's Manual

MIPS Interactive Learning Environment

1. .................................................................................2
1.1 .................................................................................................2
1.2 ...............................................................................2
2. ...........................................................................3
2.1 memory layout MIPS.......................................................................4
2.2 MIPS..............................................................4
2.3 ....................................................5
2.4 ............................................................6
3. ........................................................................................7
3.1 register file.......................................................................8
3.2 ...............................................................................8
4. Developers - contributors........................................................................................9

User's Manual

MIPS Interactive Learning Environment

1.
MILE (MIPS Interactive
Learning Environment), user friendly MIPS.


. Computing
Systems Laboratory (CSLab), . .

MIPS assembly language. ' ,
MIPS architecture.
MIPS processor, .

1.1
version 1.0 simulator, :

http://www.cslab.ece.ntua.gr/courses/comparch/assign.go
3 , :

Windows.

Linux 32-bit.

Linux 64-bit.

, ,
.
msim, . linux ,
run.sh,
Qt.
...

1.2 -
, mail:
mile-dev@cslab.ece.ntua.gr

User's Manual

MIPS Interactive Learning Environment

2.
, ( 1 ).
, :

Text Editor Disassembler

Register file

User's Manual

MIPS Interactive Learning Environment

2.1 To memory layout MIPS



MIPS ( 2 ) .
MIPS memory layout,
Text Segment (address
0x0040000).


.

2 MIPS memory layout

2.2 MIPS
MIPS system services, Systems Calls,
, / ,
.
:
i. $v0
ii. syscall
exit,
( exit terminate execution ) , :
ori $v0, $zero, 10 # 10
syscall

exit system call ( 2.3 user's


manual ) .
4

User's Manual

MIPS Interactive Learning Environment

2.3

, ' Test Segment, 3
:
jal main
ori $v0, $zero, 10
syscall
jal main , jump and link,
return address , ori
( $ra = 0x0040004 ). H ori syscall,

:
main,

. ,

text editor.


:
$ra
ori,
,

:
jr $ra
,
jal ,
$ra = 0x0040004

jr:
jr $( )

, ,
:
ori $v0, $zero, 10
syscall
5

User's Manual

MIPS Interactive Learning Environment

2.4
assembly program
editor, text editor .
assembly.
, assembly files, .s .
File.


ASSEMBLE.
,
(
4 ).
4
,
( 5 ),
disassembler ,
(
3.1 user's manual ) .
5

User's Manual

MIPS Interactive Learning Environment

3.
,
disassembler. ( 6 ) ,
.
disassembler,
(
) :

MIPS ISA.

32 bits (instruction
format) hexadecimal .

.
,
4
:

EXECUTE :
,

STEP : .
,
,
.

STOP :
.

RESET
:

,
.
6 - Disassembler

,
, editor,
assemble.
7

User's Manual

MIPS Interactive Learning Environment

3.1 register file


, Registers,
Register File. ,
( step ), ,
. , ( execute ),
. ( 7 )

3.2
Memory ( 8 ),
.


100
,
.
,


(hex ),

.
8
8

User's Manual

MIPS Interactive Learning Environment

4. Developers - Contributors
MILE
:





, ,
, mile-dev@cslab.ece.ntua.gr

You might also like