Forced Event Generation

Discussion in 'Cadence' started by Stefan Joeres, May 15, 2008.

  1. 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, May 15, 2008
    #1
  2. Stefan Joeres wrote, on 05/15/08 08:43:
    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.
     
    Andrew Beckett, May 15, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.