The University of Adelaide, School of Computer Science

Slides:



Advertisements
Similar presentations
Lecture 10 Instruction Set Architecture
Advertisements

Lecture 13: 10/8/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Instruction Set-Intro
1 ECE369 ECE369 Chapter 2. 2 ECE369 Instruction Set Architecture A very important abstraction –interface between hardware and low-level software –standardizes.
CS3350B Computer Architecture Winter 2015 Lecture 4
Systems Architecture Lecture 5: MIPS Instruction Set
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
CMPT 334 Computer Organization Chapter 2 Instructions: Language of the Computer [Adapted from Computer Organization and Design 5 th Edition, Patterson.
1 Layers of Computer Science, ISA and uArch Alexander Titov 20 September 2014.
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
1 Instruction Set Architecture (ISA) Alexander Titov 10/20/2012.
Chapter 2 Instructions: Language of the Computer Part I.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /08/2013 Lecture 10: MIPS Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE.
Chapter 2 CSF 2009 The MIPS Assembly Language. Stored Program Computers Instructions represented in binary, just like data Instructions and data stored.
1  1998 Morgan Kaufmann Publishers Where we are headed Performance issues (Chapter 2) vocabulary and motivation A specific instruction set architecture.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 7, 8 Instruction Set Architecture.
Page 1 Computer Architecture and Organization 55:035 Midterm Exam Review Spring 2011.
MIPS assembly. Computer  What’s in a computer?  Processor, memory, I/O devices (keyboard, mouse, LCD, video camera, speaker), disk, CD drive, …
INSTRUCTION SET PRINCIPLES. Computer Architecture’s Changing Definition  1950s to 1960s: Computer Architecture Course = Computer Arithmetic  1970s to.
Memory, Bits, & Bytes. Memory Part of the computer where programs and data are stored. Read and written (changed). Bit – Binary digit – Basic unit of.
MIPS Arithmetic is 32 bits
Computer Architecture & Operations I
Computer Architecture & Operations I
Data representation How do we represent data in a digital system?
Computer Architecture & Operations I
A Closer Look at Instruction Set Architectures
COMPUTER ARCHITECTURE & OPERATIONS I
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Morgan Kaufmann Publishers
Computer Architecture & Operations I
COSC 3406: Computer Organization
Morgan Kaufmann Publishers
Computer Architecture (CS 207 D) Instruction Set Architecture ISA
Computer Architecture & Operations I
MIPS Assembly.
CS170 Computer Organization and Architecture I
CSCI206 - Computer Organization & Programming
Introduction to Computer Systems Engineering
Lecture 4: MIPS Instruction Set
McGraw-Hill Technology Education
The University of Adelaide, School of Computer Science
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
CDA 3100 Spring 2009.
CSCI206 - Computer Organization & Programming
The University of Adelaide, School of Computer Science
Systems Architecture Lecture 5: MIPS Instruction Set
MIPS assembly.
Data Representation Bits
The University of Adelaide, School of Computer Science
Chapter 2 Instructions: Language of the Computer
Architecture Overview
A primer on Computers and Programs
August 29 New address for Fang-Yi
Morgan Kaufmann Publishers Computer Performance
Data representation How do we represent data in a digital system?
University of Gujrat Department of Computer Science
Introduction to Microprocessor Programming
Dr Hao Zheng Computer Sci. & Eng. U of South Florida
COMS 361 Computer Organization
Computer Architecture
McGraw-Hill Technology Education
Review In last lecture, done with unsigned and signed number representation. Introduced how to represent real numbers in float format.
January 16 The books are here. Assignment 1 now due Thursday 18 Jan.
McGraw-Hill Technology Education
CS334: MIPS language _Mars simulator Lab 2_1
Data representation How do we represent data in a digital system?
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
Presentation transcript:

The University of Adelaide, School of Computer Science 24 February 2019 Lecture 2.1 Instructions: Introduction Chapter 2 — Instructions: Language of the Computer

Morgan Kaufmann Publishers 24 February, 2019 Objectives Understand that the instruction set is the repertoire of instructions of a computer Remember that the memory is always addressed at the unit of byte Memory only accepts byte addresses Convert between byte address and word address Tell the difference between big-endian computer and little-endian computer Underline two key principles of machine design Chapter 2 — Instructions: Language of the Computer — 2 Chapter 4 — The Processor

Coverage Textbook Chapters 2.1, 2.2, 2.3 Chapter 2 — Instructions: Language of the Computer — 3

The University of Adelaide, School of Computer Science 24 February 2019 Instruction Set §2.1 Introduction The repertoire of instructions of a computer Different computers have different instruction sets But with many aspects in common Early computers had very simple instruction sets Simplified implementation Many modern computers also have simple instruction sets Chapter 2 — Instructions: Language of the Computer — 4 Chapter 2 — Instructions: Language of the Computer

The MIPS Instruction Set The University of Adelaide, School of Computer Science 24 February 2019 The MIPS Instruction Set Used as the example throughout the book 32-bit Computer, i.e., MIPS-32 Stanford MIPS commercialized by MIPS Technologies (www.mips.com) Large share of embedded core market Applications in consumer electronics, network/storage equipment, cameras, printers, … One example of RISC instruction sets Typical of many modern instruction set architectures (ISAs) See MIPS Reference Data tear-out card, and Appendixes A and E Chapter 2 — Instructions: Language of the Computer — 5 Chapter 2 — Instructions: Language of the Computer

Representation of Memory Addresses The University of Adelaide, School of Computer Science 24 February 2019 Representation of Memory Addresses Memory addresses are given in the unit of byte Show an example of an array of 10 words, say array Ax. Say the address of Ax[0] is 120, ask the address of Ax[1], Ax[2], … Chapter 2 — Instructions: Language of the Computer — 6 Chapter 2 — Instructions: Language of the Computer

The University of Adelaide, School of Computer Science 24 February 2019 Save Words A multiple-byte word is stored in multiple consecutive bytes The address of a word matches the address of one of the multiple bytes within the word Use the smallest address in general In MIPS, words must start at addresses of multiples of 4 Show an example of an array of 10 words, say array Ax. Say the address of Ax[0] is 120, ask the address of Ax[1], Ax[2], … Chapter 2 — Instructions: Language of the Computer — 7 Chapter 2 — Instructions: Language of the Computer

Word Address for Convenience Word address = Byte address ÷ 4 Chapter 2 — Instructions: Language of the Computer — 8

Store words into memory Chapter 2 — Instructions: Language of the Computer — 9

Two Key Principles of Machine Design Instructions are represented as numbers and, as such, are indistinguishable from data Programs are stored in alterable memory (that can be read or written to) just like data Stored-program concept Programs can be shipped as files of binary numbers Computers can inherit ready-made software provided they are compatible with an existing ISA – leads industry to align around a small number of ISAs Chapter 2 — Instructions: Language of the Computer — 10