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

D

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
 

Welcome to EDABoard.com

Sponsor

Back
Top