Computer/Architecture

Arithmetic

Detacher 2012. 7. 20. 17:53

명령어 실행 순서 MIPS


1. 명령어 메모리에 PC값을보내고 명령어를 가져온다

2. PC가 다음 명령어를 가르키도록(Instruction Pointer) PC값을 변화시킨다

3. 하나 또는 둘의 레지스터 읽기

4. main alternatives:

연산 또는 논리 작용

데이터 메모리에 접근(주소값 계산)

branch/jump의 목표물 계산

5. 레지스터파일(레지스터들의 묶음)에 값저장(not for stores, branch, jump)



ex)

add rd, rs, rt

fetch M[[PC]];

PC <- [PC]+4;

Next;

Rd <- [Rs] + [Rt];



Overflow

Signed value를 다룰때, 부호 비트가 이전비트의 연산작용으로 올림수나 내림수를 받아 틀릴때




'Computer > Architecture' 카테고리의 다른 글

MIPS Reference  (0) 2012.07.22
C언어 -> MIPS instruction  (0) 2012.07.22
Imm, unsigned  (0) 2012.07.20
Program Counter -> Instruction Memory  (0) 2012.07.20
MIPS Instruction  (0) 2012.07.20