Computer Hardware Design - Unit Wise Questions

Unit 1: Computer Abstractions and Technology
12 Questions

1. Write MIPS assembly code for the following function where n corresponds to the argument

register $a0? (10)

int fact (int n)

{

if (n < 1)

return (1);

else

return (n * fact(n – 1));

}

5 marks | Asked in Model Question

2. What are different pipelining hazards? Highlight on the techniques that can be implemented to reduce these hazards. (5+5)

10 marks | Asked in Model Question

3. Explain different associative structures for an eight-block cache. Assuming a cache of 4K blocks, a 4-word block size, and a 32bit address, find the total number of sets and the total number of tag bits for caches that are direct mapped, two-way and four-way set associative, and fully associative. (5+5)

10 marks | Asked in Model Question

4. A program runs in 20 seconds on computer A, which has a 2 GHz clock. We are trying to help a computer designer build a computer, B, which will run this program in 12 seconds. The designer has determined that a substantial increase in the clock rate is possible, but thisincrease will affect the rest of the CPU design, causing computer B to require 1.4 times as many clock cycles as computer A for this program. What clock rate should the designer target? (5)

5 marks | Asked in Model Question

5. Explain how TLB, virtual machine and cache can be integrated? (5)

5 marks | Asked in Model Question

6. Briefly explain different MIPS addressing modes. (5)

5 marks | Asked in Model Question

7. Explain x86 floating point architecture. (5)

5 marks | Asked in Model Question

8. What are different pipelining hazards and explain techniques to reduce them.(5)

5 marks | Asked in Model Question

9. How can FSM be implemented for a simple cache controller? (5)

5 marks | Asked in Model Question

10. Suppose we have a benchmark that executes in 150 seconds of elapsed time, of which 120

seconds is CPU time and the rest is I/O time. Suppose the number of processors doubles

every two years, but the processors remain the same speed, and I/O time doesn’t improve.

Calculate the improvement in CPU performance. (5)

a) After eight years

b) In elapsed time

5 marks | Asked in Model Question

11. Explain different approaches of hardware multithreading. (5)

5 marks | Asked in Model Question

12. Write short notes on: (2 × 2.5 = 5)

a. Roofline model

b. Power wall

5 marks | Asked in Model Question

Unit 2: Instructions: Language of the Computer
0 Questions
Unit 3: Arithmetic for Computers
0 Questions
Unit 4: The Processor
0 Questions
Unit 5: Large and Fast: Exploiting Memory Hierarchy
0 Questions
Unit 6: Storage and Other I/O Topics
0 Questions
Unit 7: Multicores, Multiprocessors, and Clusters
0 Questions