lowRISC / lowRISC/ibex

Expose IC_SIZE_BYTES as a module parameter in ibex_top

Open
#2,401 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type:Question
Dominant language
SystemVerilog
Stars
2.1k
Forks
810
Avg merge
5d 23h
Merged PRs (30d)
9

Description

I would like to expose CacheSizeBytes as a module parameter in ibex_top so that it can be set at the instantiation of Ibex. Currently it is defined in ibex_pkg.sv and modifying it requires updating the package - this also makes it a bit tricky to have multiple instances of Ibex with different cache sizes since they share the same package.

I understand that the default cache size has been the focus of testing to date, so exposing the parameter does allow users to pick potentially undertested settings. For what it's worth I have extensive experience using Ibex on a 1KiB cache size.

Looking forward to hearing people's feedback on this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading ibex_top and ibex_pkg.sv to trace how CacheSizeBytes and IC_SIZE_BYTES are defined and consumed. Check the existing instantiation and verification paths for the default cache size. Done means Ibex can be instantiated with different cache sizes while preserving the current default behavior.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.