Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Buses SJSU - Fall 2008 CS 147 Vu Luu. Contents 1. Concepts 2. Measurement 3. Operation.

Similar presentations


Presentation on theme: "Computer Buses SJSU - Fall 2008 CS 147 Vu Luu. Contents 1. Concepts 2. Measurement 3. Operation."— Presentation transcript:

1 Computer Buses SJSU - Fall 2008 CS 147 Vu Luu

2 Contents 1. Concepts 2. Measurement 3. Operation

3 Concepts A bus is a collection of wires and connectors through which the data is transmitted. Bus = address bus + data bus –Data bus: transfers actual data. –Address bus: transfers information about data and where it should go.

4 Concepts (cont.) Bus protocol: rules determining the format and transmission of data through bus. Parallel bus: data is transmitted in parallel. –Advantage: fast –Disadvantage: high cost for long distance transmission, interference between lines at high frequency. Serial bus: data is transmitted in serial. –Advantage: low cost for long distance transmission, no interference. –Disadvantage: slow Bus master: The device controls bus. Other devices are slaves.

5 Concepts (cont.) Local (system) bus: CPU main memory. Front side bus: –Original concept: CPU components –Modern Intel architecture: CPU NorthBridge chipset Back side bus: CPU L2 cache Memory bus: Northbridge chipset main memory AGP bus: Northbridge chipset GPU ISA, EISA, VLB, PCI, Firewire, USB, PCI-Express bus: motherboard peripheral devices.

6

7 Measurement Bus width: indicates the number of wires in the bus for transferring data. Bus bandwidth: refers to the total amount of data that can theoretically be transferred on the bus in a given unit of time.

8 BusWidth (bit)Bandwidth (MB/s) 16-bit ISA1615.9 EISA3231.8 VLB32127.2 PCI32127.2 64-bit PCI 2.1 (66 MHz)64508.6 AGP 8x322,133 USB 21Slow-Speed: 1.5 Mbit/s Full-Speed: 12 Mbit/s Hi-Speed: 480 Mbit/s Firewire 4001400 Mbit/s PCI-Express 16x version 2168,000 Width and Bandwidth of Some Typical Buses

9 Synchronous Bus vs. Asynchronouse Bus A bus can be classified as one of two type: synchronous and asynchronous. Synchronous bus: there is a common clock that synchronizes bus operations. Asynchronous bus: there is no common clock. Bus master and slaves have to handshake during transmission process.

10 1. CPU places address of the location it wants to read on the address lines. 1

11 2. After the voltages on the address lines have become stable, CPU asserts MREQ and RD lines. 1 2

12 3. Memory controller locates memory location and loads it into data lines. 1 2 3

13 4. CPU takes data from data lines and then de-asserts MREQ and RD to release the bus. 1 2 3 4

14 1. CPU puts address on the bus. 1

15 2. CPU asserts MREQ and RD lines. 1 2

16 3. CPU asserts MSYN line. Memory controller locates and loads data from memory to data lines. 1 2 3

17 4. Memory controller locates, loads data from memory to data lines, and asserts SSYN line. 1 2 3 4 4

18 5. CPU takes data from data lines and then de-asserts MREQ, RD, and MSYN. 1 2 3 4 4 5 5 5

19 6. Finally, memory controller de-assert SSYN. 1 2 3 4 4 5 5 5 6

20 Bridge-based bus architectures System includes a lot of buses which are segregated by bridges. Advantage: buses can simultaneously operate. Intel architecture:

21

22 Bridging with AMD processors

23 Bridging with VIA C7 processors

24 Internal Communication Methodologies Programmed I/O (polling) Interrupt-drive I/O Direct Memory Access (DMA)

25 Programmed I/O (polling) CPU polls each device to see if it needs servicing. Drawback: The CPU wastes time for polling devices (busy- wait.)

26 ModeMaximum transfer rate (MB/s) mode 03.3 mode 15.2 mode 28.3 mode 311.1 mode 416.7 mode 520 mode 625 Programmed I/O modes in the ATA interface

27 Interrupt-Drive I/O (PIO) Device requests service through a special interrupt request line that goes directly to the CPU. No busy-wait. More efficient than PIO.

28 Direct Memory Access (DMA) Devices transfer data directly to and from memory bypasses the CPU. Very efficient mode. CPU is free to do other operations.

29

30 ModesMaximum transfer rate (MB/s) Multi-word DMA 113.3 Multi-word DMA 216.6 Ultra DMA 016.7 Ultra DMA 125.0 Ultra DMA 233.3 Ultra DMA 344.4 Ultra DMA 466.7 Ultra DMA 5100 Ultra DMA 6133 DMA modes in the ATA interface

31 References Murdocca, Miles and Heuring, Vincent. Computer Architecture and Organization: An Integrated Approach. John Wiley & Sons, Inc., 2007. p.303 – p.316. Kozierok, Charles. The PC Guide. http://www.pcguide.com/. http://www.pcguide.com/


Download ppt "Computer Buses SJSU - Fall 2008 CS 147 Vu Luu. Contents 1. Concepts 2. Measurement 3. Operation."

Similar presentations


Ads by Google