Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Assignment 01
1. 1
Assignment 01
Computer Architecture
Submitted By:
Md. Ashikur Rahman Khan
152-35-1185
B
Submitted To:
SHEIKH SHAH MOHAMMAD MOTIUR RAHMAN
Lecturer
Department of SWE
Daffodil International University
Date of submission:
13-Oct-17
2. 2
Question a: State the operations performed by a processor.
Ans:
Q b: What you understand by 64 bit processor?
Ans:
3. 3
Q c: A compiler designer is trying to decide between two code sequences for a particular
machine. Based on the hardware implementation, there are three different classes of
instructions: class A, class B, and class C, and they require one, two, and three cycles
per instruction, respectively.
The first code sequence has 5 instructions: 2 of A, 1 of B, and 2 of C
The second sequence has 6 instructions: 4 of A, 1 of B, and 1 of C
Compute the CPU cycles for each sequence.
Which sequence is faster?
What is the CPI for each sequence?
Ans:
4. 4
Q d: Define CPU Execution Time with possible equation.
Ans:
5. 5
Q e: State the functions and operations of a computer.
Ans:
6. 6
Q f: Suppose we have two implementations of the same Instructions
For a given program, Machine A has a clock cycle time of 275 ps and a CPI of
2.0,Machine B has a clock cycle time of 450 ps and a CPI of 1.2
Which machine is faster for this program, and by how much?
Ans:
7. 7
Q g: Which parameters are used to evaluate the processor?
Ans:
8. 8
Q h: 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:
Determine the effective CPI, MIPS rate, and execution time for this program.
Ans:
9. 9
Q i: Two different compilers are being tested on the same program for a 4 GHz machine with
three different classes of instructions: Class A, Class B, and Class C, which require 1, 2,
and 3 cycles, respectively.
The instruction count produced by the first compiler is 5 billion Class A instructions, 1
billion Class B instructions, and 1 billion Class C instructions.
The second compiler produces 10 billion Class A instructions, 1 billion Class B
instructions, and 1 billion Class C instructions.
Which compiler produces a higher MIPS? Which compiler produces a better execution time?
Ans:
10. 10
Q j: Draw the functional view of a computer.
Ans:
11. 11
Q k: Consider the execution of a program which 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:
Determine the CPI and MIPS rate.
Ans:
12. 12
Q l: A program runs in 10 seconds on computer X with 2 GHz clock rate
1.What is the number of CPU cycles on computer X ?
We want to design computer Y to run same program in 6 seconds
But computer Y requires 10% more cycles to execute program
2.What is the clock rate for computer Y ?
3. Comment on the results.
Ans: