P
Peter
Guest
Hi,
I have some trouble with a wait statement in my testbench.
The testbench is based on procedures to read and write to the chip and
to wait for things to happen. The following code does not work:
WriteWord(PTESTREG,X"0000");
wait until int2n = '0'; -- <- The problem...
WriteWord(FILTCONTREG,X"0000");
The wait statement is only executed if int2n goes low after the
previous procedure call. If int2n is already low when the wait
statement is reached, execution stops forever at the wait statement.
I seems as "wait until" needs an event on int2n and doesnt evaluate the
expression. Is that correct or a bug in Modelsim?
Any suggestions?
Thanks in advance, Peter
I have some trouble with a wait statement in my testbench.
The testbench is based on procedures to read and write to the chip and
to wait for things to happen. The following code does not work:
WriteWord(PTESTREG,X"0000");
wait until int2n = '0'; -- <- The problem...
WriteWord(FILTCONTREG,X"0000");
The wait statement is only executed if int2n goes low after the
previous procedure call. If int2n is already low when the wait
statement is reached, execution stops forever at the wait statement.
I seems as "wait until" needs an event on int2n and doesnt evaluate the
expression. Is that correct or a bug in Modelsim?
Any suggestions?
Thanks in advance, Peter