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

quicklogic: Generate bram_types_sim.v at build time #4050

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

povik
Copy link
Member

@povik povik commented Dec 4, 2023

The source tree has a checked-in version of bram_types_sim.v even though that's a file that is automatically generated. Check out the file from version control, and instead add rules to generate the file on-demand.

By making sure the generated file is up-to-date, this fixes

../share/quicklogic/qlf_k6n10f/dsp_sim.v:0: ERROR: Can't find object for defparam `RAM_INIT`!

raised by

synth_quicklogic -family qlf_k6n10f -bram_types

@povik povik requested a review from mmicko December 4, 2023 17:17
@@ -1,6 +1,9 @@
%_pm.h: passes/pmgen/pmgen.py %.pmg
$(P) mkdir -p pmgen && $(PYTHON_EXECUTABLE) $< -o $@ -p $(subst _pm.h,,$(notdir $@)) $(filter-out $<,$^)

techlibs/quicklogic/qlf_k6n10f/bram_types_sim.v: techlibs/quicklogic/qlf_k6n10f/generate_bram_types_sim.py
$(P) python3 $^ $@
Copy link
Member

Choose a reason for hiding this comment

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

Use $(PYTHON_EXECUTABLE) here instead of python3

Copy link
Member Author

Choose a reason for hiding this comment

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

Pushed a change

@povik povik force-pushed the ql-bram_types-gen branch from eb103a2 to e0fc48e Compare December 4, 2023 17:21
Copy link
Member

@mmicko mmicko left a comment

Choose a reason for hiding this comment

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

LGTM, just merge when CI is happy

@povik povik merged commit b1bbb58 into YosysHQ:master Dec 4, 2023
15 checks passed
@povik povik deleted the ql-bram_types-gen branch December 4, 2023 19:04
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.

2 participants