BITS Pilani Pilani Campus Pawan Sharma Lecture 8-9 19/22-01-2013 ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.

Slides:



Advertisements
Similar presentations
Intel 8086.
Advertisements

Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Registers of the 8086/ /2002 JNM.
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Parul Polytechnic Institute
ENGS 116 Lecture 41 Instruction Set Design Part II Introduction to Pipelining Vincent H. Berk September 28, 2005 Reading for today: Chapter 2.1 – 2.12,
Introduction to 8086 Microprocessor
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya University
1 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
3-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 (8086) Microprocessor.
Assembly Language for Intel-Based Computers Chapter 2: IA-32 Processor Architecture Kip Irvine.
ICS312 Set 3 Pentium Registers. Intel 8086 Family of Microprocessors All of the Intel chips from the 8086 to the latest pentium, have similar architectures.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 2: 80386DX Internal Architecture & Data Organization.
80x86 Processor Architecture
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Introduction to Pipelining Rabi Mahapatra Adapted from the lecture notes of Dr. John Kubiatowicz (UC Berkeley)
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
An Introduction to 8086 Microprocessor.
1 Fundamental of Computer Suthida Chaichomchuen : SCC
9.2 Pipelining Suppose we want to perform the combined multiply and add operations with a stream of numbers: A i * B i + C i for i =1,2,3,…,7.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
The x86 Architecture Lecture 15 Fri, Mar 4, 2005.
Microprocessor Microprocessor (cont..) It is a 16 bit μp has a 20 bit address bus can access upto 220 memory locations ( 1 MB). It can support.
ECE291 Lecture 1 All about computers. ECE 291 Lecture 1Page 2 of 41 Lecture outline Top-down view of computers Processor architecture RegistersMemoryPeripherals.
(-133)*33+44* *33+44*14 Input device memory calculator Output device controller Control bus data bus memory.
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
Computers organization & Assembly Language Chapter 1 THE 80x86 MICROPROCESSOR.
Intel 8086 (8088) Microprocessor Structure
X86 Assembly Language We will be using the nasm assembler (other assemblers: MASM, as, gas)
6-4 CPU-Registers, effective address General registers vs Segment registers Computer Studies (AL)
INTRODUCTION TO INTEL X-86 FAMILY
Chapter 2 The Microprocessor Architecture Microprocessors prepared by Dr. Mohamed A. Shohla.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Microprocessor Fundamentals Week 2 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Internal Programming Architecture or Model
1 x86 Programming Model Microprocessor Computer Architectures Lab Components of any Computer System Control – logic that controls fetching/execution of.
Intel 8086 MICROPROCESSOR ARCHITECTURE
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
ΜComputer Structure μProcessor Memory Bus System I/O Ports.
Difference between Microprocessor and Microcontroller
UNIT Architecture M.Brindha AP/EIE
Introduction to 8086 Microprocessor
8086 MICROPROCESSOR ARCHITECTURE & SEGMENTATION
8086 Microprocessor.
Intel 8086 MICROPROCESSOR Architecture.
Basic Microprocessor Architecture
Intel 8088 (8086) Microprocessor Structure
Basic of Computer Organization
Microcomputer & Interfacing Lecture 1
Intel 8088 (8086) Microprocessor Structure
8086 Registers Module M14.2 Sections 9.2, 10.1.
CS-401 Computer Architecture & Assembly Language Programming
Morgan Kaufmann Publishers Computer Organization and Assembly Language
CS 301 Fall 2002 Computer Organization
The Microprocessor & Its Architecture
Computer Architecture CST 250
Unit-I 80386DX Architecture
Process.
Intel 8086.
Microprocessor Lecture 7 (8086 Registers).
Presentation transcript:

BITS Pilani Pilani Campus Pawan Sharma Lecture / ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing

BITS Pilani, Pilani Campus  Disk Organization  Interpretation of Boot sector  File Allocation Table  Root Directory  Example Last Lecture

BITS Pilani, Pilani Campus  8086 architecture  Programmers Model Today’s Lecture

BITS Pilani, Pilani Campus 8086 Architecture

BITS Pilani, Pilani Campus 8086 Data Bus Control signals Add Bus A 0 A 19 D 0 D 15

BITS Pilani, Pilani Campus Memory Address Space A 19 ……………A 0 0……………… H 1……………….1 FFFFF H Memory Address Space H FFFFF H

BITS Pilani, Pilani Campus  Allows the microprocessor to address only the first 1MB of memory space, even if it is Core2 or i5 or i7 microprocessor.  First 1MB of memory is called the DOS memory system. DOS requires the CPU to work in real mode.  Real mode is characterized by a 20 bit segmented memory address space (giving exactly 1 MB of addressable memory) and unlimited direct software access to all memory (no protection), I/O addresses and peripheral hardware. Real Mode Memory Addressing

BITS Pilani, Pilani Campus BIU ALU Control & Timing EU Address bus RAMROM I/o Ports Discs Video Data Bus CLK System Block Diagram

BITS Pilani, Pilani Campus  BIU (Bus Interface Unit)  provides hardware functions for generation of the memory and I/O addresses for the transfer of data between itself and the outside world  (Queue, segment registers & IP)  EU (Execution Unit)  receives program instruction codes and data from the BIU, executes these instructions and stores the results in the general- purpose registers  (Control ckt, Instruction decoder, ALU, GP registers, SP,SI,DI,BP) CPU Components

BITS Pilani, Pilani Campus IP 16bit CS DS ES SS Code Segment register Data Segment register Extra Segment register Stack Segment register Instruction Pointer Programmers Model : CPU H/W which is Program visible: referenced directly during application programming CPU H/W which is Program invisible: can not be referenced directly by programmer but internally involved

BITS Pilani, Pilani Campus  Laundry Example  Four persons each have one load of clothes to wash, dry, and fold  Washer takes 30 minutes  Dryer takes 40 minutes  “Folder” takes 20 minutes Pipelining: Its Natural! ABCD

BITS Pilani, Pilani Campus Sequential Laundry ABCD PM Midnight TaskOrderTaskOrder Time

BITS Pilani, Pilani Campus Pipelined Laundry :Start work ASAP ABCD 6 PM Midnight TaskOrderTaskOrder Time Pipelined laundry takes 3.5 hours for 4 loads

BITS Pilani, Pilani Campus Key Definitions  Pipelining is a key implementation technique used to build fast processors. It allows the execution of multiple instructions to overlap in time.  The throughput of an instruction pipeline is the measure of how often an instruction exits the pipeline.

BITS Pilani, Pilani Campus  Pipelining doesn’t help latency of single task, it helps throughput of entire workload  Pipeline rate limited by slowest pipeline stage  Multiple tasks operating simultaneously  Potential speedup = Number pipe stages  Unbalanced lengths of pipe stages reduces speedup  Time to “fill” pipeline and time to “drain” it reduces speedup Pipelining Lessons ABCD 6 PM 789 TaskOrderTaskOrder Time

BITS Pilani, Pilani Campus  BIU stores pre-fetched bytes (six instruction bytes for the following instructions) in a FIFO register called the queue register.  Helps CPU execute instructions much faster  In case of JMP or CALL instructions, the queue needs to be dumped.  Fetching the next instruction while the current instruction executes is called pipelining. Queue Register

BITS Pilani, Pilani Campus IP = 3000 H CS = 2000 H Base address Offset address Physical address = H H H 2000 H : 3000 H Segment-Offset Addressing Scheme

BITS Pilani, Pilani Campus Example Segment Addresses Segment Register Starting AddressEnding Addresses 2000 H 2001 H 2100 H AB00 H 1234 H H H H AB000 H H 2FFFF H 3000F H 30FFF H BAFFF H 2233F H

BITS Pilani, Pilani Campus Data Code Stack Extra 4900 ES 3400 SS 1000DS 2000 SS H H H 1FFFF H 2FFFF H H 43FFF H H 58FFF H Memory Segmentation

BITS Pilani, Pilani Campus AX BX CX DX SP BP SI DI Count Data Stack Pointer Base Pointer Source Index Destination Index Programmers Model (EU): Accumulator Base Index

BITS Pilani, Pilani Campus AX AH (8 bit) AL (8 bit) BX BHBL CX CHCL DX DHDL (Accumulator) (Base Register) (Used as a counter) (Used to point to data in I/O operations)

BITS Pilani, Pilani Campus MULTIPURPOSE REGISTERS AX, BX, CX, DX, BP, DI, SI SPECIAL PURPOSE REGISTERS IP, SP, FLAGS CS, DS, SS, ES ( Segment Registers )

BITS Pilani, Pilani Campus 8086 – Default 16 bit segment and offset address combinations Segment offset special purpose CS SS DS ES IP SP (or) BP BX,DI,SI an 8-bit number 16 – bit number DI for string Instructions Instruction Address Stack address Data address String destination address

BITS Pilani, Pilani Campus EAX AX EBX BX ECX CX EDX DX ESP SP EBP BP 32-bit registers in through Core2

BITS Pilani, Pilani Campus ESI SI EDI DI EIP IP EFLAGS Flags

BITS Pilani, Pilani Campus  A flag is a flip flop that indicates some condition produced by the execution of an instruction or controls certain operations of the execution unit.  A 16-bit flag register in the EU contains nine active flags.  Conditional Flags /Status Flags  C (Carry)  P (Parity)  Z (Zero)  S (Sign)  A (Auxiliary Carry)  O (Overflow)  Control Flags  I (Interrupt)  D (Direction)  T (Trace) Flags

BITS Pilani, Pilani Campus ODITSZAPC (8088/186/188) bits bits bits Pentium/ Pentium IV 21 bits

BITS Pilani, Pilani Campus ES CS SS DS IP  Control & Timing Memory Interface ALU Operands Flags AHAL BHBL SP BP SI DI CHCL DHDL EU BIU Instruction Queue Block Diagram of 8086