VHDL311: “std” and “work” should not be set in library clauses
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| - | - | LOW | Consistency | Conventional | 5min | synthesis, library, vscode, linter, simulation |
Description
The VHDL standard states that every design unit is assumed to contain the following implicit context items as part of its context clause:
library STD, WORK; use STD.STANDARD.all;
Thus, it is useless to include:
libraryclauses forstdandworkuseclauses such asuse std.standard.all
Noncompliant code example
library ieee, std, work; -- Noncompliant: "std" and "work" should be removed from list use std.standard.all; -- Noncompliant: use clause is useless and should be removed
Compliant solution
library ieee;
Parameters
No parameters.