Computer Systems Architecture - PowerPoint PPT Presentation

1 / 32
About This Presentation
Title:

Computer Systems Architecture

Description:

Basic components and their interconnection. Bus structure ... Interrupt request/ACK. Bus request/grant. Clock signals. 11. Memory size vs. machine bits ... – PowerPoint PPT presentation

Number of Views:124
Avg rating:3.0/5.0
Slides: 33
Provided by: adria231
Category:

less

Transcript and Presenter's Notes

Title: Computer Systems Architecture


1
Computer Systems Architecture
  • Chapter 3
  • Functional units and the fetch-execution cycle

2
Outline
  • Basic components and their interconnection
  • Bus structure
  • Executing instruction fetch-execution
  • Interrupts and their impact on execution
  • Synchronous vs. asynchronous

3
Top-level components
4
Top Level Components View
Text/code
ALU
data
stack
5
Interconnect components
  • There are a number of possible ways to
    interconnect components
  • Single and multiple BUS structures are most
    common
  • e.g. Control/Address/Data bus (PC)
  • e.g. PCI

6
Illustrate bus connection
7
Individual Buses
8
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

9
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

10
Control Bus
  • Control and timing information
  • Memory read/write signals
  • I/0 read/write signals
  • Interrupt request/ACK
  • Bus request/grant
  • Clock signals

11
Memory size vs. machine bits
12
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

13
Traditional (ISA)(with cache)
14
High Performance Bus
15
Bus Types
  • Dedicated
  • Separate data address lines
  • Multiplexed
  • Shared lines
  • Address valid or data valid control line
  • Advantage - fewer lines
  • Disadvantages
  • More complex control
  • Ultimate performance

16
Bus Arbitration
  • 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

17
Centralised Arbitration
  • Single hardware device controlling bus access
  • Bus Controller
  • Arbiter
  • May be part of CPU or separate

18
Distributed Arbitration
  • Each module may claim the bus
  • Control logic on all modules
  • A communication pathway connecting two or more
    devices
  • Usually broadcast
  • Often grouped for different proposes
  • A number of channels in one bus
  • E.g. 32 bit data bus is 32 separate single bit
    channels
  • E.g. Control, address, and data buses

19
PCI Express
20
PCI Bus
21
CPU and Control Unit
  • For each operation a unique code is provided
  • e.g. ADD, MOVE
  • A hardware segment accepts the code and issues
    the control signals

regs
22
CPU components
  • The Control Unit and the Arithmetic and Logic
    Unit (ALU) constitute the CPU
  • Data and instructions need to get into the CPU
    for processing and results out
  • Input/output
  • Temporary storage of code and results is needed
    by CPU, e.g. registers

23
How CPU works- instruction Cycle
  • Two steps
  • Fetch
  • Execute

24
Fetch Cycle
  • Program Counter (PC) holds address of next
    instruction to fetch
  • Processor fetches instruction from memory
    location pointed to by PC
  • Increment PC
  • Unless told otherwise
  • Instruction loaded into Instruction Register (IR)
  • Processor interprets instruction and performs
    required actions

25
Execute Cycle
  • Processor-memory
  • data transfer between CPU and main memory
  • Processor I/O
  • Data transfer between CPU and I/O module
  • Data processing
  • Some arithmetic or logical operation on data
  • Control
  • Alteration of sequence of operations
  • e.g. jump
  • Combination of above

26
fetch and execution Mov AX 0x100
1
2
3
4
27
Example Add 940 941 -gt941
940-gtAC
Load ac 940
940941-gtAC
Add ac 941
AC-gt941
Store 941 ac
28
Instruction Cycle - State Diagram
29
Speed-up execution
30
Synchronous Timing Diagram
31
Example Synchronous timing
32
Example Asynchronous timing
ALE
M E M
C P U
DTA
Write a Comment
User Comments (0)
About PowerShow.com