TOP LEVEL VIEW OF COMPUTERS
Chapter 32/40
3/40
I
NTER-C
ONNECTIONS All the units must be connected
Different type of connection for different type of unit
Memory Input/Output CPU
5/40
M
EMORYC
ONNECTION Receives and sends data
Receives addresses (of locations)
Receives control signals
Read Write Timing
6/40
I
NPUT/O
UTPUTC
ONNECTION(1)
Similar to memory from computer’s viewpoint
Output
Receive data from computer Send data to peripheral
Input
7/40
I
NPUT/O
UTPUTC
ONNECTION(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)
CPU C
ONNECTION Reads instruction and data
Writes out data (after processing)
Sends control signals to other units
9/40
B
USES 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-PDP)
10/40
W
HAT IS AB
US?
A communication pathway connecting two or more devices
Usually broadcast
Often grouped
A number of channels in one bus
e.g. 32 bit data bus is 32 separate single bit channels
11/40
D
ATAB
US 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
A
DDRESS 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
13/40
C
ONTROLB
US Control and timing information
Memory read/write signal Interrupt request
Clock signals
14/40
15/40
B
IG ANDY
ELLOW?
What do buses look like?
Parallel lines on circuit boards Ribbon cables
Strip connectors on mother boards
e.g. PCI
Sets of wires
17/40
S
INGLEB
USP
ROBLEMS 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
T
RADITIONAL(ISA)
H
IGHP
ERFORMANCEB
USB
UST
YPES Dedicated
Separate data & address lines
Multiplexed
Shared lines
Address valid or data valid control line Advantage - fewer lines
Disadvantages
21/40
B
USA
RBITRATION More than one module controlling the bus
e.g. CPU and DMA controller
Only one module may control bus at one time
Arbitration may be centralised or distributed
22/40
C
ENTRALISED ORD
ISTRIBUTEDA
RBITRATION Centralised
Single hardware device controlling bus access
Bus Controller Arbiter
May be part of CPU or separate
Distributed
23/40
T
IMING 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
A
SYNCHRONOUST
IMING– R
EADD
IAGRAMA
SYNCHRONOUST
IMING– W
RITE27/40
PCI B
US Peripheral Component Interconnection
Intel released to public domain
32 or 64 bit
50 lines
INTERNAL MEMORY
Chapter 530/40
31/40
F
ERROMAGNETICM
EMORIES33/40
T
HREADEDROM
34/40
35/40
S
EMICONDUCTORM
EMORYT
YPESMemory Type Category Erasure Write Mechanism Volatility
Random-access
memory (RAM) Read-write memory
Electrically,
byte-level Electrically Volatile
Read-only memory (ROM)
Read-only memory Not possible
Masks Nonvolatile Programmable ROM (PROM) Electrically Erasable PROM (EPROM) Read-mostly memory
UV light, chip-level
Electrically Erasable PROM (EEPROM)
Electrically, byte-level
Flash memory Electrically, block-level
S
EMICONDUCTORM
EMORY RAM
Misnamed as all semiconductor memory is random
access
Read/Write Volatile
37/40
P
ROPERTIES OF AC
ELL Basic element of semiconductor memory is a cell.
They exhibit two states, represent binary 0 and 1
They are capable of being written into to set the state
They are capable of being read to sense the state
38/40
39/40
D
YNAMICRAM
Bits stored as charge in capacitors Charges leak
Need refreshing even when powered Simpler construction
Smaller per bit Less expensive Need refresh circuits Slower
Main memory Essentially analogue
Level of charge determines value
41/40
D
YNAMICRAM S
TRUCTURE42/40
DRAM O
PERATION Address line active when bit read or written
Transistor switch closed (current flows) Transistor switch open (no current flows)
Write
Voltage to bit line
High for 1 low for 0
Then signal address line
Transfers charge to capacitor
Read
Address line selected
transistor turns on
Charge from capacitor fed via bit line to sense amplifier
Compares with reference value to determine 0 or 1
43/40
S
TATICRAM
Bits stored as on/off switches No charges to leak
No refreshing needed when powered More complex construction
Larger per bit More expensive
Does not need refresh circuits Faster
Cache Digital
Uses flip-flops
45/40
S
TATICRAM O
PERATION Transistor arrangement gives stable logic state
State 1
C1 high, C2 low T1 T4 off, T2 T3 on
State 0
C2 high, C1 low T2 T3 off, T1 T4 on
Address line transistors T5 T6 is switch Write – apply value to B & compliment to B
Read – value is on line B
46/40
SRAM
VDRAM
Both volatile
Power needed to preserve data
Dynamic cell
Simpler to build, smaller More dense
Less expensive Needs refresh Larger memory units
Static