EJEMPLOS DE ARQUITECTURAS

Similar documents
Computer Systems Laboratory Sungkyunkwan University

COE608: Computer Organization and Architecture

Two processors sharing an area of memory. P1 writes, then P2 reads Data race if P1 and P2 don t synchronize. Result depends of order of accesses

LECTURE 2: INSTRUCTIONS

Procedure Calling. Procedure Calling. Register Usage. 25 September CSE2021 Computer Organization

MIPS ISA-II: Procedure Calls & Program Assembly

Chapter 2. Instructions: Language of the Computer. HW#1: 1.3 all, 1.4 all, 1.6.1, , , , , and Due date: one week.

CS3350B Computer Architecture MIPS Procedures and Compilation

Chapter 2. Baback Izadi Division of Engineering Programs

Rechnerstrukturen. Chapter 2. Instructions: Language of the Computer

Computer Architecture. Chapter 2-2. Instructions: Language of the Computer

Computer Architecture Computer Science & Engineering. Chapter 2. Instructions: Language of the Computer BK TP.HCM

Chapter 2. Instructions: Language of the Computer. Jiang Jiang

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 2. Instructions: Language of the Computer

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 2. Instructions: Language of the Computer

Instruction Set. The MIPS Instruction Set. Chapter 2

Chapter 2. Instructions: Language of the Computer

ECE 486/586. Computer Architecture. Lecture # 8

Chapter 2. Instructions: Language of the Computer

Lecture Topics. Branch Condition Options. Branch Conditions ECE 486/586. Computer Architecture. Lecture # 8. Instruction Set Principles.

Chapter 2 Instructions: Language of the Computer

Chapter 2. Instructions: Language of the Computer. Baback Izadi ECE Department

Chapter 2. Instructions: Language of the Computer

Chapter 2. Instructions: Language of the Computer

Computer Architecture

Review of instruction set architectures

Chapter 2. Instructions: Language of the Computer

COMPUTER ORGANIZATION AND DESIGN. ARM Edition. The Hardware/Software Interface. Chapter 2. Instructions: Language of the Computer

Outline. What Makes a Good ISA? Programmability. Implementability

Outline. What Makes a Good ISA? Programmability. Implementability. Programmability Easy to express programs efficiently?

CSEE 3827: Fundamentals of Computer Systems

Instructions: Language of the Computer. Euiseong Seo Computer Systems Laboratory Sungkyunkwan University

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: MIPS Instruction Set Architecture

Chapter 13 Reduced Instruction Set Computers

CSCI 402: Computer Architectures. Instructions: Language of the Computer (4) Fengguang Song Department of Computer & Information Science IUPUI

History of the Intel 80x86

Systems Architecture I

ECE 486/586. Computer Architecture. Lecture # 7

Chapter 06: Instruction Pipelining and Parallel Processing. Lesson 14: Example of the Pipelined CISC and RISC Processors

Lecture 4: Instruction Set Design/Pipelining

Chapter 2. Instructions: Language of the Computer

Real instruction set architectures. Part 2: a representative sample

CMSC Computer Architecture Lecture 2: ISA. Prof. Yanjing Li Department of Computer Science University of Chicago

Fundamentals of Computer Design

Computer Architecture

Computer Architecture

Computer System Architecture

COMP3221: Microprocessors and. and Embedded Systems. Instruction Set Architecture (ISA) What makes an ISA? #1: Memory Models. What makes an ISA?

Instruction Set Architecture (ISA)

EN164: Design of Computing Systems Topic 06.b: Superscalar Processor Design

Introduction to IA-32. Jo, Heeseung

CSE 533: Advanced Computer Architectures Instructor: Gürhan Küçük. Instructions. Instructions cont d. Forecast. Basics. Basics

INTRODUCTION TO IA-32. Jo, Heeseung

Evolution of ISAs. Instruction set architectures have changed over computer generations with changes in the

Instruction Set Architecture. "Speaking with the computer"

Lecture 4: Instruction Set Architecture

Storage I/O Summary. Lecture 16: Multimedia and DSP Architectures

Instruction Set Design and Architecture

Chapter 4. Chapter 4 Objectives

Chapter 7. Microarchitecture. Copyright 2013 Elsevier Inc. All rights reserved.

EC 413 Computer Organization

What is Computer Architecture?

EN164: Design of Computing Systems Lecture 24: Processor / ILP 5

ECE/CS 552: Introduction To Computer Architecture 1. Instructor:Mikko H. Lipasti. University of Wisconsin-Madison. Basics Registers and ALU ops

Chapter 2. lw $s1,100($s2) $s1 = Memory[$s2+100] sw $s1,100($s2) Memory[$s2+100] = $s1

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

Real Processors. Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University

CS241 Computer Organization Spring Introduction to Assembly

ISA and RISCV. CASS 2018 Lavanya Ramapantulu

Processing Unit CS206T

Computer Architecture Lecture 3: ISA Tradeoffs. Prof. Onur Mutlu Carnegie Mellon University Spring 2014, 1/17/2014

ISA: The Hardware Software Interface

Chapter 1. Computer Abstractions and Technology. Lesson 3: Understanding Performance

Instruction-set Design Issues: what is the ML instruction format(s) ML instruction Opcode Dest. Operand Source Operand 1...

CHAPTER 5 A Closer Look at Instruction Set Architectures

2. Instructions: Language of the Computer Computer Architecture COMP SCI 2GA3 / SFWR ENG 2GA3

Universität Dortmund. ARM Architecture

Chapter 5. A Closer Look at Instruction Set Architectures

COMPUTER ORGANIZATION AND DESI

Computer Architecture. MIPS Instruction Set Architecture

Lecture 4: RISC Computers

Advanced d Instruction Level Parallelism. Computer Systems Laboratory Sungkyunkwan University

17. Instruction Sets: Characteristics and Functions

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 2: IA-32 Processor Architecture Included elements of the IA-64 bit

Instruction Set Architectures

Chapter 04: Instruction Sets and the Processor organizations. Lesson 20: RISC and converged Architecture

CHAPTER 5 A Closer Look at Instruction Set Architectures

Architectures & instruction sets R_B_T_C_. von Neumann architecture. Computer architecture taxonomy. Assembly language.

Reduced Instruction Set Computer

Intel released new technology call P6P

IA-32 Architecture COE 205. Computer Organization and Assembly Language. Computer Engineering Department

CSE 141 Computer Architecture Spring Lecture 3 Instruction Set Architecute. Course Schedule. Announcements

Topics in computer architecture

2.7 Supporting Procedures in hardware. Why procedures or functions? Procedure calls

CS450/650 Notes Winter 2013 A Morton. Superscalar Pipelines

Processor (IV) - advanced ILP. Hwansoo Han

URL: Offered by: Should already know: Will learn: 01 1 EE 4720 Computer Architecture

Computer System Architecture

RISC Principles. Introduction

Concepts Introduced in Chapter 3

Transcription:

Maestría en Electrónica Arquitectura de Computadoras Unidad 4 EJEMPLOS DE ARQUITECTURAS M. C. Felipe Santiago Espinosa Marzo/2017

ARM & MIPS Similarities ARM: the most popular embedded core Similar basic set of instructions to MIPS ARM MIPS Date announced 1985 1985 Instruction size 32 bits 32 bits Address space 32-bit flat 32-bit flat Data alignment Aligned Aligned Data addressing modes 9 3 Registers 15 32-bit 31 32-bit Input/output Memory mapped Memory mapped Ejemplos de Arquitecturas 2

Compare and Branch in ARM Uses condition codes for result of an arithmetic/logical instruction Negative, zero, carry, overflow Compare instructions to set condition codes without keeping the result Each instruction can be conditional Top 4 bits of instruction word: condition value Can avoid branches over single instructions Ejemplos de Arquitecturas 3

Instruction Encoding Ejemplos de Arquitecturas 4

ARM includes shifts as part of every data operation instruction, so the shifts with superscript 1 are just a variation of a move instruction, such as lsr 1. Note that ARM has no divide instruction. 5

Summary of data addressing modes. ARM has separate register indirect and register + offset addressing modes, rather than just putting 0 in the offset of the latter mode. To get greater addressing range, ARM shifts the offset left 1 or 2 bits if the data size is halfword or word. Ejemplos de Arquitecturas 6

The Intel x86 ISA Evolution with backward compatibility 8080 (1974): 8-bit microprocessor Accumulator, plus 3 index-register pairs 8086 (1978): 16-bit extension to 8080 Complex instruction set (CISC) 8087 (1980): floating-point coprocessor Adds FP instructions and register stack 80286 (1982): 24-bit addresses, MMU Segmented memory mapping and protection 80386 (1985): 32-bit extension (now IA-32) Additional addressing modes and operations Paged memory mapping as well as segments Ejemplos de Arquitecturas 7

The Intel x86 ISA Further evolution i486 (1989): pipelined, on-chip caches and FPU Compatible competitors: AMD, Cyrix, Pentium (1993): superscalar, 64-bit datapath Later versions added MMX (Multi-Media extension) instructions The infamous FDIV bug Pentium Pro (1995), Pentium II (1997) New microarchitecture (see Colwell, The Pentium Chronicles) Pentium III (1999) Added SSE (Streaming SIMD Extensions) and associated registers Pentium 4 (2001) New microarchitecture Added SSE2 instructions Ejemplos de Arquitecturas 8

The Intel x86 ISA And further AMD64 (2003): extended architecture to 64 bits EM64T Extended Memory 64 Technology (2004) AMD64 adopted by Intel (with refinements) Added SSE3 instructions Intel Core (2006) Added SSE4 instructions, virtual machine support AMD64 (announced 2007): SSE5 instructions Intel declined to follow, instead Advanced Vector Extension (announced 2008) Longer SSE registers, more instructions If Intel didn t extend with compatibility, its competitors would! Technical elegance market success Ejemplos de Arquitecturas 9

Basic x86 Registers Ejemplos de Arquitecturas 10

Basic x86 Addressing Modes Two operands per instruction Source/dest operand Register Register Register Memory Memory Memory addressing modes Address in register Address = R base + displacement Second source operand Register Immediate Memory Register Immediate Address = R base + 2 scale R index (scale = 0, 1, 2, or 3) Address = R base + 2 scale R index + displacement Ejemplos de Arquitecturas 11

x86 Instruction Encoding Variable length encoding Postfix bytes specify addressing mode Prefix bytes modify operation Operand length, repetition, locking, Ejemplos de Arquitecturas 12

Implementing IA-32 Complex instruction set makes implementation difficult Hardware translates instructions to simpler microoperations Simple instructions: 1 1 Complex instructions: 1 many Microengine similar to RISC Market share makes this economically viable Comparable performance to RISC Compilers avoid complex instructions Ejemplos de Arquitecturas 13

ARM v8 Instructions In moving to 64-bit, ARM did a complete overhaul ARM v8 resembles MIPS Changes from v7: No conditional execution field Immediate field is 12-bit constant Dropped load/store multiple PC is no longer a GPR GPR set expanded to 32 Addressing modes work for all word sizes Divide instruction Branch if equal/branch if not equal instructions Ejemplos de Arquitecturas 14

Fallacies Powerful instruction higher performance Fewer instructions required But complex instructions are hard to implement May slow down all instructions, including simple ones Compilers are good at making fast code from simple instructions Use assembly code for high performance But modern compilers are better at dealing with modern processors More lines of code more errors and less productivity Ejemplos de Arquitecturas 15

Fallacies Backward compatibility instruction set doesn t change But they do accrete more instructions x86 instruction set Ejemplos de Arquitecturas 16