vhdl-style-guide/tests/generic_map/rule_006_test_input.fixed.vhd

117 lines
1.7 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 (
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
);
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
);