COMPUTER ORGANZIATION AND ASSEMBLY LANGUAGE

Slides:



Advertisements
Similar presentations
INTRODUCTION OF COMPUTER
Advertisements

Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
EET 4250: Chapter 1 Performance Measurement, Instruction Count & CPI Acknowledgements: Some slides and lecture notes for this course adapted from Prof.
CIS 314 : Computer Organization Lecture 1 – Introduction.
1 Computer Systems Hardware, Software and Layers of Abstraction.
Microcontroller based system design
CPU Describe the purpose of the CPU
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Computer Organization and Assembly Language
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
Computer Organization ANGELITO I. CUNANAN JR. 1. What is Computer?  An electronic device used for storing and processing data.  It is a machine that.
Computer Architecture and Organization
Chapter 1 CSF 2009 Computer Abstractions and Technology.
Computer Organization
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
William Stallings Computer Organization and Architecture 6 th Edition Chapter 1 Introduction.
EET 4250: Chapter 1 Computer Abstractions and Technology Acknowledgements: Some slides and lecture notes for this course adapted from Prof. Mary Jane Irwin.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
CS/ECE 3330 Computer Architecture Kim Hazelwood Fall 2009.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Engineering Rabie A. Ramadan Lecture 1. 2 Welcome Back.
Chapter 1 Computer Abstractions and Technology. Chapter 1 — Computer Abstractions and Technology — 2 The Computer Revolution Progress in computer technology.
Computer Organization & Assembly Language © by DR. M. Amer.
Chapter 1 — Computer Abstractions and Technology — 1 Below Your Program Application software – Written in high-level language System software – Compiler:
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO CS 219 Computer Organization.
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 2 Computer Organization.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Computer Structure. We will look at:  Four Box diagram  CPU  Memory  Registers and their role  Processing speed.
Introduction to Computers - Hardware
Introduction to Operating Systems Concepts
Introduction to Computing Systems
Computer Systems Nat 4/5 Computing Science Computer Structure:
Computer Hardware What is a CPU.
Computer Organization and Architecture Lecture 1 : Introduction
Systems Architecture Keywords Fetch Execute Cycle
Computer Operations Part 2.
Computer Organization and Machine Language Programming CPTG 245
COURSE OUTCOMES OF Microprocessor and programming
Morgan Kaufmann Publishers
Computer Architecture & Operations I
Computer Hardware – System Unit
Overview of Computers and Programming Chapter 1
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Chapter 7.2 Computer Architecture
Technology Literacy Hardware.
Introduction of microprocessor
INTRODUCTION TO MICROPROCESSORS
Architecture & Organization 1
Course Name: Computer Application Topic: Central Processing Unit (CPU)
INTRODUCTION TO MICROPROCESSORS
CS703 - Advanced Operating Systems
Microcomputer Architecture
INTRODUCTION TO MICROPROCESSORS
Computer Organization & Assembly language
IB Computer Science Topic 2.1.1
Architecture & Organization 1
Microprocessor & Assembly Language
Text Book Computer Organization and Architecture: Designing for Performance, 7th Ed., 2006, William Stallings, Prentice-Hall International, Inc.
T Computer Architecture, Autumn 2005
Introduction to Micro Controllers & Embedded System Design
Five Key Computer Components
Computer Evolution and Performance
Chapter 1 Introduction.
COMS 361 Computer Organization
Course Outline for Computer Architecture
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Chapter 4 The Von Neumann Model
Presentation transcript:

COMPUTER ORGANZIATION AND ASSEMBLY LANGUAGE Abdul Mannan

Course Objectives After successfully completing this course, you will be able to: Describe the basic components of a Computer System, its instruction set architecture and its basic fetch-execute cycle operation. Describe how data is represented and recognized in a Computer. Understand the basics of Assembly Language programming including addressing modes, subroutines, interrupts, stacks, etc. Analyze, design, implement, and test assembly language programs.

Course is About What computers are consist of? How computers work? How to represent information? How they are organized internally? How design affects programming and applications? Programming the machine: Assembly Language

Text Books to Follow Assembly Language for x86 Processors ,6th Ed. Kip R. Irvine , Prentice Hall ,2010 Computer Organization & Design: The Hardware/Software Interface, 4th Ed. David Peterson & John Hennessy 2008 Computer organization and Architecture by William Stallings

Subject Schema The course is divided into two sections: Computer Organization: describes how different components fit together to create working computer system. Assembly Language: programming language that uses symbolic names to represent operations, registers and memory locations.

Computing Machines Computing machines are ubiquitous. General Purpose: Servers, desktops, laptops, PDAs, etc.… Special Purpose: Cash register, ATMs, Games, Mobile Phones, etc. Embedded: Cars, door lock, printers, digital players, industrial machinery, medical equipment, etc.

Computer Software Hardware Program consists Electronics circuit boards of sets of instructions that control the system Hardware Electronics circuit boards that provide functionality of the system

Inside the Computer System software: provides services that are commonly useful, including Operating system Handling input/output Managing memory and storage Scheduling tasks & sharing resources Translators: translates HLL code to machine code Application software: written in HLL.

Moore’s Law In 1965, Intel founder Gordon Moore stated: “The number of transistors per square inch in an integrated circuit will double every year” Current version of Moore’s Law predicts doubling of density of silicon chips every 18 months. Moore originally thought this postulate would hold for 10 years; advances in chip manufacturing processes have allowed the law to hold for 40 years, and it is expected to last for perhaps another 10

Abstraction Complete definition of abstraction includes the following: Suppression of detail Outline structure Division of responsibility Subdivision of system into smaller subsystems

Abstraction and Computer System Can look at a computer as being a machine composed of a hierarchy of levels. Each level has specific function Each level exists as a distinct imaginary machine (or virtual machine) Each level’s virtual machine executes its own particular set of instructions, calling upon machines at lower levels to carry out tasks as necessary

Abstraction and Computer Systems Machine-independent Text uses the following labels to describe levels of abstraction in a computer system: App7 HOL6 Asmb5 OS4 ISA3 Mc2 LG1 Each level has its own language to describe tasks performed by Computer Machine-specific

Abstraction and Computer Systems Level: App7 The application level is composed of those programs designed to do specific kinds of tasks for end users. An application may have some sort of programming language associated with it (macros or shortcuts, e.g.) Ideally, end users need not be concerned with the actions and language(s) associated with lower levels in the abstraction hierarchy.

Abstraction and Computer Systems Level: HOL6 The high order language layer is the layer of abstraction at which most programmers operate. Applications are typically written in high order languages. High order languages are characterized by: Portability across platforms. Relative ease of use. Relatively high level of abstraction, requiring translation of program code prior to execution.

Abstraction and Computer Systems Level: Asmb5 The assembly language level is an intermediate step between high order language and the machine language of a particular processor. Programs at the HOL6 level are usually compiled to level Asmb5, then translated (assembled) to machine language. Source code can also be written in assembly language.

Abstraction and Computer Systems Level: OS4 The operating system is responsible for the tasks related to multiprogramming, including: Memory protection Process synchronization Device management Operating systems were originally developed for multiuser systems, but even most single user systems utilize an operating system. Compilers and assemblers are also considered systems software.

Abstraction and Computer Systems Level: ISA3 The instruction set architecture, or machine language level, consists of the set of instructions recognized by the particular hardware platform. Instructions at this level are directly executable without any translation.

Abstraction and Computer Systems Level: Mc2 The microinstruction or control level is the level at which the computer decodes and executes instructions and moves data in and out of the processor. The processor’s control unit interprets machine language instructions, causing required actions to take place.

Abstraction and Computer Systems Level: LG1 The digital logic level consists of the physical components of the computer system, the actual electronic gates and wires. Boolean algebra and truth tables can be used to describe the operations at this level.

Functions of a Computer Functions of all computers are: Data processing Data storage Data movement Control

Functions of a Computer Data Movement e.g. Keyboard to screen

Functions of a Computer Storage e.g. Internet download to Hard Disk

Functions of a Computer Processing from/to storage e.g. Updating Word/Excel File

Functions of a Computer Processing from storage to I/O e.g. Printing a Word/Excel File

Anatomy of Computer: Block Diagram

Anatomy of Computer: Detailed Block Diagram

Anatomy of Computer: Detailed Block Diagram

Anatomy of Computer: Detailed Block Diagram Processor (CPU) Common Bus (address, data & control) Control Unit Datapath Arithmetic Logic Unit (ALU) Registers Memory Program Storage Data Storage Output Units Input Units

Anatomy of Computer: CPU Decodes and monitors the execution of instructions. Controls flow of information in CPU, memory, I/O devices: System clock (Intel® Core™ I7-720QM Processor (1.6GHz, turbo up to 2.8GHz, 6MB L3 Cache)) Maintains a register called program counter(PC) Control Unit Datapath Arithmetic Logic Unit (ALU) Registers Processor (CPU)

Anatomy of Computer: CPU Control Unit Datapath Arithmetic Logic Unit (ALU) Registers ALU – Performs all arithmetic computations & logic evaluations. Registers – Storage location in CPU, used to hold data or a memory address during the execution of an instruction.. Processor (CPU)

Anatomy of Computer: Common Bus Common Bus (address, data & control) A group of conducting wires that allow signals to travel from one point to another: Address bus – The location of data in memory or I/O devices. Data bus – Carry data in & out from CPU. Control bus – Control the operation of the CPU.

Anatomy of Computer: Memory RAM Volatile – Cannot retain data without power. Allows the processor to read from & write into any location on memory chip. ROM Nonvolatile – When power is removed, the reapplied, the original data will still be there. Can only be read, cannot be written to or by the processor.