Skip to content

How to Change Gemmini's dim Parameter from 16 to 8 in Spike #52

@ethan2339

Description

@ethan2339

Hi, I am currently working with the Gemmini accelerator using Spike for simulation. I've been trying to modify the Gemmini configuration to use a smaller matrix size (dim=8 instead of the default dim=16).
I modified what I thought was the gemmini_params.h file in the libgemmini directory and run :~/chipyard/scripts$ ./build-toolchain-extra.sh riscv-tools --prefix $RISCV, but when I run Spike with the Gemmini extension, it still shows:

Gemmini extension configured with:
dim = 16

I suspect that the dim parameter might be hardcoded during compilation rather than being read from the header file at runtime.
Could anybody please guide me on the correct way to change the Gemmini dimension parameter?
Specifically:
Which source files need to be modified to change the dim parameter?
Are there any other parameters or dependencies I should be aware of when changing the dimension?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions