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

Resolved ghdl synthesis error #159

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Resolved ghdl synthesis error #159

merged 2 commits into from
Mar 18, 2024

Conversation

lovelesh-mis
Copy link
Contributor

  • Resolved GHDL synthesis error
  • Added on-board LEDs for iCEBreaker_UP5KDemo.vhd

- updated synthesis.mk with correct ghdl commands
- added on-board LEDs provision to iCEBreaker_UP5KDemo top module
@stnolting
Copy link
Owner

Thanks for fixing/updating!

@stnolting stnolting merged commit bd8880b into stnolting:main Mar 18, 2024
15 checks passed
@@ -17,7 +17,7 @@ endif

${IMPL}.json: work-obj08.cf $(NEORV32_VERILOG_ALL)
$(YOSYS) $(YOSYSFLAGS) \
-p \
-m ghdl -p \
Copy link
Collaborator

@umarcor umarcor Mar 19, 2024

Choose a reason for hiding this comment

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

Hardcoding this is not correct. -m ghdl depends on how was ghdl-yosys-plugin built/installed. If it was built statically into Yosys, that argument is not required and using it will produce an error. That is the case on MSYS2. Conversely, if the plugin was built as a shared library,-m ghdl can have various meanings. ghdl means that the library is located in a specific location known by yosys and with an specific extension. Other users might have the file located elsewhere or named elsehow. Therefore, if someone needs to pass -m ghdl, that should be done through the variables.

Precisely, there is support for this feature in this repo already. See:

ifdef GHDL_PLUGIN_MODULE
YOSYSFLAGS += -m $(GHDL_PLUGIN_MODULE)
endif

So, you just need to use GHDL_PLUGIN_MODULE=ghdl, as done in the dockerfile (see

ENV GHDL_PLUGIN_MODULE=ghdl
), because the CI in this repo uses that feature.

Please, revert this change.

Copy link
Owner

Choose a reason for hiding this comment

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

Good point. I did not realize that... 🙈

Copy link
Owner

Choose a reason for hiding this comment

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

-> #160

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

3 participants