InferenceAI

Enter at least two characters to search.

Start free

Computer Organization and Architecture

Memory hierarchy, caches, pipelining, instruction formats and performance. 8 questions with worked solutions.

Q1NAT2 marksCache

A 32 KB direct-mapped cache has 64-byte blocks, and addresses are 32 bits. How many bits are in the tag?

Q2NAT1 markMemory hierarchy

A cache has a hit time of 1 ns, a miss rate of 5% and a miss penalty of 100 ns. What is the average memory access time in ns?

Q3NAT1 markPipelining

A 5-stage pipeline executes 100 independent instructions with no stalls. How many clock cycles does it take?

Q4MCQ1 markPipelining

For a very large number of instructions and no hazards, the speedup of a kk-stage pipeline over an unpipelined processor approaches:

Q5NAT2 marksPerformance

80% of a program can be parallelised perfectly. What is the maximum speedup on 4 processors (Amdahl's law)?

Q6MCQ1 markAddressing modes

Which addressing mode is most natural for accessing successive elements of an array?

Q7NAT1 markMemory

How many address lines are needed to address 64 KB of byte-addressable memory?

Q8MCQ1 markCache

Which cache write policy needs a dirty bit per block?