Coa Question Bank
Coa Question Bank
PREPARED BY
PRAYAS, PRATYUSH, TAPNJEET,RICHA
SIMRAN,AYUSH,SIDDHARTHA,KISHAN
12. How the processor does execute an instruction? Explain with suitable
example and neat diagram.
13. Explain the basic operational concept involved in the execution of an
instruction with an example
14. An instruction takes 9 clock cycles to execute it on a 1.5GHz processor. How
much time is taken by the instruction to complete its execution?
15. One instruction requires 7 clock cycle to complete its execution. How
much time is required for that instruction if the processor speed is 5 GHz?
16. Discuss the factors that affect the performance of the computer. If a 8GHz
computer takes 7 clock cycles for ALU instructions, 11 clock cycles for
branch instructions and 6 clock cycles for data transfer instructions. Then
Find the total time taken by the computer to execute the program that
consists of 10 ALU instructions, 5 branch instructions and 5 data transfer
instructions
17. Let a processor operates by a frequency 10MHtz and it executes a typical
program in which 50% are register referenced instruction,30% are memory
reference instructions and 20% are branch instructions. Register referenced
instruction , memory reference instructions and branch instructions take 4, 8
and 6 clock cycles respectively. then find out the total time taken by the
processor to execute the program.
18. Differentiate between the little endian and the big endian address assignment
schemes.
19. Differentiate between byte addressable and word addressable.
20. Consider a computer that has a byte addressable memory organized in 32 bit
words according to big endian scheme. A program reads ASCII characters entered
at a keyboard and stores them in successive byte locations, starting at location
1000. Show the content of two memory words at location 1000 and 1004 after the
name ―Johnson‖ has been entered.
21. Suggest the layout of an instruction. And thus write different types of
instruction according to the appearance of number of address, with the
advantages , disadvantages and one example.
Write a program to evaluate the arithmetic statement:
X = (A-B+C*(D*E-F)) / (G+H*K)
i) Using a stack organized computer with zero-address operation
instructions.
ii) Using an accumulator type computer with one address instructions.
iii) Using a general register computer with two address instructions
22. Write the assembly code to evaluate the following arithmetic expression:
Z = ( A - B + C ) * (D / E * F) / G
i) Using an accumulator type computer with one address instructions.
ii) Using a stack organized computer with zero-address operation
instructions.
iii) Using RISC computer instruction format.
23. Write a program that can evaluate the following expression in single accumulator
processor and stack based computer.(A*B)+(C*D).
24. Describe briefly about three, two and one address instruction format. Evaluate
the explain E = (A+B) * C/E using the above three format.
25. Write a program to evaluate the given arithmetic expression :-
Z=(R+P)*E+K*B-L/G-S
i) Using a general register computer with two address and three
address instructions.
ii) Using an accumulator type computer with one address instructions.
iii) Using a stack organized computer with zero-address operation
instructions.
iv) Using RISC computer instruction format.
40. Write the number of memory references required for executing the following
instructions:
i) ADD R1,(R2)+
ii) SUB #10,R2
iii) MOV R1, 20(R3,R4)
iv) AND R1,R2
v) Increment A
41. How many memory references are required for fetching and executing the
following instructions:
1.MUL #100,80(R1)
2.ADD(R2)+,R1
42.
Registers R1 and R2 of a computer contains the decimal value 1100 and 500.
What is the effective address of the memory operand in each of the following
instruction?
i) Load 20(R1),R5
ii) Move 300,R5
iii) Store R5, 50(R1,R2)
iv) Subtract (Ri) +, R5
59. Both of the following statements cause the value 150 to be stored in location
2000
ORIGIN 2000
DATAWORD 150
And
Move #150,2000
Explain the difference.
60. Consider the following program segment. Here R1, R2 and R3 are the general
purpose registers.
Instruction Operation
MOV R1, (3000) R1←M[3000]
LOOP: MOV R2, (R3) R2←M[R3]
ADD R2, R1 R2←R1+R2
MOV (R3), R2 M[R3] ←R2
INC R3 R3←R3+1
DEC R1 R1←R1-1
BNZ LOOP Branch on not zero
HALT Stop
Assume that the content of memory location 3000 is 10 and the content of the
register R3 is 2000. The content of each of the memory locations from 2000 to
2010 is 100. The program is loaded from the memory location 1000. All the
numbers are in decimal. Assume that the memory is word addressable.
How many number of memory references for accessing the data in executing the
program completely?
75. Which of the following IA-32 instructions would cause the assembler to issue a
syntax error message and why?
i. ADD EAX, EAX
ii. SUB EAX, [EBX+ESI*10]
iii. SUB EAX, [EBX+ESI*4+20]
iv. MOV EAX,[EBP+ESP*4]
76. Explain the following addressing modes of IA-32 with example
I. Index with displacement mode
II. Base with index mode
III. Base with index and displacement mode
77.
What do you mean by Instruction set completeness?
78. .
RISC v/s CISC
79. Discuss the register organization of IA-32.
80. Discuss all addressing modes of IA-32.
81. Discuss different types of instructions with respect to the operations performed.
82. Draw the schematic diagram of the architecture of a single bus CPU, clearly
showing the general purpose, Special purpose registers and the data path.
Explain the function of each component.
83. Write the sequence of control steps required for single bus CPU organization of
the following instruction ADD R1, NUM
Write the sequence of control steps required for three bus CPU organizations for
the above instruction
Design the logic function for WMFC control signal using single bus CPU
organization.
84. Write micro routine for single bus 10rganization to execute thefollowing
instructions:
i) ADD (R1)+, R2 ii)SUB RI, 40
85. Write the sequence of control steps for the following instructions for single bus
CPU organization. Assume second operand is the destination operand
MUL R1, (R2)
86. Write the Micro routine for the instruction ADD mem1, R1, R2 where the
content of R1 and R2 will be added and stored in mem1 in the above CPU
87. Write the sequence of control steps for the following instructions for single bus
CPU organization. Assume second operand is the destination operand.
a) MUL #12, (R1) b)DIV -(R1), R2
88. Write the sequence of control steps for the following instruction for multi bus
CPU organization
ADD (R1), R2 // R2←[R1]+R2
89. Explain the 3-bus architecture inside CPU with suitable example. Write
the control sgnals for the following instructions. MUL(R1),#15
90. Write whether the CPU single bus connectivity supports pipelining or not.
91. Write the sequence of control steps for the following instructions for single bus
CPU organization Add (R3), R1.The processor is driven by a continuously
running clock, such that each control step is 2 ns in duration. How long will the
processor have to wait in step2 and 5, assuming that a memory read operation
takes 16ns to complete? What percentage of time is the processor idle during
execution of this instruction?
92. Draw the CPU 3-bus 10rganization and explain the diagram
with it’s advantage and disadvantage.
93. Why constant 4 in MUX is still present in three bus architecture though
incrementor is there?
94. Discuss multi bus organization of a data path inside a processor with
the help of a block diagram. Write down the control sequence of the
instruction ADD (R1), R.7, R3 in three-bus organization, where
(R1), R, are used as source operand and R3 is used as destination
operand.
104. A CPU has only three instructions I1, I2 and I3, which use the following signals
in time steps T1-T5:
I1: I2: I3:
T1:Ain,Bout,Cin T1:Cin,Bout,Din T1:Din,Aout
T2:PCout,Bin T2:Aout,Bin T2:Ain,Bout
T3:Zout,Ain T3:Zout,Ain T3:Zout,Ain
T4:Bin,Cout T4:Bin,Cout T4:Dout,Ain
T5:End T5:End T5:End
107. Write the sequence of control steps for the following instructions for single bus
CPU organization
I. I1: ADD 10(R3), R4
II. I2: Branch<0 L1
III. I3: MUL -(R5), R5
IV. Design the logic function for WMFC control signal with reference
to the above instructions i.e. I1 to I3.
108. Justify whether control signal flows through the same bus where the data,
address, instruction flow or not.
109. Differentiate between micro program counter and program counter.
110. Draw and explain the working principle of microprogrammed control unit.
111. Write the function of control unit. Explain the following terms related to micro-
programmed control unit design:
(i) Micro program counter (ii) Micro Routine
(iii) Micro Instruction (iv) Control Store
112. Describe the operational principle of Hardware control unit and micro-
programmed control unit with the help of proper diagram. What are the
advantage and disadvantage of both the control unit?
113. Explain the working principle of micro-programmed control [4
unit with suitable diagram. Explain how is it different from
hardwired control unit
114. Differentiate between horizontal and vertical micro
instruction with example.
136. A computer employs RAM chips of 256X 8 and ROM chips of 1024X8. The
computer system needs 2K bytes of RAM and 4K bytes of ROM. DesigN the
memory module of above configuration and interface with CPU.
137. What is the difference between memory access time and memory cycle
time?
138. How many 64 X 8 RAM chips are needed to provide a memory capacity of 2048
bytes
139. A computer uses RAM chips of 256X4 capacity. Design a memory
capacity of 1KB by using available chip.
140. How many separate address and data lines are needed in a 8Kx 16
memory?
141. How many 128X8 RAM chips are needed to provide a memory capacity of
2048 bytes? Give the specifications with suitable diagram.
142. Discuss Memory Hierarchy and Locality-of-reference
143. What is the need of locality of reference? Explain about the different types
of locality of references
144. ’
W rite different mapping techniques in cache with their merits and demerits.
145. A cache consists of a total of 128 blocks. The main memory contains 2K
blocks, each consisting of 32 words.
( I )How many bits are there in each of the TAG, BLOCK and WORD
field in case of direct mapping?
( ii )How many bits are there in each of the TAG, SET, and WORD
field in case of 4-way set-associative mapping?
146. Define the role of cache memory in memory organisation. Why we use
the mapping function? Specify the different mapping function
name.
156. Find out the number of page fault in the following strings of pages used by CPU
using the page replacement algorithm LRU and LIFO [taking 3 page frames]
1,1,3,5,3,4,2,2,2,1,8
157. Find the avg. cache access time if the hit ratio is 60%, one cache access time is
2ns and miss penalty is 10ns
158. Can it be possible to have 100% hit in a cache, justify your answer
159. What are the write policies of cache memory? Explain. In a cache
organization if the cache memory has an access time of 8nsec and hit rate as
0.98, then find out Average Memory Access time (AMAT) for the whole
arrangement. Assume the access time for the main memory is 1 .0 msec.
160. What is the hit ratio of a cache memory if cache memory access time is 30ns,
main memory access time is 150ns and average access time is 42ns.
161. What is the hit ratio of a cache memory if cache memory access time
is 30ns and main memory access time is 15ns and average access
time is 42ns?
162. Define different types of memory interleaving technique and its use.
163. Find the block transfer time of one interleaved memory where the modules
are divided to accommodate even and odd numbered wods of blocks, each
st
block contains 4 words, the address transfer time is 2ns, 1 word access time
is 4ns, consecutive word access time is 3ns and data transfer time is 1ns.
Explain the answer with the diagram of the above interleaved memory
168.
The size of virtual memory is 256G Bytes and the physical memory is 4G Bytes.
The page size is 8M Bytes. What would be the size of page table assuming 6 bits
are used as control bits in the page table