PC Architecture for Technicians:...
Transcript of PC Architecture for Technicians:...
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 1
PC Architecture for PC Architecture for Technicians: LevelTechnicians: Level--11
Systems Manufacturing Training & Systems Manufacturing Training & Employee DevelopmentEmployee Development
Copyright © 1996 Intel Corp.Copyright © 1996 Intel Corp.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 2
Chapter 1 Chapter 1 IntroductionIntroduction
PC Architecture for PC Architecture for Technicians: LevelTechnicians: Level--11
Systems Manufacturing Training Systems Manufacturing Training and Employee Developmentand Employee Development
Copyright © 1996 Intel Corp.Copyright © 1996 Intel Corp.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 3
Trademark noticenThe following are trademarks of Intel Corporation
3 iCOMP(R), IntelDX4, i386, i486, IntelDX2, Intel386, Intel486, i486, Pentium(R), 8088, 8086, 80286, 80386, 80486, 82288, 8042, 8259, 8254, 8327-A
nThe following are trademarks of International Business Machines Corporation
3 IBM, IBM PC, PC/XT, PC/AT, PS/2, Micro Channel, VGA, CGA, EGA, MDA, PC-DOS and OS/2
nMS-DOS(R) and Windows are trademarks of Microsoft Corporation.
nUNIXis a registered trademark of UNIX Systems Laboratories.
nTRISTATE is a trademark of National Semiconductor Corporation.
nAll other product names not listed here but mentioned in this material may be trademarks and/or registered trademarks of their respective companies.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 4
Where to get more informationlThe Indispensable PC Hardware Book (Messmer)
nAddison-Wesley (ISBN 0-201-87697-3)
l ISA System Architecture (Shanley & Anderson)nMindshare (ISBN 0-201-40996-8)
lThe Personal Computer from the Inside OutnAddison-Wesley (ISBN 0-201-62646-2)
lThe Peter Norton PC Programmer’s BiblenMicrosoft Press (ISBN 1-55615-555-7)
lThe Indispensable Pentium™ Book (Messmer)nAddison-Wesley (ISBN 0-201-87727-9)
lPentium™ Processor System ArchitecturenMindshare (ISBN 1-881609-07-3)
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 5
Where to get more informationlPentium™ Processor User’s Manual
nIntel Order Number 241428
lPentium™ Architecture & Programming ManualnIntel Order Number 241430
lPCI Local Bus Specification (PCI SIG)nPCI Special Interest Group (CC:Mail PCI_SIG)
lPCI System Architecture (Shanley & Anderson)nMindshare (ISBN 0-201-40993-3)
lPCI Hardware and Software (Solari & Willse)nAnnabooks (ISBN 0-929392-28-0)
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 6
This chapter provides an overview of concepts which will be covered in more
detail throughout the course.
lThe PC based on the Pentium™ is processor is compatible with entire installed base of applications for MS-DOS, OS/2, and UNIX.
lYou will learn about PC architecture, signals and key bus cycles.
lThe knowledge acquired here will serve a foundation for the boards based on Intel processors.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 7
OBJECTIVES: At the end of this section, the student will be able to do the following:
lDiscuss the iCOMP(TM) INDEX
lDiscuss System Buses.
lDescribe a simple Microprocessor System
lDescribe the System Board & Peripheral chips.
lDiscuss Microprocessor Buses & simple bus cycles.
lDiscuss fetching of initial instructions after CPU is reset.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 8
THE iCOMP(TM) INDEX
Intel iCOMP Index
0 200 400 600 800 1000
386 DX 25486 SX25DX2 66DX4 100Pentium 60Pentium 66Pentium 90Pentium 100
Examples: Pentium 510/60; 735/90; 815/100
Intel Family ComparisonIntel Family Comparison
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 9
THE iCOMP(TM) INDEX
l A NEW WAY TO COMPARE CPU PERFORMANCE
l iCOMP (Intel COmparative Microprocessor Performance).
l The iCOMP index is a simple numerical index of relative performance for making straightforward comparisons of Intel CPU power. It provides consumers with useful information when they make a PC purchase. It is intended to supplement, not replace benchmarks.
l The iCOMP formula was designed to reflect the full capabilities of a CPU--those which are executed not only by today's desktop systems and software applications, but the software expected to be in use throughout the three to five year average life of a system bought today.
l It is an index that reflects the relative performance of one Intel microprocessor to another, not system performance.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 10
THE iCOMP(TM) INDEX
lThe base processor for the iCOMP index is the 25-MHz Intel486 SX microprocessor, which has been assigned a value of 100. All other rated CPUs will have a number that is either above 100, meaning a faster CPU, or below, meaning slower.
lThe size of the disparity between any two indices provides a relative measure of how much more powerful one CPU is than any other.
lHowever, to using the analogy of the EPA's highway and city mileage rating, the actual performance the user sees in the system depends on the individual car (system) and driving habits (specific types of software) of the user, as well as on the CPU.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 11
Typical Typical System System Buses Buses
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 12
The following pages describe the numerous bus standards implemented in today’s Personal Computers.
What is a Bus?A bus is an electrical conduit in a computer that connects various components so they can communicate with each other.
A bus standard is a set of rules that govern how the communications will take place....think of it as “grammar” for a computer. And different bus standards will have different grammatical rules that affect how quickly they can communicate.
Typical System Buses
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 13
Typical System Buses
r “Bridges” isolate buses electrically and logically.r Higher performance functions on PCI bus.r Low performance functions on ISA or EISA bus.
X86 CPU Cache MemorySubsystem
DRAM SubsystemPCI Bridge/Memory Controller
Host Bus
PCI Local Bus
PCI Add-in Slots
ISA BusBridge ISA Add-in Slots
ISA Bus
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 14
ISAWhen the PC was introduced in the early 1980’s, the Industry Standard Architecture (ISA) bus was used. As the PC’s popularity spread and “clones” appeared, the ISA bus was always used for compatibility. It is 16-bits wide at 8MHz, and is fully compatible with all PC software. An ISA system will accept ISA add-in cards It is found in most PCs.
Page 2
CPUMemory
ISASlotsKeyboard, Disks,
Other Elements
ISA Bus
ISA Bus: Standard System
Introduction - Bus Standards
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 15
Introduction - Bus StandardsEISAThe Enhanced ISA, or EISA bus, is faster than ISA (32-bits @ 8MHz), and is fully compatible with ISA and all PC software. An EISA bus will give better overall performance to a computer system, and will accept ISA & EISA cards. It is typically used in servers, workstations and high-end PCs.
CPUMemory
EISASlotsKeyboard, Disks,
Other Elements
EISA Bus
EISA Bus: Improved overall performance
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 16
CPU
Memory
ISA or EISAExpansion SlotsKeyboard, Disks,
Other Elements
VL Slots
EISA or ISA Bus
VL Bus
VL / VESA Local Bus: In 1992, the VL Local Bus began to appear and was mainly used to increase the graphics performance. It is used in conjunction with an ISA bus. Since the VL Bus is attached directly to the CPU, both must run at the same speed. For electrical reasons, the VL Bus can only support 2 add-in cards at 33MHz, and none at 50MHz.
Introduction - Bus Standards
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 17
Page 3
CPU
Memory
ISA or EISAExpansion SlotsKeyboard, Disks,
Other Elements
EISA or ISA Bus
PCI Slots
PCI Bus
Disk, Networketc.
PCI Bus: Like the VL Bus, PCI will improve graphics performance, but will support other components as well (network, hard drive, etc.). Since it is not directly connected to the CPU, it sheds the electrical limitations of the VL bus and will accept multiple PCI-bus add-in cards.
Introduction - Bus Standards
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 18
Simple Simple Microprocessor Microprocessor
SystemsSystems
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 19
SimpleMicroprocessor
Systems
RAMCPU ROM
I/OI/O I/OI/O
KEYBOARD CONSOLEDISPLAY
DISK PRINTER
BUS
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 20
Simple Microprocessor SystemsWhat are the needs of a simple microprocessor
system?
lA microprocessor
lMemory for program and data storagenRAM--Random-Access Memory comes in two main types:3DRAM--dynamic RAM; needs periodic refreshing
3STATIC--fast, expensive; needs no refreshing
nRAM does not retain the stored code and data when the computer is turned off. RAM is used to store the operating system and user programs.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 21
Simple Microprocessor SystemsWhat are the needs of a simple microprocessor
system? (Cont.)l ROM--Read-only memory-available in many main types
3PROMS--cannot be reprogrammed, but are cheaper
3EPROMS--can be erased and reprogrammed (UV)
3EEPROMS--can be erased and reprogrammed (byte at a time)
3FLASH-- can be erased and reprogrammed (all cells at once)
nROM retains the stored code and data when the computer is turned off. ROM usually contains the following:3POST--Power-On-Self-Test
3BIOS--Basic Input Output System. Low level interface to devices (Low level I/O drivers and services).
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 22
Simple Microprocessor SystemsWhat are the needs of a simple microprocessor
system? (Cont.)
lI/O devices to provide user interaction with the computer. Typical I/O devices are these:nkeyboard
ndisplay unit
nfile storage (floppy and hard disks)
nprinter
nmodems
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 23
CPU
Addr -BUS
MEM SIZE
VIRTUAL SIZE
D-BUS
REG SIZE
# SEG. REGS
MATH
BUS SPEED (MHz)
PAGING
ON CHIP CACHE
8088 80286 80386 80486 Pentium
20 24 32 32 32
1 MEG 1 6 MEG* 4 GIG * 4 GIG* 4 GIG*
NA 1 GIG 64 TERA 64 TERA 64 TERA
16 16 32 32 32
4 4 6 6 6
8087 80287 80387 On Chip On Chip
4.77, 10 8, 12 25, 33 33, 50 50, 60, 66
NO NO YES YES YES
NO NO NO YES YES
PCAT Compatibility
Standard
8 16 32 32 64
Statistical Comparison
* Protected Mode
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 24
System Board System Board OverviewOverview
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 25
PC/AT System Board Overview
KEYBOARD
DISPLAY
POWER SUPPLYDISKS
ADAPTER CARDSON ISA BUS
SYSTEM BOARD
SYSTEM UNIT
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 26
System Board Overviewl The emphasis in this course is an Intel system board.
l The Intel system board is compatible with the original 8 MHz IBM PC/AT.
l We will use the term "PC/AT" to refer to a "generic" computer when we are not discussing specific implementations.
The following items define a PC/AT:nA system board containing an Intel 80286, 80386, 80486 or
Pentium microprocessor, plus peripheral chips compatible with the original IBM PC/AT.
»(The PC/XT used an Intel 8088.)
nSystem board "adapter card slots" (ISA) compatible with those onthe original IBM PC/AT.
nDisk drives providing IBM PC/AT compatibility (diskette and fixed disks).
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 27
System Board OverviewlThe following items define a PC/AT: (Cont.)
nA power supply (+5v, -5v, +12v, -12v).
nA compatible keyboard.
nA display adapter and monitor. The basic types are monochrome, CGA, EGA, and VGA.
nThe system board must contain an IBM PC/AT compatible BIOS. Examples are AMI, Award and Phoenix BIOS.
3Many applications directly access low-level hardware and BIOS functions. This leads to requirement that the board must contain an IBM PC/AT compatible BIOS.
nIn addition to connecting the above components, a PC/AT must be able to run MS DOS or PC DOS applications.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 28
System Board OverviewlAdd-on products typically come with software
drivers and adapter cards. Examples include:nPrinters
nDiskette and fixed disk controllers and drives
nCommunications (RS232, LANS, GPIB, Modems)
nMice
lNOTE: IBM has published Technical References for the IBM PC, PC/XT, and PC/AT.
3The references include circuit diagrams and BIOS listings and provide the information necessary for the PC industry to produceimitations.
3The references were not complete, as they didn't adequately define the (ISA) bus signals.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 29
THE SYSTEM BOARD IN DETAILlMICROPROCESSOR
nThe original PC/AT contained the following chips which formed the heart of the system board:3an Intel 80286 microprocessor (6 then 8 MHz)
3an Intel 82284 clock, reset, and ready chip
3an Intel 82288 bus controller chip
3a socket for the Intel 80287 math coprocessor
nCurrent Intel boards have contain a microprocessor and a ChipSet which incorporates the functions of the the Bus & Memory Controllers as well as most of the peripheral chips.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 30
THE SYSTEM BOARD IN DETAILlBUSES
nOn the original PC/AT, several "buses" were created from the local 286 bus. Each bus, including the 286 local bus, has three parts (address, data, control)
nCurrent Intel boards have buses that contain the three basic parts (address, data, control).
lSYSTEM BOARD RAM MEMORYnThe system board of the IBM PC/AT contained up to 512K
bytes of dynamic RAM. Adapters could be added to bring the memory to 640K bytes and above.
nCurrent Intel boards contain upwards of 128M on the system board (using SIMM or DIMM modules).
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 31
XT, AT System Board Peripherals
8088 80286 80386 80486 & Pentium
8087 80287 80387 on Chip
8253 8254
8237 2 - 8237s
8259 2 - 8259s
8255LOGIC8042 Micro controller
640K 16MEG
48K 64K (128K)
CLOCK CHIP W/ CMOS RAM BATTERY BACKUPNONE
XT AT
CPU
MATH
TIMER(pit)
DMA
INTERRUPTS(pic)
DIGITALI/O
RAM
ROM
REAL-TIMECLOCK
Up to 4 GIG
Today's Personal Computers are COMPATIBLE with the PC/AT
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 32
XT, AT System Board Peripheralsl SYSTEM BOARD PERIPHERAL CHIPS: These will be
described in detail in this course.n An Intel 8254 Programmable Interval Timers (PIT).
n Two Intel 8259A Programmable Interrupt Controller chips (PIC).
n An Intel 8042 (8742) MICROCONTROLLER to provide digital I/O and to interface with the keyboard.
n A real-time clock chip that provides time, and 64 bytes of CMOS RAM forconfiguration information. The clock chip is backed up with a battery.
n Two Intel 8237-5 DMA Controller chips.
n A 74LS612 latch to provide page information during DMA transfers.
n A DRAM Refresh Controller.
l Remaining system board features (not covered in this course)n Two 82510 (or compatible) UARTS providing two COM ports.
n Circuitry to support a parallel printer port.
n A speaker for beeping.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 33
System Board Component LayoutCOM2 COM1Parallel
Front panelconnector
SUPERI/O
PIIX MIC
MIC
MIC
MIC
OPB
BAT
SIMM
SIMM
SIMM
SIMM
ISA E
XPA
NSIO
N SL
OT
ISA E
XPA
NSIO
N SL
OT
ISA E
XPA
NSIO
N SL
OT
PCI E
XPA
NSIO
N SL
OT
PCI E
XPA
NSIO
N SL
OT
PCI E
XPA
NSIO
N SL
OT
PCI E
XPA
NSIO
N SL
OT
M KPow
er
CPU Fan conn
Pin 1
CPUSOCKET
SPKRFloppy Connector
PCI IDE Connector
OMCDP
OMCDC
PCI IDE Connector
O1
JUMPER BLOCK1
3
25
27
PCIARBITER
PAL
FLASHROM
VID override
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 34
Microprocessor Microprocessor Buses & Simple Buses & Simple
Bus CyclesBus Cycles
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 35
Pentium CPU
Pentium
Address BusA31 - A3
Data BusD63 - D0
Byte EnablesBE7# - 0#
Power
Ground
RESET
CLK
AHOLD
BRDY# ADS#
W/R#
M/IO#
CPU Signals Required for operation
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 36
CPU Signals Required for operation
lPower and Ground signals on multiple pins.n5.0v for P5, 3.3v for P54C
lProcessor RESET (input):
lProcessor CLOCK (input): Often 50, 60, or 66 MHz depending on design.
lAHOLD (input) not active: Used to disable the address bus for alternate bus master (e.g. DMA) cache snooping.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 37
Microprocessor Buses
CPU MEMORY
I/O
ADDRESS
DATA
MEM RDMEM WRIO RDIO WR CONTROL
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 38
MICROPROCESSOR BUSESlThe microprocessor uses several buses to communicate with memory and I/O.
l In general, there are three buses: nAddress
nData
nControl
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 39
MICROPROCESSOR BUSESlAddress bus: The microprocessor provides an
address to the memory & I/O chips.nThe number of address lines determines the amount of memory supported by the processor.
nA31:A3 Address bus lines determines where in the 4GB memory space or 64K IO space the CPU is accessing.
nBE7#:BEO# (outputs): Byte enable lines to enable each of the 8 bytes in the 64-bit data path.3In effect a decode of the address lines A2-A0 which the
Pentium does not generate.
3Which lines go active depends on the address, and whether the cycle requires a byte, word, double word or quad word.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 40
Bus DescriptionBus Description
FFFFFFF8HFFFFFFFFH
00000000H00000007H
PHYSICALMEMORY
4GB
Physical MemorySpace
FFFFFFF8HFFFFFFFFH
00000007H 00000000H
BE7# BE6# BE5# BE4# BE3# BE2# BE1# BE0#
64-BIT Wide Memory Organization
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 41
Bus DescriptionBus Description
00000000H00000003H
I/O Space
64 KByte
NotAccessible
0000FFFCH0000FFFFH
l I/O Address Space is limited to 64 Kbytes (0000H-FFFFH).
l This limit is imposed by a 16 bit CPU Register.nA 16 bit register can store up to FFFFH (1111 1111 1111 1111 y).
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 42
MICROPROCESSOR BUSESData bus: The data bus provides a path for data to flow.
lThe data can flow to/ from the microprocessor during a memory or I/O operation. nProvides the propagation path in both directions.
lD63:DO (bi-directional): The 64-bit data path to or from the processor. nThe signal W/R# distinguishes direction.
lParity DP7:DPO (bi-directional): Pentium uses EVEN parity bits on a per-byte basis. nParity signals: Output on writes, Input on reads.
3 Not supported on all systems.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 43
MICROPROCESSOR BUSESControl bus: The control bus is used by the microprocessor
to tell the memory and I/O chips what the microprocessor is doing.
lTypical control bus signals are these:nM/IO# (output): Defines if the bus cycle is a Memory access
or an IO Port access.
nD/C# (output): Defines if the bus cycle is Data or Code for Memory access.
nW/R# (output): Indicates if bus cycle is a Write or a Read operation.
nCache#. (output): Processor indication of internal cacheability. Cache# and Ken# are used together to determine if a read will be turned into a linefill. (Burst cycle).
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 44
MICROPROCESSOR BUSESlCONTROL BUS (Cont)
lADS# (output): Signals that the processor is beginning a bus cycle.nFrom power-on the ADS# signal should be asserted periodically when bus cycles are running.
lBRDY# (input): This signal ends the current bus cycle (low) and is used to extend bus cycles (high) to allow slow devices extra time. nIf LOW, this signal ends the current bus cycle and the next
bus cycle can begin.
nIf HIGH the Pentium is prevented from continuing processing and wait states are added to allow slow devices extra time.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 45
Ready Logic State Machine Example
ADS#BRDY#
TW
TW
TW
TW
TW
TW
TW
TW
TW
Zero WS
DRAM-Read
ISA Bus ReadAccess /EPROMs
IOCHRDY 0=Add WaitStates for ISA BUS
Cache Read
TW= Time Wait
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 46
Microprocessor Bus CyclesMicroprocessor Bus Cycles
lA BUS CYCLE begins with the Processor driving an address and control signals and asserting ADS#.
lA BUS CYCLE ends when the last BRDY# is returned to the Processor.
lA BUS CYCLE may have 1 or 4 data transfers.nA SINGLE Cycle transfer is 64 bits maximum [8 bytes].
nA BURST Cycle transfer is 256 bits (4*64) [32 bytes]
lThe following table lists all the bus cycles that will be generated by the Pentium microprocessor n(From Table 6-10 in Pentium manual)
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 47
Bus Cycle DefinitionBus Cycle DefinitionM / I O # D / C # W / R # C a c h e # K e n # C y c l e D e s c r i p t i o n N o . o f T r a n s f e r s
0 0 0 1 x I n t e r r u p t A c k n o w l e d g e( 2 l o c k e d c y c l e s )
1 t r a n s f e r e a c h c y c l e
0 0 1 1 x S p e c i a l C y c l e 10 1 0 1 x I / O R e a d , 3 2 - b i t s o r l e s s
N o n C a c h e a b l e1
0 1 1 1 x I /O Wr i te , 32 -b i t s o r lessN o n C a c h e a b l e
1
1 0 0 1 x C o d e R e a d , 6 4 - b i t s ,N o n C a c h e a b l e
1
1 0 0 x 1 C o d e R e a d , 6 4 - b i t s ,N o n C a c h e a b l e
1
1 0 0 0 0 C o d e R e a d , 2 5 6 - b i t b u r s tL ine F i l l
4
1 0 1 x x I n te l Rese rved (w i l l no t bed r i v e n b y t h e P e n t i u m ™processo r ) .
n/a
1 1 0 1 x M e m o r y R e a d , 6 4 b i t o r l e s s ,N o n C a c h e a b l e
1
1 1 0 x 1 M e m o r y R e a d , 6 4 b i t o r l e s s ,N o n C a c h e a b l e
1
1 1 0 0 0 M e m o r y R e a d , 2 5 6 b i t b u r s r tL ine F i l l
4
1 1 1 1 x M e m o r y W r i t e , 6 4 b i t o r l e s sN o n C a c h e a b l e
1
1 1 1 0 x 256 b i t Bu rs t Wr i t e back 4* C a c h e # w i l l n o t b e a s s e r t e d f o r a n y c y c l e i n w h i c h M / I O # i s d r i v e n l o w , o r f o r a n y c y c l e i n w h i c hP C D i s d r i v e n h i g h .
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 48
GENERIC DECODE LOGIClThe system board contains some logic to decode the
BUS CYCLE DEFINITIONS of the CPU.
lThe BUS CYCLE DEFINITIONS from the CPU are VALID when ADS# is asserted (Logic 0).
lThe drawing shows an example of logic that could be used to decode the BUS CYCLE DEFINITIONS.
lThe signals generated by the GENERIC DECODE LOGIC would be used by the System Board to generate signals such as I/O chip selects and DRAM & PROM output enables.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 49
GENERIC DECODE LOGIC
e.g. I/O WR @ Addr 43H
M/IO#
D/C#
W/R#
INTA
IOR
IOW
FETCH
MEMR
MEMW
486 / P5 SPECIAL
486 / P5 INVALID
D QD QD Q
ADS#
011
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 50
Microprocessor Single Bus Cycle
ADDR
CLK
CACHE#
BRDY#
A31-A3
W/R#
ByteEnablesBE7# - 0
ADDR
T1 T2 T2 T1 T2Ti T2T2 Ti
D63-D0
ADS#
READ
MEMORY WRITE & READ WITH WAIT STATES
WRITE
ByteEnables
WAITSTATE
WAITSTATE
WAITSTATE
TO CPU
FROM CPU
IDLESTATE
IDLESTATE
DATADATA
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 51
Basic Burst Read CycleBasic Burst Read Cycle
ADDR
HCLK
KEN#
BRDY#
DATA
A31-A3BE7:0
W/R#
T1 T2 T2 T2 TiT2 TiTi Ti
D63-D0
ADS#
READ
CACHE#
DATA DATA DATA
CYCLE 1
CYCLE 2
CYCLE 3
CYCLE 4
TOCPU
TOCPU
TOCPU
TOCPU
IDLESTATE
IDLESTATE
IDLESTATE
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 52
Fetching the Fetching the Initial Initial
InstructionsInstructions
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 53
ACCESSING THE BIOS012345678910111213141516171819202122232425262728293031
MEMR
OE#
CS#
A15
A0
NON-VOLATILEMEMORY
D0
D7
SHADOW BIOSENABLE BIT
FlashBIOS
From Mem-Code-Read
Bus Cycle Definition
1 1 1 1 1 1 1 1
F F
1 1 1 1 1 1 1 1
F F
1 1 1 1 1 1 1 1
F F
1 1 1 1 0 0 0 0
F 0
FFFFFFF0
000FFFF0
1 = Shadowed: Disable ROM Chip Select
0
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 54
ACCESSING THE FLASH BIOS lThe Chip Select for the BIOS is the result of
decoding the Reset Vector.nThe CPU Address at Reset is the Reset Vector.
3Address = FFFFFFF0 physical. The physical address is the output on the CPU address bus.
nThe Upper AND GATE will generate a CS# for addressFFFFXXXXp
lThe Mem Code Read bus cycle definition causes the Flash BIOS Output Enable. nThe first bus cycle definition is a Code Fetch
3 (Memory, Code, Read)
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 55
Fetching the Initial InstructionslThe CPU is forced into a known condition at RESET.
nThe address is set to the Reset Vector (FFFFFFF0 physical)3CPU internal registers generate this address.
nThe first bus cycle definition is a Code Fetch.
lThe CPU will FETCH the first instructions from the BIOS.nThe ROM BIOS is chip selected as a result of the Reset
Vector address (FFFFFFF0)
nThe Flash BIOS output enable results from the Mem Code Read bus cycle definition.
nThe ROM data is accepted by the CPU when BRDY# is asserted.
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 56
Fetching the Initial InstructionslThe CPU DECODES the ROM BIOS instructions.
nThe HEX BYTES (machine code) stored in the BIOS are decoded by the CPU into instructions.
lThe first instruction decoded is a FAR JUMP to 000FEO5BpnThe F0000p-FFFFFp range is the 1 MB COMPATIBLE
PC/AT address range accessed in REAL MODE.
nBIOS Chip Select now results from decoding 000FEO5Bp.
nThe Lower AND GATE will generate a CS# for an address in the 000FXXXXp range (000F0000p - 000FFFFFp).
lPOST will now EXECUTE in the F0000p-FFFFFp range
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 57
Fetching the Initial InstructionslThe CPU executes the Code fetched from the ROM
and the POST (Power On Self Test) is executed.nPOST detects, checks, & initializes installed components on
the system board.
nPOST writes a CODE to I/O Port 80 at the start of each new POST test.
nPOST normally stops on critical Failures. 3The LAST POST CODE written to Port 80 is an indication of the
failure.
nIf everything is OK, POST gives control to a Bootstrap Loader to load an Operating System via INT 19H.
lThe majority of failures will occur before POST has completed and gives control to a Bootstrap Loader .
Rev. 1.0 Sys MFG T/ED 4/25/2003
PC Architecture For Technicians Level-1Technical Excellence Development Series
Ch 1- Page 58
SUMMARYWE HAVE DISCUSSED THE FOLLOWING:
lTHE iCOMP(TM) INDEX
lSystem Buses.
lSimple Microprocessor Systems
lThe System Board & Peripheral chips.
lMicroprocessor Buses & simple bus cycles.
lFetching instructions after CPU is reset.