|
302 | 302 | SIM_INIT='' # default init value for simulator
|
303 | 303 | SIM_ARG='' # -batch overrides -tcl
|
304 | 304 | VPI_OPT='libdpi.so'
|
305 |
| -#DEBUG 7/22 - add cd later so need to add path |
306 |
| - #SIM_ARG+=" -t xsrun.tcl" # -tclbatch arg |
307 |
| - SIM_ARG+=" -t $SNAP_ROOT/hardware/sim/xsrun.tcl" # -tclbatch arg |
| 305 | + #7/22: starting with 2020.1 xsim simulator need now to be called from xsim vs SIMOUT |
| 306 | + SIM_ARG+=" -t ./$SIMOUT/xsrun.tcl" # -tclbatch arg |
308 | 307 |
|
309 | 308 | # SIM_ARG+=" -t xsrun.tcl +model_data+." # syntax errors
|
310 | 309 | if [ "$AET" == "1" ];then
|
311 |
| - `sed -i "s/#source xsaet.tcl/ source xsaet.tcl/g" xsrun.tcl` # enable/uncomment AET generation in xsrun.tcl |
| 310 | + #7/22: starting with 2020.1 xsim simulator need now to be called from xsim vs SIMOUT |
| 311 | + `sed -i "s|#source xsaet.tcl| source ./$SIMOUT/xsaet.tcl|g" xsrun.tcl` # enable/uncomment AET generation in xsrun.tcl |
312 | 312 | else
|
313 |
| - `sed -i "s/ source xsaet.tcl/#source xsaet.tcl/g" xsrun.tcl` # disable/comment AET generation in xsrun.tcl |
| 313 | + #7/22: starting with 2020.1 xsim simulator need now to be called from xsim vs SIMOUT |
| 314 | + `sed -i "s| source xsaet.tcl|#source ./$SIMOUT/xsaet.tcl|g" xsrun.tcl` # disable/comment AET generation in xsrun.tcl |
314 | 315 | fi
|
315 | 316 | elif [ "$SIMDIR" == "questa" ];then
|
316 | 317 | SIM_INIT='' # default init value for simulator
|
|
337 | 338 | ##### call Simulator
|
338 | 339 | if [ "$SIMULATOR" == "irun" ]||[ "$SIMULATOR" == "xrun" ];then SIM_ARG+=" -r";fi
|
339 | 340 | echo "**** call simulator=$SIMULATOR $SIM_ARG $SIMTOP $SIM_PARM in background, wait for socket in $SIMULATOR.log->shim_host.dat"|tee -a sim.log &
|
340 |
| -#DEBUG 7/22 - add cd to remove the 2020.1 issue |
341 | 341 | if [ "$SIMULATOR" == "xsim" ];then
|
342 |
| - cd $SNAP_ROOT/hardware/sim/$SIMDIR; |
| 342 | + #7/22: starting with 2020.1 xsim simulator need now to be called from xsim vs SIMOUT |
| 343 | + cd ..; |
343 | 344 | $SIMULATOR $SIM_ARG $SIMTOP $SIM_PARM |tee -a $SIMOUT/sim.log &
|
344 | 345 | cd $SIMOUT;
|
345 | 346 | else
|
|
585 | 586 | cd $SIMBASE; sleep 5; grep --text -Hi 'testcase RC=0, ' $SIMOUT/stim.log|sed 's/\// /g'|awk '{print $1}'|xargs -i{} rm -fr "{}" 2>/dev/null # remove directories with 0 errors
|
586 | 587 | fi
|
587 | 588 | #echo "*** leftover processes on this machine:"; ps -ef|grep -E "$SIMULATOR|ocse|genwqe"|grep $IAM|grep -v grep
|
| 589 | + |
| 590 | + #7/22: starting with 2020.1 xsim simulator need now to be called from xsim vs SIMOUT |
| 591 | + #so the top.wdb has to be moved to the $SIMOUT current directory |
| 592 | + if [ "$SIMULATOR" == "xsim" ];then |
| 593 | + mv ../top.wdb . |
| 594 | + fi |
588 | 595 | exit $TCRC
|
0 commit comments