Skip to content
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

Verilog: set type of implicit nets #750

Merged
merged 1 commit into from
Oct 10, 2024
Merged

Verilog: set type of implicit nets #750

merged 1 commit into from
Oct 10, 2024

Conversation

kroening
Copy link
Member

@kroening kroening commented Oct 4, 2024

1800 2017 6.10 allows implicit declarations of nets. The type of these nets is to be derived from the LHS of the assignment or the type of the port connection.

@kroening kroening marked this pull request as ready for review October 4, 2024 19:48
@kroening kroening force-pushed the implicit-nets-type branch 2 times, most recently from a133789 to e48a523 Compare October 7, 2024 13:44
Comment on lines 1034 to 1035
warning().source_location = expr.source_location();
warning() << "implicit wire " << symbol->display_name() << eom;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this yield a warning, or, rather: in what way should the input have been modified?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add "recommend declaring the net"?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is covered by the standard (as the commit message suggests), why is such a recommendation warranted?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will drop

@kroening kroening force-pushed the implicit-nets-type branch 3 times, most recently from 3f682b1 to be7a20e Compare October 10, 2024 00:58
1800 2017 6.10 allows implicit declarations of nets.  The type of these nets
is to be derived from the LHS of the assignment or the type of the port
connection.

The warning when a net is declared implicitly is dropped by default; it can
be reactivated with --warn-implicit-nets.
@kroening kroening merged commit 626cf79 into main Oct 10, 2024
8 checks passed
@kroening kroening deleted the implicit-nets-type branch October 10, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants