nvc icon indicating copy to clipboard operation
nvc copied to clipboard

Alias of signal in a package

Open Blebowski opened this issue 10 months ago • 0 comments

It may be good to show a warning when a signal declared in package is aliased by a localy defined signal (similar to e.g. when for loop iterator aliases another definition).

A simple test-case for this:

package my_pkg is

    signal example_signal : natural;

end package;

library work;
use work.my_pkg.all;

entity top is
end entity;

architecture test of top is

    signal example_signal : natural;

begin

    process
    begin
        wait for 1 ns;
        example_signal <= 5;
        wait for 1 ns;
        wait;
    end process;

end architecture;

Blebowski avatar Feb 19 '25 09:02 Blebowski