Basic Structure of Computers
Topics Covered
• Basic Operational Concepts
• Bus Structures
• Performance – Processor Clock
• Basic Performance Equation
• Clock Rate
• Performance Measurement
Basic Operational Concepts
• Activity in a computer is governed by instructions
• To perform a task, an appropriate program consisting of a list of
instructions is stored in the memory
• Individual instructions are brought from the memory into the
processor, which executes the specified operations
• Data to be used as operands are also stored in the memory
Basic Operational Concepts
• A Typical Instruction
Add LOCA, R 0
Basic Operational Concepts
• Separate Memory Access and ALU Operation
Load LOCA, R1
Add R1, R0
Basic Operational Concepts
• Connection Between the Processor and the Memory
Basic Operational Concepts
Registers
• Instruction register (IR)
• Program counter (PC)
• General purpose register (R0 - Rn-1)
• Memory address register (MAR)
• Memory data register (MDR)
Basic Operational Concepts
Typical Operating Steps
• Programs reside in the memory through input devices
• PC is set to point to the first instruction
• The contents of PC are transferred to MAR
• A Read signal is sent to the memory
• The first instruction is read out and loaded into MDR
• The contents of MDR are transferred to IR
• Decode and execute the instruction
Basic Operational Concepts
Typical Operating Steps
• Get operands for ALU
• General purpose register
• Memory (address to MAR Read MDR to ALU)
• Perform operation in ALU
• Store the result back
• To general purpose register
• To memory (address to MAR, result to MDR Write)
• During the execution, PC is incremented to the next instruction
Basic Operational Concepts
Interrupt
• Normal execution of programs may be preempted if some device requires urgent servicing
• The normal execution of the current program if interrupted the device raises an interrupt signal
• Interrupt service routine
• Current system information backup and restore (general purpose registers, control information,
specific information)
Important questions:
• With a neat diagram, analyze the basic operational concept of
computer. Give the operating steps.
• With the help of a neat block diagram discuss the basic operational
concept of a computer.
Bus Structures
• To form an operational system individual parts of a computer must be connected
in an organized way.
• There are many ways to connect different parts inside a computer together
• A group of lines that serves as a connecting path for several devices is called a bus
• Bus carry Address/data/control signals.
Bus Structures
• Single bus
• Multiple Buses
Bus Structures
Single bus
• Advantages
• Low Cost
• Flexibility for attaching peripheral devices
• Draw Back
• low operating speed
• Found in small computers such as minicomputers and microcomputers
Bus Structures
Speed Issue
• Different devices have different transfer/operate speed
• If the speed of bus is bounded by the slowest device connected to it, the
efficiency will be very low
• How to solve this?
• A common approach use buffers
e.g. Printing the characters
Bus Structures
Two-bus structure
Input
Output
Processor
Memory
I/O bus
Bus Structures
Two-bus structure
• The bus is said to perform two distinct functions by connecting the I/O units with
memory and processor unit with memory.
• The processor interacts with the memory through a memory bus and handles
input/output functions over I/O bus.
• advantage of this structure is good operating speed but on account of more cost.
Performance – Processor Clock
• Performance
• The most important measure of the performance of a computer is how quickly it
can execute programs.
• Three factors affect performance:
• Hardware design
• Instruction set
• Compiler
Performance – Processor Clock
• Processor time to execute a program depends on the hardware involved in the
execution of individual machine instructions.
Performance – Processor Clock
The processor and a relatively small cache memory can be fabricated on a single
integrated circuit chip
• Speed
• Cost
• Memory management
Performance – Processor Clock
Processor Clock
• The length P of one clock cycle (P), and its inverse is clock rate (R= 1 /P)
• The execution of each instruction is divided into several steps (Basic Steps), each
of which completes in one clock cycle
• Hertz is the cycles per second
Basic Performance Equation
T - processor time required to execute a program that has been prepared in high level language
N - number of actual machine language instructions needed to complete the execution (note loop)
S - average number of basic steps needed to execute one machine instruction Each step completes
in one clock cycle
R - clock rate
Note these are not independent to each other
Basic Performance Equation
How to improve T?
Reduce N and S, Increase R, but these affect one another
Clock Rate
Two possibilities for increasing clock rate:
• Improve the integrated circuit (IC) technology to make the circuits faster
• Reduce the amount of processing done in one basic step ( this may increase the
number of basic steps needed)
• Increases in R that are entirely caused by improvements in IC technology affect all
aspects of the processor’s operation equally except the time to access the main
memory
Performance Measurement
• T is difficult to compute
• Measure computer performance using benchmark programs
• The selected benchmark programs are compiled for the computer under test and running time on
real computer is measured.
• The same benchmark program is also compiled and run on the reference computer.
• SPEC specified the benchmark programs and reference computers in 1995 and 2000.
• For SPEC95, the reference computer is the SUN SPARCStation 10/40
• For SPEC2000, the reference computer is the Ultra-SPARC10 workstation.
Performance Measurement
• SPEC rating is computed as follows:
• n is the number of program in the suite
Important questions
• Explain:
• Processor clock
• Clock rate
• Basic Performance equation
• Performance measurement
• Explain SPEC rating of computer
• Write the basic performance equation indicate the role of each parameter in the
equation.
• What is performance measurement? Explain the overall SPEC rating of a computer.
• How to measure performance of a computer? Explain.

Computer Organization and Architecture_Unit 1_part a.pptx

  • 1.
  • 2.
    Topics Covered • BasicOperational Concepts • Bus Structures • Performance – Processor Clock • Basic Performance Equation • Clock Rate • Performance Measurement
  • 3.
    Basic Operational Concepts •Activity in a computer is governed by instructions • To perform a task, an appropriate program consisting of a list of instructions is stored in the memory • Individual instructions are brought from the memory into the processor, which executes the specified operations • Data to be used as operands are also stored in the memory
  • 4.
    Basic Operational Concepts •A Typical Instruction Add LOCA, R 0
  • 5.
    Basic Operational Concepts •Separate Memory Access and ALU Operation Load LOCA, R1 Add R1, R0
  • 6.
    Basic Operational Concepts •Connection Between the Processor and the Memory
  • 7.
    Basic Operational Concepts Registers •Instruction register (IR) • Program counter (PC) • General purpose register (R0 - Rn-1) • Memory address register (MAR) • Memory data register (MDR)
  • 8.
    Basic Operational Concepts TypicalOperating Steps • Programs reside in the memory through input devices • PC is set to point to the first instruction • The contents of PC are transferred to MAR • A Read signal is sent to the memory • The first instruction is read out and loaded into MDR • The contents of MDR are transferred to IR • Decode and execute the instruction
  • 9.
    Basic Operational Concepts TypicalOperating Steps • Get operands for ALU • General purpose register • Memory (address to MAR Read MDR to ALU) • Perform operation in ALU • Store the result back • To general purpose register • To memory (address to MAR, result to MDR Write) • During the execution, PC is incremented to the next instruction
  • 10.
    Basic Operational Concepts Interrupt •Normal execution of programs may be preempted if some device requires urgent servicing • The normal execution of the current program if interrupted the device raises an interrupt signal • Interrupt service routine • Current system information backup and restore (general purpose registers, control information, specific information)
  • 11.
    Important questions: • Witha neat diagram, analyze the basic operational concept of computer. Give the operating steps. • With the help of a neat block diagram discuss the basic operational concept of a computer.
  • 12.
    Bus Structures • Toform an operational system individual parts of a computer must be connected in an organized way. • There are many ways to connect different parts inside a computer together • A group of lines that serves as a connecting path for several devices is called a bus • Bus carry Address/data/control signals.
  • 13.
    Bus Structures • Singlebus • Multiple Buses
  • 14.
    Bus Structures Single bus •Advantages • Low Cost • Flexibility for attaching peripheral devices • Draw Back • low operating speed • Found in small computers such as minicomputers and microcomputers
  • 15.
    Bus Structures Speed Issue •Different devices have different transfer/operate speed • If the speed of bus is bounded by the slowest device connected to it, the efficiency will be very low • How to solve this? • A common approach use buffers e.g. Printing the characters
  • 16.
  • 17.
    Bus Structures Two-bus structure •The bus is said to perform two distinct functions by connecting the I/O units with memory and processor unit with memory. • The processor interacts with the memory through a memory bus and handles input/output functions over I/O bus. • advantage of this structure is good operating speed but on account of more cost.
  • 18.
    Performance – ProcessorClock • Performance • The most important measure of the performance of a computer is how quickly it can execute programs. • Three factors affect performance: • Hardware design • Instruction set • Compiler
  • 19.
    Performance – ProcessorClock • Processor time to execute a program depends on the hardware involved in the execution of individual machine instructions.
  • 20.
    Performance – ProcessorClock The processor and a relatively small cache memory can be fabricated on a single integrated circuit chip • Speed • Cost • Memory management
  • 21.
    Performance – ProcessorClock Processor Clock • The length P of one clock cycle (P), and its inverse is clock rate (R= 1 /P) • The execution of each instruction is divided into several steps (Basic Steps), each of which completes in one clock cycle • Hertz is the cycles per second
  • 22.
    Basic Performance Equation T- processor time required to execute a program that has been prepared in high level language N - number of actual machine language instructions needed to complete the execution (note loop) S - average number of basic steps needed to execute one machine instruction Each step completes in one clock cycle R - clock rate Note these are not independent to each other
  • 23.
    Basic Performance Equation Howto improve T? Reduce N and S, Increase R, but these affect one another
  • 24.
    Clock Rate Two possibilitiesfor increasing clock rate: • Improve the integrated circuit (IC) technology to make the circuits faster • Reduce the amount of processing done in one basic step ( this may increase the number of basic steps needed) • Increases in R that are entirely caused by improvements in IC technology affect all aspects of the processor’s operation equally except the time to access the main memory
  • 25.
    Performance Measurement • Tis difficult to compute • Measure computer performance using benchmark programs • The selected benchmark programs are compiled for the computer under test and running time on real computer is measured. • The same benchmark program is also compiled and run on the reference computer. • SPEC specified the benchmark programs and reference computers in 1995 and 2000. • For SPEC95, the reference computer is the SUN SPARCStation 10/40 • For SPEC2000, the reference computer is the Ultra-SPARC10 workstation.
  • 26.
    Performance Measurement • SPECrating is computed as follows: • n is the number of program in the suite
  • 27.
    Important questions • Explain: •Processor clock • Clock rate • Basic Performance equation • Performance measurement • Explain SPEC rating of computer • Write the basic performance equation indicate the role of each parameter in the equation. • What is performance measurement? Explain the overall SPEC rating of a computer. • How to measure performance of a computer? Explain.