45
PC buses and Interfaces Microprocessors, Lecture 2:

Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

PC buses and Interfaces

Microprocessors, Lecture 2:

Page 2: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Introduction

2

The anatomy of a modern personal computer (PC)

Common PC buses and interfaces

Page 3: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard

3

Page 4: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

MotherboardIn personal computers, a motherboard is the central printed circuit board (PCB) used to connect many of the system components.

All busses external to the CPU are on the motherboard

The motherboard includes connector sockets for the CPU and many I/O peripherals

4

Page 5: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard

5

Connects all the components of a computer togetherSupplies power to (and allows data to flow among) all componentsA series of different slots which cables and cards fit intoAll parts are compatible with the motherboard else the machine will not workIn particular, the motherboard must be matched to the CPU, especially in the bus speed

Page 6: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard Components

6

The first IBM PC motherboard had only a processor and card slots

Users plugged components like floppy drive controllers and memory into the slots

Today, motherboards typically boast a wide variety of built-in features

On-chip storage and memory controllers, sound, network adaptor, modem, …..

Page 7: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard Components

7

Some functionalities are added by expansion cardsModem, sound, TV, Ethernet, graphics,….

Page 8: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Common Motherboard Components

8

Processor socket: where processor is plugged inBIOS: Basic Input/Output System, a chip that controls most basic operationsPCI and PCI-express slots: Peripheral Component Interconnect, for external devicesAGP slot: Accelerated Graphics Port, dedicated port for video cardSATA and IDE connectors: attachments for hard drives, by serial plug (SATA) or parallel ribbon (IDE)ClockMemory slotsNorthbridge and Southbridge: chipset that connect the processor to everything elseLogic and connectors to control USB, PS2, serial port, parallel port, Ethernet LAN, audio….

Page 9: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

9 9

PS/2 Mouse& Ps/2 Keyboard Connector

DIMM Memory Sockets

LPT 1 Printer Port

ATX Power Connector

CPU Socket 370

AGP Expansion SlotCMOS Battery

BIOS Chip

PCI Expansion Slots

Floppy Drive Controller

USB Port

ChipSet

Motherboard Components- 10 years ago

Page 10: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

10 10

Modern Motherboard Components

Page 11: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Very old motherboard components- grand-motherboard!

Page 12: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Form Factor

12

Page 13: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard Form Factors

13

Determines motherboard size, featuresDimensions, power supply type, location of mounting holes, number of ports on the back panel

Ensure that parts are interchangeable across vendors and generations

Compatibility with power supplies, cases, expansion cards, …

Page 14: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard Form FactorsMost popular form factors:

ATX, MicroATX, FlexATX, BTX, NLXAT is the oldest form factor introduced by IBM in the 80sATX and ATX-mini are the current popular standards

By Intel since 1997The latest update to the ATX standard was released in 2007

ATX

micro-ATX

ATX: 305 × 244 mmATX-mini: 244 × 244 mm

Page 15: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Motherboard Form Factors

15

ATX motherboard AT motherboard

Page 16: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

CPU Sockets

16

Page 17: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

17

Processor SocketsWhere the CPU is inserted on the motherboard

Provides mechanical and electrical connections between a CPU and motherboard

Allows the CPU to be replaced without soldering

Page 18: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Processor Socket Types

18

Based on the CPU package type: PGA and LGA

Pin grid array (PGA)Pins aligned in uniform rows around socket

Land grid array (LGA)Uses lands rather than pinsThe pins on the socket rather than the CPU

Page 19: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Processor Sockets

19

Zero Insertion Force (ZIF) sockets are used to keep chips

Side lever lifts processor up and out of the socket

A covering plate is also used to keep LGA chips

Page 20: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Standard Sockets

20

Several standard socketsEach compatible with a family or several families of processorsBased on the CPU dimensions and power, ground, and IO pins

LGA 775 (Socket T) is the Intel desktop CPU socket for Pentium 4 and Core 2 Due processors

LGA 1156 (Socket H) is the Intel desktop CPU socket for Core i7 processors

Page 21: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Standard Sockets

21

LGA 775 (Socket T) for Pentium 4 and Core 2 Due

LGA 1366 (Socket H) for Core i7

AM2 for modern AMD processors (Athlon, Optron, Phenom)

940 pin, PGA

Page 22: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

PCB Bus tracks near a Pentium 4

22

Page 23: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Sockets for Intel processors

23

Page 24: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Sockets for AMD processors

24

Page 25: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Functional View

25

Page 26: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

The Simple Top Level ModelLogically speaking, the computer has one bus used to allow all components to communicate.

Early designs, such as the PDP-11, had only one bus. For these slow machines, it worked well.

26

Page 27: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Realistic OrganizationsThe design on the previous slide is logically correct, but it will not work!

It is too slow. Problem: A single system level bus cannot handle the load

Modern applications demand fast video; this requires a fast bus to the video chip.The memory system is always a performance bottleneck. We need a dedicated memory bus in order to allow acceptable performance

27

Page 28: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

I/O Devices sorted by bandwidth

10 B/s 100 B/s 1kB/s 10 kB/s 100 kB/s 1 MB/s 100 MB/s 10 GB/s

AudioMouseKeyboard

Joystick

Scanner

HDD

Video

TV CameraCD Rom

Page 29: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Fast and very fast ComponentsMemoryHard Disk

Video Card

CPU

Page 30: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Slow Components

Page 31: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Modern designs

31

Define 2 buses: one for high speed devices and one for low-speed

Fast components are connected to NorthbridgeSlow components are connected to Southbridge

The combination of the North and Southbridge in a computer is called the chipset.

Page 32: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Also known as MCH –Memory Controller HubBridges connection from CPU to RAM and Video Bus (AGP/PCI-X)Connects to South BridgeIn some instances the Northbridge and Southbridge functions were combined

Nvidia GeForce 320M in the 2009/2010 Macbook

Northbridge

Page 33: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Also known as ICH –I/O Controller Hub

Bridge connection from Northbridge to slower devices like USB devices, PCI, IDE(SATA/PATA), BIOS, onboard sound and more

Southbridge

Page 34: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Organization

Page 35: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Organization

35

Page 36: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Front-side Bus

36

Front-side bus (FSB): Connects CPU to the Northbridge

FSB is a major selling point for motherboards in the market today

Back-side bus: connects the CPU to the cache

If the cache is on-board

Page 37: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Very Fast

Fast

Slow

Further hierarchy

Page 38: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Three Layer Buses

Further hierarchy:In some implementations very low-speed devices are connected to the Southbridge via another bridge: SuperIO

Page 39: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Main components of Intel Chipset: Pentium 4

Northbridge:DDR memoryGraphics

Southbridge: I/OPCI busDisk controllersUSB controllersAudioSerial I/OInterrupt controllerTimers

Page 40: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Very Modern System Configuration

40

System with Intel® Core™ i7 Processor

In modern CPUs (Intel Core i7, AMD Phenom,…) the memory controller is integrated into the CPU

Memory is directly connected to the CPU

Simpler Northbridge

Page 41: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Very Modern System Configuration

41

Platform Controller Hub: Southbridge + the remaining parts of Northbridge that has not moved to CPU

Page 42: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Very Modern System Configuration

42

Page 43: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

PCI bus

43

Peripheral Component Interconnect

Introduced by Intel in 1993

32 or 64 bit

Working at 33 and 66 MHz

PCI-X works at

133 MHz

Page 44: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

PCI-Express

44

Replace the older PCI, PCI-X, and AGP bus standardsHigh-speed serial connectionA lane is a serial point-to-point communication channel between two PCI-e portsA link is composed of 1or more lanes: 1,2,4,8,16,32 lanesPCI-e 16x for VGA, 1x for slower devicesVery high speed

PCI-e v1: 250 MB/3 per lanePCI-e v2: 500 MB/s per lanePCI-e v3: 1GB/s per lane

PCI Express ×4PCI Express ×16PCI Express ×1PCI Express ×16Conventional PCI (32-bit)

Page 45: Microprocessors, Lecture 2 - Sharifce.sharif.edu/courses/93-94/2/ce513-1/resources/root... · 2015-05-04 · Motherboard 5 yConnects all the components of a computer together ySupplies

Buses and Expansion SlotsPeripheral Component Interconnect (PCI)

Improved several timesCategories

Conventional PCI, PCI-X, PCI Express