Personal tools

Virtual Memory Ara

From iis-projects

Revision as of 14:19, 18 October 2022 by Mperotti (talk | contribs) (Created page with "Category:Digital Category:Acceleration and Transprecision Category:Computer Architecture Category:2022 Category:Bachelor Thesis [[Category:Semester Thesis]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Vector processing is becoming a widespread option when dealing with highly parallel data workloads, thanks to its intrinsic computational capabilities and flexibility inherited from the Cray-1 processor. For example, “FUGAKU”, the most performant supercomputer in the world, is a vector processor!

A vector core can sustain high computational throughput using deep pipelines and multiple parallel units and, unlike standard SIMD architectures, can adjust the vector length at runtime without the need for new ISA instructions for different specific vector lengths.

What a time for a project on a vector processor! RISC-V has almost finished ratifying its open-source vector ISA RVV (a process that lasted many years!), and many industries/universities are producing their first RVV-compatible cores.

ETH is at the forefront of this race with its agile in-order vector processor Ara, fresh from an update from the unripe specifications RVV 0.5. Still, the overall Ara infrastructure runs only in bare-metal mode and is not designed to support an Operating System. This is a shame, since the scalar RV64GC core CVA6 does support it!

Running an OS is not straightforward and hides many pitfalls, but it allows for easy porting of many external programs and drastically increases the system usability.

Project: Add Virtual Memory support to Ara

The first goal of the project is to make Ara support Virtual Memory. This is a key step towards running an OS on the system.

Currently, both CVA6 and Ara have their private load-store units (LSU), but only CVA6 has a Memory Management Unit (MMU). This unit contains various modules (Translation Lookaside Buffer (TLB), Page Table Walker (PTW), Miss Holding Status Registers (MHSR), etc.) and allows for virtual-to-physical address translation. As it seems, it’s a very complex block to design and handle.

One idea for the project is to share this unit with Ara, so that both the processors can use the same already-existing MMU. This would limit the difficulty of the task and should not harm performance too much.

Throughout the project, you will extend Ara’s LSU, helped by supervisors from ETH, and verify your design, with the aid of a company.

An exciting extended goal of the project is to set up a scheduling strategy for the OS scheduler, so that the vector processes (or threads) can co-exist without excessive performance degradation.

Another bonus goal can be to start studying how different kinds of vector memory operations behave when virtual memory is brought into the equation.

  • Familiarize yourself with Ara and with how CVA6’s MMU works.
  • Modify the RTL to share the MMU between Ara and CVA6, taking care about the needed synchronization/arbitration between the two.
  • Implement the system with a pre-existing back-end flow to see if there is frequency degradation wrt the original system.
  • Prepare a strategy to verify the system.
  • Verify the implementation, and characterize the IPC loss.
  • Write a report and prepare a presentation.
  • Possible BONUS goals.
  • Strong interest and basic knowledge in computer architecture and operating systems, both on the HW and SW sides
  • Experience with SystemVerilog HDL, such as taught in VLSI I
  • C programming language
  • Bonus: Knowledge of ASIC tool flow (Synthesis + PnR), or parallel enrollment with VLSI II
  • Bonus: being familiar with vector processors, RISC-V RVV

Composition: 20% Study, 30% RTL implementation, 10% verification strategy, 20% verification, 20% evaluation

What will you learn

During the project, you will develop several skills.

  • Understand how a Vector architecture works.
  • Use git and cooperate on a complex project with companies.
  • Learn about how the OS interacts with the low-level hardware.
  • Learn how to deal with a complex design and environment.
Project Supervisors


[1] Ara:

[2] Ara source code:

[3] Cray-Processor:

[4] RVV: