Mentor-dft 学习笔记 day53- Net Pair Identification with Calibre for Bridge Fault Test Patterns

Tessent Shell Batch Jobs
可以以交互或非交互方式使用Tessent Shell。可以通过手动输入命令以交互方式执行工具会话,也可以使用dofile完全编写脚本并驱动会话。这种非交互式操作模式允许在没有用户交互的情况下进行整个会话。这种使用Tessent Shell的方法可以进一步扩展,以允许将会话调度并作为真正的批处理或cron job。 附录重点介绍了支持在批处理环境中使用Tessent Shell的功能
Commands and Variables for the dofile
下面的shell脚本调用Tessent shell,然后运行dofile,该dofile将上下文设置为“模式扫描”,读取设计并读取单元库。

dofile还指定了在遇到错误时退出dofile的选项:

set_dofile_abort exit
 如果在dofile执行过程中发生错误,退出选项将退出代码设置为非零值。这允许启动Tessent shell会话的shell脚本根据工具操作的成功或失败来控制流程。请注意,在调用Tessent Shell的行之后检查退出状态。
#!/bin/csh -b
##
## Add the pathname of the < Tessent_Tree_Path >/bin directory to the PATH
## environment variable so you can invoke the tool without typing the full
## pathname
##
setenv PATH < Tessent_Tree_Path >/bin:${PATH}
##
setenv DESIGN `pwd`
##
##
tessent -shell -dofile ${DESIGN}/tshell.do \
-license_wait 30 -log ${DESIGN}/`date +log_file_%m_%d_%y_%H:%M:%S`
setenv proc_status $status
if ("$proc_status" == 0 ) then
echo "Session was successful"
echo " The exit code is: " $proc_status
else echo "Session failed"
echo " The exit code is: " $proc_status
endif
echo $proc_status " is the exit code value."

可以在Tessent Shell dofile中使用环境变量。例如,shell脚本将DESIGN环境变量设置为当前工作目录。创建批处理作业时,进程可能不会继承shell环境中存在的相同环境。为了确保进程能够访问dofile中引用的文件,使用了DESIGN环境变量。Tessent Shell dofile的一段显示环境变量的使用情况如下:

# The shell script that launches this dofile sets the DESIGN environment
# variable to the current working directory.
add_scan_groups g1 ${DESIGN}/procfile
#
add_scan_chains c1 g1 scan_in CO
...
#
write_faults ${DESIGN}/fault_list -all -replace
还可以使用启动文件来别名常见命令。要设置预定义的别名命令,请使用文件.tessent_startup(默认位于主目录中)。例如:
alias save_my_pat write_patterns $1/pats.v -$2 -replace
以下dofile段显示了.tessent_startup文件中定义的别名的使用情况:
# The following alias is defined in the .tessent_startup file
#
save_my_pat $DESIGN verilog
另一个重要的考虑因素是以优雅的方式退出dofile。这是确保Tessent Shell退出而不是等待其他命令行输入所必需的。
# The following command terminates the Tessent Shell dofile.
#
exit -force
Command Line Options
将Tessent Shell作为批处理作业运行时,几个Tessand Shell命令行选项非常有用。其中一个选项是-LICense_wait选项,它设置了在设置上下文后重试license获取的限制。默认情况下,许可证没有时间限制。 如果Tessent  Shell在指定的重试次数后无法获得license ,则该工具将退出。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值