-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Enhancement] Add diagnostic on never instantiated entities #163
Comments
Detecting unused code such as variables, signals, functions etc that are not read/written is something I hope to implement. There needs to be some side information that says a function or entity may be unused. For example if you are working on an IP-core library some entities might be unused within your own project and must be marked as "public" |
For signals and variables as well as local functions it is easier as those can never be accessed from the outside unlike entities and functions in package headers. |
Actually, when opening a VHDL entity which is not part of a project library,
rust_hdl
reports it.It would be nice to also add a diagnostic message to the entities (and also their architectures for completeness) not instantiated in any of the other entities of the project.
The diagnostic level could be set to WARN, or maybe better INFO.
The diagnostic could be enabled or not, and its severity level set, by the user thanks to #162.
The text was updated successfully, but these errors were encountered: