[ncsim] stop -> force -> run error?

Discussion in 'Cadence' started by Davy, Sep 22, 2006.

  1. Davy

    Davy Guest

    Hi all,

    I want to write a Tcl in ncsim to do below work.
    1. stop when $signal is 1
    2. set the lock to force stop only stop once
    3. force $other_signal
    4. continue run
    5. force $other_signal back
    6 continue run

    But ncsim said "cannot run command executed from a stop -execute
    script".

    Any suggestions, thanks!

    #----- Tcl begin ---
    set lock 0
    stop -silent -name stop_name -cont -cond { [value $CLK] == 1 && $signal
    ==1 && $lock == 0} -exec {
    set lock 1
    force other_signal = 8'b10010000
    run 50us
    force other_signal = 8'b10001010
    }
    run 50us
    #----- Tcl end ---

    Best regards,
    Davy
     
    Davy, Sep 22, 2006
    #1
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.