Mike Treseler said:
exit my_loop when hurryup_bool;
-- Mike Treseler
In Niv's original post he said "loop has a long wait statement". If
the
thing you are waiting for is a signal, you could do this...
my_loop: for I ....
wait for 100 ms until Sig = '1';
if Sig'event then
exit my_loop;
end if;
-- rest of loop
end loop;
This only works if Sig is a signal, not a variable.
Actually following your example Mike, I suppose you could say
my_loop: for I ....
wait for 100 ms until Sig = '1';
exit my_loop when Sig'EVENT;
-- rest of loop
end loop;
at the risk of achieving C programmer levels of cryptic code
Alan
--
Alan Fitch
Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * Perl * Tcl/Tk * Verification * Project
Services
Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24
1AW, UK
Tel: +44 (0)1425 471223 mail:
(e-mail address removed)
Fax: +44 (0)1425 471573 Web:
http://www.doulos.com
The contents of this message may contain personal views which are not
the
views of Doulos Ltd., unless specifically stated.