O
Olaf Petzold
Guest
Hi,
during writing a TB I'm using the following statement:
next_state_decode : process (reset, state)
constant t0 : time := (10-1)*PERIOD;
...
begin
next_state <= state;
case (state) is
when tb_reset =>
if (reset = RESET_ACTIVE) then
next_state <= tb_reset;
else
next_state <= tb_init;
end if;
when tb_init =>
if (now < t0) then
next_state <= tb_init;
else
next_state <= tb_full_write;
end if;
....
Unfortunally the states never changes from state tb_init to
other/further. How can I use the keyword now inside a process, or is
this not possible? A work arround is to use a time counter (as I did
before). May some other hints?
Thanks
Olaf
during writing a TB I'm using the following statement:
next_state_decode : process (reset, state)
constant t0 : time := (10-1)*PERIOD;
...
begin
next_state <= state;
case (state) is
when tb_reset =>
if (reset = RESET_ACTIVE) then
next_state <= tb_reset;
else
next_state <= tb_init;
end if;
when tb_init =>
if (now < t0) then
next_state <= tb_init;
else
next_state <= tb_full_write;
end if;
....
Unfortunally the states never changes from state tb_init to
other/further. How can I use the keyword now inside a process, or is
this not possible? A work arround is to use a time counter (as I did
before). May some other hints?
Thanks
Olaf