-
Notifications
You must be signed in to change notification settings - Fork 91
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
Besides ignore regex, need force regex for auto-output #1085
Comments
Original Redmine Comment Rather than a force, which is sort of a don't not include something, how about a verilog-auto-subdecl-regexp or something that defaults to .*, I.e. by default exclude all sub signals? |
Original Redmine Comment Wilson Snyder wrote:
|
Original Redmine Comment I suspect an AUTOOUTPUT followed by AUTOOUTPUTEVERY("(paddr|pwrite|pwdata)") will do what you want. If not can you please attach a small verilog module showing a realistic case with what you want to do (I understand the solution you propose, just not the use case.) |
Original Redmine Comment Use-case:
We have two modules: ahb to apb mux (ahb2apb) and apb async bridge (apb_async). ahb2apb can be connected to 32 apb slaves, and some of them are from different clock domain. We make a wrapper (apb_wrapper) to instance one ahb2apb and multiple apb_async according to clock structure, so as to make chip top more clear. We also make a apb_slave_map module to map ahb2apb.psel[31:0] to individual slave selector (for example, psel_gpio, psel_uart).
So, the topology of apb_wrapper is as below :
ahb2apb.psel[31:0] is never needed to be exported as output, only paddr/pwrite/pwdata is needed. So, OUTPUTEVERY is not suitable here.
Busy flag can be read back by CPU from apb bus, and also needed by clock control module for clock management. So, for the top of a SOC component, engine_busy is connected to the apb slave sub-module as input, and also exported as output (for clock control). For this case, only the engine_busy is need to exported. These use-cases show that, only selected part of signals needed to export as output, and they are highly depending on the architecture of design. |
Author Name: Terrence Sun
Original Redmine Issue: 1085 from https://www.veripool.org
If a signal is sub-module's input, then it is excluded from auto output.
I would like to add a verilog-auto-force-regex variable, and always output signal matches it.
For instance, do below changes to the sig-list generate:
The text was updated successfully, but these errors were encountered: