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

Running Regression Test using post_synthesis verilog file #440

Open
nerdylye opened this issue Jan 17, 2025 · 5 comments
Open

Running Regression Test using post_synthesis verilog file #440

nerdylye opened this issue Jan 17, 2025 · 5 comments

Comments

@nerdylye
Copy link

Hii,

May I know if the regression test can be performed on the post synthesis VexRiscv file? If can, how do I do it because I'm facing a lot of random errors haha...

Thanks!

@Dolu1990
Copy link
Member

Hi,

Hmm that was never done as far as i know.
There is now flow in place for it.

What kind of errors ? and on what synthesis tool ?

@nerdylye
Copy link
Author

Hii @Dolu1990,

I see, may I know how to use the flow?

The command that I'm running is make clean run REDO=10 IBUS=SIMPLE DBUS=SIMPLE CSR=no MMU=no DEBUG_PLUGIN=no MUL=no DIV=no COREMARK=yes VEXRISCV_FILE=../../../../temp/VexRiscv_post_synthesis.v in this directory VexRiscv/src/test/cpp/regression.

I did include the primitives file in the Makefile code: verilator -cc --trace ${VEXRISCV_FILE} ${PRIMITIVES} --top-module VexRiscv -O3 -LDFLAGS -pthread ${ADDCFLAGS} --gdbbt ${VERILATOR_ARGS} --Wno-IMPLICIT --Wno-UNOPTFLAT --Wno-WIDTH -Wno-fatal --noassert --x-assign unique --x-initial unique --exe main.cpp

The error is this:

Image

@Dolu1990
Copy link
Member

That is more related to verilator and how it generate the C++ model
Did you renamed the VexRiscv module ?
Try VexRiscv.v instead of VexRiscv_post_synthesis.v

@nerdylye
Copy link
Author

Hii @Dolu1990, thanks for the swift reply :D!

I've tried using VexRiscv.v for the post synthesis verilog file, but its still giving the same error.

Hmm that was never done as far as i know.
There is now flow in place for it.

You mentioned above that there is now a flow for running post synthesis tests on VexRiscv, could you share more about it?

@Dolu1990
Copy link
Member

Hoo i meant "There is no flow in place for it." XD sorry.

For the error you had, check what file were generated by verilator, that is what the testbench can't find apparently.

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