Professional Documents
Culture Documents
Major Assignment1
Major Assignment1
ASSIGNMENT 1:
Performance assessment of system, coding and decoding of Machine Language instruction, MIPS
programming with respect to Arithmetic, Logical and Data transfer instructions.
Due date: 6.2.2016(Saturday)
This assignment is designed to give you practice with:
1. Different performance assessment criterias.
2. Translating assembly language instructions to machine language instructions and
vice versa.
3. Writing asembly language programming using MIPS Arithmetic, Logical and Data
transfer instructions.
(You are allowed to use only those concepts which are covered in the lecture class till date.)
Plagiarized assignments will be given a zero mark.
1. The following table shows the execution time of five routines of a program running on
different numbers of processors.
i. Find the total execution time, and how much it is reduced if the time of routines A,
C, & E is improved by 15%.
ii. By how much is the total time reduced if routine B is improved by 10%?
iii. Can the total time be reduced by 30% by reducing only the time of routine D by
30 %?
2. Consider two different implementations, P1 and P2, of the same instruction set. There
are five classes of instructions (A, B, C, D, and E) in the instruction set. The clock
rate and CPI of each class is given below.
Processor Clock CPI (A) CPI (B) CPI (C) CPI (D) CPI (E)
Rate
P1 1Ghz 1 2 3 4 3
P2 1.5 GHz 2 2 2 4 4
If the number of instructions executed in a certain program is divided equally among the
classes of instructions except for class A, which occurs twice as often as each of the others:
Which computer is faster? How much faster is it?
3. The table below shows instruction-type breakdown for different programs.
Assuming that computes take 1 cycle, loads and store instructions take 2 cycles, and
branches take 3 cycles, find the execution time of each program on a 4 GHz MIPS
processor.
4. Suppose we have developed new versions of a processor with the following
characteristics.
Submit your hard copy assignment by the due date, i.e. 6.2.2016(Saturday).
Part of your assignment grade comes from its "external correctness." This is based on
correct output on various sample inputs (like you have seen in the laboratory classes).
Your output should match the format of the sample run exactly.
The rest of your assignment's score comes from "internal correctness." Internal
correctness includes:
1. Use of minimal MIPS instructions and registers in your program.
2. Appropriate use of the theoretical concepts and suitable diagrams to enhance
readability of your responses.