Skip to content
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

add a proxy method to access bitstream extension #1631

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

trabucayre
Copy link
Collaborator

When getting bitstream's filename the current behaviour for soc/integration/builder is to use directly soc.platform.bitstream_ext for sram mode and returning bin for flash. This imply, at targets level, for flash mode, to use get_bitstream_filename's ext parameter to force correct extension.

This PR add, at build/generic_platform a method to return extension according to mode (may be the same extension for both case when build/vendor/platform.py declare _bitstream_ext as a string or two different extension when _bitstream_ext is a dict).

This also fix extension for anlogic (fs is for gowin FPGA).

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
generic_platform add a method to return extension for sram/flash
vendor platform: bitstream_ext -> _bitstream_ext and replace by a dict
when extension depends on mode
builder: use `get_bitstream_extension` instead of directly using
bitstream_ext
@enjoy-digital enjoy-digital merged commit 847fac0 into enjoy-digital:master Mar 6, 2023
@enjoy-digital
Copy link
Owner

Thanks @trabucayre!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants