# Tutorial 1
# Tutorial 1
1. What, in general terms, is the distinction between computer organization and computer
architecture?
- Computer architecture refers to those attributes of a system visible to a programmer or, put
another way, those attributes that have a direct impact on the logical execution of a
program.
- Computer organization refers to the operational units and their interconnections that
realize the architectural specifications.
2. What, in general terms, is the distinction between computer structure and computer function?
- 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.
- Control unit: Controls the operation of the CPU and hence the computer
- Arithmetic and logic unit (ALU): Performs the computer’s data processing functions
- Registers: Provides storage internal to the CPU
- CPU interconnection: Some mechanism that provides for communication among the control
unit, ALU, and registers
A stored program computer has the program stored alongside memory, so the computer can
read it from memory, allowing it being altered or set.
- Memory
- Arithmetic-Logic Unit
- Program Control Unit
- I/O Equipment
8. At the integrated circuit level, what are the three principal constituents of a computer system?
- Transistors
- Resistors
- Capacitors
The number of transistors that could be put on a single chip would double each year (in fact it
was revised, once it started to double each 18 months).
A computer family share the same architecture, allowing older programs versions to be run in
newer hardware machines. Along versions, you can see a faster processor speed, a larger
memory capacity and increase of the number of capacitors in a processor chip.
12. A benchmark program is run on a 40 MHz processor. The executed program consists of
100,000 instruction executions, with the following instruction mix and clock cycle count:
Instruction Type Instruction Count Cycles per Instruction
Integer arithmetic 45,000 1
Data transfer 32,000 2
Floating point 15,000 2
Control transfer 8000 2
CPI A =
∑ CPI i×I i
Ic
f
MIPS A =
CPI A ×106
Calculate the followings:
CPI, MIPS rate and execution time.
13. Consider two different machines, with two different instruction sets, both of which have a
clock rate of 200 MHz. The following measurements are recorded on the two machines
running a given set of benchmark programs:
Instruction Type Instruction Count Cycles per Instruction
(Million)
Machine A
Arithmetic and logic 8 1
Load and store 4 3
Branch 2 4
Others 4 3
Machine B
Arithmetic and logic 10 1
Load and store 8 2
Branch 2 4
Others 4 3
a. Determine the effective CPI, MIPS rate, and execution time for each machine.
Even though, machine B has a higher MIPS than machine A, it needs a longer CPU time to execute
the similar set of benchmark programs (instructions).
14. Four benchmark programs are executed on three computers with the following results:
Computer A Computer B Computer C
Program 1 1 10 20
Program 2 1000 100 20
Program 3 500 1000 50
Program 4 100 800 100
The table shows the execution time in seconds, with 100,000,000 instructions executed in each of
the four programs. Calculate the MIPS values for each computer for each program. Then calculate
the arithmetic and harmonic means assuming equal weights for the four programs, and rank the
computers based on arithmetic mean and harmonic mean.
15. The following table, based on data reported in the literature, shows the execution times, in
seconds, for five different benchmark programs on three machines.
Processor
Benchmark
R M Z
E 417 244 134
F 83 70 70
H 66 153 135
I 39,449 35,527 66,000
K 772 368 369
a. Compute the speed metric for each processor for each benchmark, normalized to machine R.
That is, the ratio values for R are all 1.0. Other ratios are calculated using Equation (2.5) with R
treated as the reference system. Then compute the arithmetic mean value for each system
using Equation (2.3).
Equation 2.5, ri = Trefi/Tsuti
m
1
Equation 2.3, R A = ∑R
m i=1 i
b. Repeat part (a) using M as the reference machine.
c. Which machine is the slowest based on each of the preceding two calculations?
d. Repeat the calculations of parts (a) and (b) using the geometric mean, defined in Equation (2.6).
Which machine is the slowest based on the two calculations?
(∏ )
n 1
m
Equation 2.6, r G = ri
i=1
16. Consider the execution of a program that results in the execution of 2 million instructions on a
400-MHz processor. The program consists of four major types of instructions. The instruction
mix and the CPI for each instruction type are given below based on the result of a program
trace experiment:
Instruction Type CPI Instruction Mix
Arithmetic and logic 1 60%
Load/store with cache hit 2 18%
Branch 4 12%
Memory reference with cache miss 8 10%