Beruflich Dokumente
Kultur Dokumente
• (14 points) Performance and important performance metrics in processors (explain each
one)
Efficiency: It is fraction of time which processor spent while doing the useful task.
Latency: It is the delay time between start of process and the operation of process.
Throughput: The amount of work done per unit time.
Relative Performance : Comparison of the Computer A to Computer B. It is the ratio of
CompA/CompB.
There are many factors which effects the performance of processor.
a) A 3.2 GHz processor with three cores , or a 8.4 GHz processor with one core?
3.2 GHz Processor with three cores is faster than other one.
b) A 1-core processor that supports serial processing, or a 2-core processor that supports
parallel processing?
Parallel processing is faster than serial processing. So 2-core processor with parallel
processing will be faster.
3- (15 points) In the following figure, show what happens to the content of memory, ALU registers
and the status of the control unit through the 4-phases of executing the instructions M1 to M5.
Support program counter is initially holding the address of instruction M1. (hint: to get some help,
refer to slide 38~43 in ppt slides).
4- (5 points) Using the following opcode table, what is the binary machine language for MOVE?
How many bits should be used to represent the opcode? How many different instructions this
number of bits can represent? Why?
Fetch: Instruction pointer fetch the instruction and PC points towards an instruction in
memory.
Interpret: Instruction is then loaded into the instruction register (IR).
Execute: Moved to the ALU where the arithmetic operations are performed.
Next Instruction: Instruction pointer then points at the next memory Address.
6- (6 points) What type of processors in terms of instruction set performance metric is used in a)
laptops, b) in handheld devices (like iphones). Provide an example for each.
7- (12 points) Describe different types of instruction formats. Give an example for each type and
include the RTL notation.
Operation, Address 1, Address 2, Address 3 Eg: [Address 1] <- [Address 2] Operation [Address 3]
8- (9 points) Research Question: Use the links to x86 and ARM processor instruction sets in slide 32
and compare them in a table.
x86 ARM
a) x86 is CISC (Complex Instruction Set a) ARM is RISC (Reduced Instruction Set
Computing) Computing)
b) CISC instructions are complex. They take b) ARM processors follow the explicit load-
multiple CPU cycles to execute single and-store model.
instruction.
c) There are variable length instructions c) The length and fields are fixed