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.
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 associatedIncomplete 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).
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 associatedRule 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.jsonsettings file. To scope the settings to a specific folder or file instead of the whole project, place them inside an@overrideblock; to scope them to a specific target, place them inside a@targetsblock.JSONC{ "vhdl.rules.94.severity": "{ERROR|WARNING|INFO|IGNORE}" }For Classic Projects, add the VHDL lines to
.settings/com.sigasi.hdt.vhdl.linting.prefsand the Verilog/SystemVerilog lines to.settings/com.sigasi.hdt.verilog.linting.prefs:PREFS94/severity/${path}={error|warning|info|ignore}