When trying to access the attribute 'length(0) for a 2-d array, a crash occurs.
entity test is
end entity ;
architecture arch of test is
type real_matrix is array (natural range <>, natural range <>) of real ;
constant m : real_matrix := ( (1.0, 2.0, 3.0, 4.0), (2.0, 3.0, 4.0, 5.0) ) ;
procedure print(x : in string) is
variable l : std.textio.line ;
begin
std.textio.write(l, x) ;
std.textio.writeline(std.textio.output, l) ;
end procedure ;
begin
tb : process
begin
print("m length: " & integer'image(m'length(0))) ;
std.env.stop ;
end process ;
end architecture ;
When trying to access the attribute
'length(0)
for a 2-d array, a crash occurs.When accessing a
real_vector
, the error appears: