digital computer fundamentals system buses mukesh n. tekwani mumbai, india [email protected]

24
Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mukesh N. Tekwani Mumbai, India Mumbai, India [email protected] [email protected]

Upload: janae-huntley

Post on 29-Mar-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Digital Computer Fundamentals

System BusesMukesh N. TekwaniMukesh N. Tekwani

Mumbai, IndiaMumbai, India

[email protected]@hotmail.com

Page 2: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Connecting

• All the units must be connected• Different type of connection for different

type of unit—Memory—Input/Output—CPU

Page 3: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Computer Modules

Page 4: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Memory Connection

• Receives and sends data• Receives addresses (of locations)• Receives control signals

—Read—Write—Timing

Page 5: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Input/Output Connection(1)

• Similar to memory from computer’s viewpoint

• Output—Receive data from computer—Send data to peripheral

• Input—Receive data from peripheral—Send data to computer

Page 6: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Input/Output Connection(2)

• Receive control signals from computer• Send control signals to peripherals

—e.g. spin disk

• Receive addresses from computer—e.g. port number to identify peripheral

• Send interrupt signals (control)

Page 7: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

CPU Connection

• Reads instruction and data• Writes out data (after processing)• Sends control signals to other units• Receives (& acts on) interrupts

Page 8: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

What is a Bus?

• A communication pathway connecting two or more devices

• It is a shared transmission medium • A signal transmitted by one device can

also be received by other devices on the same bus

• Only one device can transmit at a time• A bus consists of many transmission lines.

Each line can transmit a binary 1 or 0.• In a computer system a bus that connects

the processor, memory and I/O is called the system bus

Page 9: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Bus Types

• Data Bus• Address Bus• Control Lines

Page 10: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Data Bus

• Carries data—Remember that there is no difference between

“data” and “instruction” at this level

• The number of lines is called “width” of the data bus

• Width is an important factor in determining the system performance

Page 11: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Address bus

• Identify the source or destination of data• e.g. CPU needs to read an instruction

(data) from a given location in memory• Bus width determines maximum memory

capacity of system—e.g. 8080 has 16 bit address bus giving 64k

address space

Page 12: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Control Bus

• Control lines consist of:—Memory write / memory read—I/O write / I/O read—Bus request (to indicate that a module needs

control of the bus)—Interrupt request (to indicate that an interrupt

is pending)—Interrupt ACK (to acknowledge that interrupt

has been recognized)—Reset ( to reset all modules)—Clock (to synchronize all operations)

Page 13: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Bus Interconnection Scheme

Page 14: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Big and Yellow?

• What do buses look like?—Parallel lines on circuit boards—Ribbon cables—Strip connectors on mother boards

– e.g. PCI

—Sets of wires

Page 15: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Physical Realization of Bus Architecture

Page 16: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Single Bus Problems

• Lots of devices on one bus leads to:—Propagation delays

– More devices attached to the bus mean more is the propagation delay

• Most systems use multiple buses to overcome these problems

Page 17: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Traditional Bus Architecture

Page 18: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

High Performance Bus

Page 19: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Bus Types

• DedicatedDedicated—Separate data & address lines—Dedicated bus line is permanently assigned to

a set of components—Some computer systems have a dedicated

address and data bus

• MultiplexedMultiplexed—Shared lines—Address valid or data valid control line—Advantage - fewer lines, saving space & cost—Disadvantages

– More complex circuits– Certain events cannot take place in parallel

Page 20: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

Timing

• Co-ordination of events on bus• Synchronous

—Events determined by clock signals—Control Bus includes clock line—A single 1-0 is a bus cycle—All devices can read clock line—Usually sync on leading edge—Usually a single cycle for an event

Page 21: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

PCI Bus

• Peripheral Component Interconnect—It is a high bandwidth, processor independent

bus

• 32 or 64 bit• 50 lines

Page 22: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

PCI Bus Lines (required)

• Systems lines—Including clock and reset

• Address & Data—32 time mux lines for address/data—Interrupt & validate lines

• Interface Control – control timing of transactions

• Error lines – used to report parity and other errors

Page 23: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com

PCI Commands

• Transaction between initiator (master) and target

• Master claims bus• Determine type of transaction

—e.g. I/O read/write

• Address phase• One or more data phases

Page 24: Digital Computer Fundamentals System Buses Mukesh N. Tekwani Mumbai, India mukeshtekwani@hotmail.com