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

build/vhd2v_converter.py: allows users to pass a list of libraries files to compile before convert HDL. #2123

Merged

Conversation

trabucayre
Copy link
Collaborator

VHD2VConverter is used to convert one or more VHDL file to one verilog file. It is more or less similar to Instance with a dict of parameters, input, ouput, inout signals and the list of files.
Based on p_xx a ghdl command is build and the result is one file verilog file without parameters, and with all signals with a fixed size based on generic.

In most of the case this behavior is fine, at least for generic IPs where no hardware primitives or vendor's blackbox are used.

When primitives are present, ghdl fails to convert sources because it don't know entity structures. To fix this use case vendor's libraries must be compiled as .o before conversion step.

This PR fix this issue by adding a list of libraries (the file path or a tuple(work, file path), and a first step before conversion consisting to call ghdl to produces associated .o.

@enjoy-digital enjoy-digital merged commit d7a8743 into enjoy-digital:master Nov 12, 2024
1 check passed
@enjoy-digital
Copy link
Owner

Thanks @trabucayre, this is merged.

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