Allegro Skill中数据的输入输出控制
Allegro软件操作技巧
8
Allegro 软件操作技巧-lingling1350@
3) 开启 stroke 右键功能,并可在 toolsutilitiesstroke editor 中编 辑右键功能快捷键。
4
17、script 录像机:filescript
9
Allegro 软件操作技巧-lingling1350@
5
Allegro 软件操作技巧-lingling1350@
2) (如上右图,其它操作同前) 3)上两步得到的网络列表分别拷到《U_管脚调整》表中。
再做成 lis 文件。
14、让两孔间的线等间距:ROUTE---RESIZE/RESPACE---SPREAD BETWEEN VOIDS。 对于两孔间有多跟线的情况同样适用。当然假如所有的线都用这种方法等间 距的话必然很费时, 修线时可以把格点改大、采用偶数小格点的方法就很容易让 两根线等间距了。 15、添加测试点 分为自动添加和手动添加两种,关键在于参数设置。 1) 自动添加
要的器件,再单击右键,Done在刚刚框选的某一个器件上按中键,框选 的器件闪动表示已选中,在 BRD 文件中高亮显示。 19、画 ANTICH 线 手动画 ROUTE KI 和 ANTICH 线的话既麻烦又难以做得准确。 ROUTE KI 和 ANTICH 都是沿着板框走的,利用 Z-COPY 的功能可以取得意想不到的效果。 ROUTE KI 就不用说了,直接 Z-COPY 就搞定了,这里只介绍快速画 ANTICH 的方法。 1)画 ANTICH:EDITZ-COPY设置 OPTIONS 参数(如下图 a)单击 ROUTE KI(offset 填 15,理由后面再说) 2)把铜变成线:SHAPEDECOMPOSE SHAPE单击刚才生成的铜。不过这个 DECOMPOSE SHAPE 命令 16 版本以上才有,对于 16 版本以下的,可以用 XTOOLS, 如下图 b。
allegro skill使用说明详解
ALLEGRO设置
u Editing a User Preference File在这里可以进行工作环境、界面和显示效果的一些设定,执行菜单Setup>User Preferences出现下面窗体,因为这里涉及的内容比较多,而且很多功能都很少用到,所以下面只针对一些常用设置作介绍。
Autosave:我们在方框中打勾后系统才会帮助我们自动存档.Autosave_dbcheck:我们在方框中打勾后系统会帮我们在自动存档前做一下datebase的检查.(这会使autosave花很多时间,建议不勾选.)Autosave_name:我们可以在这输入autosave的文件名,如果不输入系统默认的文件名是Autosave.Autosave_time:在这里可以输入我们需要的autosave的时间间隔.(默认值是30minutes,我们可以在10~300minutes之间设定所需的时间间隔.)Av_endcapstyle:在进行autovoid是把走线拐角处挖开的形状设定。
它有三中选择:round:square:octagon:是把它挖成圆弧状是把它挖成方形的是把它挖成八角形的它的默认值是:在小于,等于30mil时会挖成square,在大于30mil时会挖成octagonAv_inline:首先要在shape parameters 的form中选了create pin voids /In_Line时.在这里输入的数值n,是把在n的范围内的pin or via挖在一起.系统的默认值是100Av_thermal_extend:在这里可以输入thermal relief在autovoid时于正片连接的长度。
(连线和铜箔的连接长度不用full contact时)图解Pad_drcplus:在这里可以加一个参数,在进行autovoid时系统会把这里的一个参数加你在edit shape里设定的参数,得到完成后的一个总的间隔数。
在这里是设定浏览器的参数。
Allegroskill学习总结
高中英语:Unit5 Vocabulary and Useful Expressions教案(新人教版必修3)河北地区专用Vocabulary and Useful Expressions●从容说课This is the seventh period of this unit,the end of this unit.After finishing learning this unit,students should know how well they did and how they can improve themselves.They should learn how to evaluate themselves.Therefore,in this period,there is a part for students to sum up what they learned in this unit.Besides,some learning tips are introduced to students.In the workbook,there are two parts:project and checking yourself.The first part is to ask the students to make a research into a great person around himself or herself.The second one is to make the students learn how to evaluate themselves.In a word,this period is designed to go over the whole unit.●三维目标1.Knowledge:Sum up what the students have learned in this unit,including:useful verbs,useful nouns,useful expressions,new grammar item.2.Ability:(1)Know how well they did in this unit.(2)Know how to improve themselves.3.Emotion:Learn how to evaluate themselves.●教学重点(1)Enable the students to master useful verbs,useful nouns,useful expressions,new grammar item.(2)Help them to know how well they did.(3)Help them to learn how to evaluate themselves.●教学难点Help them to learn how to evaluate themselves.●教具准备The multimedia and the blackboard.●教学过程Step 1 GreetingsGreet the whole class as usual.Step 2 RevisionT:Yesterday you were asked to writing a passage about a great person.Have you finished your homework?Ss:Yes.T:Very good.Who’d like to introduce your hero/heroine?S1:I want a try.Madam Curie is my heroine.She is a French professor of physics.She was born in Poland in 1867.In 1891 she went to study in Paris University because at that time women were not admitted to universities in Poland.When she was studying in Paris,she lived a poor life,but she worked very hard.In 1895 she married Pierre Curie,and then they worked together on the researchinto radioactive matter.They discovered two kinds of radioactive matter—polonium and radium.In 1904 she and her husband received a Nobel Prize for Physics.After Mr Curie died in 1906,she went on with her research.She received a second Nobel Prize for Chemistry in 1911,so she became the first scientist in the world to win two Nobel Prizes.T:Excellent.Anybody else?S2:Let me try.Albert Einstein is my hero.He was born on March 14,1879 in Ulm,Wurttemberg,Germany.Einstein contributed more than any other scientist since Sir Isaac Newton to our understanding of physical reality.Einstein worked at the patent office in Bern,Switzerland from 1902 to 1909.During this period he completed an astonishing range of theoretical physics publications,written in his spare time,without the benefit of close contact with scientific literature or colleagues.The most well known of these works is Einstein’s 1905 paper proposing “the special theory of relativity.”Later in 1905 Einstein showed how mass and energy were equivalent expressing it in the famous equation:E=mc2.This equation became a cornerstone in the development of nuclear energy.Einstein received the Nobel Prize in 1921 but not for relativity,rather for his 1905 work on the photoelectric effect.He worked on at Princeton until the end of his life on an attempt to unify the laws of physics.Step 3 Summing upT:Good jobs.Today we will finish learning this unit.Now let’s sum up what we have learned in this unit.Here are some guiding notes to help you.Please fill in the information sheet.(Show the card on the screen.)What have you learned about Nelson Mandela._________________________________From this unit you have also learned●Useful verbs___________________________●Useful nouns___________________________●Useful expressions___________________________●New grammar item___________________________Now I’ll give you some minutes to write possible answers.Suggested answers:What have you learned about Nelson Mandela.intelligent/determined/generous/kind/unselfish/hard-working/brave/confidentFrom this unit you have also learned●Useful verbs:fight,advise,continue,vote,accept,guard,fear,reward,sentence●Useful nouns:hero,quality,republic,principle,nationalism,livelihood,prison,prisoner,law,fee,gold,passbook,ANC,youth,league,stage,position,violence,blanket,degree,terror,fear,cruelty,reward,right,criminal,leader,president●Useful expressions:lose heart,in trouble,worry about,out of work,Youth League,as a matter of fact,blow up,put...in prison,come to,power,set up,be sentenced to●New grammar item:The attributive clauses with when/where/whyStep 4 Learning tipT:In the last periods,we have learned two passages about Nelson Mandela.So you have been very familiar with this kind of passage.Here is a question for you to discuss.Listen carefully.Which learning tips do you think are more useful?Are you clear about that?Ss:Yes.T:Work in groups of four and discuss for a few minutes.Then I’ll ask some students to express your opinions.You can begin now.(A few minutes later.)T:OK.Are you ready now?Ss:Yes.T:Who’d like to be the first to talk about your opinions?Any volunteer?S1:I think when we choose a famous person,we must try to find out as much as we can about his or her life.S2:In my opinion,it is important to read what a famous person did and what people remember about him or her.S3:I think it is also important to find some people who like him or her and some who do not.At the same time,we should try to find out for what reason they like this person or not.T:Very good.While you are doing this,you will be teaching yourself a useful way of learning.Step 5 ProjectT:Now please turn to Page 75.Please look at the project.You know a great person need not to be famous.So your task is to look around your hometown and see if you can find anyone who has given up something to help others.Then write a short report about research and read it to the class.Please finish it after class.Step 6 Checking yourselfT:Now we have finished learning this unit.Please discuss the following questions.(Show these questions on the screen.)What kind of person do you want to be?Are you going to become a great person like Nelson Mandela?Why?Do you think a rich and successful person is a great person?Why or why not?What have you learned from Nelson Mandela?From what quality do you admire him most?Do you know anyone who has given up a lot for others?How well have you done in the exercises on the attributive clause?Did you have any problems in understanding this unit?How did you solve them?(Give the students several minutes to prepare.And then have a discussion about these questions with the whole class.)Step 7 SummaryT:In this lesson,we summed up what we have learned in this unit.Besides,we talked about some learning tips.And then you check yourself.Today we have finished this unit,so please review the whole unit,especially pay more attention to the important words,phrases and grammar we learned in this unit.Step 8 HomeworkGo over the whole unit.●板书设计Unit 5 Nelson Mandela—a modern heroThe Seventh PeriodWhat have you learned about Nelson Mandela.____________________________________From this unit you have also learned●Useful verbs_______________________________●Useful nouns_______________________________●Useful expressions_______________________________●New grammar item_______________________________●活动与探究Your task is to look around your hometown and see if you can find anyone who has given up something to help others.Then write a short report about research and read it to the class.Please finish it after class.●备课资料How to Improve Your English GrammarUse self-study grammar books.Practice forming meaningful sentences.Make positive statements,negative,turn statements into questions,make active statements passive.Turn past tense sentences into present tense sentences etc.Learn the different tenses.Learn by heart a simple example sentence using each tense.Do online exercises.Keep a note of how you did and go back in a few weeks to see how you have improved.On this site:Use the grammar pages to learn new grammar and then test yourself.How to Improve Your English V ocabularyUse self-study vocabulary books.Expose yourself to as much English as possible by reading,watching the TV,films or the news and listening to the radio or music.Do online exercises.Keep a note of how you did and go back in a few weeks to see how you have improved.Use stick it notes and label things around your home.Vocabulary websBuild a vocabulary web to organise your vocabulary about certain subjects.For example your personal life:and then extend it:On this site:Use the dictation pages to test your understanding.and then extend it further...Flash cardsStart a flash cards box.Buy or cut out some cards all the same size.Draw or cut out some pictures.Paste the pictures onto one side of the card and write the correct word on the other side.Put new words in the front of the box.Test yourself using either the pictures,the words or both.If you have forgotten a word bring it to the front of the box.On this site:Use the vocabulary pages to learn new vocabulary thematically and in context.How to Improve Your English Listening SkillsMake sure you have the right software to take advantage of what is available on the WWW.You can download players and find links to online radio stations at , and .Try some English radio stations.Films in English are an excellent language resource.Follow my tips on how to use films to improve your English.Keep up to date with current events and watch an English-language news station,such as BBC World.Watch news reports on events you are already aware of.Find out how to switch languages on your TV.If you have digital or satellite TV there are several channels that broadcast in multiple languages.Eurosport is one and Euronews is another.On this site:Use my English magazine Ezine pages to find some interesting articles to listen to.On this site:Read my poem of the month or joke of the month and then send off for the monthly sound files.。
Allegro输出文件教程
Allegro输出文件教程目录Allegro输出文件教程 (1)目录 (1)第一章添加钻孔文件 (2)1.1 添加钻孔列表 (2)1.2 生成钻孔文件 (2)1.3 生成铣刀数据文件 (2)第二章生成Gerber文件 (3)2.1 各层文件介绍 (3)2.2 各层的添加 (3)2.3 生成Gerber文件 (4)第三章查看Gerber文件 (4)第四章导出DXF文件及DXF文件导出PDF (5)4.1 PCB导出DXF文件 (5)4.2 DXF导出PDF (5)4.3导出BOM表 (5)4.4导出坐标文件 (5)4.5其他 (5)第五章检查文件 (6)第一章添加钻孔文件1.1 添加钻孔列表添加钻孔表的操作步骤:Manufacture-->NC-->Drill Legend或者直接点击图标-->ok,然后将列表放在PCB中空白位置。
1.2 生成钻孔文件如果是普通的圆孔,则添加钻孔文件就好,添加钻孔文件操作步骤:Manufacture-->NC-->Dril Parameters或者直接点击图标-->注意选公/英制-->close-->Manufacture-->NC-->NC Dril-->Drill或者Manufacture-->NC-->NC Dril-->NC Parameters,设置同上-->Drill。
系统将自动生成一个.dri后缀文件,如果只有一种通孔,那么生成一个.dri后缀文件,如果有埋盲孔,则每一种埋盲孔都生成一个.dri后缀文件。
1.3 生成铣刀数据文件如果是非圆形孔(异形孔),那么需要添加铣刀数据文件,步骤如下:Manufacture-->NC-->NC Route一般默认参数即可,注意单位-->Route但是如果两端是半圆,中间是矩形则不算异形孔,算圆孔。
并且在CAM350里面看光绘文件的时候,Route这个层什么都没有。
Allegro的控制台命令使用介绍,很详细的
调用命令:通过命令行或图形 界面,调用自定义命令
管理命令:对自定义命令进行 管理,包括添加、删除、修改 等操作
与其他软件的交互操作
导出数据:将Allegro中的数据导出到其他软件中进行处理 导入数据:将其他软件中的数据导入到Allegro中进行处理 协同工作:与其他软件协同工作,提高工作效率 自动化操作:通过脚本或插件实现与其他软件的自动化操作
脚本命令的使用
脚本命令:用于自动化操 作,提高工作效率
脚本命令类型:包括但不 限于循环、条件判断、函 数调用等
脚本命令编写:遵循一定 的语法规则,如变量定义、 函数声明等
脚本命令执行:在控制台 中输入脚本命令,回车执 行
脚本命令调试:通过控制 台输出信息,检查脚本命 令的执行结果
脚本命令优化:根据实际 需求,对脚本命令进行优 化,提高执行效率
执行文件中的命令
批处理命令示例:copy、 move、del、ren等
插件命令的调用
插件命令的调用 方法:使用 "plugin"命令
插件命令的参数: 插件名称、插件 参数
插件命令的使用 场景:调用第三 方插件,实现特 定功能
插件命令的注意 事项:确保插件 已安装,并正确 配置参数
控制台命令的进阶应用
属性修改命令
set_pro perty: 设置属性 值
get_pro perty: 获取属性 值
add_pro perty: 添加属性
remove_ propert y:删除 属性
clear_pr operty: 清除所有 属性
update_ propert y:更新 属性值
高级控制台命令详解
04
"polygon" 命令,指定
Allegro输出gerber文件操作规范V1_0
Allegro输 gerber文件操作规范V1.01.Allegro中手 添加 层现在可 借 skill进行一键 的操作,不过不可能 个allegro软件都会装 种skill,因 手 文件 是很有必要的沔首 来介绍如何手 添加 层及相关参数的设置沔A.手 添加 层面首 启 命 ,如 图所示图1Allegro软件默认的 层如 图所示, 有TOP层和BOTTOM层沔因 , 们根据需要添加相 的层面,在 把 层面分 如 6类a.装配信息films,分别命 为 顶层装配层assemblytop ADT 和 层装配层assemblybottom(ADB),共2张films 需要添加的相关信息如 图所示图2ADT和ADB的类似b.信号层films,命 规则 6层板为例 TOP top层 沓G2 G:GND,2 第二层 沓S3 S signal沓3 第 层 沓P4 P:power沓4 第四层 沓G5(类似G2)沓BOTTOM bottom层 ,有N层板,就需要N层film 需要添加的相关信息如图所示图3信号层的films都类似c.钻孔层films 命 为;DRILL,共1张film 实际 drill层 ,在PCB加 商那里不算film 需要添加的相关信息如 图所示图4d.丝印层信息films;分别命 为:SILKTOP和SILKBOT---顶层丝印和 层丝印,共2张films 需要添加的相关信息如 图所示图5SILKTOP和SILKBOT的类似;e.阻焊层信息films 分别命 为:SOLDTOP和SOLDBOT---顶层阻焊和 层阻焊,共2张films 需要添加的相关信息如 图所示图6SILKTOP和SILKBOT的类似f.钢网层信息films:分别命 为 PASTTOP和PASTBOT---顶层钢网和 层钢网也 焊层 ,共2张films 需要添加的相关信息如 图所示图7PASTTOP层和PASTBOT层的类似因 通常的一块N层板, 们在设置 层时,共需要设置9+N层 在有些情况 ,是不需要设置 多的films,如 层没有钢网的,则不需要设置 层钢网了,因 设置 层时也不能太机械了沔在 里再介绍一 添加films的操作及在film中添加信息的操作a.添加films选中BOTTOM,右 ,如 图图8单 Add,弹 如 对话框,在其中填入film的 称,如添加GND02,图9填写好 单 ok,即可添加相 的film层 如果想删除film层,则需要选中该film 层,右 ,执行CUT命 即可b.在films中添加信息选中film,点 方的’+’,选中某一信息,右 现 图图10单 Add 现 图的对话框,在其中选择需要添加的信息,选中相关的film信息,右 选中Cut,即可删除不需要的信息图11B. 参数设置,如 图设置图12关于参数的含 ,在 不再赘述2.添加钻孔表a.首 通过屏幕右边的Visibility选项的Views列表,将Drill层打开,并将Visibility选项中的PIN和Via选项都选中,见 图所示图13b.启 操作如 图所示图14c.设置钻孔表参数,如 图所示图15d. 点 ok按钮 , 现钻孔表,摆放在板边适当位置 如 图图16如果想移 钻孔表,需要在find中勾选Groups进行移3.输 钻孔文件里输 的钻孔文件,也就是数控机床的文件,操作过程如a.参数设置,操作如 图;图17b.参数设置如 图所示图18c.输 钻孔文件,如 图所示,最好点 dirll按钮,生 .drl文件即是钻孔文件图194.输 文件在输 文件之前,需要再次确认各个参数设置是否 确,如果没有问题,即可 gerber文件了,说明如 图图205.输 坐标文件坐标文件在装配时候会用到,操作过程如 ,有3种格式坐标,可 根据情况选择,如果再加 单位分类,又有公制和英制两类,共6种形式图216. 程文件分类生 的 文件的扩展 是‘.art每,文件存放在当前目录 , 们把 些 文件 有钻孔文件 .drl 和ncdrill.log文件分类 可分 3类a.ADT和ADB分一类,为装配文件b.坐标文件沓PASTTOP和PASTBOT分一类,为贴片文件c.其他文件CAM文件,放在一起至 ,allegro 的操作流程介绍完 在发 板厂制板之前,需要 检查一遍 文件,并对 IPC网表,可 使用CAM350来进行相关操作,在 就不在做介绍了沔Edited by KevinFinished 2014/2/18。
Allegro中网络表的导入以及回编到Capture中的一些注意事项
Allegro中网络表的导入以及回编到Capture中的一些注意事项前言:网络表(Netlist)是沟通电路原理图和Layout实际板子的桥梁。
网络表包含的内容有零件Pin的连接线关系以及零件的包装等基本信息,Cadence提供的Capture到Allegro新的网络表的转发除了可以把一基本信息带到PCB Layout中,还可以把一些layout时用到的设定、约束通过网络表带到Allegro中,使工程师在设计电路时就可以大致了解PCB板子上的布线情况,从而也节省了Layout工程师的时间,提高了工作效率!例如:电子工程师可以在原理图中把一些Power线设定好最小线宽,这样用新转法时就可以直接把设定带入Allegro,可以防止Layout工程师疏忽忘了设定走线没有达到要求。
相反把PCB上的信息反馈到原理图中,这过程一般称为回编(Backannotation),以保证实物PCB与原理图同步。
例如:Layout工程师会对PCB上的零件作swap,rename等动作,为了保持PCB与原理图的统一必须把PCB中更改的内容回编到原理图中。
用Capture设计的原理图转入Allegro中有两种方式:第一种,第三方软件导入netlist的方式第二种,针对Cadence产品的直接导入方式,也称为新转法下面内容将会对这两种方式的特定和操作做相应介绍。
第一种,第三方软件导入netlist的方式优点:在Capture中定义可以相对简单,缺点:导入网络表和回编原理图都相对复杂,导入时需要Device file,回编时需要提供.swp file主要特点:这种方式是Capture 9.2以前的版本产生网络表导入Allegro的唯一方法,就是通过Capture Create Netlist的Other方式,格式选Allegro.dll就可以了,现在很多公司还常使用这种方式。
注意,在9.2以后的Capture中已经取消了这种转法,不过用户可以在9.2以前的版本中将allegro.dll复制到9.2以后的版本,放置路径预设C:\Cadence\PSD14.1\Capture\Netforms ,就可以使用这种转法了。
Allegro Skill详细安装及常用插件介绍指南
报告大纲1.安装技巧2.功能简介3.实例演示4.讨论反馈一、Stella的安裝1.新建Stella资料夹放*.il程式文件,如路径为C:\。
2.将Stella程序数据夹中的Menu中的内容copy到Allegro的安装目录中,如D:\Cadence\SPB_15.5.1\share\pcb\text\cuimenus中。
3.将Stella程序数据夹中env文件夹中Allegro .ilinit copy 至“Allegro工作路径”\pcbenv内。
4.新增环境变量Stella_skill 值为C:\Stella。
Stella的安裝(这里只介绍一种方法,都大同小异)1、新建Stella资料夹于C:\。
Stella文件夹主要用于放*.IL文件。
此文件夹名称和存放路径都可选。
Stella的安裝2、将Stella程序数据夹中的Menu中的内容copy到Allegro的安装目录中如D:\Cadence\SPB_15.5.1\share\pcb\text\c uimenus中。
实际上就是修改D:\Cadence\SPB_15.5.1\share\pcb\text\cuimenus文件夹中的allegro.men文件,增加菜单功能,增加一栏命令。
Stella的安裝POPUP "&Stella"BEGINMENUITEM "Align Symbol", "align_sym"MENUITEM "DRC Walker...", "drc walk"MENUITEM "Place Xrf", "skill xrfin"MENUITEM "Find Stubs", "find_stubs"MENUITEM "Find Dang Line/Cline", "find_dang"MENUITEM "Hilight Net without TP", "hl_ntp"MENUITEM "Hilight Via without Net", "hlvia"MENUITEM "Netlist Editor", "net_editor"MENUITEM "Mil To Mm", "conv"MENUITEM "Cal", "cal"MENUITEM "Clinecut", "clinecut"END此下面还可继续添加其它命令Stella的安裝三、将Stella程序数据夹中env文件夹中Allegro .ilinit copy 至C:\pcbenv内。
Allegro_Skill_axl函数简介
Allegro Skill axl函数简介1.allegro skill简介1.1. AXL-SKILL专用于allegro的skill被称为AXL-SKILL,只有使用这些专用的函数才可以直接访问allegro 的database。
结合skill语法和这些专用函数可以编写出实现各种功能的命令。
专用于allegro 的skill都是以axl开头,比如axlClearSelSet()。
1.2. 运行AXL-SKILL在allegro中输入skill就得到了AXL-SKILL的运行环境,在这样的环境中可以直接调用AXL-SKILL命令/函数,另外输入set telskill可以得到一个尺寸大小可调的skill开发窗口。
(万一没有弹出窗口,尝试在allegro菜单里面,选择setup->userprference->skill->telskill----OK)1.3. AXL-SKILL Databaseallegro中的每个对象object(比如IC元件,net)都有一个对应的dbid(database identifiers),AXL-SKILL操作allegro的也正是这些dbid。
dbid对象:在不同的级别上的dbid是不一样的,比如在Design以及包含的database对象有Property Dictionary,Lines,Text,Polygons,Shapes,Property Definitions,DRCs,Vias that are Padstack object types,Symbols that are Symdef object types,Components,Nets;而在Symbol级别上则是PPins that are Padstack object types,Vias that are Padstack object types,Lines,Arcs,Text,Polygons,Shapes。
Allegroskill基本语法
2.对第1步读取的值,执行car,读取其第一元素。
3.对第2步读取的值,执行car,读取其第一元素。
实例:caaar('(((1 2 3)(4 5 6))(7 8 9))) => 1等同于car( car( car( l_list)))
caadr('(((1 2 3)(4 5 6))(7 8 9))) => 7等同于car( car( cdr( l_list)))
let( ()
println("Hello World!")
)
); end procedure
1.1.4
SKILL支持2种注释方式:
a. /*…*/用于注释多行,像C一样
b. ;用于注释单行,类似C的//
1.1.5
integer5
float5.0
string"abc defg"
list'(1 2 3 "a")
1.1 SKILL
SKILL是用于Cadence软件二次开发的语言。我们关于SKILL的介绍基于SKILL语言参考档和llegro SKILL的应用。
1.1.1
SKILL语法支持lisp格式的语法,但是我们不推荐,推荐类C的语法格式。
Lisp示例:(max 5 3) => 5
C示例:max(5 3) => 5
第一个位置保存List的首个数据元素,第二个位置保存后面的List单元(除第一个元素之外的所有元素组成的表),它可以为空数据。
用car函数可以得到保存在第一个位置的List元素:car( aList) => 2
用cdr函数可以得到保存在第二个位置的List单元:cdr( aList) => (3 4) List
Allegro光绘文件输出规范
光绘输出操作规范1.1 添加钻孔表在layout检查和优化完之后就可以进行光绘输出了,在光绘输出之前,先将钻孔表放置到板边上,这样在光绘输出时就可以将钻孔表一起输出。
添加钻孔表的菜单命令是:Manufacture=>NC=>Drill Legend或者点击工具图标“3.运行命令Manufacture=>NC=>Drill Legend或者点击工具栏图标“”,弹出的窗口如下图:图1.3 数控机床钻孔输出参数设置窗口参数设好之后关闭NC Drill/Parameters窗口,输出数控机床钻孔文件的命令菜单为:Manufacture=>NC=>NC Drill…,打开的窗口如下:图1.4 数控机床钻孔输出窗口输出数控机床钻孔文件的具体步骤为:1.运行命令Manufacture=>NC=>Drill Parameters…或者点击工具图标“”也可以,打开的窗口如下:图1.5 光绘输出的层控制窗口上图是光绘输出的层控制窗口,还有一个窗口是输出参数的控制窗口,我们通过点击上图的第二个列表项General Parameters来打开该窗口,打开的窗口如下,注意输出格式选RS274X。
图1.6 光绘输出的参数控制窗口Allegro软件默认的输出光绘层列表就两项:TOP和BOTTOM,我们需要根据相应的板层进行添加,以一个四层板为例,当两面都有摆放元件的时候需要出13张光绘文件(实际为12张Film,钻孔在PCB加工商那里不算),这八个光绘文件由上到下分别为:l底层装配(adb)l顶层阻焊(adt)l底层走线(bottom)l钻孔层(drill)l GND层(gnd03)l底层钢网(pastbot)l顶层钢网(pasttop)l POWER层(pwr02)l底层丝印(silkbot)l顶层丝印(silktop)l底层阻焊(soldbot)l顶层阻焊(soldtop)l底层走线(top)下面针对这块板将每层光绘文件输出时需要打开的相关层说明一下:l底层装配(adb)l顶层阻焊(adt)l底层走线(bottom)l钻孔层(drill)l GND层(gnd03)l底层钢网(pastbot)l顶层钢网(pasttop)l POWER层(pwr02)l底层丝印(silkbot)l顶层丝印(silktop)l底层阻焊(soldbot)l顶层阻焊(soldtop)l底层走线(top)下面我们就参照上述列表将各个层的光绘设置好,具体的操作步骤如下:1.运行命令Manufacture=>Artwork或者点击工具栏图标“”的“TOP”字符处,在弹出的菜单中选择Add命令3.在弹出的窗口中输入“Silktop”,按OK按钮关闭窗口(添加顶层丝印)4.点击Silktop层前端的“+”号打开列表项如下图:图1.7 顶层丝印的层列表5.用鼠标右键菜单的“Cut”和“Add”命令将无用的层删除,将与丝印有关的层添加上,即REF DES/SILKSCREEN_TOP、PACKAGE GEOMETRY/SILKSCREEN_TOP和BOARD GEOMETRY/OUTLINE6.用同样的方法将其它各层光绘也设置好,相关的层参考上面的列表7.将所有层的Undefined line width设成6mil8.将所有层的shape bounding box设成1009.将GND和POWER层设置成负片,Plot mode的Negative选中10.将内层走线层和平面层,选中Suppress unconnected pads11.将General Parameters 的参数照图1.6设置一下12.点击OK按钮关闭Artwork Control Form窗口这时,我们再看右边Visibility参数中的views选项,可以看到如下图所示的光绘输出层列表:图1.8 Visibility中views列表其实应该在走线之前就把光绘的输出先设置好,这样,在以后的走线过程中或者其它过程中,可以通过Allegro的右边Visibility参数下的views列表来快速切换相关层,比方说,我要在Bottom层走线,其它的层我想要关闭显示,这时我们就可以通过在views列表中选择Bottom,其它层就全部被关闭了,仅仅保留Bottom层。
Allegro skill基本语法
1.1 SKILL 语言简介SKILL 是用于Cadence 软件二次开发的语言。
我们关于SKILL 的介绍基于SKILL 语言参考档和Allegro SKILL的应用。
1.1.1 语法格式SKILL语法支持lisp 格式的语法,但是我们不推荐,推荐类C 的语法格式。
Lisp示例:(max 5 3) => 5C 示例:max(5 3) => 5Max是求最大值的函数,lisp 格式的不便阅读。
1.1.2 简单的SKILL 运行环境Allegro 的SKILL 运行环境:在Allegro 的命令窗口输入set telskill 窗口就可以用来运行就可以打开一个新的窗口,这个SKILL 命令。
窗口的大小可以手动调节。
1.1.3 Load Skill可以直接在SKILL development里面运行SKILL,可以把写好的代码放load命令一次性装载。
在说明load 之前,先说一下getSkillPath和setSkillPath 这2 个函数。
因为load 要找到SKILL 来装载,通常我们都不喜欢通过绝对路径来装载一个文件,因为那样包含的字符太多了。
文件getSkillPath() 将得到当前Allegro 设置的SKILL 加载路径,而setSkillPath 用来指定加载路径。
目前先不用考虑这个setSkillPath。
我的Allegro当前默认的SKILL 路径是Allegro 的工作路径和C:\home\pcbenv\skill这样我先把hello.il文件放在C:\home\pcbenv\skill\函数。
下面,下一步来加载这个文件,然后运行定义的函数Hello.il的源代码:procedure( hello()let( ()println("Hello World!"))) ; end procedure1.1.4 注释SKILL支持2种注释方式:a. /* … */ 用于注释多行,像C一样b. ; 用于注释单行,类似C 的//1.1.5 基本的数据类型integer 5float 5.0string "abc defg"list '(1 2 3 "a")boolen t/nil1.1.6 变量SKILL的变量定义比较随便,不需要指定其类型,赋什么类型的值就是什么类型。
Cadence Skill 语法详解(中文)
常量、变量常量是它的值等于自身的表达式,如123,”abc”…变量是保存了其它值的表达式,如x=3, x即变量。
算术与逻辑操作符函数名语法对应操作符Data Accessarrayref a[index] [ ] setarray a[index] = exprbitfield1 x<bit> <> setqbitfield1 x<bit>=exprsetqbitfield x<msb:lsb>=exprquote 'expr 'getqq g.s .getq g->s -> putpropqq g.s=expr, g->s=expr putpropq d~>s, d~>s =expr ~>Unarypreincrement ++s ++ postincrement s++ ++ predecrement --s -- postdecrement s-- -- minus -n -not !expr !bnot ~x ~Binaryexpt n1 ** n2 ** times n1 * n2 * quotient n1 / n2 / plus n1 + n2 + difference n1 - n2 - leftshift x1 << x2 << rightshift x1 >> x2 >> lessp n1<n2 < greaterp n1>n2 > leqp n1<=n2 <= geqp n1>=n2 >= equal g1 == g2 == nequal g1 != g2 != band x1 & x2 & bnand x1 ~& x2 ~& bxor x1 ^ x2 ^ bxnor x1 ~^ x2 ~^ bor x1 | x2 | bnor x1 ~| x2 ~|and x1 && x2 &&or x1 || x2 ||range g1 : g2 :setq s = expr =对于既有函数名又有操作符函数,采用函数名调用和采用操作符调用的效果是一样的。
Allegro的控制台命令使用介绍,很详细的
Allegro的控制台命令使用介绍,很详细的allegro控制台命令控制台命令File (1)Edit (4)View (6)Add (7)Display (8)Setup (9)Layout (11)V oid (12)Shape (12)Logic (13)Place (14)Route (16)Analyze (17)Manufacture (19)Tools (21)Help (22)如何设置allegro的快捷键 (23)FileFile-NewnewFile-OpenopenFile-SavesaveFile-Save Assave_asFile-Create Symbolcreate symbol (in Symbol Editor only) File-Import-Logicnetin paramFile-Import-Artwork load photoplot File-Import-Streamload streamFile-Import-IPFload plotFile-Import-DXFdxf inFile-Import-IDFidf inFile-Import- IFFiff inFile-Import-SPECCTRA specctra in File-Import-Redac redac inFile-Import-Visula visula inFile-Import-PADSpads inFile-Import-PCADpcad inFile-Import-Sub-Drawing clppaste File-Import-Techfile techfile inFile-Import-Active Times signal atimes File-Import-Placementplctxt inFile-Annotationsannotation inFile-Export-LogicfeedbackFile-Export-Netlist w/Properties netoutFile-Export-IPFcreate plotFile-Export-DXFdxf outFile-Export-IDFidf outFile-Export-SPECCTRA specctra_outFile-Export-Sub-Drawing clpcopyFile-Export-LibrariesdlibFile-Export-Techfiletechfile outFile-Export-Placementplctxt outFile-Export-Annotations annotation outFile-Export-IPC 356ipc356 outFile-Export-Valor ODB ++ inside odb_outFile-Export-Save design to 14.0 downrevFile-ViewlogviewlogFile-File ViewerNo corresponding commandFile-Plot Setupplot setupFile-Plot Preview (Windows NT only) plot preview File-PlotplotFile-Propertiesfile_propertyFile-Change EditortoolswapFile-ScriptscriptFile-ExitexitEditEdit-MovemoveEdit-CopycopyEdit-MirrormirrorEdit-SpinspinEdit-ChangechangeEdit-DeletedeleteEdit-Shapeshape editEdit-Z-Copyzcopy shapeEdit-Delete Unconnected Shapes delete unconnected Edit-Split Plane-Parameters split plane paramsEdit-Split Plane-Createsplit plane createEdit-Split Plane-Locate Islands locate islandsEdit-Compose Shape compose shapeEdit-Decompose Shape decompose shapeEdit-VertexvertexEdit-Delete Vertexdelete vertexEdit-Boundary (Shape editor only) boundaryEdit-Change Net (Pick) (Shape editor only) changenet pick Edit-Change Net (Name) (Shape editor only) changenet nameEdit-Texttext editEdit-Chamfer (in Designer and Studio series) draft chamfer Edit-Fillet (in Designer and Studio series) draft filletEdit-GroupsgroupeditEdit-Propertiesproperty editViewView-Zoom By Pointszoom pointsView-Zoom Fitzoom fitView-Zoom Inzoom inView-Zoom Outzoom outView-Zoom Worldzoom centerView-Zoom Centerzoom centerView-Zoom Previouszoom previousView-Color View Save colorview createView-Color View Restore Last colorview restoreView-RefreshNo corresponding commandView-Customization-Display display paramView-Customization-T oolbar No corresponding command AddAdd-Lineadd lineAdd-Arc w/Radiusadd rarcAdd-3pt Arcadd arcAdd-Circleadd circleAdd-Rectangleadd rectAdd-Frectangleadd frectAdd-Textadd textAdd-Shapes-Solid Filladd fshapeAdd-Shapes-Unfilledadd ufshapeAdd-Shapes-Cross Hatch Fill add xshapeDisplayDisplay-Color/Visibility colorDisplay-Color Prioritycolor priorityDisplay-Elementshow elementDisplay-Measureshow measureDisplay-Parasiticshow parasiticDisplay-Propertyshow propertyDisplay-HighlighthilightDisplay-DehighlightdehilightDisplay-Show Rats-Allrats allDisplay-Show Rats-Components rats component Display-Show Rats-Netrats netDisplay-Blank Rats-Allunrats allDisplay-Blank Rats-Components unrats component Display-Blank Rats-Nets unrats netSetupSetup-Drawing Sizedrawing paramSetup-Drawing OptionsstatusSetup-T ext Sizesdefine textSetup-Gridsdefine gridSetup-Subclassesdefine subclassSetup-Cross-sectiondefine xsectionSetup-Vias-Define B/B Viadefine bbviaSetup-Vias-Auto Define B/B Viaauto define bbviaSetup-ConstraintscnsSetup-Electrical Constraint Spreadsheet cmgr Setup-Property Definitionsdefine propertySetup-Define Listsdefine listSetup-Areas-Package Keepinkeepin packageSetup-Areas-Package Keepout keepout package Setup-Areas-Package Height package_height Setup-Areas-Route Keepinkeepin routerSetup-Areas-Route Keepoutkeepout routerSetup-Areas-Via KeepoutSetup-Areas-Probe Keepoutkeepout probeSetup-Areas-Gloss Keepoutkeepout glossSetup-Areas-Photoplot Outlinekeepin photoSetup-User Preferencesenv editorLayoutLayout menu selections are available only in the Symbol EditorLayout-Pinsadd pinLayout-Connectionsadd connectLayout-SlideslideLayout-Labels-RefDeslabel refdesLayout-Labels-Devicelabel deviceLayout-Labels-Valuelabel valueLayout-Labels-T oleranceLayout-Labels-Part Numberlabel partVoidV oid menu selections are available only in the Shape Editor V oid-Shapevoid shapeV oid-Circlevoid circleV oid-Elementvoid elementV oid-Autovoid allShapeShape menu selections are available only in the Shape Editor Shape-Parametersshape paramShape-Checkshape checkShape-Fillshape fillLogicLogic-Net Logicnet logicLogic-Net Schedulenet scheduleLogic-Assign Differential Pairdiff pairsLogic-Identify DC Netsidentify netsLogic-Assign RefDesassign refdesLogic-Auto Rename RefDes-Rename rename paramLogic-Auto Rename RefDes-Design rename area design Logic-Auto Rename RefDes-Room rename area room Logic-Auto Rename RefDes-Window rename area window Logic-Auto Rename RefDes-List rename area listLogic-Change PartsparteditLogic-Terminator Assignment ecl paramPlacePlace-Manuallyplace manualPlace-Quickplace quickplacePlace-SPECCTRAspecctraPlace-Autoplace-Insight place insightPlace-Autoplace-Parameters place paramPlace-Autoplace-T op Grids place set topgrid Place-Autoplace-Bottom Grids place set bottomgrid Place-Autoplace-Design place area designPlace-Autoplace-Roomplace area roomPlace-Autoplace-Window place area window Place-Autoplace-List place area listPlace-Interactiveplace interactivePlace-Swap-Pinsswap pinsPlace-Swap-Functions swap functionsPlace-Swap-Components swap componentsPlace-Autoswap-Parameters swap paramPlace-Autoswap-Design swap area designPlace-Autoswap-Room swap area roomPlace-Autoswap-Window swap area window Place-Autoswap-List swap area listPlace-Evaluate-Parameters eval paramPlace-Evaluate-Design eval area designPlace-Evaluate-Roomeval area roomPlace-Evaluate-Window eval area windowPlace-Evaluate-Listeval area listPlace-Update Symbolsrefresh symbolPlace-Replace SQ T emporary-Devices replace temp_device Place-Replace SQ Temporary-Symbols replace temp_symbolsRouteRoute-Connectadd connectRoute-SlideslideRoute-Custom Smoothcustom smoothRoute-SPECCTRA-Run Router Checks specctra checksRoute-SPECCTRA-Route by Pick route_by_pickRoute-SPECCTRA-Route Automatic auto_routeRoute-SPECCTRA-Interactive Editor specctraRoute-Gloss-Parametersgloss paramRoute-Gloss-Designgloss area designRoute-Gloss-Roomgloss area roomRoute-Gloss-Windowgloss area windowRoute-Gloss-HighlightNo corresponding commandRoute-Gloss-Listgloss area listRoute-Testprep-Auto testpreop paramRoute-Testprep-Create Probe probe createRoute-Testprep-Delete Probe probe deleteRoute-Testprep-Swap Probe probe swapRoute-Testprep-NC Tape Probes nctapeAnalyzeAnalyze-SI/EMI Sim-Initialize signal initAnalyze-SI/EMI Sim-Library signal libraryAnalyze-SI/EMI Sim-Modelsignal modelAnalyze-SI/EMI Sim-Model Dump/Refresh signal model refreshAnalyze-SI/EMI Sim-Preferencessignal prefsAnalyze-SI/EMI Sim-Audit-Design Auditsignal auditAnalyze-SI/EMI Sim-Audit-Net Auditsignal audit netAnalyze-SI/EMI Sim-Audit-Audit One Librarysignal lib auditAnalyze-SI/EMI Sim-Audit-Audit List of Librariessignal libs auditAnalyze-SI/EMI Sim-Probesignal probeAnalyze-SI/EMI Sim-Xtalk Tablesignal xtalktableAnalyze-EMI Rules-Initializesignal eminitAnalyze-EMI Rules-Auto Setupsignal emiautopropmainAnalyze-EMI Rules-Manual Setupsignal emimanualpropmainAnalyze-EMI Rules-Rule Selectsignal emiruleselectAnalyze-EMI Rules-Auditsignal emiverifyAnalyze-EMI Rules-Executesignal emiexecuteAnalyze-EMI Rules-Resultssignal emiresultsAnalyze-EMI Rules-Audit Reportsignal emiverifyreportAnalyze-EMI Rules-Execute Reportsignal emiexecutereportManufactureManufacture-Dimension/Draft commands in the Layout Editor are accessed under the Dimension menu item in the Symbol EditorManufacture-Dimension/Draft-Parametersdraft paramManufacture-Dimension/Draft-LineFontlinefontManufacture-Dimension/Draft-Linear Dimdimension linearManufacture-Dimension/Draft-Datum Dimdimension datumManufacture-Dimension/Draft-Angular Dim dimension angularManufacture-Dimension/Draft-Leader Lines leader only。
Allegroskill运算符详解
算术与逻辑操作符函数名语法对应操作符Data Accessarrayref a[index] [ ]setarray a[index] = exprbitfield1 x<bit> <>setqbitfield1 x<bit>=exprsetqbitfield x<msb:lsb>=exprquote 'expr 'getqq g.s .getq g->s ->putpropqq g.s=expr, g->s=exprputpropq d~>s, d~>s =expr ~>Unarypreincrement ++s ++postincrement s++ ++predecrement --s --postdecrement s-- --minus -n -not !expr !bnot ~x ~Binaryexpt n1 ** n2 **times n1 * n2 * quotient n1 / n2 / plus n1 + n2 + difference n1 - n2 -leftshift x1 << x2 << rightshift x1 >> x2 >> lessp n1<n2 < greaterp n1>n2 > leqp n1<=n2 <= geqp n1>=n2 >= equal g1 == g2 == nequal g1 != g2 != band x1 & x2 & bnand x1 ~& x2 ~& bxor x1 ^ x2 ^ bxnor x1 ~^ x2 ~^ bor x1 | x2 | bnor x1 ~| x2 ~| and x1 && x2 && or x1 || x2 || range g1 : g2 : setq s = expr =对于既有函数名又有操作符函数,采用函数名调用和采用操作符调用的效果是一样的。
Allegro Skill中数据的输入输出控制
SKILL中数据的输出控制1.数据的输出可以使用以下函数print、println、printfprint和println对不同数据类型采用默认显示格式。
print和println采用以下格式显示数据:print直接在之前的数据后面输出,而println在每次输出的最后会加一个换行符。
请看下面例子:for( i 1 3 print( "hello" )) ;Prints hello three times. "hello""hello""hello"for( i 1 3 println( "hello" )) ;Prints hello three times."hello""hello""hello"printf 函数printf函数采用格式输出。
其格式一般为:printf(格式控制,输出表列)比如:printf("\n%-15s %-15s %-10d %-10d %-10d %-10d" layerName purpose rectCount labelCount lineCount miscCount)上面例子中,printf括号中包含两个部分:第一个部分为格式控制,是用双引号括起来的字符串。
其中包含有各个格式说明,由格式说明符号”%”和格式字符组成。
比如上例中的”%d”、”%s”。
一般”%”后面为格式字符。
格式控制中还可包含普通的字符,普通字符不会转换,直接输出。
第二部分为输出表列,输出表列为输出的各个数据,也可以是表达式。
比如下面例子:printf(“a=%d b=%d a+b=%d” a b a+b)当a=2 b=3时,以上printf函数输出为“a= 2 b=3 a+b=5”以下为一些常见的转义字符:%d 整数(十进制)%f 浮点型%s 字符串或symbol%c 字符输出,只输出一个字符%n 数值%L List%P 坐标点%B Bounding Box请参考下面的例子:aList = '(1 2 3)printf( "\nThis is a list: %L" aList ) => tThis is a list: (1 2 3)aList = nilprintf( "\nThis is a list: %L" aList ) => tThis is a list: nil如果printf中数据类型如果与格式说明中的不匹配,那么printf函数将会产生一个错误!比如:printf( "%d %d" 5 nil )Message: *Error* fprintf/sprintf:format spec. incompatible with data –nil上例中,第二个格式说明为输出整数,但是传递的为nil。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
SKILL中数据的输出控制
1.数据的输出可以使用以下函数
print、println、printf
print和println对不同数据类型采用默认显示格式。
print和println采用以下格式显示数据:
print与println的区别
print直接在之前的数据后面输出,而println在每次输出的最后会加一个换行符。
请看下面例子:
for( i 1 3 print( "hello" )) ;Prints hello three times. "hello""hello""hello"
for( i 1 3 println( "hello" )) ;Prints hello three times.
"hello"
"hello"
"hello"
printf 函数
printf函数采用格式输出。
其格式一般为:
printf(格式控制,输出表列)
比如:
printf("\n%-15s %-15s %-10d %-10d %-10d %-10d" layerName purpose rectCount labelCount lineCount miscCount
)
上面例子中,printf括号中包含两个部分:
第一个部分为格式控制,是用双引号括起来的字符串。
其中包含有各个格式说明,由格式说明符号”%”和格式字符组成。
比如上例中的”%d”、”%s”。
一般”%”后面为格式字符。
格式控制中还可包含普通的字符,普通字符不会转换,直接输出。
第二部分为输出表列,输出表列为输出的各个数据,也可以是表达式。
比如下面例子:
printf(“a=%d b=%d a+b=%d” a b a+b)
当a=2 b=3时,以上printf函数输出为
“a= 2 b=3 a+b=5”
以下为一些常见的转义字符:
%d 整数(十进制)
%f 浮点型
%s 字符串或symbol
%c 字符输出,只输出一个字符
%n 数值
%L List
%P 坐标点
%B Bounding Box
请参考下面的例子:
aList = '(1 2 3)
printf( "\nThis is a list: %L" aList ) => t
This is a list: (1 2 3)
aList = nil
printf( "\nThis is a list: %L" aList ) => t
This is a list: nil
如果printf中数据类型如果与格式说明中的不匹配,那么printf函数将会产生一个错误!比如:
printf( "%d %d" 5 nil )
Message: *Error* fprintf/sprintf:format spec. incompatible with data –nil
上例中,第二个格式说明为输出整数,但是传递的为nil。
文件输出:
文件输出一般包括三个步骤:
1.使用outfile函数指定输出文件,outfile函数将会返还一个端口值。
2.使用print、println、printf函数向文件中输出数据
3.使用close函数关闭文件端口
print和println函数可以在第二个参数上指定输出端口来向文件中输出数据:
myPort = outfile( "/tmp/myFile" )
for( i 1 3
println( list( "Number:" i) myPort )
)
close( myPort )
以上文件输出为:
("Number:" 1)
("Number:" 2)
("Number:" 3)
注:在向文件中输出结束后,最好立即使用close函数关闭文件。
Printf函数不能向文件中输出数据,取而代之的是fprintf,其功能与printf函数一样,可以指定格式输出。
fprintf第一个参数为输出文件端口。
myPort = outfile( "/tmp/myFile" )
for( i 1 3
fprintf( myPort "Number: %d\n" i )
)
close( myPort )
输出结果为:
Number: 1
Number: 2。