0% found this document useful (0 votes)
89 views37 pages

Lecture 3 On Chapter 3 A Top-Level View of Computer Function and Interconnection by Sameer Akram

The document discusses computer interconnection structures and how the main components of a computer (processor, memory, I/O) communicate via buses. It describes the different types of buses that connect these components: the memory bus receives and sends data and addresses to memory, the I/O bus facilitates communication between peripherals and the computer, and the CPU bus allows the processor to read instructions and write data. The most common interconnection uses system buses that include data, address, and control lines to coordinate access and data transfer between components in synchronous or asynchronous fashion.

Uploaded by

Us Man
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views37 pages

Lecture 3 On Chapter 3 A Top-Level View of Computer Function and Interconnection by Sameer Akram

The document discusses computer interconnection structures and how the main components of a computer (processor, memory, I/O) communicate via buses. It describes the different types of buses that connect these components: the memory bus receives and sends data and addresses to memory, the I/O bus facilitates communication between peripherals and the computer, and the CPU bus allows the processor to read instructions and write data. The most common interconnection uses system buses that include data, address, and control lines to coordinate access and data transfer between components in synchronous or asynchronous fashion.

Uploaded by

Us Man
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 37

Lecture 3 on Chapter 3

A Top-Level View of Computer


Function and Interconnection

by Sameer Akram
Interconnection Structures
 Computer – set of components or modules of three
basic types (Processor, I/O, Memory) that
communicate with each other.
 All the units must be connected.
 The collection of paths connecting the various
modules is called the “Interconnection Structure”.
 Different type of connection for different type of
unit
— Memory
— Input/Output
— CPU
Computer Modules
Memory Connection
 Receives and sends data

 Receives addresses (of locations)

 Receives control signals


— Read
— Write
Input/Output Connection(1)
 Output
— Receive data from computer
— Send data to peripheral

 Input
— Receive data from peripheral
— Send data to computer
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
— Port: Interface to an external device is referred to
as “port”. Each port is assigned a unique
address/number.

 Send interrupt signals (control)


CPU Connection
 Reads instruction and data

 Writes out data (after processing)

 Sends control signals to other units

 Receives (& acts on) interrupts


Buses
 There are a number of possible interconnection systems
— Memory to Processor
— Processor to Memory
— I/O to Processor
— Processor to I/O
— I/O to or from Memory: For these two cases, an I/O
module is allowed to exchange data directly with
memory, without going through the processor, using
direct memory access (DMA)

 Single and multiple BUS structures are most common


 Unibus (DEC-PDP)
Bus
 A communication pathway connecting two or more
devices.
 Shared Transmission Medium
 Usually Broadcast: Multiple devices connect to the
bus and a signal transmitted by any one device is
available for reception by all other devices attached
to the bus.
 Often grouped
— A number of channels in one bus
— e.g. 32 bit data bus is 32 separate single bit
channels
System Bus
 A Bus that connects major computer components
(processor, I/O, memory) is called a “System Bus”.
 Most common computer interconnection structures
are based on the use of one or more system buses.
 A System Bus consists, typically, of from about 50
to hundreds of separate lines. Each line is assigned
a particular meaning or function.
 On any bus the lines can be classified into three
functional groups
— Data
— Address
— Control
Data Bus
 The “Data Lines” provide path for moving data
between system modules.
 These lines collectively, are called “Data Bus”.
 Carries data
— Remember that there is no difference between
“data” and “instruction” at this level.
 Width is a key determinant of performance.
— 8, 16, 32, 64 bit
— If the data bus is 8 bits wide and each instruction
is 16 bits long, then the processor must access
the memory module twice during each instruction
cycle.
Address Bus
 Identify the source or destination of data.

 e.g. CPU needs to read an instruction (data) from a


given location in memory

 Address bus width determines maximum memory


capacity of system
— e.g. 8080 has 16 bit address bus giving 64k
address space
Control Bus
 Control Lines are used to control the access to and the
use of the data and address lines.
 Because Data and Address Lines are shared by all
components; there must be a means of controlling
their use.
 Control and timing information
— Memory Read / Write signal
— I/O Read / Write signal
— Transfer ACK
— Bus request
— Interrupt request
— Clock signals
Control Bus
 Typical Control Lines include the following signals:
— Memory Read
— Memory Write
— I/O Read
— I/O Write
— Transfer ACK
— Bus request
— Bus grant
— Interrupt request
— Interrupt ACK
— Clock signals: used to synchronize operations.
— Reset: Initializes all modules.
Bus Interconnection Scheme
What do Buses look like?

 What do buses look like?


— Parallel lines on circuit boards
— Ribbon cables
— Strip connectors on mother boards
–e.g. PCI
— Sets of wires
Single Bus Problems
 Lots of devices on one bus leads to:
— Propagation delays
–Long data paths mean that co-ordination of
bus use can adversely affect performance
–If aggregate data transfer approaches bus
capacity
 Most systems use multiple buses to overcome
these problems
Multiple Buses
Traditional (ISA) (with cache)
High Performance Bus [Mezzanine Architecture]
Elements of Bus Design
 Bus Type
— Dedicated
— Multiplexed
 Method of Arbitration
— Centralized
— Distributed
 Timing
— Synchronous
— Asynchronous
 Bus Width
— Address
— Data
Elements of Bus Design

 Data Transfer Type


— Read
— Write
— Read-modify-write
— Read-after-write
— Block
Bus Types
 Dedicated
— A dedicated bus line is permanently assigned either
to one function or to a physical subset of computer
components.
— An example of functional dedication is the use of
separate dedicated data and address lines.
— However it is not essential.
Bus Types
 Multiplexed Bus Type [Time Multiplexing]
— Address and Data information may be transmitted
over the same set of lines using an Address Valid
Control Line.
— At the beginning of a data transfer, the address is
placed on the bus and the Address Valid line is
activated.
— At this point each module has a specified period of
time to copy the address and determine if it is the
addressed module.
— The address is then removed from the bus, and the
same bus connections are used for the subsequent
read or write data transfer.
— This method is known as Time Multiplexing.
Bus Types
 Multiplexed [Time Multiplexing]
— Advantages
– Fewer lines
– Saves space and cost
— Disadvantages
– More complex control
– Potential reduction in performance; Because
certain events that share the same lines cannot
take place in parallel.
Bus Arbitration
 More than one module may need control of the bus.
 For example, CPU and DMA controller
 An I/O module may need to read or write directly to
memory, without sending data to the processor.
 Because only one module can control bus at one time,
some method of arbitration is needed.
 Arbitration may
— Centralized
— Distributed
Centralised Arbitration

 Single hardware device controlling bus access control


logic
— Bus Controller
— Arbiter

 May be part of CPU or separate.

 Responsible for allocating time on Bus.


Distributed Arbitration
 No central controller
 Each module may claim the bus.
 Control logic exist on all modules.
 Modules act together to share the bus.

 With both methods of arbitration, the purpose is to


designate one device, either processor or an I/O
module, as master. The master may then initiate a data
transfer with some other device, which acts as slave for
this particular exchange.
Timing
 Timing : Co-ordination of events on bus
 Synchronous
— Events determined by clock signals
— Control Bus includes clock line upon which a clock
transmits a regular sequence of alternating 1s and 0s
of equal duration.
— A single 1-0 transmission is referred to as a “clock
cycle” or “bus cycle” and defines a time slot.
— All devices can read clock line.
— Usually sync on leading edge
— Usually a single cycle for an event
Synchronous Timing Diagram
Synchronous Timing Diagram
 Processor places a memory address on the address lines
during the first clock cycle and may assert status lines.
 Once the address lines have been stabilized, the
processor issues an address enable signal.
 For a read operation, the processor issues a read
command at the start of the second cycle.
 A memory module recognizes the address and after a
delay of one cycle, places the data on the data lines.
 For a write operation, the processor puts the data on
the data lines, at the start of second cycle and issues a
write command after the data lines have been stabilized.
 The memory module copies the information from the
data lines during the third clock cycle.
Asynchronous Timing – Read Diagram
Asynchronous Timing – Read Diagram
 With Asynchronous Timing, the occurrence of one event
on a bus follows and depends on the occurrence of a
previous event.
 Processor places address and status signals on the bus.
 After pausing for these signals to stabilize, it issues a
read command, indicating the presence of valid address
and control signals.
 The appropriate memory decodes the address and
responds by placing the data on the data line.
 The memory module asserts acknowledge line to signal
the processor that the data are available.
 Once the master has read the data from the data lines,
it deasserts the read signal.
Asynchronous Timing – Write Diagram
Asynchronous Timing – Write Diagram
 In this case, the master places data on the data line at
the same time that it puts signals on the status and
address lines.
 The memory module responds to the write command by
copying the data from the data lines and then asserting
the acknowledge line.
 Then master drops the write signal and the memory
module drops the acknowledge signal.
Bus Width

 The wider the data bus, the greater the number of bits
transferred at one time.

 The wider the address bus, the greater the range of


locations that can be referenced.
Data Transfer Type

 Data Transfer Type


— Read
— Write
— Read-modify-write
— Read-after-write
— Block
PCI Bus
 Peripheral Component Interconnection.
 Can function as a mezzanine or peripheral bus.
 Intel released to public domain in 1990.
 PCI delivers better system performance for
high-speed I/O subsystems [Graphic Display
Adapters, Network Interface Cards, Disk
Controllers etc]
 Current Version PCI 2.2
 32 or 64 bit

You might also like