You are investigating the pipeline design of a low power RISC-V processor with 3 pipeline stages as shown below. Stage 1
Posted: Tue May 24, 2022 7:41 am
Part(a) [5 pts] Identify all the RAW, WAR, and WAW dependencies in the above code. You only need to identify dependency within, and including, 3 instructions. e.g., from instruction k, you only need to consider the data hazards between k and instructions k +1 and k +2. List the dependencies in the following table. You can assume branches and jumps do not incur any delay slot. The first row has been done for you as an example. Register Instruction Instruction To From Dependency WAR a1 1 2 Part(b) [5 pts] In the baseline implementation of the processor, there is no hazard detection and data forwarding circuits. Using instruction 11 to 13 above as an example, show how data hazard violation may occur and lead to incorrect program execution.