Lecture 2 Microprocessor Architecture Image from:

Slides:



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

Microprocessors A Beginning.
INPUT-OUTPUT ORGANIZATION
Microprocessors and Interfacing
Microprocessors.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Computer Organization and Assembly language
1 TK6123: COMPUTER ORGANISATION & ARCHITECTURE Prepared By: Associate Prof. Dr Masri Ayob Lecture 6: CPU and Memory (1)
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Microcontroller based system design
6. The CPU and Memory Chapt. 7.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
CPU Registers PC Arith Logic Unit Bus Interface I/O Bridge System bus Memory bus Main Memory USB Controller Graphics Adapter Disk Controller I/O Bus Mouse.
INPUT-OUTPUT ORGANIZATION
BLOCK DIAGRAM OF COMPUTER
Processor Structure & Operations of an Accumulator Machine
Computer Organization Computer Organization & Assembly Language: Module 2.
CPU BASICS, THE BUS, CLOCKS, I/O SUBSYSTEM Philip Chan.
created by :Gaurav Shrivastava
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
Basic Structure of Computer Computer Architecture Lecture – 2.
Electrical Engineering Department Engineering College Prince Sattam bin Abdul Aziz University Text Book: - Triebel and Singh, "The 8088 and 8086 Microprocessors",
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
General Concepts of Computer Organization Overview of Microcomputer.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Chapter 4 MARIE: An Introduction to a Simple Computer.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Z80 Overview internal architecture and major elements of the Z80 CPU.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Electronic Analog Computer Dr. Amin Danial Asham by.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Overview von Neumann Architecture Computer component Computer function
C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
بسم الله الرحمن الرحيم MEMORY AND I/O.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Overview of microcomputer structure and operation
Block diagram of a computer system Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor.
Dr. ClincyLecture Slide 1 CS Chapter 4 (Sec 5.1 &5.2) 1 of 5 Dr. Clincy Professor of CS.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Introduction to microprocessor (Continued) Unit 1 Lecture 2
Introduction of microprocessor
Dr. Michael Nasief Lecture 2
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Number Representations and Basic Processor Architecture
Basic Computer Organization
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
Presentation transcript:

Lecture 2 Microprocessor Architecture Image from:

Agenda Microprocessor components The memory Internal organization of MPU Introducing MARIE Source Homework

Von Neumann Model (Revisited) Control Unit ALU Main Memory Mass Memory InputOutput Memory CPU Input BusOutput Bus Data Bus

CPU Components Arithmetic Logic Unit (ALU) Performs A & L ops on the data passing through it. Addition, subtraction Logical AND, OR, shift ops Control Unit (CU) Sequences the ops of the entire system Fetch, decode, execute the successive instructions of a program stored in the memory. Generate signals to synchronize operations There are 3 buses used to interconnect a system Address buses, data buses, and control buses

Memory Module Store information (programs, data) A program specifies the sequence of steps exec by the computer. Each successive instruction is fetched into a special register of the CU. Then, it is decoded and executed. The data are processed by the ALU. Max size of main memory (RAM,ROM) is limited by cost and by the addressing capability of the CPU. Therefore, mass memory (disks, tapes, etc) is required.

Input/Output Modules They are used to communicate with the outside world. Input supplies information to the ALU, or the memory. Keyboard, mouse, sensors, etc. Output displays the data coming out of the ALU or executes commands. Printer, control mechanism (motor, relay), etc.

The Buses Data bus Transmits data between units Bidirectional Bus width typically equals to microprocessor’s bit-width (i.e. 8-bit MPU has 8-bit wide data bus) Address bus Used to select the origin or destination of signal transmitted on another bus or line. If there are 16 lines of address bus  64K addressable Control bus Synchronizes the activities of the system. Carries status and control info both to and from the MPU An effective bus design is crucial to the speed of the system.

A Simple Computer LED Display I/O Interface Keyboard CPU Registers Memory

The Three Registers “10”“+”“5” 10+5 = Data Register 1 (First operand) Data Register 2 (Second operand) Operator Register (Operator) + “15”

The Memory Memory Hierarchy Internal registers (fastest, lowest capacity) Part of the ALU Main memory Mass memory (slowest, largest capacity) Memory Access Logically organized in “words”.

Bits.. Bytes.. Words…! A bit represents either 0 or 1. 1 byte = 8 bits A logical word of: 8-bit MPU = 1 byte 16-bit MPU = 2 bytes 32-bit MPU = 4 bytes I want to know what information you could get from the word “bit”, so I decided to assign you a homework…

Memory Access Address Bit Position Address (16 bits) Address “P” Address “P” Data (8 bits) Write / Read Control signal

Take a closer look… (Intel 8080)

Internal Buses Data bus Bidirectional bus for transmitting data back and forth between chips within the system. Address bus Originates from the MPU (actually from the Program Counter register) to all devices connected to the data bus n-bit bus = 2 n words addressable Control bus Synchronization signals between MPU and devices connected to the bus. i.e. read, write, interrupt, reset, acknowledgement

Architecture Category The data bus is the bus that defines the architecture of a system. Count the number of data buses used to communicate between the registers and the ALU

Single-bus Architecture

Mechanism of SB Architecture (1)

Mechanism of SB Architecture (2)

Mechanism of SB Architecture (3)

The Critical Race Problem

A Simple Solution

Double-Bus Architecture

Triple-Bus Architecture

Standard Microprocessor Architecture Efficient use of the chip area.

ALU and Accumulator ALU performs arithmetic & logical operations. Accumulator is a special register. It store intermediated ALU results. Without the accumulator, it would be necessary to write the result of each calculation to main memory, perhaps only to read right back again for the next operation.

Shift and Rotate Facilities The shifter performs shift and rotate operations.

Flags Register Stores exceptional conditions occurring within the ALU C (Carry) V (Overflow) N (Negative) H (Half-carry) Z (Zero) The contents of the flags register may then be tested by specialized instruction, or read on the internal data bus Note: Status bits may be named differently from one MPU to another. There also might be more status bits (read the spec).

General-Purpose Registers Fast memories provided that the ALU can manipulate data at high speed. There are limited number of GPRs because of restrictions placed on the number of bits that it is reasonable to provide within an instruction. Specific role of these registers is not defined in advance. They may be used to contain any data generated by the program. Register-pairs facilitate to operate two of these registers simultaneously.

The Address Registers Intended for the storage of addresses. They are said to “create” the address bus.

Program Counter (PC) All microprocessors contains at least the program counter. Contains the address of the next instruction to be executed.

Stack Pointer (SP) It is indispensable for interrupts and subroutines.

Stack Push

Stack Pop

Index Register (IX) A powerful memory addressing facility.

Disclaimer Some diagrams in this slide are scanned and some are redrawn for teaching purpose only. They are in the book: R. Zaks, From Chips to Systems: an Introduction to Microprocessors, Sybex, 1981.