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

interchange: add FASM generation target and clean-up tests #678

Merged
merged 2 commits into from Apr 14, 2021

Conversation

acomodi
Copy link
Contributor

@acomodi acomodi commented Apr 13, 2021

Signed-off-by: Alessandro Comodi acomodi@antmicro.com

This PR adds a target to generate the FASM output.

@acomodi acomodi marked this pull request as draft April 13, 2021 15:56
@acomodi acomodi force-pushed the initial-fasm-generation branch 2 times, most recently from f848855 to 6beb1a3 Compare April 14, 2021 08:03
--family ${device_family}
${device_loc}
${netlist}
${phys} > ${fasm}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doing redirection like this tends to cause problems if the FASM generator hits an error, as an empty file will be created and so make won't automatically re-run the fasm generator when running the makefile again.

I think the best option here is to add an output file argument to the FASM generator.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I'll make the corresponding changes to the FASM generator and update this once the new tag is there

Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
@acomodi acomodi marked this pull request as ready for review April 14, 2021 12:37
@acomodi acomodi changed the title WIP: interchange: add FASM generation target and clean-up tests interchange: add FASM generation target and clean-up tests Apr 14, 2021
@gatecat gatecat merged commit 8f5185c into YosysHQ:master Apr 14, 2021
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