vhdl-style-guide/tests/range_constraint/rule_100_test_input.fixed.vhd

21 lines
579 B
VHDL

architecture RTL of FIFO is
-- Passing
type my_array is array (natural range 0 to 7) of std_logic_vector(7 downto 0);
type my_array is array (natural range 0 to 7) of integer;
subtype my_array is natural range 7 downto 0;
type my_array is array(my_type'range) of integer;
-- Violation below
type my_array is array (natural range 0 to 7) of std_logic_vector(7 downto 0);
type my_array is array (natural range 0 to 7) of integer;
subtype my_array is natural range 7 downto 0;
type my_array is array(my_type'range) of integer;
begin
end architecture RTL;