Microprocessor and Assembly Language

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
Processor System Architecture
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Stored Program Concept: The Hardware View
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
The Computer Processor
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Basic Operational Concepts of a Computer
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Computer Science 210 Computer Organization The von Neumann Architecture.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Computer Science 101 Computer Systems Organization.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
Dale & Lewis Chapter 5 Computing components
Computer operation is of how the different parts of a computer system work together to perform a task.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Von Neumann Architecture Stored-Program Architecture.
3.1.4 Hardware a. describe the function and purpose of the control unit, memory unit and ALU (arithmetic logic unit) as individual parts of a computer;
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
CPU Lesson 2.
Computer Organization and Architecture Lecture 1 : Introduction
Unit Microprocessor.
8085 Microprocessor Architecture
Systems Architecture Keywords Fetch Execute Cycle
Computers’ Basic Organization
COURSE OUTCOMES OF Microprocessor and programming
Von Neumann architecture
The Stored Program Computer
Control Unit Lecture 6.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Chapter 4 The Von Neumann Model
Computer Design & Organization
Computer Science 210 Computer Organization
Lecture on Microcomputer
Assembly Language for Intel-Based Computers, 5th Edition
Introduction of microprocessor
General Architecture of Digital Computer
Computer Architecture
Chapter 4 The Von Neumann Model
Instructions at the Lowest Level
Teaching Computing to GCSE
Number Representations and Basic Processor Architecture
COMS 161 Introduction to Computing
Introduction to Computing
Computer Architecture
Central Processing Unit
Computer Architecture
Chapter 4 The Von Neumann Model
Unit 1.1 System Architecture Lesson 2
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Computer Architecture
Basic components Instruction processing
A Top-Level View Of Computer Function And Interconnection
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Architecture Assembly Language
Computer Architecture
COMPUTER ARCHITECTURE
Sec (2.3) Program Execution.
Chapter 4 The Von Neumann Model
Presentation transcript:

Microprocessor and Assembly Language Lecture-2-Computer Architecture Muhammad Hafeez Department of Computer Science GC University Lahore

Today’s Agenda Von Neumann Architecture Harvard Architecture

Von Neumann Architecture Up untill Second World War (1939-1944) computers were used to combat enemy strategy But for a new problem to solve, or carry out a different task the computer has to be re-wired/ almost re-built entirely What was the solution?

Von Neumann Architecture In 1945, a mathematician John Von Neumann proposed the idea of Flexible Computer – Stored Program Computer In the meantime another mathematician proposed similar type of idea – Turing Machine Both of these computers were programmable by storing data/ instruction in the computer memory

Von Neumann Architecture Advantages: Both programs and data were treated equally Easier to re-program by loading/ unloading tasks Stored-Program Computer is called Von Neumann Architecture

Von Neumann Architecture

Features of Von Neumann Architecture Memory: The computer will have memory that can hold data and instructions to process that data. Today’s RAM Control Unit: Control unit will manage the processing of data by coordinating between different components of Computer – one at a time Arithmetic and Logic Unit Bus Input/ Output Devices

Popularity of Von Neumann Architecture Most Successful architecture Modern Computers have CU and ALU on its Chip Memory concept is manifested as RAM

Bottlenecks of Von Neumann Architecture Every piece of data has to pass the Data Bus to reach to CPU and Main Memory (called von Neumann bottleneck) CPU spends most of the time waiting for instructions Solutions? Data and Program share the same memory (Memory Management) The rate at which data and instruction are required often different but in von Neumann architecture they both reach at same speed

Harvard Architecture Split Program and Data Memory Advantages Disadvantages Application

Machine Instruction Cycle

Machine Instruction Cycle Fetch: The address of instruction moves from PC to AR. The control unit fetches the next instruction from the memory at location pointed by AR into IR, and increments the Program Counter. Decode: The control unit decodes the instruction to determine what the instruction will do. The instructions input operands are passed to the ALU, and signals are sent to the ALU indicating the operation to be performed

Machine Instruction Cycle Fetch operands: If the instruction uses an input operand located in memory, the control unit uses a read operation to retrieve the operands and copy it into data registers (DR) Execute: The ALU executes the instruction using the Accumulator register and data register as operands and sends the output to Accumulator register and/or memory. The ALU updates status flags providing information about the processor state. Store output operand: If the output operand is in memory, the control unit uses a write operation to store the data

CPU Performance Depends Upon Memory Read/ Write

Reading From Memory Cycle 1: The address bits of memory operands are placed on Address Bus (ADDR) Cycle 2: The Read Line (RD) is set low, indicating memory that a read operation is to be performed Cycle 3: CPU waits for Memory to respond, during this cycle memory controller places the operand on data bus (DATA) The Read Line (RD) set high indicating the CPU to read data from data bus.

Memory Delays How to solve this speed mismatch?

Size of Memory A Kilobyte = 1024 Bytes A Megabyte = 1024 Killobytes = 220 or (1,048,576 Bytes) 1 million A Gigabyte = 230 or 1 billion bytes A Terabyte = 240 or 1 trillion bytes Example: A computer has 16MB Memory, How many bytes?

Data Bus And Address Bus Data Bus: Bi-Directional Bus to carry data in/out of RAM, more wider the bus more data can travelled .. Cost increase too Address Bus: Uni-Directional Address lines of Address Bus determine number of locations of memory to be addressed e.g. x lines can address 2x memory location, each location usually hold 1 byte of contents, memory called byte addressable memory Number of address lines required to address 1K memory?

Registers of CPU A location within CPU to hold temporary data and instructions General Purpose Registers Special Purpose Registers But we will discuss registers in more generic way, a specialized register with respect to specific architecture will be discussed later

Registers of CPU More General Type of Registers Program Counter Instruction Register Address Register Data Registers Accumulator Program Status Word or Flag Register I/O Registers Note: No Registers with these name exist in today’s computers

Questions ??????????????????????????