build/amaranth2v_converter.py: amaranth wrapper#2409
Draft
trabucayre wants to merge 1 commit intoenjoy-digital:masterfrom
Draft
build/amaranth2v_converter.py: amaranth wrapper#2409trabucayre wants to merge 1 commit intoenjoy-digital:masterfrom
trabucayre wants to merge 1 commit intoenjoy-digital:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
It may be useful to integrate cores written in amaranth-lang into LiteX gateware.
This has already been demonstrated in
litecompute_sdr_poc using simple modules. However, the approach used there is not generic enough. In particular, when the inferred core requires one or more clock domains, this approach no longer works and requires writing an additional Amaranth
Moduleto create the missing pieces.The
Amaranth2VConverteris based on the orbtrace wrapper. The goal is to provide a more generic way to bridge Amaranth and LiteX/Migen, following a model similar toInstanceandVHD2VConverter.Main features:
(Amaranth Signal, Migen Signal)pairs instead of a classic dictionary mapping signal names to Migen signals.Instanceto integrate the generated Verilog into the LiteX gateware.Example usage