CAO Question Bank
CAO Question Bank
QUESTION BANK
SUBJECT : 22VLT402-COMPUTER ARCHITECTURE AND ORGANIZATION
SEM/YEAR: IV/II
UNIT-I COMPUTER ORGANIZATION & INSTRUCTIONS
Basics of a computer system: Evolution, Ideas, Technology, Performance, Power wall, Uniprocessors to
Multiprocessors. Addressing and addressing modes. Instructions: Operations and Operands, Representing
instructions, Logical operations, control operations.
PART-A
Q.No Questions BT Competence
Level
1 Express the equation for the dynamic power required per transistor. BTL 2 Understanding
PART B
1 i).Summarize the eight great ideas of computer Architecture. (7) BTL5 Evaluating
ii). Explain the technologies for Building Processors. (6)
2 List the various components of computer system and explain with (13) BTL Remembering
neat diagram. 1
3 i).Define addressing mode. (4) BTL Remembering
ii).Describe the basic addressing modes for MIPS and give one (9) 1
suitable exam le instruction to each cate o
4. Examine the operands and operations of computer hardware. 13 BTL Remembering
1
5 i).Discuss the logical operations and control operations of (7) BTL Understanding
computer. 2
6
ii). Express the concept of Powerwall processor.
6 Consider three different processors PI, P2, and P3 executing the BTL Analyzing
same instruction set. PI has a 3 GHz clock rate and a CPI of 1.5. 4
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
instructions per second?
ii).If the processors each execute a program in 10 seconds, find (3)
the number of cycles and the number of instructions?
iii).We are trying to reduce the execution time by 30% but this (5)
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 x 106 FP BTL3 Applying
instructions,110 x 106 INT instructions, 80 x 106 L/S
instructions, and 16 x 106 branch instructions The CPI for each
type of instruction is 1, 1, 4, and 2, respectively. Assume that
the processor has a 2 GHz clock rate.
i).By how much must we improve the CPI of FP instructions if
we want the program to run two times faster?
ii).By how much must we improve the CPI of L/S instructions? (4)
iii).By how much is the execution time of the program
improved if the CPI of INT and FP Instructions are reduced by (4)
40% and the CPI of L/S and Branch is reduced by 30%? (5)
8 Recall how performance is calculated in a computer system and (13) BTL2 Understanding
derive the necessary performance equations.
9 i).Formulate the performance of CPU. (7) BTL6 Creating
ii).Compose the factors that affect performance. 6
10 i).Illustrate the following sequence of instructions and identify (7) BTL 3 Applying
the addressing modes used and the operation done in every
instruction
(1) Move (R5)+, RO
(2) Add(R5)+, RO
(3) Move RO, (R5)
(4) Move 16(R5),R3
(5) Add #40, R5
ii).Calculate which code sequence will execute faster according to (6)
execution time for the following conditions:
Consider the computer with three instruction classes and CPI
measurements as given below and instruction counts for each
CPI 1 2 3
Code from CPI for the instruction class
Compiler 1 2 1 2
Compiler 2 2 1 1
11 Consider two different implementation of the same instruction (13) BTL 1 Remembering
(13) set architecture, The instruction can be divided into four
classes according to their CPI ( class A,B,C and D). P1 with
clock rate 2.5 Ghz and CPI s of 1,2,3, and 3 respectively and P2
with clock rate 3 Ghz and CPI s of 2,2,2and 2 respectively.
Given a program with a dynamic instruction count of 1.0*10°
instruction divided into classes as follows: 10% class A, 20%
class B, 50% class C, and 20% class D, which implementation is
faster? What is the global CPI for each implementation? Find the
clock cycles required in both cases.
12 i). Compare uni-processors and multi- processors. (3) BTL 4 Analyzing
ii). Analyze how instructions that involve decision making are (10)
executed with an example.
13 Analyze the various instruction formats and illustrate with an (13) BTL 4 Analyzing
example.
14 ()With suitable examples, Summarize the compilation of assignment (8) BTL Understanding
statements into MIPS. 2
(ii)Translate the following C code to MIPS assembly code .Use a (5)
minimum number of instructions. Assume that I and k correspond to
register $s3 and $s5 and the base of the array save is in $s6.What is the
MIPs assembly code corresponding to this is C segment
While(save[i]==k) i+=1;
PART C
Assume that the variables f and g are assigned to register Ss0 (15) BTL Creating
1 and SSI respectively. Assume that base address of the array A is 6
in register Ss2. Assume f is zero initially.
f- -g-- A[4]
A[5]=f+ 100
Translate the above C statement into MIPS code. how many
MIPS assembly instructions are needed to perform the C
statements and how many different registers are needed to carry
out the C statements ?
2 Integrate the eight ideas from computer architecture to the (5) BTL 6 Creating
following ideas from other fields: (5)
i). Assembly lines in automobile manufacturing. (5)
ii). Express elevators in buildings.
iii) .Aircraft and marine navigation systems that incorporate wind
information.
3 Evaluate a MIPS assembly instruction in to a machine instruction, for the BTL5 Evaluating
(15)
add Sto, $s1,$s2 MIPS instruction.
4 Explain the steps to convert the following high level language (15) such BTL5 Analyzing
as C into a MIPS code. a=b+e; c=b+f;
UNIT-II -ARITHMETIC
Fixed point Addition, Subtraction, Multiplication and Division. Floating Point
arithmetic, High
arithmetic, Subword parallelism performance
PART-A
Q.NO Questions Competence
Level
1 Calculate the following: Add 510 to 610 in binary and Subtract -6 10 BTL3 Applying
from 710 in binary.
2 Analyze overflow conditions for addition and subtraction. BTL4 Analyzing
3 Construct the Multiplication hardware diagram. BTL3 Applying
4 List the steps of multiplication algorithm. BTL 1 Remembering
5 What is meant by ALU fast multiplication? BTL 1 Remembering
6 Subtract (11011)2 — (10011)2 using 1's complement and 2’s BTL2 Understanding
complement method.
7 Illustrate scientific notation and normalization with example. BTL3 Applying
8 Perform X-Y using 2 's complement arithmetic for the given two BTL4 Analyzing
16-bit numbers X=0000 1011 1110 1111 and Y=1111 0010
1001 1101.
9 Contrast overflow and underflow with examples. BTL2 Understanding
10 State the rules to add two integers. BTL6 Creating
11 Name the floating point instructions in MIPS. BTL 1 Remembering
12 Formulate the steps of floating point addition. BTL6 Creating
13 Evaluate the sequence of floating point multiplication. BTL5 Evaluating
Define scientific notation and normalized notation. BTL Remembering
15 Express the IEEE 754 floating point format. BTL2 Understanding
16 State sub-word parallelism and the data path in CPU. BTL Remembering
17 Interpret single precision floating point number representation BTL2 Understanding
with example and the representation of double precision floating
point number.
18 Divide 1,001,010 by 1000. BTL4 Analyzing
19 Describe edge triggered clocking. BTL 1 Remembering
20 For the following MIPS assembly instructions above, decide the BTL5 Evaluating
corresponding C statement? add f, g, h & add f, i, f
PART-B
1 i).Discuss the multiplication algorithm its hardware and its (6) BTL2 Understanding
sequential version with diagram. ii).Express the steps to Multiply
2*3. (7)
2 Illustrate the multiplication of signed numbers using Booth (13) BTL3 Applying
algorithm. A=(-34)10=(1011110)2 and B=(22)10=(0010110)2
where B is multiplicand and A is multiplier.
3 Describe about basic concepts of ALU design. 13 BTL 1 Remembering
4 Develop algorithm to implement A *B. Assume A and B for a pair (13) BTL6 Creating
of signed 2's complement numbers with values: A 010111, B-
101100
5 i).State the division algorithm with diagram and examples. ii).Divide (6) BTL 1 Remembering
00000111 by 0010. (7)
6 i).Express in detail about Cany looks ahead Adder. (8) BTL2 Understanding
i) Divide(12)10 by (3)10 (7)
7 Point out how ALU performs division with flow chart and block (13) BTL4 Analyzing
diagram.
8 i).Examine with a neat block diagram how floating point addition is (10) BTL 1 Remembering
carried out in a computer system.
ii).Give an example for a binary floating point addition. (3)
9 Tabulate the IEEE 754 binary representation of the number- BTL 1 Remembering
0.7510
i).Single precision. (6)
ii).Double precision. (7)
10 i).Design an arithmetic element to perform the basic floating point (7) BTL2 Understanding
operations.
ii).Discuss sub word parallelism. (6)
11 i).Explain floating point addition algorithm with diagram. (6) BTL5 Evaluating
ii).Assess the result of the numbers (0.5)10 and (0.4375)10 using (7)
binary Floating point Addition algorithm.
12 Calculate using single precision IEEE 754 representation. BTL4 Analyzing
i). 32.75 ii).18.125 (6)
(7)
13 Arrange the given number 0.0625 BTL4 Analyzing
i). Single precision. (6)
ii). Double precision formats. (7)
Solve using Floating point multiplication algorithm BTL3 Applying
i). A = 1.1010x10^10 B-9.200XIO^-5 ii). (7)
0.510 X 0.437510 (6)
PART C
1 Create the logic circuit for CLA. What are the disadvantages of (15) BTL6 Creating
Ripple cany addition and how it is overcome in cany look ahead
adder?
Evaluate the sum of 2.6125 * 101 and 4.150390625 * 101 by (15) BTL5 Evaluating
hand, assuming A and B are stored in the 16-bit half precision.
Assume 1 guard, 1 round bit and 1 sticky bit and round to the
2.
nearest even. Show all the steps.
3 Summarize 4 bit numbers to save space, which implement the (15) BTL5 Evaluating
multiplication algorithm for 00102 , 00112 with hardware design.
4 Design 4 bit version of the algorithm to save pages, for dividing (15) BTL6 Creating
000001112, by 00102, with hardware design.
UNIT-III- THE PROCESSOR
Introduction, Logic Design Conventions, Building a Datapath - A Simple Implementation scheme - An
Overview of Pipelining - Pipelined Datapath and Control. Data Hazards: Forwarding versus Stalling, Control
Hazards, Exceptions, Parallelism via Instructions.
PART-A
Q.NO Questions Competence
Level
1 Express the truth table for AND gate and OR gate. BTL2 Understanding
2 Define hazard. Give an example for data hazard. BTL2 Understanding
11 Express the simple data path with control unit and modified data (13) BTL Understanding
path to accommodate pipelined executions with a diagram. 2
12 With a suitable set of sequence of instructions show what (13) BTL Applying
happens when the branch is taken, assuming the pipeline is 3
optimized for branches that are not taken and that we moved the
branch execution to the stage.
13 i) Define multiple issue. (3) BTL Remembering
ii) Differentiate static and dynamic multiple issues. (10) 1
14 i).Explain single cycle and pipelined performance with examples. (7) BTL Analyzing
ii).Point out the advantages of pipeline over single cycle and (6) 4
limitations of pipelining a processor's datapath. Suggest the
methods to overcome the later part
PART C
1 Assume the following sequence of instructions are executed on a BTL6 Creating
5 stage pipelined processor
Or rl ,r2,r3
Or r2,rl ,r4
Or rl, r1, ,r2
i) Indicate dependences and their type.
ii) Assume there is no forwarding in this pipelined processor. (5)
Indicate hazards and add NOP instructions to eliminate them. (5)
iii) Assume there is a full forwarding .Indicate hazard and add
NOP instructions to eliminate them. (5)
2 Consider the following code segment in C: A=b+e; c=b+f; Here (15) BTL Evaluating
(15) |BTL 5| Evaluating is the generated MIPS code for this 5
segment, assuming all variables are in memory and are
addressable as off sets from $t0:
1w $t1, 0($t0)
1w $t2, 4($t0)
add $t3, $t1, $t2
sw $t3, 12($t0)
1w $t4, 8($t0)
add $t5, $t1,St4
sw St5, 16($t0)
Find the hazards in the preceding code segment and reorder the
instructions to avoid any pipeline stalls.
3 Consider the following loop: BTL Evaluating
Loop: 1wr1,0(r1) 5
and rl,rl,r2
1w r1,0(r1)
Iw,r1,0(r1)
beq,r1,r0,loop
Assume that perfect branch prediction is used (no stalls) that
there are no delay slots, and that the pipeline has full forwarding
support. Also assume that many iterations of this loop are
executed before the loop exits.
i).Assess a pipeline execution diagram for the third iteration of
this loop. (8)
ii).Show all instructions that are in the pipeline during these cycles
(for all iterations). (7)
4 Plan the pipelining in MIPS architecture and generate the (15) BTL6 Creating
exceptions handled in MIPS.
UNIT IV- MEMORY AND 1/0 ORGANIZATION
Memory hierarchy, Memory Chip Organization, Cache memory, Virtual memory.
Parallel Bus Architectures, Internal Communication Methodologies, Serial Bus
Architectures, Mass storage, Input and Output Devices
PART-A
Q.NO Questions Competence
Level
1 Distinguish the types of locality of references. BTL2 Understanding
2 Define the structure of memory hierarchy in a typical computer BTL 1 Remembering
system and draw its diagram.
3 Give how many total bits are required for a direct mapped cache BTL2 Understanding
with 16KB of data and 4-word blocks, assuming a 32 bit address.
4 Compare and contrast SRAM and DRAM BTL4 Analyzing
5 What is miss penalty? BTL 1 Remembering
6 Describe Rotational Latency. BTL 1 Remembering
7 State is direct-mapped cache. BTL Remembering
8 Evaluate Hit Ratios and Effective Access Times in cache BTL5 Evaluating
9 Formulate Fragmentation in virtual memory BTL6 Creating
10 Analyze the writing strategies in cache memo BTL4 Analyzin
11 Integrate the functional steps required in an instruction cache miss BTL6 Creating
Parallel processing architectures and challenges, Hardware multithreading, Multicore and shared memory
multiprocessors, Introduction to Graphics Processing Units, Clusters and Warehouse scale computers - Introduction
to Multiprocessor network topologies.
PART-A
Q.NO Questions Competence
Level
1 Describe the main idea of Parallel processing architectures. BTL2 Understanding
2 Illustrate how to organize a clusters. BTL3 Applying
3 List the network topologies in parallel processor. BTL Remembering
PART-B