Skip to content

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