opentitan: verilator: fixup test build #2963
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Overview
Fixup an issue when
make test-verilator
is ran, the binary loaded toVerilator is incorrect. It would load the
binary.64.vmem
file whichmight have been previously created by
make BOARD_CONFIGURATION=sim_verilator verilator
or not at all (error). Note thata
.vmem
created by the previous command will not have been built for tests.This PR updates the
makefile/run.sh
for cw130/nexysvideo to ensurethat the
.vmem
created using the test binary is loaded into Verilator.Depends
This PR builds on:
All merged.
Testing Strategy
make test-verilator
for both boards. The test outputs observed overscreen dev/pts/x
.TODO or Help Wanted
To keep things tidy, I output all the Verilator test build files into
verilator_build/
within the current board directory. So you could easily just delete that after. What do you guys think about this implementation?Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.Update
17/2 - Implemented OBJCOPY variable to be used for object copying.