Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
BUS Structures
Connecting Paths
All the units/components of a system must be connected Different types of connections are needed for different types of unit
The collection of paths connecting the various modules is called the interconnection structure
Op Sys
CPU
Main Mem
I/O Dev
Computer Modules
Memory Connection
Receives and sends data Receives addresses (of locations) Receives control signals
Input/Output Connection(1)
Receive data from computer Send data to peripheral Receive data from peripheral Send data to computer
Input
Input/Output Connection(2)
CPU Connection
Reads instruction Reads data Writes out data (after processing) Sends control signals to other units Sends addresses to other units Receives (& acts on) interrupts
Bus Structure
A communication pathway connecting two or more devices Usually allow broadcast transfers Often grouped
A number of channels in one bus e.g. 32 bit data bus is 32 separate single bit channels
Buses
There are a number of possible interconnection systems Single and multiple BUS structures are most common e.g. Control/Address/Data bus (PC) e.g. Unibus (DEC)
Basic Structure
11
Data Bus
Carries data
Remember that there is no difference between data and instruction at this level
Address Bus
Identify the source or destination of data or instruction Address Bus width determines maximum memory capacity of system
e.g. 8080 microprocessor has 16 bit address bus giving 64k address space e.g. 8086 microprocessor has 20 bit address bus giving 1M address space Modern microprocessors have more bits for address bus
Control Bus
Control and timing information Memory read/write signal Interrupt request Clock signals
Parallel lines on circuit boards Ribbon cables Strip connectors on mother boards
e.g. PCI
Sets of wires
Operation of a Bus
Obtain the use (access) of the bus Transfer data via the bus
Obtain the use of the bus Transfer the request to the other module Wait for the second module to send the data
Long data paths mean that co-ordination of bus use can adversely affect performance If aggregate data transfer approaches bus capacity, the bus may become the bottleneck of the system
Bus Types
Dedicated
Separate data & address lines Shared lines (address and data) Address valid or data valid control line Advantage - fewer lines Disadvantages
Multiplexed
Bus Arbitration
Allows more than one module to control the bus e.g. CPU and DMA controller Only one module may control bus at one time Arbitration may be:
Centralized Distributed
One module is designated as the master, which then initiates data transfer with a slave module
Each module may claim the bus Control logic on all modules
Timing
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
PCI Bus
Systems lines
Error lines
Interrupt lines
Not shared
Additional 32 lines Time multiplexed 2 lines to enable devices to agree to use 64-bit transfer For testing procedures
JTAG/Boundary Scan
PCI Commands
Transaction between initiator (master) and target Master claims bus Determine type of transaction