VHDL311: “std” and “work” should not be set in library clauses

Summary

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
--LOWConsistency | Conventional5minsynthesis, 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:

  • library clauses for std and work
  • use clauses such as use 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.