









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Advance computer architecture Question Answers, Exams of Advanced Computer Architecture 2026 Structural, data and control - ANSWERName the three different types of hazards A structural hazard occurs when two (or more) instructions that are already in pipeline need the same resource - ANSWERWhat is a structural hazard? A control hazard occurs when deciding on control action depends on previous instruction - ANSWERWhat is a control hazard? A data hazard occurs when an instruction depends on the result of a prior instruction still in the pipeline - ANSWERWhat is a data hazard? Temporal locality refers to the reuse of specific data, and/or resources, within a short time. - ANSWERWhat is temporal locality? Spatial locality refers to the use of data elements within relatively close storage locations. - ANSWERWhat is spatial locality? More comparators and an output multiplexer are needed - ANSWERWhy is an associative cache slower than a direct mapped cache?
Because the slowest pipeline stage determines the maximum speed of the whole pipeline, and main memory is very slow - ANSWERWhy are caches needed in a pipelined architecture? Compulsory, Capacity and Conflict - ANSWERName the three types of cache misses AMAT = HitTime + MissRate * MissPenalty - ANSWERGive an expression for the Average Memory Access Time of a cache
Loop fusion, Blocking/tiling - ANSWERGive two examples of Iteration Space Optimisations to reduce cache misses Write-through and write-back - ANSWERName two distinct cache write strategies
Register renaming - ANSWERHow can name and output dependences often be solved in hardware? Functional units broadcast their result on the CDB when finished, so that reservation stations that depend upon their result can receive it - ANSWERWhat is the CDB in Tomasulo's algorithm? The tag of the functional unit which will produce the value - ANSWERIn Tomasulo's algorithm, what is stored in the reservation station's operand fields if the values are not yet ready?
A Register Update Unit is a circular buffer that acts as both a ROB and as reservation stations for the functional units. - ANSWERWhat is a Register Update Unit?
Instead of using an indirect branch, overwrite the current return address with the target and use a "return". This will use the RAS to make a prediction. - ANSWERHow does a retpoline work? In critical places where speculation should be restricted to avoid side- channels - ANSWERWhen should retpolines be used? Software pipelining can be used to optimize loops by removing dependencies. It is similar to dynamic scheduling, except it is done statically by the compiler instead of dynamically by the processor. - ANSWERWhat is software pipelining? Usually, the loop is unrolled multiple times first. Potential places for pipelining are then identified. - ANSWERHow is software pipelining performed? Very Long Instruction Word - an instruction codes for multiple separate sub- operations - ANSWERWhat is VLIW? Instructions which are independent can be coded for by the same VLIW instruction. This means we can compress unrolled loops into very few instructions. - ANSWERHow can VLIW be used in combination with software pipelining? Trace scheduling is a way to identify commonly taken paths in a program, so they can be compressed into VLIW instructions. - ANSWERWhat is trace scheduling?
SMT refers to executing multiple threads in the same cycle on a processor - ANSWERWhat is SMT? Amount of registers - ANSWERWhat limits the number of threads when using SMT?
The other core will detect the core's request by snooping, and then will send over the requested data. That other core will change its copy's state to shared-dirty. - ANSWERHow does a core get data on a cache miss when the cache is dirty in another core's private cache? The bus and CPU will contend against each other to check the tags of cache entries - ANSWERName an issue with snooping-based cache coherency protocols
Weak memory model is faster in many cases, and usually doesn't cause issues in explicitly synchronized programs - ANSWERCompare the sequential and weak memory models There is a centralized directory that tracks the location of each cache line. This approach can be extended to distributed memory (where snooping no longer works) - in that case, each cache will have its own directory. This solves the issue of the bus being a bottleneck. - ANSWERWhat is a directory-based cache coherency protocol?