H
hssig
Hello,
I have a testbench module with the following input:
iEnableArray : in type_array;
The type declaration is the following:
type type_array is array(15 downto 0) of std_logic;
Now I want to detect transitions in the elements of that array:
process
variable L : line;
begin
wait on iEnableArray'transaction;
for i in 15 downto 0 loop
if falling_edge(iEnableArray(i)) then --
compilation error
write(L, string'("falling edge of element ");
write(L, integer'image(i));
write(output, L);
end if;
if rising_edge(iEnableArray(i)) then
write(L, string'("rising edge of element ");
write(L, integer'image(i));
write(output, L);
end if;
end loop;
end process;
When compiling that description Modelsim complains about "not static
expression".
How can I describe it alternatively ?
Thank you for your opinions.
Cheers,
hssig
I have a testbench module with the following input:
iEnableArray : in type_array;
The type declaration is the following:
type type_array is array(15 downto 0) of std_logic;
Now I want to detect transitions in the elements of that array:
process
variable L : line;
begin
wait on iEnableArray'transaction;
for i in 15 downto 0 loop
if falling_edge(iEnableArray(i)) then --
compilation error
write(L, string'("falling edge of element ");
write(L, integer'image(i));
write(output, L);
end if;
if rising_edge(iEnableArray(i)) then
write(L, string'("rising edge of element ");
write(L, integer'image(i));
write(output, L);
end if;
end loop;
end process;
When compiling that description Modelsim complains about "not static
expression".
How can I describe it alternatively ?
Thank you for your opinions.
Cheers,
hssig