Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the regression test... #437

Open
nerdylye opened this issue Dec 26, 2024 · 4 comments
Open

Regarding the regression test... #437

nerdylye opened this issue Dec 26, 2024 · 4 comments

Comments

@nerdylye
Copy link

nerdylye commented Dec 26, 2024

Hi, I'm a rookie in this, sorry if this is considered a dumb question.

First question:
I've ran the regression test according to the instructions provided:
export VEXRISCV_REGRESSION_SEED=42 export VEXRISCV_REGRESSION_TEST_ID= sbt "testOnly vexriscv.TestIndividualFeatures"

The tests passed, but does it have an output file for me to analyze the test results?

Second question:
May I know how does the regression test takes in the design file? What if I made a little modifications to the smallest_nocsr configuration and I would like to test it using the regression test, how should I do it?

Thank you!

@Dolu1990
Copy link
Member

Dolu1990 commented Dec 27, 2024

Hi,

Hi, I'm a rookie in this, sorry if this is considered a dumb question.

No worries, that flow isn't well documented / nor pretty

The tests passed, but does it have an output file for me to analyze the test results?

Right, all the logs are in the terminal you ran the command with (not nice).
There is another environnement variable to ask storing the waves of the simulations.

May I know how does the regression test takes in the design file? What if I made a little modifications to the smallest_nocsr configuration and I would like to test it using the regression test, how should I do it?

Hmm to generate its verilog, be sure it goes into the root folder (of this repo)
Then you can cd to src/test/cpp/regression

and : "make clean run REDO=10 IBUS=SIMPLE DBUS=SIMPLE CSR=no MMU=no DEBUG_PLUGIN=no MUL=no DIV=no COREMARK=yes"

Not great XD

@Dolu1990
Copy link
Member

If you are interrested, there is VexiiRiscv, which has a better flow.

@nerdylye
Copy link
Author

nerdylye commented Jan 2, 2025

Hii @Dolu1990 , thanks for the reply!

Hmm to generate its verilog, be sure it goes into the root folder (of this repo) Then you can cd to src/test/cpp/regression
and : "make clean run REDO=10 IBUS=SIMPLE DBUS=SIMPLE CSR=no MMU=no DEBUG_PLUGIN=no MUL=no DIV=no COREMARK=yes"

I generated the verilog using sbt "runMain vexriscv.demo.GenSmallest", but I manually modify the VexRiscv.v verilog to add 1 extra memory.
image

I tried running the simulation using the command you provided and it results in this error.
image

Any idea what is causing the error?

@Dolu1990
Copy link
Member

Dolu1990 commented Jan 17, 2025

Hi,

That error says that the hardware didn't behave the same way than the reference software RISC-V model.
REF => software model value written in the register file
DUT => what the hardware did
And it doesn't match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants