Add FuseSoC support #6
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.
Adds support for using async_fifo in FuseSoC-based projects.
Also makes it possible to run async_fifo unit tests with different simulators. This has been tested with icarus, modelsim and xsim
To test this
pip install fusesocandfusesoc initfusesoc library add svut /path/to/svutif it's already on your disk, orfusesoc library add svut https://github.com/damofthemoon/svutto get the upstream versionfusesoc library add async_fifo /path/to/async_fifofusesoc run --target=sim async_fifo. This will use icarus by default. To change tool run withfusesoc run --target=sim --tool=$tool async_fifo, where $tool can be icarus, modelsim or xsim. vcs and rivierapro might work too. Haven't testedTo get VCD dumping or force timeout you can add
--vcdor--timeout=some_valueat the end of the command-line. To get all options for a specific target, runfusesoc run --target=sim async_fifo --help