design_engineer
Newbie level 6
Hello,
I have a signal defined as an enumerated type in my design.
type state is (idle, start, run, end);
signal t_state is array (3 downto 0) of state;
How do I print the value of this signal to a file during my simulation?
When I do
write(line_out, t_state) or write(line_out, t_state(0))
I get argument type mismatch error during compilation.
Please help.
I have a signal defined as an enumerated type in my design.
type state is (idle, start, run, end);
signal t_state is array (3 downto 0) of state;
How do I print the value of this signal to a file during my simulation?
When I do
write(line_out, t_state) or write(line_out, t_state(0))
I get argument type mismatch error during compilation.
Please help.