This project demonstrates the implementation of loop unrolling and scheduling techniques in a RISC-V processor using the Ripes simulator. The purpose of this project is to optimize the performance of code execution by manually unrolling loops and scheduling instructions to improve pipeline efficiency.
To run the simulations and tests, follow these steps:
- Open Ripes Simulator
- Run the programs to observe effects of unrolling and scheduling
Loop unrolling is a technique where multiple iterations of a loop are executed in a single iteration. This reduces the overhead of loop control instructions and enables better utilization of pipeline stages. In our implementation, we manually unroll loops in the test programs to demonstrate the performance improvements.
Instruction scheduling involves rearranging the order of instructions to minimize pipeline stalls and improve throughput. By reordering instructions, we aim to keep the processor busy and avoid data hazards. The test programs showcase different scheduling strategies and their impact on execution time.