Forced Event Generation

S

Stefan Joeres

Guest
Is there a way to force an wreal continous assignment to produce a new
event, although the value of the assignment variable didn't change ?

real vout;
assign out=vout;
always
begin
# delay
vout=5;
end

Should produce an output event during each loop, not just one at the
beginning :)

Regards,

Stefan
 
Stefan Joeres wrote, on 05/15/08 08:43:
Is there a way to force an wreal continous assignment to produce a new
event, although the value of the assignment variable didn't change ?

real vout;
assign out=vout;
always
begin
# delay
vout=5;
end

Should produce an output event during each loop, not just one at the
beginning :)

Regards,

Stefan
I don't think so. I'm prepared to be corrected though...

I wondered whether named events might help, but only allows you to do:

event mytrig;

always #50 fork
#5 -> mytrig;
join

always @(mytrig)
$strobe("trigger at ",$time);

doesn't really help with a wreal.

The whole point of event driven simulation is to only generate events to trigger
a following block when a signal changes - why would you want it to be triggered
when nothing changed?

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top