Introduction to Microprocessors

Slides:



Advertisements
Similar presentations
Computing Systems Organization
Advertisements

MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Lecture 01: Introduction to Microcomputer & Embedded Systems.
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
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.
Vacuum tubes Transistor 1948 ICs 1960s Microprocessors 1970s.
Chapter 0 Introduction to Computing
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Vacuum tubes Transistor 1948 –Smaller, Cheaper, Less heat dissipation, Made from Silicon (Sand) –Invented at Bell Labs –Shockley, Brittain, Bardeen ICs.
1 CS402 PPP # 1 Computer Architecture Evolution. 2 John Von Neuman original concept.
Computer Organization and Assembly language
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
The Central Processing Unit: What Goes on Inside the Computer
A Simple Computer consists of a Processor (CPU-Central Processing Unit), Memory, and I/O Memory Input Output Arithmetic Logic Unit Control Unit I/O Processor.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
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.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Computer Organization & Assembly Language © by DR. M. Amer.
CSCI-100 Introduction to Computing Hardware Part I.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Electronic Analog Computer Dr. Amin Danial Asham by.
MICROOCESSORS AND MICROCONTROLLER:
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Chapter 2 content Basic organization of computer What is motherboard
CPU Lesson 2.
Unit Microprocessor.
Microprocessor and Microcontroller Fundamentals
Chapter 1 Introduction.
Processor/Memory Chapter 3
Computing Systems Organization
UNIT – Microcontroller.
Chapter 7.2 Computer Architecture
The Central Processing Unit
Introduction of microprocessor
General Architecture of Digital Computer
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Computer Architecture
Microprocessor Lecture 7 (8086 Registers).
Presentation transcript:

Introduction to Microprocessors Chapter 1

ENIAC (Electrical Numerical Integrator and Computer) First digital Computer In 1946 in Pennsylvania 18 ft high, 80 ft long 18000 vacuum tubes Weighted 30 tons Required 1500 square feet floor space

Stored Program Concept Von Neumann suggested that rather then rewire the computer for each new task, program instruction should be stored in a memory unit, just like data Software programmable instead of hardware programmable

EDVAC (Electronic Discrete Variable Automatic Computer) First stored program computer In 1952 Basic parts of stored program computer CPU Memory I/O

Stored Program Concept

Stored Program Concept There are three major parts activities within the computer CPU which acts as the brain coordinating all activities memory unit where the program instructions and data are temporarily stored I/O (Input/Output) devices which allow the computer to input information for processing and then output the result Today the CPU circuitry has been reduced to ICs called the microprocessor, the entire computer with the three parts is called a microcomputer Several registers (e.g., flip-flops wired in series with each other) Some are general purpose, the accumulator for example is reserved for performing complex mathematical operations like multiply and divide, and all I/O data has to go thru the accumulator The basic timing of the computer is controlled by a square wave oscillator or a clock generator circuit. Synchronization Determines how fast the program can be fetched from memory and executed Memory Read or Fetch Cycle IP: Instruction Pointer

Stored Program Concept Memory unit consists of a large number of storage locations each with its own address RAM (Random Access Memory) and its volatility Typically each memory location is 8 bits wide (byte accessible memory) ROM (Read Only Memory) The memory unit’s address selector/decoder circuit examines the binary number on the address line and selects the proper memory location to be accessed. In this example, CPU is reading from memory, it activates its MEMORY READ control signal This causes the selected data byte in memory to be placed onto the data lines and routed to the instruction register in the CPU • Once in the CPU, the instruction is decoded and executed In this example, instruction has the decimal code 64 which for a 8086 microprocessor is decoded to be INC AX The ALU (Arithmetic Logic Unit) is instructed to add 1 to the contents of the AX The cycle repeats itself

Stored Program Concept Memory unit consists of a large number of storage locations each with its own address. As a Prime Memory it can be observed as: – RAM (Random Access Memory) and its volatility. Typically 8 bit wide – ROM (Read Only Memory)

Instruction Set The list of all recognizable instructions by the instruction decoder is called the instruction set CISC (Complex Instruction Set Computers), e.g., 80x86 family has more than 3000 instructions RISC (Reduced Instruction Set Computers) - A small number of very fast executing instructions Most microprocessor chips today are allowed to fetch and execute cycles to overlap This is done by dividing the CPU into EU (Execution Unit) BIU (Bus Interface Unit) BIU fetches instructions from the memory as quickly as possible and stores them in a queue, EU then fetches the instructions from the queue not from the memory The total processing time is reduced Modern microprocessors also use a pipelined execution unit which allows the decoding and execution of instructions to be overlapped.

EU and BIU

Fetch and Execute Cycle BIU outputs the contents of the IP onto the address bus Register IP is incremented by one or more than one for the next instruction fetch Once inside the BIU, the instruction is passed to the queue; this queue is a first-in-first-out register sometimes likened to a pipeline Assuming that the queue is initially empty the EU immediately draws this instruction from the queue and begins execution While the EU is executing this instruction, the BIU proceeds to fetch a new instruction. BIU will fill the queue with several new instructions before the EU is ready to draw its next instruction The cycle continues with the BIU filling the queue with instructions and the EU fetching and executing these instructions

Pipelined Architecture Three conditions that will cause the EU to enter a wait mode when the instruction requires access to a memory location not in the queue when the instruction to be executed is a jump instruction; the instruction queue should be flushed out (known as branch penalty too much jumping around reduces the efficiency of the program) during the execution of slow instructions for example the instruction AAM (ASCII Adjust for Multiplication) requires 83 clock cycles to complete for an 8086

Nonpipelined vs pipelined architecture

Three Bus System Architecture A collection of electronic signals all dedicated to particular task is called a bus address bus data bus control bus Data Bus The width of the data bus determines how much data the processor can read or write in one memory or I/O cycle 8-bit microprocessor has an 8-bit data bus 80386SX 32-bit internal data bus, 16-bit external data bus 80386 32-bit internal and external data buses How can a 64-bit (or 16 bit) microprocessor access an 8-bit memory? The trick is to divide the memory into banks 64-bit Pentium requires eight banks of memory with each bank set up to be one-byte wide Bank enable signals are then output by the microprocessor to specify which bank to access

Address Bus The address bus is used to identify the memory location or I/O device (also called port) the processor intends to communicate with 20 bits for the 8086 and 8088 32 bits for the Pentium 36 bits for the Pentium II and III The total number of memory locations addressable by a given CPU is always equal to 2x where x is the number of address bits, regardless of the data bus. 8086 has a 20-bit address bus and therefore addresses all combinations of addresses from all 0s to all 1s. This corresponds to 2 20 addresses or 1M (1 Meg) addresses or memory locations. Pentium: 4Gbyte main memory

Control Bus How can we tell the address is a memory address or an I/O port address Memory Read Memory Write I/O Read I/O Write When Memory Read or I/O Read are active, data is input to the processor. When Memory Write or I/O Write are active, data is output from the The control bus signals are defined from the processor’s point of view.

CISC Specifications Large number of variable length instructions Multiple addressing modes Small number of internal registers Instructions that require multiple number of clock cycles to execute 8086 is a CISC with 3000 different instruction forms take between 1 to 6 bytes 6 different addressing modes 8 general purpose registers

Some Important Terminology Bit is a binary digit that can have the value 0 or 1 A byte is defined as 8 bits A nibble is half a byte A word is two bytes A double word is four bytes A kilobyte is 210 bytes (1024 bytes), The abbreviation K is most often used Example: A floppy disk holding 356Kbytes of data A megabyte or meg is 220 bytes, it is exactly 1,048,576 bytes A gigabyte is 230 bytes

Evolution of Intel Microprocessors