A Computer Organization and Architecture (COA) project that compares the performance of Unified Cache and Split Cache architectures using RISC-V Assembly programs executed in the Ripes Simulator.
The project analyzes cache behavior by evaluating instruction and data memory accesses under different cache organizations and compares their performance characteristics.
Cache memory is a high-speed memory that reduces processor access time by storing frequently used data and instructions.
This project investigates two commonly used cache organizations:
- Unified Cache – A single cache shared by instructions and data.
- Split Cache – Separate caches for instructions (I-Cache) and data (D-Cache).
The implementation was carried out using RISC-V Assembly Language and simulated using the Ripes Simulator to observe cache statistics and compare their performance.
- Study the architecture of Unified and Split Cache.
- Implement RISC-V Assembly programs.
- Analyze cache performance using the Ripes Simulator.
- Compare cache statistics.
- Understand the impact of cache organization on processor performance.
- RISC-V Assembly Language
- Ripes Simulator
- Computer Organization & Architecture
- Cache Memory
- Git & GitHub
This project was developed as part of the Computer Organization and Architecture (COA) course.
This repository serves as a portfolio version of the project, containing the implementation, project presentation, documentation, and source code.
Note: This repository is maintained as a portfolio version of the academic project. The original classroom submission was completed as a team project.
Unified-vs-Split-Cache-RISC-V
│
├── assembly-programs
│ ├── unified-cache.s
│ └── split-cache.s
│
├── screenshots
│ ├── unified-cache-results.png
│ ├── split-cache-instruction-cache.png
│ └── split-cache-data-cache.png
│
├── presentation.pdf
└── README.md
- Install the Ripes Simulator.
- Open either assembly program from the
assembly-programsfolder. - Assemble the program.
- Enable cache simulation.
- Execute the program.
- Observe cache statistics.
- Compare Unified Cache and Split Cache performance.
- Single cache for both instructions and data.
- Simpler cache organization.
- Instruction and data accesses compete for the same cache space.
- Can experience higher cache contention.
- Separate Instruction Cache and Data Cache.
- Reduced cache contention.
- Independent instruction and data accesses.
- Better cache utilization.
- Improved execution efficiency in many workloads.
Through this project, I gained practical knowledge of:
- RISC-V Assembly Programming
- Cache Memory Organization
- Computer Architecture Concepts
- Performance Analysis
- Ripes Simulator
- GitHub Documentation
The complete project presentation is available in this repository.
File: presentation.pdf
Anannya AK
Computer Science and Engineering (Data Science) Student
GitHub: Anannya97
⭐ If you found this project helpful, consider giving it a star.


