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 prefix #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add prefix #16

wants to merge 1 commit into from

Conversation

bman12three4
Copy link

Add -P option to add a prefix before all module paths.

Currently, if you generate multiple different instances of the (i)fft with different parameters, tools will complain that the modules all have the same name. This commit adds an optional prefix which is added before all module names and filenames so that they can be unique per configuration.

In my case, I have a project where I am using a regular FFT and an inverse FFT in the same hierarchy. With this change, I can prefix all of the fft modules with rx, and all of the ifft modules with tx.

If no option is supplied, then prefix is an empty string and the result is the same as before, otherwise the prefix is added with an underscore.

@ZipCPU ZipCPU self-requested a review January 10, 2025 16:19
@ZipCPU
Copy link
Owner

ZipCPU commented Jan 10, 2025

I like what you've described above! Let me take some time to review your attached pull request.

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