jimin-kiim / Computer-Architecture

0 stars 0 forks source link

Design Principles of MIPS ISA #3

Closed jimin-kiim closed 2 years ago

jimin-kiim commented 2 years ago
jimin-kiim commented 2 years ago

Introduction to MIPS

ISA(Instruction Set Architecture)

MIPS(Microprocessor without Interlocked Pipelined Stages) ISA

jimin-kiim commented 2 years ago

Design Principle of MIPS

Design Principle 1: Simplicity favors regularity

MIPS assembly language

f = (g+h) - (i+j)

add t0, g, h add t1, i, j sub f, t0, t1

Design Principle 2: Smaller is faster

MIPS assembly language

f = (g+h) - (i+j) f, g, h, i , j are assigned to the registers $s0, $s1, $s2, $s3, $s4

add $t0, $s1, $s2 add $t1, $s3, $s4 sub $s0, $t0, $t1

Design Principle 3: Make the common case fast

MIPS assembly language

incrementing : addi $t0, $t0, 4 moving : add $t0, $t1, $zero

Design Principle 4: Good design demands good compromise

jimin-kiim commented 2 years ago

Register and Memory

Register

Memory Address

Byte Ordering

Memory instructions

MIPS assembly language

lw $t0, 32($s3) add $s1, $s2, $t0

jimin-kiim commented 2 years ago

running a program

Stored program concept

Data representation

numbers

unsigned numbers

signed numbers

jimin-kiim commented 2 years ago

Instruction Representation

J - format

op address
6 bits 26 bits