EDA365电子工程师网

标题: 写了一个skill,在一个板子中可以运行,在另一个板子中会报错,为什么? [打印本页]

作者: scc_yangy    时间: 2015-8-15 20:18
标题: 写了一个skill,在一个板子中可以运行,在另一个板子中会报错,为什么?
如题,求路过的高人指点一下,为什么同样的skill在一个板子中可以运行,而在另一个板子中会报错?报错的信息是某函数的语法有误,很是郁闷啊...

作者: deargds    时间: 2015-8-17 09:51
可以把代码贴上来看下
作者: scc_yangy    时间: 2015-8-17 13:22
deargds 发表于 2015-8-17 09:51
可以把代码贴上来看下


用axlRenameNet()修改网络名,修改后的长度大于31位有的板子就不行,可是help文件中说net name的最大长度支持31^4啊。
请问这个可以在哪里设置吗?有的板子net name可以超过31位,而有的不行,图片是在help中找到的关于net name长度的说法,没搞懂怎么做,求指点一下,非常感谢

作者: motofatfat    时间: 2015-8-17 13:46
學習了
作者: talient    时间: 2015-8-17 14:05
我只是想说....楼主你要把资料看全阿....你图里的31^4中的4只是一个上标而已,在资料下面有1~4的说明....
我来贴一下内容...

1 Allows lower case for general text unless on a special layer where it may adhere to more restrictive rules; for example, many layers show Refdes.

2 File names adhere to operating systems restrictions except if they are stored in the database, where they assume the least common denominator. For example, a .psm file becomes a package symbol in the database so its least common denominator is the package name restriction. Spaces in the name are not supported. It is strongly suggested that you use lower case, especially for those names stored in the tool database.

3 Directory names follow operating system limitations. The layout editor supports spaces in directory names on Windows.

4 The default maximum number of characters is 31. You can set the initial length for new designs to a maximum length of 255 by using the allegro_long_name_size environment variable (choose Setup - User Preferences (enved command)). You can change the size in existing designs by choosing Setup - Design Parameters (prmed command) and specifying a new maximum for the Long Name Size parameter in the Design tab.

已经说了很清楚了,就是限制值就是31啊。。
作者: deargds    时间: 2015-8-17 14:56
楼上正解,默认为31,最长可以通过设置allegro_long_name_size变量来实现255的最大值
作者: scc_yangy    时间: 2015-8-17 17:38
感谢各位的解答,我是在修改过allegro_long_name_size之后没有效果才问的问题。
现在原因找到了:allegro_long_name_size这个东西在setup->user Preferences和setup->design parameters中都有,按help说到design parameters中没发现(可能是眼力太差),就直接写在了env里,其实这个参数写在env中对当前的设计文件是没有效果的,所以程序还是有问题,现在解决了,再次感谢各位的热心解答,以后还要多多学习啊。
作者: scc_yangy    时间: 2015-8-17 18:30
程序前面加一句:axlDBControl('maxNameLength 255)




欢迎光临 EDA365电子工程师网 (https://bbs.elecnest.cn/) Powered by Discuz! X3.2