Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Princess Sumaya University
Instruction Set Design
Goal: Write Programs in Assembly
Instruction Set-Intro
1 ECE462/562 ISA and Datapath Review Ali Akoglu. 2 Instruction Set Architecture A very important abstraction –interface between hardware and low-level.
1 ECE369 ECE369 Chapter 2. 2 ECE369 Instruction Set Architecture A very important abstraction –interface between hardware and low-level software –standardizes.
10/9: Lecture Topics Starting a Program Exercise 3.2 from H+P Review of Assembly Language RISC vs. CISC.
Systems Architecture Lecture 5: MIPS Instruction Set
Chapter 2 Instructions: Language of the Computer
Chapter 2.
Fall EE 333 Lillevik 333f06-l4 University of Portland School of Engineering Computer Organization Lecture 4 Assembly language programming ALU and.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3: IT Students.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:
Princess Sumaya University
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Lecture 5 Sept 14 Goals: Chapter 2 continued MIPS assembly language instruction formats translating c into MIPS - examples.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 2:
Princess Sumaya Univ. Computer Engineering Dept. Chapter 3:
Assembly & Machine Languages
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4: IT Students.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 4:
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Chapter 4 MARIE: An Introduction to a Simple Computer.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 5:
Module : Algorithmic state machines. Machine language Machine language is built up from discrete statements or instructions. On the processing architecture,
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Indira Gandhi National Open University presents. A Video Lecture Course: Computer Platforms.
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.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
Computer Architecture CSE 3322 Lecture 3 Assignment: 2.4.1, 2.4.4, 2.6.1, , Due 2/3/09 Read 2.8.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Page 1 Computer Architecture and Organization 55:035 Midterm Exam Review Spring 2011.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
CS2100 Computer Organisation
Immediate Addressing Mode
CPU Organisation & Operation
System Programming and administration
COMPUTER ARCHITECTURE & OPERATIONS I
Instruction Set Architecture
Assembly Language Assembly Language
Morgan Kaufmann Publishers
Processor Instructions set. Learning Objectives
MIPS Assembly.
Computer Architecture
Lecture 4: MIPS Instruction Set
Computer Programming Machine and Assembly.
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
CSCI206 - Computer Organization & Programming
The University of Adelaide, School of Computer Science
Systems Architecture Lecture 5: MIPS Instruction Set
Computer Architecture & Operations I
MIPS Instruction Encoding
The University of Adelaide, School of Computer Science
MIPS Instruction Encoding
Introduction to Micro Controllers & Embedded System Design
MIPS Assembly.
COMS 361 Computer Organization
MIPS Assembly.
Chapter 6 Programming the basic computer
CPU Structure CPU must:
Systems Architecture I (CS ) Lecture 5: MIPS Instruction Set*
Instruction Set Architecture
MIPS Assembly.
Presentation transcript:

Princess Sumaya Univ. Computer Engineering Dept. Chapter 2: IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 1 / 9 Basic Computer Organization  The 5 Classic Components of a Computer  The Basic Hardware/Software Interface  The Stored-Program Concept IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 2 / 9 RISC & CISC  Reduced Instruction Set Computer ●The storage concept (32 bits): ♦ Registers (R1, R2 … R31) ♦ Memory ●Arithmetic operations: ♦ Simple ♦ Limited to registers  Complicated Instruction Set Computer ●IA-32 IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 3 / 9 Instructions  Assembly Language Instruction: Perform:a = b + c ADDa, b, c; a  b + c What are ‘a’, ‘b’ and ‘c’?  Sequence of Instructions: Perform: a = (b + c) – (d + e) IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 4 / 9 Memory Operands  Data Transfer Instructions ●Memory Address (Location) ●Slower than registers  Load and Store Instructions Memory IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 5 / 9 Constant Operands  Memory Operands Perform a = b + 4  Immediate Operands Memory b IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 6 / 9 Memory Access  Height and Width 1 KB 4 KB  Address & Data 16 Locations  1 K Locations  1 M Locations   Read & Write Memory bit 1 KB IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 7 / 9 Stored Program Architecture Instructions (Program) Operands (Data) Memory 1024 x 32 OpcodeOperands Binary Operand IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 8 / 9 Memory Organization  Byte Access  Word Access 20 Byte 21 Byte 20 Byte Byte Byte Byte 24 Byte Byte Byte Byte 20 Byte Byte 22 Byte Byte IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. 9 / 9 Instruction Representation  Instruction Format  Machine Language & Machine Code Sequence of instructions OpcodeOperands ADD R1, R2, F F Assembly Language Machine Language IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. Chapter 2

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. Chapter 2 Exercise 1  Write an assembly language program to perform a+2b where ‘a’ and ‘b’ are stored in R1 and R2.  Write an assembly language program to swap two locations at memory addresses 10 and 20.  Rewrite the following program to run faster: SUB R1, R1, R1 INC R1 ADD R2, R3, R1  A memory has 4 bits of address and 4 bits of data. Determine the total number of bits inside it. IT Students

Princess Sumaya University – Computer Org. & Assembly Lang. Computer Engineering Dept. Chapter 2 Exercise 2  Determine the value of R1: LD R1, M [ 43 ]  Write the assembly instruction at 44.  Assuming 8-bit registers, determine the value of R1: Load Immediate R1, Binary ‘ ’ Arith Shift Right R1  Assuming i and j are integers, R1= i and R2 = j, write the C- language statement for: Compare R1, R2 Jump Equal Label_1 Clear R1 Label_1: Clear R2 IT Students Opcode Operand 1 Operand 2 Operand 3 Add (= B1)Reg (5 bits) Add (= B2)Reg (5 bits) Constant