Start for free Book a free session

Incomplete port maps and generic maps

Sigasi checks that port maps and generic maps associate every formal that needs an actual, and tells you about formals that are left to their default value.

Incomplete associations

An input port or a generic without a default value has to be associated with an actual (LRM 6.5.6.3, 6.5.6.2). Sigasi reports a port map or generic map that leaves such a formal out as an error (rule 17). A quick fix adds the missing associations.

VHDL
component counter
  port(
    clk   : in  std_logic;
    reset : in  std_logic;
    count : out unsigned(7 downto 0)
  );
end component;

i_counter : counter port map(clk => clk, count => cnt);           -- reset has no actual and no default
i_counter : counter port map(clk => clk, reset => rst, count => cnt); -- every input is associated

Incomplete port or generic map

Input ports and generics with a default value, as well as ports of a mode other than in, do not need to be assigned explicitly (LRM 6.5.7.1). However, this is often not intended. For that reason, Sigasi can warn you about this (rule 94).

VHDL
component counter
  port(
    clk      : in  std_logic;
    reset    : in  std_logic := '0';
    count    : out unsigned(7 downto 0);
    overflow : out std_logic
  );
end component;

i_counter : counter port map(clk => clk, count => cnt);                                     -- reset and overflow are left out
i_counter : counter port map(clk => clk, reset => rst, count => cnt, overflow => open); -- every port is associated

Rule configuration

This rule can be disabled for your project, or its severity and parameters can be modified in the project linting settings. Alternatively, it can be manually configured using one of the following templates, depending on the type of project you use.

  • For Modular Projects, add these entries to your project's .sigasi/settings.json settings file. To scope the settings to a specific folder or file instead of the whole project, place them inside an @override block; to scope them to a specific target, place them inside a @targets block.

    JSONC
    {
        "vhdl.rules.94.severity": "{ERROR|WARNING|INFO|IGNORE}"
    }
  • For Classic Projects, add the VHDL lines to .settings/com.sigasi.hdt.vhdl.linting.prefs and the Verilog/SystemVerilog lines to .settings/com.sigasi.hdt.verilog.linting.prefs:

    PREFS
    94/severity/${path}={error|warning|info|ignore}