Comp Sci 251 -- MIPS machine 1 Ch. 3 MIPS RISC Machine.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

King Fahd University of Petroleum and Minerals King Fahd University of Petroleum and Minerals Computer Engineering Department Computer Engineering Department.
ELEN 468 Advanced Logic Design
Chapter 2.
CSE 340 Computer Architecture Spring 2014 MIPS ISA Review
Instruction Set Architecture Classification According to the type of internal storage in a processor the basic types are Stack Accumulator General Purpose.
1 Computer Architecture MIPS Simulator and Assembly language.
Procedure call frame: Hold values passed to a procedure as arguments
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
Processor Technology and Architecture
S. Barua – CPSC 440 CHAPTER 2 INSTRUCTIONS: LANGUAGE OF THE COMPUTER Goals – To get familiar with.
RISC Concepts, MIPS ISA and the Mini–MIPS project
Processor Architecture Kieran Mathieson. Outline Memory CPU Structure Design a CPU Programming Design Issues.
What is an instruction set?
CS402 PPP # 2 MIPS BASIC INFORMATION By George Koutsogiannakis 1.
7/13/20151 Topic 3: Run-Time Environment Memory Model Activation Record Call Convention Storage Allocation Runtime Stack and Heap Garbage Collection.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
CSE378 MIPS ISA1 MIPS History MIPS is a computer family –R2000/R3000 (32-bit); R4000/4400 (64-bit); R8000; R10000 (64-bit) etc. MIPS originated as a Stanford.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Basic Operational Concepts of a Computer
MIPS assembly. Computer What’s in a computer? Processor, memory, I/O devices (keyboard, mouse, LCD, video camera, speaker), disk, CD drive, …
Some material taken from Assembly Language for x86 Processors by Kip Irvine © Pearson Education, 2010 Slides revised 2/2/2014 by Patrick Kelley.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Chapter 1 Basic Structure of Computers. Chapter Outline computer types, structure, and operation instructions and programs numbers, arithmetic operations,
4-1 Chapter 4 - The Instruction Set Architecture Department of Information Technology, Radford University ITEC 352 Computer Organization Principles of.
Topic IIa Instruction Set Architecture and MIPS
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Lecture 2: Basic Instructions CS 2011 Fall 2014, Dr. Rozier.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
ITEC 352 Lecture 12 ISA(3). Review Buses Memory ALU Registers Process of compiling.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
1 Computer Architecture COSC 3430 Lecture 3: Instructions.
1 Branches and Procedure Calls Lecture 14 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
CSCI 211 Intro Computer Organization –Consists of gates for logic And Or Not –Processor –Memory –I/O interface.
General Concepts of Computer Organization Overview of Microcomputer.
4-1 Chapter 4 - The Instruction Set Architecture Principles of Computer Architecture by M. Murdocca and V. Heuring © 1999 M. Murdocca and V. Heuring Principles.
Intro MIPS Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann – Wrote a.
Computer Architecture and Organization
Computer Architecture EKT 422
CHAPTER 6 Instruction Set Architecture 12/7/
TEAM FRONT END ECEN 4243 Digital Computer Design.
Computer Organization 1 Instruction Fetch and Execute.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
What is a program? A sequence of steps
MIPS Architecture Topics –What resources MIPS assembly manipulates –CPU (Central Processing Unit) –ALU (Arithmetic & Logical Unit), Registers –Memory –I/O.
Lecture 2: Instruction Set Architecture part 1 (Introduction) Mehran Rezaei.
MIPS assembly. Computer  What’s in a computer?  Processor, memory, I/O devices (keyboard, mouse, LCD, video camera, speaker), disk, CD drive, …
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Programming Model CS 333 Sam Houston State University Dr. Tim McGuire.
CPUz 4 n00bz.
MIPS Architecture Topics –What resources MIPS assembly manipulates –CPU (Central Processing Unit) –ALU (Arithmetic & Logical Unit), Registers –Memory –I/O.
Assembly language.
ELEN 468 Advanced Logic Design
Components of Computer
Von Neumann model - Memory
University of Gujrat Department of Computer Science
MIPS Assembly.
Instructions - Type and Format
MIPS assembly.
MIPS assembly.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
MIPS History MIPS is a computer family
Von Neumann model - Memory
MIPS History MIPS is a computer family
COMS 361 Computer Organization
Computer Architecture
MIPS History MIPS is a computer family
CPU Structure CPU must:
MIPS assembly.
Instruction Set Architecture
Presentation transcript:

Comp Sci MIPS machine 1 Ch. 3 MIPS RISC Machine

Comp Sci MIPS machine 2 MIPS processor Microprocessor w/o Interlocking Pipeline Stages Windows CE devices Cisco routers Sony Playstation, PS2, PSP Digital cameras

Comp Sci MIPS machine 3 MIPS Processor Register file – Special high-speed memory locations – Separate from main memory Datapath Circuitry – Performs arithmetic operations – Includes 32-bit ALU Control unit – Circuitry for controlling datapath, memory, and I/O devices

Comp Sci MIPS machine 4 Register file Thirty-two general purpose registers Each holds 32 bits NumberNamepurpose $0ZeroConstant 0 $1$atAssembler temp $2-$3$v0-$v1Expression eval. Return value $4-$7$a0-$a3Arguments $8-$15$t0-$t7Temporary $16-$23$s0-$s7Saved $24-$25$t8-$t9Temporary $26-$27$k0-$k1OS kernel $28$gpGlobal pointer $29$spStack pointer $30$fpFrame pointer $31$raReturn address

Comp Sci MIPS machine 5 Special-purpose registers Program counter register (PC) – Holds memory address of current instruction Hi and Lo – Used for multiplication & division

Comp Sci MIPS machine 6 MIPS main memory Byte-addressable memory 32-bit addresses Up to 2 32 bytes = 4 gigabytes Word size = 32 bits – Word boundaries on addresses divisible by 4

Comp Sci MIPS machine 7 Program memory model Memory contains three important segments Text segment: program instructions Data segment: global variables & constants Stack segment: arguments & local variables 0x Reserved 0x Text segment 0x Data segment Stack segment 0x xFFFFFFFF Operating system

Comp Sci MIPS machine 8 Byte order 32-bit value  four consecutive bytes Example: 32-bit value 0x Two options: Big-endian Little-endian Low address High address

Comp Sci MIPS machine 9 Fetch-execute cycle Processor continuously does: 1. Read instruction – from text segment 2. Read operands – from registers, data segment, or stack segment 3. Perform operation 4. Store result – to register, data segment, or stack segment

Comp Sci MIPS machine 10 Examples See /shared/huen/251/ch03