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

[Enhancement] Add diagnostic on never instantiated entities #163

Open
pidgeon777 opened this issue Feb 21, 2023 · 2 comments
Open

[Enhancement] Add diagnostic on never instantiated entities #163

pidgeon777 opened this issue Feb 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@pidgeon777
Copy link

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.

@kraigher
Copy link
Member

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"

@kraigher
Copy link
Member

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.

@Schottkyc137 Schottkyc137 added the enhancement New feature or request label Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants