-
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
add AUTOLOCAL #1877
base: master
Are you sure you want to change the base?
add AUTOLOCAL #1877
Conversation
Is there a reason why verilog-auto-ignore-concat doesn't work for you instead? |
The requirement comes from How do I remove outputs from AUTOOUTPUT?, but many user complain that these 4 methods are not very user friendly, especially for new users. As it is a two-step way of doing things, and user need to setup both AUTO_TEMPLATE and ignore list. It takes more effort to make it work and keep it synchronized cross design updates. verilog-auto-ignore-concat only ignores concat style of ports connection, which cannot cover the generic way of using. AUTOLOCAL is a one-step inline way, which can put the port into 'output ignore' list in AUTO_TEMPLATE. I am also considering make this inline directive way more powerful as below:
More words about the last two use case. |
The purpose is you use concats around what to ignore, using your example:
Why doesn't that work? |
I see. However is it possible to set verilog-auto-ignore-concat bias on each port? We currently use it as a file level global parameter. |
No, concats in ports are rare so the assumption is you aren't using concats in the AUTO port expressions. |
This is another way of applying ignore to outputs.
We can ignore output ports by adding it to
verilog-auto-output-ignore-regexp
,but it takes time when there are many ports to ignore.So, mark any output port by putting
AUTOLOCAL
in template, with this patch that port signal would be put into /AUTOWIRE/.This operation is only meaningful for output port, as use user defined singal as input is working fine.
I find the method useful and convenient, so just pull it for further discussion.