Professional Documents
Culture Documents
Mark ____/(35)
d) [4 marks] List and briefly define the main structural components of a computer.
Central processing unit (CPU): Controls the operation of the computer and performs its data processing
functions; often simply referred to as processor.
Main memory: Stores data.
I/O: Moves data between the computer and its external environment.
System interconnection: Some mechanism that provides for communication among CPU, main memory,
and I/O. A common example of system interconnection is by means of a system bus, consisting of a
number of conducting
e) [3 marks] List and briefly define the main structural components of a processor.
Control unit: Controls the operation of the CPU and hence the computer
Arithmetic and logic unit (ALU): Performs the computers data processing functions
Registers: Provides storage internal to the CPU
[Optional]CPU interconnection (Internal Bus): Some mechanism that provides for communication among the
control unit, ALU, and registers wires to which all the other components attach.
The relative speedup from running a program on a single machine to a number n of parallel
machines depends on the fraction of the code that is parallelizable. If the amount of parallel code is
small, using parallel processors has little effect there are diminishing returns for using more
processors.
(Not necessary, but of interest)Amdahls law can also be generalized to other computer computers
(e.g. memory) adding more of some component only has a fractional relative improvement, with
the fraction dependent on the dominance of that component in the computer.
c) [3 marks] While browsing at Billy Bobs computer store, you overhear a customer asking Billy Bob
what is the fastest computer in the store that he can buy. Billy Bob replies, Youre looking at our
Macintoshes. The fastest MAC we have runs at a clock speed of 1.2 gigahertz. If you really want the
fastest machine, you should buy our 2.4 gigahertz Intel Pentium IV instead. Is Billy Bob correct?
What would you say to help this customer?
(1 mark)Performance is a balance between performance speed, memory speed and I/O speed, so
you must also look at those components.
Performance is also dependent on the type of operations youll be doing on the computer what is
the dominant operation. Need to look at the (1 mark)appropriate benchmark test.(Amdahls law)
(1 mark): For Clarity of argument and completeness example: explain benchmark further.
Even though the Intel machine may have a faster clock speed (2.4 GHz vs. 1.2 GHz), that does not
necessarily mean the system will perform faster. Different systems are not comparable on clock speed.
Other factors such as the system components (memory, buses, architecture) and the instruction sets
must also be taken into account. A more accurate measure is to run both systems on a benchmark.
Benchmark programs exist for certain tasks, such as running office applications, performing floatingpoint operations, graphics operations, and so on. The systems can be compared to each other on how
long they take to complete these tasks. According to Apple Computer, the G4 is comparable or better
than a higher-clock speed Pentium on many benchmarks.
d) [2 marks] For top students (i.e. attempt last): A benchmark program is run on a 40 MHz processor.
The executed program consists of 100,000 instruction executions, with the instruction mix and clock
cycle count shown in the table below.
Determine the effective CPI, MIPS rate and the execution time for this program.
Instruction Type
Integer arithmetic
Data transfer
Floating point
Control transfer
Instruction Count
45000
32000
15000
8000