在调试程序时,希望输出出错的信息,现在就来学习下几种error message的写法。

1.在 testplan里添加自定义的message

  在BT_basic里:

  (1) get'testplan'

   (2) find‘Eject_Ticket: p_w_picpath 13/'  

 在这行的下面输入:

  if boardfailed then 

  report is *

  print is "dec/rpr1"

  print "  *****"     //输入自定义内容

  print "****   "

  print  is *

  report is Report_printer$

  end  if 

 (3) re-save

  然后再run

2.对于单个元件加 message:找到元件的library,在测试程序前面添加

  on failure

  report "    ***"

  end on failure  

  再保存编译就好了。

 

3.在shorts里添加error message,有两种方法:

 (1) 在shorts文件的最前面加上: report common devices (列出所有共同的组件)

       再执行  re-save   |  comp' shorts'  | debug shorts   |  exe to fail

 (2) 在shorts前面加上 :report limit #  ,其中# 指当有error时,列出的最大数,自己设置的值。可用来限制故障报告时间。