ISRO 2017 Computer Science : Computer Organization Quiz
Attempt now to get your rank among 369 students!
Question 1
Question 2
Question 3
Question 4
Consider a three word machine instruction
ADD A[R0], @ B
The first operand (destination) “A [R0]” uses indexed addressing mode with R0 as the index register. The second operand (source) “@ B” uses indirect addressing mode. A and B are memory addresses residing at the second and the third words, respectively. The first word of the instruction specifies the opcode, the index register designation and the source and destination addressing modes. During execution of ADD instruction, the two operands are added and stored in the destination (first operand).
The number of memory cycles needed during the execution cycle of the instruction is
Question 5
How many bits are there in the X and Y fields, and what is the size of the control memory in number of words?
Question 6
I. Function locals and parameters
II. Register saves and restores
III. Instruction fetches
Question 7
The expressions for the sum bit Si and the carry bit Ci+1 of the look-ahead carry adder are given by:
where C0 is the input carry.
Consider a two-level logic implementation of the look-ahead carry generator. Assume that all i and G i P are available for the carry generator circuit and that the AND and OR gates can have any number of inputs. The number of AND gates and OR gates needed to implement the look-ahead carry generator for a 4-bit adder with and C4 as its outputs are respectively:
Question 8
P1 : Four-stage pipeline with stage latencies 1 ns, 2 ns, 2 ns, 1 ns.
P2 : Four-stage pipeline with stage latencies 1 ns, 1.5 ns, 1.5 ns, 1.5 ns.
P3 : Five-stage pipeline with stage latencies 0.5 ns, 1 ns, 1 ns, 0.6 ns, 1 ns.
P4 : Five-stage pipeline with stage latencies 0.5 ns, 0.5 ns, 1 ns, 1 ns, 1.1 ns.
Which processor has the highest peak clock frequency?
Question 9
Question 10
Consider a machine with a 2–way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:
double ARR[1024][1024];
int i, j; /*Initialize array ARR to 0.0 */
for(i = 0; i < 1024; i++)
for(j = 0; j < 1024; j++)
ARR[i][j] = 0.0;
The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre–fetching is done. The only data memory references made by the program are those to array ARR.
The total size of the tags in the cache directory is
- 369 attempts
- 4 upvotes
- 5 comments