找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

巢课
电巢直播8月计划
查看: 979|回复: 2
打印 上一主题 下一主题

各位大大!!!!急求这个命令axlRunBatchDBProgram调用外部软件用法~~!.

[复制链接]

23

主题

124

帖子

579

积分

三级会员(30)

Rank: 3Rank: 3Rank: 3

积分
579
跳转到指定楼层
1#
发表于 2013-4-3 22:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您!

您需要 登录 才可以下载或查看,没有帐号?注册

x
急求这个命令axlRunBatchDBProgram调用外部软件用法~~!!不胜感激....
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 支持!支持! 反对!反对!

5

主题

56

帖子

1007

积分

四级会员(40)

Rank: 4Rank: 4Rank: 4Rank: 4

积分
1007
2#
发表于 2013-4-4 19:11 | 只看该作者
,没人回答,那我给你发点自带的

axlRunBatchDBProgram
axlRunBatchDBProgram(
t_prog
t_cmdFmt
[?logfilet_logfile ]
[?startMsgt_startMsg]
[?reloadDBt/nil]
[?noUnloadt/nil]
[?silentt/nil]
[?noProgress   t/nil]
[?warnProgram  t/nil]
)
⇒ t/ x_error
Description
Spawns batch jobs that require an open  database via an abstract model. When the job
completes, it prints a me ssage and optionally reloads (?reloadDB) the database if
successful. If the database is saved from the current active  database, it uses a temporary
name to avoid overwriting the database on disk.
The following options are always required (UIBatchSpawn):
t_prog Name of the program to run.
t_cmdFmt Command string.
The following options are optional.
t_logFile Name of log file that the program creates. R egisters this with the
log file viewlog facility if the prog ram ends in an error.  If no log file
is required, do not se t this option. If no extension is given, adds
.log as the extension.
startMsg Enables a start message to display when the program starts.
Defaults to the program name. If you override by providing this
string, the message begins with “Starting...”
reloadDB If you set this to t, the database reloads af ter a successful run of
the program. If the  batch program does not save the database,
you need not reload the database.
noUnload If you set this to t, you don’t save the database to disk. You use
this for a program that creates  a new database or doesn’t require
an Allegro PCB Editor database. Default is nil .
silent If you set this to t, no messages are displayed. Use when the
user does not need to  know that a program is spawned. Default
is nil .
noProgress If  t, the progress meter does not display. Default is nil .
noLogview When set, it prevents display  if log file on program exit.
noWarnOnExit When set, suppresses some exit warning messages.
warnProgram  Program supports warning status (returns 0, if success; 1, if
warnings; and 2, if errors).
noExitMsgs When set, suppresses messages about program success or
failure.
Note:  For t_cmdFmt, the formatting should include everything except the design filename.
Place a %s where the design should appear. To get a  %s while doing a sprintf, use a “ %%s ”
as shown in following examples:
cmdFmt = "netrev -$ -q -r %s"
sprintf(cmdFmt, "%s -$ %s %s %%s", prog, argq argr)
Tip
a. For debug, set the env variable, wait_debug , on the Allegro  command line:
set wait_debug
or in Skill
axlSetVariable("wait_debug" nil)
This echos the spawning arguments of your program. You can also use this variable
to see how Allegro spawns pr ograms from its dialogs. The  "#T<num>.tmp"  name
seen in this output is the temporary save  of the current design to disk and the use
of the  "%s" argument in your t_cmdFmt  statement.
b. For a list of Allegro programs and their co mmand line arguments see the directory:
              <cdsroot>/share/pcb/batchhelp
         or run the batch program with the "-help" argument.
             Example: idf_in -help
c. Many Allegro batch programs support '-$' as a standard argu ment. This prevents
prompting for missing input arguments.
Argument
t_prog string containing program name
t_cmdFmt string containing starting arguments (including program)
t_logfile optional string showing logfile
t_startMsg optional string ha ving start message
?reloadDB Optional t/nil having database be  reloaded after job completes
?noUnload Optional t/nil stating database s houldn't be saved
?silent Optional t/nil controlling info messasges
?noProgress Optional t/nil controlling progress meter
Value Returned
t Batch job ran.
x_error Error number that is program dependent on failure.
Examples
■ Spawn genfeedformat which requires  design to be saved to a temp file
Program Args:
❍ -$ - silent
❍ -b - name of  design (required)
❍ %%s  - because we  sprintf the format before calling batch we need to escape
the  %s by prepending an extra %
Skill:
sprintf(format "genfeedformat -$ %s %%s", "-b")
;format=  "genfeedformat -$ -b %s"
axlRunBatchDBProgram("genfeedformat" format
?logfile "genfeed")
Without sprintf
axlRunBatchDBProgram("genfeedformat" "genfeedformat -$ -b %s" ?logfile
"genfeed")
■ Spawn 3rd party program,  notepad, on an existing file "allegro.jrl".  In this case
we do not want to save design ( ?noUnload t) and no progress meter is required
(?noProgress t )
axlRunBatchDBProgram("notepad" "notepad allegro.jrl"
?noUnload t ?noProgress t)
■ Spawn 3rd party import login, a program that  requires read/write  database wrapping.
Read existing 3rd party netlist file called "netlist.txt". Since desi gn needs to be reloaded
if import is successful us e the "?reloadDB t" option.
Program Args:
❍ -$ - silent
❍ -g - run gate assign
❍ -y 1 - Always Place changed component
❍ netlist - name of netlist file (e.g. netlist.txt)
❍ %s - use current design
Skill:
axlRunBatchDBProgram("netin"
"netin -$ -g -y 1 netlist %s"
?startMsg "Logic Import"
?logfile "netin"
?reloadDB t)
■ Export IDF
Program Args:
❍ -d IDF  - File name type
❍ -V 3.0  - IDF version
❍ -h 2000 - default package height
❍ -s ...  - Source id (note \" ...\" allows spaces in name)
❍ -o myidf - output idf files  (with bdf and ldf extensions)
❍ %s - axl will enter name of temp database saved to disk
Skill:
axlRunBatchDBProgram("idf_out"
"idf_out %s -d IDF -o myidf -s \"allegro_16.3\" -b 1 -h 2000 -V 3.0")
■ Import IDF, assumes an exis ting bdf file, unnamed.bdf. If successful  load updated design
back into memory via  the reload option (?reloadDB t).
Program Args:
❍ -o %s - name of current design  (%s - substiute in current design)
❍ unnamed - name of bdf file on disk
Skill:
axlRunBatchDBProgram("idf_in" "idf_in -o %s unnamed" ?reloadDB t)

23

主题

124

帖子

579

积分

三级会员(30)

Rank: 3Rank: 3Rank: 3

积分
579
3#
 楼主| 发表于 2013-4-4 22:14 | 只看该作者
自己顶一个~~~~急求!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

巢课

技术风云榜

关于我们|手机版|EDA365 ( 粤ICP备18020198号 )

GMT+8, 2025-2-24 00:36 , Processed in 0.055459 second(s), 32 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表