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.
This adds support for building the simulation model, linting and running
synthesis of OpenC910 using FuseSoC, as well as making it easier to
integrate in other FuseSoC-based designs.
To test this, first install FuseSoC
pip3 install fusesoc
Create an empty directory, enter it and add openc910 as a library
fusesoc library add openc910 https://github.com/T-head-Semi/openc910
(or if openc910 is already available locally, run)
fusesoc library add openc910 /path/to/openc910/repo
Check that FuseSoC can find the core
fusesoc core list
...and see some basic info...
fusesoc core show openc910
Build the simulation model with the default tool (icarus)
fusesoc run --target=sim openc910
...or with xsim...
fusesoc run --target=sim --tool=xsim openc910
...or Questa/ModelSim...
fusesoc run --target=sim --tool=modelsim openc910
Should hopefully also work with rivierapro, vcs, ncsim etc
Lint the code using Verilator
fusesoc run --target=lint openc910
...or run synthesis with Vivado...
fusesoc run --target=synth openc910
To target a specific part, run e.g. with
fusesoc run --target=synth openc910 --part=xc7a100tcsg324-1
Other synthesis tools have not yet been tested
Signed-off-by: Olof Kindgren [email protected]