Computer Architecture & Operations I

Slides:



Advertisements
Similar presentations
Goal: Write Programs in Assembly
Advertisements

CWRU EECS 3221 Language of the Machine EECS 322 Computer Architecture Instructor: Francis G. Wolff Case Western Reserve University.
Lecture 5: MIPS Instruction Set
1 ECE462/562 ISA and Datapath Review Ali Akoglu. 2 Instruction Set Architecture A very important abstraction –interface between hardware and low-level.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /15/2013 Lecture 11: MIPS-Conditional Instructions Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
ELEN 468 Advanced Logic Design
Chapter 2 Instructions: Language of the Computer
Chapter 2 Instructions: Language of the Computer Part III.
Assembly Language II CPSC 321 Andreas Klappenecker.
Instructions Set Bo Cheng Instruction Set Design An Instruction Set provides a functional description of a processor. It is the visible.
MIPS Architecture CPSC 321 Computer Architecture Andreas Klappenecker.
Computer Architecture CPSC 321 E. J. Kim. Overview Logical Instructions Shifts.
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.
Datapath and Control Andreas Klappenecker CPSC321 Computer Architecture.
CS 300 – Lecture 6 Intro to Computer Architecture / Assembly Language Instructions.
Lecture Objectives: 1)Define the terms least significant bit and most significant bit. 2)Explain how unsigned integer numbers are represented in memory.
CSE331 W02.1Irwin Fall 2001 PSU Computer Architecture Discussion Lecture # 2 MIPS Programming.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Organization and Architecture Instructions: Language of the Machine Hennessy Patterson 2/E chapter 3. Notes are available with photocopier 24.
Computer Architecture CSE 3322 Lecture 2 NO CLASS MON Sept 1 Course WEB SITE crystal.uta.edu/~jpatters.
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.
Computer Architecture CSE 3322 Lecture 3 Assignment: 2.4.1, 2.4.4, 2.6.1, , Due 2/3/09 Read 2.8.
MS108 Computer System I Lecture 3 ISA Prof. Xiaoyao Liang 2015/3/13 1.
EET 4250 Instruction Representation & Formats Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Penn.
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 9 Binary Representation and Logical Operations.
CS Computer Organization Numbers and Instructions Dr. Stephen P. Carl.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Computer Architecture & Operations I
Computer Architecture & Operations I
Computer Architecture & Operations I
COMPUTER ARCHITECTURE & OPERATIONS I
Instruction Set Architecture
Morgan Kaufmann Publishers
MIPS Coding Continued.
Lecture 4: MIPS Instruction Set
ELEN 468 Advanced Logic Design
Computer Architecture & Operations I
The University of Adelaide, School of Computer Science
Super Quick Architecture Review
CS170 Computer Organization and Architecture I
Control Path Catholic University PUCRS.
The University of Adelaide, School of Computer Science
MIPS coding.
Lecture 4: MIPS Instruction Set
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
The University of Adelaide, School of Computer Science
CSCI206 - Computer Organization & Programming
Computer Architecture & Operations I
MIPS Instruction Encoding
Datapath & Control MIPS
The University of Adelaide, School of Computer Science
Topic 5: Processor Architecture Implementation Methodology
The University of Adelaide, School of Computer Science
MIPS Instruction Encoding
Topic 5: Processor Architecture
The University of Adelaide, School of Computer Science
COMP541 Datapaths I Montek Singh Mar 18, 2010.
COMS 361 Computer Organization
Basic MIPS Implementation
Review Fig 4.15 page 320 / Fig page 322
Foundations for Datapath Design
October 29 Review for 2nd Exam Ask Questions! 4/26/2019
MIPS Coding Continued.
MIPS coding.
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
Presentation transcript:

Computer Architecture & Operations I Instructor: Ryan Florin

Representing Instructions The University of Adelaide, School of Computer Science 21 September 2018 Representing Instructions Instructions are encoded in binary Called machine code MIPS instructions Encoded as 32-bit instruction words Small number of formats encoding operation code (opcode), register numbers, … Regularity! Register numbers $t0 – $t7 are reg’s 8 – 15 $t8 – $t9 are reg’s 24 – 25 $s0 – $s7 are reg’s 16 – 23 §2.5 Representing Instructions in the Computer Chapter 2 — Instructions: Language of the Computer

The University of Adelaide, School of Computer Science 21 September 2018 Mini Green Sheet MIPS instructions R: I: Register numbers $t0 – $t7 : 8 – 15, $t8 – $t9 : 24 – 25 $s0 – $s7 : 16 – 23, $zero : 0 op rs rt rd shamt funct 6 bits 5 bits op rs rt constant or address 6 bits 5 bits 16 bits Chapter 2 — Instructions: Language of the Computer

What does this do? add $s1 $zero $zero lw $s0 4($s2) add $s1 $s1 $s0 sw $s1 0($s2)

Practice Write the following in MIPS $t0 = $t1 + 48 $s0 = $t1 + $t2 + $t3 $s0 = ($t1 + $t2) * 16

Convert into MIPS Are these R type or I type? 2231 0080 8e50 0008 0230 8820 ae51 0000

The University of Adelaide, School of Computer Science 21 September 2018 Convert into MIPS MIPS instructions R: I: How to tell the difference between R type and I type? Look at the Green sheet to spot the difference. op rs rt rd shamt funct 6 bits 5 bits op rs rt constant or address 6 bits 5 bits 16 bits Chapter 2 — Instructions: Language of the Computer

What to do Review Chapter 2 Start the homework!