4.1 Introduction

핵심적인 MIPS 명령어는 다음과 같이 3종류가 있다.

  • 메모리 참조 명령어인 워드 적재(lw) 워드 저장(sw)
  • 산술/논리 명령어인 add, sub, AND, OR, slt
  • 같을 시 분기 명령어인 beq와 점프 명령어 j

위 명령어들은 모두 아래의 처음 두 단계는 동일하다.

  1. Send PC and fetch
  2. Read one or two registers

Data path

simpledatapath

Source:StackOverflow

Fetching instruction

fetching

Source:University of Florida

R formed instruction

instruction : op(6)rs(5)rt(5)rd(5)shamt(5)function(6) Rformed

Source:University of Florida

Load and store instruction

instruction : op(6)rs(5)rt(5)addr(16) lwsw

Source:University of Florida

Jump, Branch

jump

Source:University of Florida


4.5 An overview of Pipelining

  • multiple instructions are overlapped in excution

MIPS instruction steps

  1. Fetch
  2. Decode and read registers
  3. Excute the operation
  4. Access an operand in data memory
  5. Write the result into a register

Pipelining

Source:NewYorkUniversity

Pipelining2

Source:NewYorkUniversity

(time Pipelining) : (thime pipelined) / (#pipeline stages)