You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: David Rogoff
Original Redmine Issue: 245 from https://www.veripool.org
Original Date: 2010-04-18
Original Assignee: Wilson Snyder (@wsnyder)
Hi Wilson.
I asked for this a year ago as along with the modport stuff you added (thanks!) in Issue #75. As I, and other engineers I work with, have done a ton more SV code, I'm going to ask again, since it would really help in spotting renaming of signals through hierarchies.
Original request:
Use, if specified (SVD variable??) .name port connections for any port connected to a signal with the same name, which would be anything in AUTOINST not using a template:
This is nice because it makes it obvious which ports connect to signals that have a different name. Of course you can just use .*, but I've threatened to shoot anyone in my group who uses that since it makes code totally unreadable.
You replied
I don't want to do this (yet) because it would break Verilog 2001 files, and there's no reliable way to tell which language is in use. Also, it would mess up AUTOWIRE.
I'd suggest again, that this could be a config variable for verilog-mode to enable.
Thanks,
David
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-04-19T12:42:42Z
I suppose....
Mostly for my reference there's three pieces; parsing .name before the AUTOINST to eliminate those connections (always on), generating .name for AUTOINST (defvar controlled), and reading .name for AUTOWIRE etc (always on).
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-04-20T13:16:05Z
So the catch with this is going to be that it requires verilog-auto-inst-vector.
That means it will only be of use when you're connecting to a scalar,
or the wire is pre-declared. IE it won't work with autowire.
This is because it can't know that a connection to "input [2:0] foo"
won't later join with a connection to "input [4:3] foo"; thus it must
use .foo(foo[2:0]) the first time.
Author Name: David Rogoff
Original Redmine Issue: 245 from https://www.veripool.org
Original Date: 2010-04-18
Original Assignee: Wilson Snyder (@wsnyder)
Hi Wilson.
I asked for this a year ago as along with the modport stuff you added (thanks!) in Issue #75. As I, and other engineers I work with, have done a ton more SV code, I'm going to ask again, since it would really help in spotting renaming of signals through hierarchies.
Original request:
Use, if specified (SVD variable??) .name port connections for any port connected to a signal with the same name, which would be anything in AUTOINST not using a template:
This is nice because it makes it obvious which ports connect to signals that have a different name. Of course you can just use .*, but I've threatened to shoot anyone in my group who uses that since it makes code totally unreadable.
You replied
I'd suggest again, that this could be a config variable for verilog-mode to enable.
Thanks,
David
The text was updated successfully, but these errors were encountered: