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
Question: AUTOLOGIC? #326
Comments
Original Redmine Comment The existing ones should mostly work with SystemVerilog as-is; if there's something specific missing, let us know. Be sure your verilog-typedef-regexp is set correctly. |
Original Redmine Comment Yes, I agree: existing AUTOs work fine with SystemVerilog. The reason I am wondering is that we are starting a new project and decided to use SystemVerilog "logic" type instead of Verilog "wire"/"reg". However, AUTOs are still very useful in many cases, e.g. testbenches, but they don't generate "logic" declarations. So, it is more a question about consistency of coding. Also, I think AUTOLOGIC would substitute all 3 existing macros AUTOWIRE/AUTOREG/AUTOREGINPUT, one would use AUTOLOGIC instead of AUTOWIRE/AUTOREG or AUTOWIRE/AUTOREGINPUT. |
Original Redmine Comment Finally added AUTOLOGIC, which is like AUTOWIRE. It doesn't combine AUTOREG yet, but you can set verilog-auto-wire-type then use AUTOREG, and AUTOREG will use "logic". Please file a bug if you have any problems. |
Original Redmine Comment It looks like version 676 with AUTOLOGIC has new bugs (as well as old ones):
|
Original Redmine Comment
|
Original Redmine Comment 3 and 3: I was confused - the problem is not with typedefs or generate statements but with parameterizable instantiations, which are not supported by AUTOs as far as I understand. After adding // Outputs I got broken code like:
|
Original Redmine Comment One more thing: in some cases AUTOOUTPUT/AUTOINPUT drop logic in declaration:
which causes errors in modelsim: ** Error: ..._mc_channel.v(34): Net type of 'dram_data_out' must be explicitly declared (`default_nettype is "none"). |
Original Redmine Comment Also, in another case AUTOOUTPUT generates declaration for bus that is already declared inside the module manually:
);
|
Author Name: Alex Solomatnikov
Original Redmine Message: 463 from https://www.veripool.org
Is there something like AUTOLOGIC to generate SystemVerilog code instead of AUTOWIRE/AUTOREG/AUTOREGINPUT?
The text was updated successfully, but these errors were encountered: