CS8491-Computer Architecture
CS8491-Computer Architecture
DEPARTMENT OF
COMPUTER SCIENCE AND ENGINEERING
QUESTION BANK
M
O
C
S.
U
C
FO
TS
EN
D
VI SEMESTER
U
ST
CS8491-COMPUTER ARCHITECTURE
Regulation – 2017
Prepared by
QUESTION BANK
M
PART-A
O
Q. Questions C BT Competence
No Level
S.
1 Express the equation for the dynamic power required per BTL 2 Understand
U
C
transistor.
FO
an example.
EN
8 Give the difference between auto increment and auto decrement BTL 2 Understand
addressing mode.
9 What are the functions of control unit? BTL 1 Remember
14 State the need for indirect addressing mode. Give an example. BTL 1 Remember
15 Show the formula for CPU clock cycles required for a program. BTL 3 Apply
19 Classify the instructions based on the operations they perform BTL 3 Apply
M
O
CPI 1.0 1.1 C
S.
Which computer has the higher MIPS rating.
U
PART B
C
FO
computer system.
EN
2 i)List the various components of computer system and explain (8) BTL 1 Remember
D
same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5.
P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz
clock rate and has a CPI of 2.2.
i).Which processor has the highest performance expressed in
(3)
instructions per second?
ii).If the processors each execute a program in 10 seconds, find
(5)
the number of cycles and the number of instructions?
iii).We are trying to reduce the execution time by 30% but this
leads to an increase of 20% in the CPI. What clock rate should
we have to get this time reduction? (5)
7 Assume a program requires the execution of 50 × 106 FP BTL 3 Apply
M
O
we want the program to run two times faster? (4)
C
ii).By how much must we improve the CPI of L/S instructions?
S.
(4)
U
example.
D
BTL 6 Create
U
detail
ii).Examine the basic instruction types with examples (6)
11 Find the various techniques to represent instructions in a (13) BTL 1 Remember
example.
14 Consider two different implementation of the same instruction (13) BTL 2 Understand
M
O
PART C
1 Evaluate a MIPS assembly instruction in to a machine C BTL 5 Evaluate
S.
instruction, for the add $to, $s1,$s2 MIPS instruction.
U
(15)
C
instruction
(15)
D
M
Q. Questions BT Competence
Level
O
No
1 Calculate the following: C BTL 3 Apply
S.
Add 510 to 610 in binary and Subtract -610 from 710 in binary.
U
C
4 x=0000 1011 1110 1111 and y= 1111 0010 1001 1101 Examine BTL 1 Remember
EN
x-y
D
6 BTL 2 Understand
complement method.
7 Illustrate scientific notation and normalization with example. BTL 3 Apply
number.
10 For the following C statement, Develop MIPS assembly code. BTL 6 Create
f = g + (h − 5).
11 Name are the floating point instructions in MIPS. BTL 1 Remember
14 Define guard bit. What are the ways to truncate the guard bits? BTL 1 Remember
15 Express the IEEE 754 floating point format. BTL 2 Understand
17 Interpret single precision floating point number representation with BTL 2 Understand
example.
18 Calculate Divide 1001010 by 1000. BTL 4 Analyze
20 For the following MIPS assembly instructions above, what is a BTL 5 Evaluate
corresponding C statement?
add f, g, h
add f, i, f
PART-B
1 i).Discuss the multiplication algorithm in detail with diagram. (6) BTL 2 Understand
M
ii).Express the steps to Multiply 2*3.
O
(7)
2 Illustrate the multiplication of signed 2’s complement numbers?
C BTL 3 Apply
S.
(13)
Give algorithm and example.
U
C
B=101100
D
5 i) .State the integer division algorithm with diagram. (6) BTL 1 Remember
U
(7)
ST
ii). Assess the result of the numbers (0.5)10 and (0.4375)10 using
binary Floating point Addition algorithm. (7)
M
14 Solve using Floating point multiplication algorithm BTL 3 Apply
O
(7)
i).A= 1.10 10 X 1010 B= 9.200X10-5 C
S.
ii). 0.5 10 X 0.4375 10 (6)
U
C
PART C
FO
1 Multiply the following signed numbers using Booth algorithm BTL 6 Create
(15)
A=( -34)10 =(1011110)2 and B=(22)10= (0010110) 2where B is
TS
Evaluate the sum of 2.6125 * 101 and 4.150390625 * 101 by (15) BTL 5 Evaluate
D
U
Assume 1 guard, 1 round bit and 1 sticky bit and round to the
nearest even. Show all the steps.
3 Summarize 4 bit numbers to save space, which implement the (15) BTL 5 Evaluate
operations.
2 Define hazard. Give an example for data hazard. BTL 2 Understand
4 List the state elements needed to store and access an instruction. BTL 1 Remember
5 Draw the diagram of portion of data path used for fetching BTL 2 Understand
instruction.
6 Distinguish Sign Extend and Vector interrupts. BTL 2 Understand
8 Evaluate branch taken and branch not taken in instruction BTL 5 Evaluate
execution.
9 Statethe two steps that are common to implement any type of BTL 1 Remember
instruction.
10 Design the instruction format for the jump instruction. BTL 6 Create
M
O
12 Illustrate data forwarding method to avoid data hazards. BTL 3 Apply
C
S.
13 Assess the methods to reduce the pipeline stall. BTL 5 Evaluate
U
BTL 4 Analyze
TS
19 Classify the types of instruction classes and their instruction BTL 4 Analyze
ST
formats.
20 Generalizewhat is exception. Give one example for MIPS BTL6 Create
exception..
PART-B
1 Discuss the basic MIPS implementation of instruction set. (13) BTL 2 Understand
2 State and draw asimpleeMIPS datapath with control unit and (13) BTL 1 Remember
MIPS.
10 i).Analyze the hazards caused by unconditional branching (7) BTL 4 Analyze
statements.
ii).Describe operand forwarding in a pipeline processor with a (6)
M
O
diagram.
11
C
Express the modified data path to accommodate pipelined (13) BTL 2 Understand
S.
U
12 i).Explain single cycle and pipelined performance with examples. (7) BTL 4 Analyze
FO
13 i).Tabulate the ALU control with suitable truth table. (8) BTL 1 Remember
EN
14 With a suitable set of sequence of instructions show what (13) BTL 3 Apply
U
ST
Loop: lw r1,0(r1)
and r1,r1,r2
lw r1,0(r1)
M
O
lw r1,0(r1)
C
beq r1,r0,loop
S.
U
there are no delay slots, and that the pipeline has full forwarding
FO
this loop.
ST
M
O
12 Define the Flynn classification. BTL 1 Remember
C
Integrate the ideas of in-order execution and out-of-order BTL 6 Create
S.
13
U
execution.
C
multithreading.
20 Classify shared memory multiprocessor based on the memory BTL 3 Apply
access latency
PART-B
1 i).Define parallelism and its types. (4) BTL 1 Remember
4 Solve: suppose you want to achieve a speed up to 90 times faster (13) BTL 3 Apply
processor?
(8)
ii).Compare and contrast Fine grained and Coarse grained
multithreading.
7 i) Evaluate the features of Multicore processors. (6) BTL 5 Evaluate
M
11 Explain simultaneous Multithreading with example. (13) BTL 4 Analyze
O
12 i)Describe about Graphics Processing unit
C (5) BTL 1 Remember
S.
ii) Discuss about cluster and warehouse architecture
U
(8)
C
i).Data Dependence
(5)
TS
(7)
i). Vector processor.
ii).Superscalar processor. (6)
PART C
1 Explain how would this loop be scheduled on a static two issue (15)
pipeline for MIPS?
Loop: lw $t0,0($s1) #$t0=array element
Addu $t0,$t0,$s2 #add scalar in $s2
Sw $t0, 0($s1) # store result BTL 6 Create
Addi; %s1,$s1, -4#decrement pointer
Bne $s1,$zero,loop # branch $s1!=0
Decide and reorder the instruction to avoid as many pipeline
stalls as possible. Assume branches are predicted, so that control
hazards are handled by the hardware.
2 A pipelined processor uses delayed branch technique. (15)
Recommend any one of the following possibility for the design
of the processor. In the first possibility, the processor has a 4-
satge pipeline and one delay slot. In the second possibility, it has
a 6-stage pipeline and two delay slots. Compare the performance
BTL 5 Evaluate
of these two alternatives, taking only the branch penalty into
account. Assume that 20% of the instructions are branch
instructions and that an optimizing compiler has an 80% success
rate in filling in the single delay slot. For the second alternative,
the compiler is able to fill the second slot 25% of the time.
3 Consider the following portions of two different programs BTL 6 Create
M
O
multicore processor (SMP). Assume that before this code is run,
C
both x and y are 0?
S.
U
Core 1: x=2;
C
Core 2: y=2;
FO
Core 3: w= x + y +1;
TS
Core 4: z= x + y;
EN
ii. Develop the execution more deterministic so that only one set
of values is possible?
(7)
4 Suppose we want to perform 2 sums: one is a sum of 10 scalar BTL 6 Create
8 Evaluate the following instance wherein the cache size is 64 BTL 5 Evaluate
blocks and block size is 16 bytes. What block number does byte
address 1200 map?
M
9 Formulate, how many total bits are required for a direct- BTL 6 Create
O
mapped cache with 16 KB of data and 4-word blocks, assuming
C
S.
a 32-bit address?
U
miss.
EN
memory.
ST
15 Point out how DMA can improve I/O speed. BTL 4 Analyze
18 Assess the relationship between physical address and logical BTL 5 Evaluate
address.
19 Differentiate Programmed I/O and Interrupt I/O. BTL 2 Understand
design.
(4)
i). Direct.
(4)
ii).Associative.
iii).Set associative. (5)
5 i).Analyze the given problem:
BTL 4 Analyze
A byte addressable computer has a small data cache capable of
holding eight 32-bit words. Each cache block contains 132-bit
word. When a given program is executed, the processor reads
M
O
data from the following sequence of hex addresses – 200, 204,
C
208, 20C, 2F4, 2F0, 200,204,218, 21C, 24C, 2F4. The pattern is
S.
U
show the contents of the cache at the end of each pass, and
FO
misses.
13 Discuss virtual memory address translation in detail with (13) BTL 2 Understand
necessary diagram.
14 Calculate the performance the processor : (13) BTL 3 Apply
M
Replacement (MTTR) and Mean Time To Failure (MTTF) are
O
C
useful metrics for evaluating the reliability and availability of a
S.
storage resource. Explore these concepts by answering the
U
C
BTL 6 Create
MTTF : 3 years MTTR: 1 day
TS
i). Develop and calculate the MTBF for each of the devices. (3)
EN
(4)
ST
M
O
C
S.
U
C
FO
TS
EN
D
U
ST