-
Notifications
You must be signed in to change notification settings - Fork 62
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
Difficulty setting up and running tests #722
Comments
Hi, can you post:
The good news is this flow all usually "works on my machine". The bad news is that we don't maintain the Verilator build as tightly as VCS (which is our main flow) so sometimes dependencies lag |
@dpetrisko Here is my current setup:
If there was a guide on how to properly setup the environment and run individual tests and pass them that would be immensely helpful. Thank you for your help! |
@dpetrisko I even update the verilator now there is different errors, I really want to get this to work would really appreciate your help.
|
Thanks, this patch should fix that specific issue: #723 |
For Verilator 5+, looks like you also need this: #724 |
@dpetrisko I don't know if it worked for you after making those change but its still not working for me
Am I doing something wrong? |
Seems like a problem with your docker setup. Often this is due to threading. I would try adding VERILATOR_THREADS=1 to your command to force a single thread build. |
@dpetrisko Thank you for the help on the environment set up! I had questions about testing:
|
|
@dpetrisko Thank you again for all the help! I had couple more questions about the testing process: From what you mentiond and looking at the errors, it looks like most of the modules used in bsg_manycore, such as bsg_noc, bsg_tag, bsg_cache, etc. come from the basejump_stl library. You mentioned that those basejump_stl modules already have extensive unit tests. Is there a way for me to run those existing unit tests on the specific basejump_stl modules that are instantiated within bsg_manycore? I'd like to be able to use those in with to the full system tests if possible. I'm would like test the design by:
Since you are already familiar with this I would really appreciate if you would be able to provide some concrete examples of the exact commands I would need to run for each of those scenarios? I'm not quite sure how to go about running an individual unit test or a system test that targets a specific module. Also, is there documentation somewhere that outlines the overall structure and hierarchy of the test suites? Something that maps the various tests to the hdl modules they are intended to test would be really helpful as I try to debug and run things individually. I really appreciate all the so far thank you so much! |
@dpetrisko sorry to keep bothering you but any help would be much appreciated |
You can find the basejump_stl unit tests here: https://github.com/bespoke-silicon-group/basejump_stl/tree/master/testing The default testing infrastructure uses vivado or VCS, but it would be trivial to add Verilator support as well (would accept a PR!)
You can find the filelist of bsg_manycore here: |
Hello,
I'm new to this project and having a difficult time setting up and running the testbenches. I'm stuck at the
make machines
step and I don't seem to be able to get further to actually run any tests. I did see the other post #650 having same problem but didn't seem to reach conclusion on what was the issue.Current Status:
IGNORE_CADENV=1 BSG_PLATFORM=verilator make machines
, I start to get errors.Specific Issues:
make machines
command, with first there were some python version issues once I fixed that then timescale related issues.Error Output:
What I've Tried:
timescale
directives in missing files (realized didn't need to do that after looking at the other issue).Questions:
I would really appreciate any help on how to go about this and set up the environment and run the testbenches.
The text was updated successfully, but these errors were encountered: