vhdl-style-guide/tests/generic_map/rule_601_test_input.vhd

85 lines
1.2 KiB
VHDL

architecture ARCH of ENTITY1 is
function my_func is new my_func
generic map (
g_test => c_test
);
begin
U_INST1 : INST1
generic map (
G_GEN_1 => 3,
G_GEN_2 => 4,
G_GEN_3 => 5
)
port map (
PORT_1 => w_port_1,
PORT_2 => w_port_2,
PORT_3 => w_port_3
);
my_block : block is
generic (
g_test : BOOLEAN
);
generic map (
g_test => C_TEST
);
begin
end block;
end architecture ARCH;
package my_pkg_g is new my_pkg
generic map (
g_test => c_test
);
-- Violations below
architecture ARCH of ENTITY1 is
function my_func is new my_func
generic map (
test_g => c_test
);
begin
U_INST1 : INST1
generic map (
GEN_1_G => 3,
GEN_2_G => 4,
GEN_3_G => 5
)
port map (
PORT_1 => w_port_1,
PORT_2 => w_port_2,
PORT_3 => w_port_3
);
U_INST2 : INST2
generic map (
W_GEN_1(W_GEN_1) => 3,
G_GEN_2(W_GEN_1) => 10
);
my_block : block is
generic (
test_g : BOOLEAN
);
generic map (
test_g => C_TEST
);
begin
end block;
end architecture ARCH;
package my_pkg_g is new my_pkg
generic map (
test_g => c_test
);