Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.

Slides:



Advertisements
Similar presentations
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Advertisements

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.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Vacuum tubes Transistor 1948 ICs 1960s Microprocessors 1970s.
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Introduction to Computer Systems
Data Manipulation Computer System consists of the following parts:
Vacuum tubes Transistor 1948 –Smaller, Cheaper, Less heat dissipation, Made from Silicon (Sand) –Invented at Bell Labs –Shockley, Brittain, Bardeen ICs.
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.
Microcontroller based system design
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
Computer Organization and Assembly language
Khaled A. Al-Utaibi  Microprocessors  Microcontrollers  Embedded Systems.
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Computer Organization
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
E0001 Computers in Engineering1 The System Unit & Memory.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
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.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Computer Organization & Assembly Language © by DR. M. Amer.
Introduction to Microprocessors Manijeh Keshtgary Fall 2006 Shiraz University of Technology.
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Architecture 2 nd year (computer and Information Sc.)
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
MICROOCESSORS AND MICROCONTROLLER:
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
This course is designed by Dr. Khaled A. Al-Utaibi.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
Fundamentals of Programming Languages-II
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.
بسم الله الرحمن الرحيم MEMORY AND I/O.
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.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
Computer Architecture Furkan Rabee
Chapter Overview General Concepts IA-32 Processor Architecture
Unit Microprocessor.
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
Computing Systems Organization
UNIT – Microcontroller.
INTRODUCTION TO MICROPROCESSORS
Microcomputer Architecture
Microprocessor & Assembly Language
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Chapter 5: Computer Systems Organization
Microprocessor Lecture 7 (8086 Registers).
Presentation transcript:

Khaled A. Al-Utaibi

 Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What is a Microcomputer ?  Course Objectives  The Stored Program Concept  The Stored Program Processing Cycle  Three-Bus System Architecture  The 80x86 Family

 Microcomputer systems are becoming an essential part of any product or equipment in all fields including − House Appliances − Office Equipment − Telecommunications − Transportation − Traffic Control − Medical Equipment − Industrial Control

 Work

 A microcomputer is an electronic device with a microprocessor as its central processing unit (CPU), a memory, and input/output (I/O) facilities.

 When a microcomputer is equipped with a keyboard and screen for input and output and is running an operating system (DOS, Windows, Linux, etc) it is called a personal computer.

 To introduce the fundamental hardware and software concepts needed for the design of microcomputers system.

− Functions of various processor pins − Memory/IO Read and Write bus cycles − Main types of memory technology − Memory internal organization − Design memory interfaces. − Computer serial and parallel interfaces

 To introduce the fundamental hardware and software concepts needed for the design of microcomputers system. − How interrupts are used to implement I/O control and data transfers − Design interrupt service routines and I/O drivers using assembly language. − Data access from magnetic and optical disk drives using DMA − Types of bus interfaces in a computer system

 Most of today’s computer systems are based on a design principle proposed by Dr. John Von Neumann (1946).

 The basic stored program computer (Von Neumann Architecture) consists of three major parts: (1) CPU, (2) Memory, (3) I/O Devices.

 The basic stored program cycle consists of three major steps: (1) Fetch, (2) Decode, (3) Execute.

 Clock Generator: − Controls the basic timing of the computer − It generates a square wave signal − This signal is used to synchronize all activities within the computer  Registers: − Two types (general purpose, special purpose) − General purpose registers are used to store temporary information − Special purpose registers are used for specific tasks (e.g. the accumulator)

 Fetching, Decoding and Executing an Instruction: − The basic processing cycle begins with a memory fetch or read cycle − The Instruction Pointer (IP) holds the address of next instruction to be fetched. − This address is output on the system address bus. − The memory address decoder examines the binary value of the address on the system address bus and selects the proper memory location.

 Fetching, Decoding and Executing an Instruction: − The CPU activate the memory read control through the system control bus. − This causes the selected data byte (i.e. instruction) in the memory to be placed onto the data bus. − The instruction is then placed in the Instruction Register (IR). − Once in the CPU, the instruction is decoded and executed. − When executing the instruction is completed, the cycle is repeated.

 The Instruction Set: − The job of the Instruction Decoder (ID) is to recognize and activate appropriate controls in the CPU needed to execute the instruction. − The list of all instructions recognized by the ID is called the instruction set. − Microprocessors are classified based on the specification of the instruction sets into two categories:  (1) Complex Instruction Set Computers (CISC) and  (2) Reduced Instruction Set Computers (RISC)

 Modern CPUs: − Most microprocessors today are designed to allow the fetch and execute cycles to overlap. − This is done by dividing the CPU into two units:  (1) a Bus Interface Unit (BIU) and  (2) an Execution Unit (EU). − The job of the BIU is to fetch instructions from memory and store them in a special instruction queue. − The EU then fetches instructions from this queue (not from memory). − Some processors have a pipelined execution unit that allows the decoding and execution of instructions to overlap.

 A bus is a collection of electronic signal lines all dedicated to a particular task.  The architecture considered in the previous slides consists of three types of buses: address, data, and control buses.

 The Data Bus: − The data bus consists of internal and external data buses. − The internal data bus connects the internal components of the CPU (e.g. Registers, ALU, etc.) to the data I/O pins of the CPU. − The external data bus connects the data I/O pins of the CPU to the memory and I/O devices (e.g. printer, monitor, etc). − The width of the internal data bus in bits is usually used to classify a microprocessor (e.g. 8-bit, 16-bit, 32-bi microprocessors)

 The Data Bus: − The width of the internal data bus is usually the same as the external data bust – but not always. − The processor has 32-bit internal and 32-bit external data buses. − The 80386SX processor has 32-bit internal data bus, but 16-bit external data bus. − The Pentium processor has 32-bit internal data bus and 64-bit external data bus.

 Memory Banks: − How a 64-bit (or 32-bit or 16-bit) processor can access an 8-bit-wide memory? − The memory is divided into banks. − The 8086 processor (16-bit) requires 2 banks (16/8=2).

 Memory Banks: − How a 64-bit (or 32-bit or 16-bit) processor can access an 8-bit-wide memory? − The memory is divided into banks. − The processor (32-bit) requires 4 banks (32/8=4).

 The address Bus: − It is used to identify the memory location or I/O device (also called I/O port) to be accessed by the CPU − The width of this bus in the 80x86 family varies from one processor to the other for example:  The 8086/8088 processors have 20-bit address bus.  The processor has 24-bit address bus.  The 80386/80486/Pentium processors have 32-bit address bus.  The Pentium Pro processor has 36-bit address bus.

 Example 1: How many different memory addresses can an 8086 output? Repeat for and processors.

 Example 1: How many different memory addresses can an 8086 output? Repeat for and processors. − 8086 processor has 20 address lines − Addressable memory locations = 2 20 = 1M − processor has 24 address lines − Addressable memory locations = 2 24 = 2 4 x2 20 = 16M − processor has 32 address lines − Addressable memory locations = 2 32 = 2 2 x2 30 = 4G

 The Control Bus: − How can we tell if the address on the address bus is a memory address or an I/O port ? − How can we tell if the memory or I/O access is a read or write operation ? − These questions are answered by the control bus. − Each time the processor outputs an address, it also activates one of 4 control signals  (1) Memory Read  (2) Memory Write  (3) I/O Read  (4) I/O Write

 The 8086 Microprocessor (1978): − 20-bit address bus. − 16-bit internal data bus. − 16-bit external data bus. − Separate bus interface unit (BIU) and execution unit (EU). − 16-bit registers (with the ability to access the high or low 8 bits separately). − Built in hardware multiply and divide instructions. − Support for an external floating-point math coprocessor.

 The 8088 Microprocessor (1979): − 20-bit address bus. − 16-bit internal data bus. − 8-bit external data bus. − Separate bus interface unit (BIU) and execution unit (EU). − 16-bit registers (with the ability to access the high or low 8 bits separately). − Built in hardware multiply and divide instructions. − Support for an external floating-point math coprocessor.

 The & Microprocessors (1982): − A personal computer (PC) based on the 8086/8088 microprocessors requires several additional chips such as: a clock generator, a programmable timer, a programmable interrupt controller, a direct memory access controller and a circuitry to select the I/O devices. − To simplify the design, Intel introduced the & microprocessors. − The 80186/80188 integrates on a single chip an 8086/8088 microprocessor and all the chips mentioned above. − The & are often referred to as high- integration processors − Used as a microcontroller

 The Microprocessor (1982): − 24-bit address bus. − 16-bit internal data bus. − 16-bit external data bus. − Designed to be software compatible with 8086 & microprocessors. − Provides two programming modes:  Real Mode  Protected Mode

 The Microprocessor (Real Mode): − The processor function exactly like the 8086 processor. − That is, any 8086 program can be run on a Real Mode processor without any change. − The processor uses only its 20 least significant address lines. − So, the memory space is limited to 1 MB.

 The Microprocessor (Protected Mode): − In this mode, the processor supports a multiprogram environment. − It gives each program a predetermined amount of memory. − This uses the full memory space which is 16MB. − This mode is called Protected Mode because several programs can be loaded into memory at once (each in its own segment), but are protected from each other.

 The Microprocessor (1984): − 32-bit address bus. − 32-bit internal data bus. − 32-bit external data bus. − 32-bit registers. − Provides three modes:  Real Mode (identical to that of 80286)  Protected Mode (manages 4 GB of memory in a way similar to that of the 80286).  Virtual Mode (similar to Real Mode, except that multiple 8086 processors can run simultaneously

 The Microprocessor (1989): − 32-bit address bus. − 32-bit internal and external data bus. − 32-bit registers. − On-chip cache (stores the most recently used instructions and data ) − Integrated Floating-Point Unit (FPU) − Real & Protected Modes as in − Pipelined design

 The Pentium Microprocessor (1993): − 32-bit address bus. − 32-bit internal − 64-bit external data bus. − 32-bit registers. − Two instructions pipelines − On-chip cache − Integrated FPU