davyzhu
Advanced Member level 1
ncsim force
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!
Best regards,
Davy
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!
Code:
#----- 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 ---
Davy