CS402 PPP # 2 MIPS BASIC INFORMATION By George Koutsogiannakis 1.

Slides:



Advertisements
Similar presentations
Instruction Level Parallelism and Superscalar Processors
Advertisements

Machine cycle.
Computer Organization and Architecture
Final Project : Pipelined Microprocessor Joseph Kim.
RISC and Pipelining Prof. Sin-Min Lee Department of Computer Science.
ELEN 468 Advanced Logic Design
Microprocessors General Features To be Examined For Each Chip Jan 24 th, 2002.
Chapter 2 Microprocessor Bus Transfers. Big- and Little-Endian Ordering Bit-endian processor architecture –High-order-byte-first (H-O-B-F) map the highest-order.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
CS2422 Assembly Language & System Programming September 19, 2006.
Processor Technology and Architecture
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
Chapter XI Reduced Instruction Set Computing (RISC) CS 147 Li-Chuan Fang.
Pipelining Andreas Klappenecker CPSC321 Computer Architecture.
5.2 Mathematical Power, Convenience, and Cost The set of operations represents a tradeoff among the cost of the hardware, the convenience for a programmer,
Vacuum tubes Transistor 1948 –Smaller, Cheaper, Less heat dissipation, Made from Silicon (Sand) –Invented at Bell Labs –Shockley, Brittain, Bardeen ICs.
What’s on the Motherboard? The two main parts of the CPU are the control unit and the arithmetic logic unit. The control unit retrieves instructions from.
Computer Organization and Assembly language
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.
Computer Architecture and Organization
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Computer Organization and Architecture Instruction-Level Parallelism and Superscalar Processors.
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Chapter 2 Summary Classification of architectures Features that are relatively independent of instruction sets “Different” Processors –DSP and media processors.
The Central Processing Unit (CPU) and the Machine Cycle.
1 Instruction Set Architecture (ISA) Alexander Titov 10/20/2012.
Chapter Six Sun SPARC Architecture. SPARC Processor The name SPARC stands for Scalable Processor Architecture SPARC architecture follows the RISC design.
Computer Organization and Architecture Tutorial 1 Kenneth Lee.
Processor Types and Instruction Sets CS 147 Presentation by Koichiro Hongo.
Introduction to Microprocessors
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
Crosscutting Issues: The Rôle of Compilers Architects must be aware of current compiler technology Compiler Architecture.
TEAM FRONT END ECEN 4243 Digital Computer Design.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Computer Organization Rabie A. Ramadan Lecture 3.
Computer Architecture Lecture 9 MIPS ALU and Data Paths Ralph Grishman Oct NYU.
Processor Types And Instruction sets Chapter- 5.
Interrupt driven I/O Computer Organization and Assembly Language: Module 12.
Fundamentals of Programming Languages-II
Exam 2 Review Two’s Complement Arithmetic Ripple carry ALU logic and performance Look-ahead techniques, performance and equations Basic multiplication.
Comp Sci MIPS machine 1 Ch. 3 MIPS RISC Machine.
PROCESSOR PIPELINING YASSER MOHAMMAD. SINGLE DATAPATH DESIGN.
RISC / CISC Architecture by Derek Ng. Overview CISC Architecture RISC Architecture  Pipelining RISC vs CISC.
LECTURE 10 Pipelining: Advanced ILP. EXCEPTIONS An exception, or interrupt, is an event other than regular transfers of control (branches, jumps, calls,
Address alignment When a word (4-bytes) is loaded or stored the memory address must be a multiple of four. This is called an alignment restriction. Addresses.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Programming Model CS 333 Sam Houston State University Dr. Tim McGuire.
Chapter Overview General Concepts IA-32 Processor Architecture
CS2100 Computer Organization
A Closer Look at Instruction Set Architectures
ELEN 468 Advanced Logic Design
Chapter 9 a Instruction Level Parallelism and Superscalar Processors
عمارة الحاسب.
Pipelining: Advanced ILP
Figure 13.1 MIPS Single Clock Cycle Implementation.
Computer Architecture
Array Processor.
Superscalar Pipelines Part 2
EE 445S Real-Time Digital Signal Processing Lab Spring 2014
Computer Structure S.Abinash 11/29/ _02.
CSC 4250 Computer Architectures
TI C6701 VLIW MIMD.
What is Computer Architecture?
COMP541 Datapaths I Montek Singh Mar 18, 2010.
What is Computer Architecture?
Computer Architecture
Course Outline for Computer Architecture
Computer Architecture Assembly Language
Presentation transcript:

CS402 PPP # 2 MIPS BASIC INFORMATION By George Koutsogiannakis 1

The MIPS microprocessor is developed by MIPS Technologies Inc. A company founded in 1984 by a group of researchers from Stanford University. There are 2 basic architectures MIPS32 and MIPS 64 It is a RISC processor which stands for Reduced Instructions Set Computer. 2

MIPS can be little-endian or big-endian depending on the machine it is used. Little-endian means that the in a 4-byte word (32 bits) the Bytes are arranged as follows: Byte# Big-endian arrangement of bytes: Byte#

4 When configured in big-endian order, byte 0 is always the least- significant (right-hand) byte. For example assume 4 words (32 bits each -4 bytes each). The arrangement in memory of the 16 bytes then is as follows: Bit # Word address Figure 1

5 Questions: Which is the first word’s address (least significant word)? Why memory word address starts at 12? Exercise: Draw the same figure for little-endian order

6 There are two MIPS architectures MIPS32 and MIPS64. We will concentrate on MIPS 32. Architecture refers to the instruction set, registers and other state, the exception model, memory management,virtual and physical address layout, and other features that all hardware executes (e.g. pipelining is an architecture issue) Implementation refers to the way in which specific processors apply the architecture (e.g. How caching works is an implementation issue). There is a main processor and two co-processors-each with their own set of registers

7 Figure 2- MIPS 32 Memory Main processor Co-processor 1- FPU (Floating Point Arithmetic) Co-processor 2- Traps and Memory (sometimes referred as co-proces. 0) 32 Registers ALU Multiply Multiply Divide HILOW BadVAddrStatus Cause EPC 4 registers implemented by Spim. There are more registers PC

8 PIPELINE A pipeline is divided into the following discrete parts, or stages : Fetch Arithmetic operation Memory access Write back As a result in the parallel pipeline implementation a number of instructions can be In the pipeline simultaneously.

9 Cycle 3Cycle 2Cycle 1Cycle 4Cycle 5Cycle 6Cycle 7 FetchALU Memory WriteInstruction 1 Figure 3 Instruction 2 Instruction 3 Instruction 4

10 Questions: How many instructions have finished execution in 7 clock cycles? What if we had super pipelining where each stage takes half a cycle? How many instructions are then finished in 7 cycles? What problems can pipeline present? See lab 2. Issue of delay.