CET 520/494 -- Gannod1 The MIPS Architecture Section 2.12.

Slides:



Advertisements
Similar presentations
King Fahd University of Petroleum and Minerals King Fahd University of Petroleum and Minerals Computer Engineering Department Computer Engineering Department.
Advertisements

Review of the MIPS Instruction Set Architecture. RISC Instruction Set Basics All operations on data apply to data in registers and typically change the.
Lecture 3: Instruction Set Principles Kai Bu
1 ECE462/562 ISA and Datapath Review Ali Akoglu. 2 Instruction Set Architecture A very important abstraction –interface between hardware and low-level.
CS1104 – Computer Organization PART 2: Computer Architecture Lecture 5 MIPS ISA & Assembly Language Programming.
ELEN 468 Advanced Logic Design
CS3350B Computer Architecture Winter 2015 Lecture 4
Chapter 2 Instructions: Language of the Computer
Chapter 2 Instructions: Language of the Computer Part III.
MIPS Architecture CPSC 321 Computer Architecture Andreas Klappenecker.
S. Barua – CPSC 440 CHAPTER 2 INSTRUCTIONS: LANGUAGE OF THE COMPUTER Goals – To get familiar with.
The Processor 2 Andreas Klappenecker CPSC321 Computer Architecture.
Lecture 5 Sept 14 Goals: Chapter 2 continued MIPS assembly language instruction formats translating c into MIPS - examples.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
CS 300 – Lecture 6 Intro to Computer Architecture / Assembly Language Instructions.
QuadCore Team – DLX ISA David Bild Greg Bok Jake Czyz Brandon Keao.
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.
ISA-2 CSCE430/830 MIPS: Case Study of Instruction Set Architecture CSCE430/830 Computer Architecture Instructor: Hong Jiang Courtesy of Prof. Yifeng Zhu.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
1 Appendix B Classifying Instruction Set Architecture Memory addressing mode Operations in the instruction set Control flow instructions Instruction format.
Lecture Objectives: 1)Define the terms least significant bit and most significant bit. 2)Explain how unsigned integer numbers are represented in memory.
April 23, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 9: Assemblers, Linkers, and Loaders * Jeremy R. Johnson Mon. April 23,
Instruction Set Architecture The portion of the machine visible to the programmer Issues: Internal storage model Addressing modes Operations Operands Encoding.
Computer Organization and Architecture Instructions: Language of the Machine Hennessy Patterson 2/E chapter 3. Notes are available with photocopier 24.
CDA 3101 Fall 2013 Introduction to Computer Organization
Computer Organization & Programming Chapter 6 Single Datapath CPU Architecture.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /08/2013 Lecture 10: MIPS Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE.
Crosscutting Issues: The Rôle of Compilers Architects must be aware of current compiler technology Compiler Architecture.
Csci 136 Computer Architecture II – Summary of MIPS ISA Xiuzhen Cheng
Lecture 04: Instruction Set Principles Kai Bu
MIPS Instructions Instructions: Language of the Machine
Chapter 2 CSF 2009 The MIPS Assembly Language. Stored Program Computers Instructions represented in binary, just like data Instructions and data stored.
Computer Organization Rabie A. Ramadan Lecture 3.
EET 4250 Instruction Representation & Formats Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Penn.
MIPS Instructions Instructions: Language of the Machine
Chapter 2 — Instructions: Language of the Computer — 1 Memory Operands Main memory used for composite data – Arrays, structures, dynamic data To apply.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 7, 8 Instruction Set Architecture.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Computer Architecture & Operations I
Computer Architecture & Operations I
COMPUTER ARCHITECTURE & OPERATIONS I
Instructions: Language of the Computer
Introduction CPU performance factors
ELEN 468 Advanced Logic Design
RISC Concepts, MIPS ISA Logic Design Tutorial 8.
Computer Architecture (CS 207 D) Instruction Set Architecture ISA
Super Quick Architecture Review
Instructions - Type and Format
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
The University of Adelaide, School of Computer Science
Computer Architecture & Operations I
The University of Adelaide, School of Computer Science
ECE232: Hardware Organization and Design
Topic 5: Processor Architecture Implementation Methodology
MIPS History MIPS is a computer family
Chapter 2 Instructions: Language of the Computer
Instruction encoding The ISA defines Format = Encoding
MIPS History MIPS is a computer family
Computer Instructions
Computer Architecture
Instruction encoding The ISA defines Format = Encoding
UCSD ECE 111 Prof. Farinaz Koushanfar Fall 2018
Instruction encoding The ISA defines Format = Encoding
Introduction to Microprocessor Programming
Instruction Set Principles
MIPS Instruction Set Architecture
Instruction encoding The ISA defines Format = Encoding
MIPS History MIPS is a computer family
CS352H Computer Systems Architecture
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
Presentation transcript:

CET 520/ Gannod1 The MIPS Architecture Section 2.12

CET 520/ Gannod2 Summary of Chapter  GPR with load-store architecture (better for pipelining) 2.3  Addressing modes supported should include displacement, immediate, and register indirect. 2.5  Support 8, 16, 32, and 64-bit integers and 64-bit floating point 2.7  Instructions should include load, store, add, subtract, move, shift 2.9  Flow control instructions should include comp eq, comp not eq, comp less, branch, jump, call, return 2.10  use fixed instruction encoding if interested in performance 2.11  provide at least 16 GP registers

CET 520/ Gannod3 MIPS overview load-store instruction set designed for pipelining efficiency fixed instruction set encoding efficient as a compiler target used in: –Nintendo 64 –laser printers from HP and lexmark –advanced set-top boxes from Motorola and Sony –The SGI POWER CHALLENGE is a shared-memory multiprocessor architecture based on the MIPS superscalar RISC R8000 chip

CET 520/ Gannod4 cont… –“…This simplicity makes the MIPS architecture a favorite choice among universities and colleges for their introduction to computer architecture classes. This simplicity also makes the MIPS architecture very attractive to the embedded microprocessor market as it enables very cost- effective implementations.” ( sierra.com/processors/history. html)

CET 520/ Gannod5 MIPS64/MIPS Registers 32 GPRs  R0..R31 Each holds a 64-bit (integer) value 32 FPRs  F0..F31 Each can hold a 64-bit (double-precision) or 32-bit (single-precision) value. R0 is always zero. A few special registers can be transferred to and from GPRs (e.g., fp status register) can move between FPR and GPR

CET 520/ Gannod6 Data Types byte (8-bits); hald-word (16- bits) word (32-bits) double (64- bit) integers single (32-bit) and double (64- bit) floating point integer operations assume 64- bits. if a smaller size is loaded into a register the upper portion of the register gets 0s or is sign extended.

CET 520/ Gannod7 Addresses and Addressing Modes The only data addressing modes are –immediate (16-bit immed) –displacement (16-bit offset) Register indirect is simulated by placing 0 in the displacement Absolute addressing is simulated by using R0 as the base register. Memory is byte addressable (64-bit addresses) a mode bit allows software to select either Big or Little Endian. All memory accesses must be aligned.

CET 520/ Gannod8 Instruction Formats R-format (R for register) I-format (I for immediate) op rs rt rd shamt funct 6 bits 5bits 5 bits 5 bits 5 bits 6 bits op rs rt address 6 bits 5bits 5 bits 16 bits J-format (J for jump) op target address 6 bits 26 bits

CET 520/ Gannod9 MIPS Instructions 4 classes of instructions: –loads/stores (memory access) –ALU operations –branches/jumps (flow control) –floating-point operations Load/Store all load/store instructions following same “format”: e.g., LD R1, 30(R2) load double register (load to/store from) displacement base register

CET 520/ Gannod10 Load/Store Instructions LDLoad Double LWLoad Word LBLoad Byte LBULoad Byte Unsigned LHLoad Half L.SLoad FP Single L.DLoad FP Double SDStore Double SWStore Word SHStore Half SBStore Byte S.SStore FP Single S.DStore FP Double

CET 520/ Gannod11 ALU Instructions Examples of MIPS ALU instructions –DADDU R1, R2, R3 –DADDIU R1 R2, #3 –LUI R1, #42 –DSLL R1, R2, #5 –DSLT R1, R2, R3 destination source 1source 2 immediate