Protel到Allegro轉化的方法
PROTEL較早就在國內開始使用,在國內的普及率也最高,有些高校的電子專業還專門開設了課程來學習它,下面小編爲大家整理了關於Protel到Allegro轉化的方法,一起來看看吧:
由於接觸和使用較早等原因,國內的Protel用戶爲數衆多,他們在選擇Cadence高速PCB解決方案的同時,都面臨着如何將手頭的Protel設計移植到Cadence PCB設計軟件中的問題。
在這個過程當中碰到的問題大致可分爲兩種:
一是設計不很複雜,設計師只想藉助Cadence CCT的強大自動佈線功能完成佈線工作;二是設計複雜,設計師需要藉助信噪分析工具來對設計進行信噪仿真,設置線網的佈線拓撲結構等工作。
對於第一種情況,要做的轉化工作比較簡單,可以使用Protel或Cadence提供的Protel到CCT的轉換工具來完成這一工作。對於第二種情況,要做的工作相對複雜一些,下面將這種轉化的方法作一簡單的介紹。
Cadence信噪分析工具的分析對象是Cadence Allegro的brd文件,而Allegro可以讀入合乎其要求的第三方網表,Protel輸出的Telexis格式的網表滿足Allegro對第三方網表的要求,這樣就可以將Protel文件注入Allegro。
這裏有兩點請讀者注意。首先,Allegro第三方網表在$PACKAGE段不允許有“.”;其次,在Protel中,我們用BasName[0:N]的形式表示總線,用BasName[x]表示總線中的一根信號,Allegro第三方網表中總線中的'一根信號的表示形式爲Bas NameX,讀者可以通過直接修改Protel輸出的Telexis網表的方法解決這些問題。
Allegro在注入第三方網表時還需要每種類型器件的設備描述文件文件,它的格式如下:
Package: package type
Class: classtype
Pincount: total pinnumber
Pinused: ...
其中常用的是PACKAGE,CLASS,PINCOUNT這幾項。PACKAGE描述了器件的封裝,但Allegro在注入網表時會用網表中的PACKAGE項而忽略設備描述文件中的這一項。CLASS確定器件的類型,以便信噪分折,Cadence將器件分爲IC,IO,DISCRETE三類。PINCOUNT說明器件的管腳數目。對於大多數器件,文件中包含有這三項就足夠了。
有了第三方網表和設備描述文件,我們就可以將Protel中原理圖設計以網表的形式代入到Cadence PCB設計軟件中,接下來,設計師就可以藉助Cadence PCB軟件在高速高密度PCB設計方面的強大功能完成自己的設計。
如果已經在Protel作了PCB佈局的工作,Allegro的script功能可以將Protcl中的佈局在Allegro中重現出來。在Protel中,設計師可以輸出一個Place & Pick文件,這個文件中包含了每個器件的位置、旋轉角度和放在PCB頂層還是底層等信息,可以通過這個文件很方便的生成一個Allegro的script文件,在Allegro中執行這個script就能夠重現Protel中的佈局了,下面給出了完成Place & Pick文件到Allegro Script文件轉化的C++代碼,筆者使用這段代碼,僅用了數分鐘就將一個用戶有800多個器件的PCB板佈局在Allegro重現出來。
FILE *fp1, *fp2;
::AfxMessageBox("hello");
fp1=fopen("", "rt");
if (fp1==NULL) ::AfxMessageBox("Can not open the file!!!");
fp2=fopen("","wt");
if (fp2==NULL) ::AfxMessageBox("Can not create the file!!!");
char refdes[5], Pattern[5];
float midx,midy,refx,refy,padx,pady,rotation;
char tb[1];
char tmp='"';
fprintf(fp2,"%sn", "# Allegro script");
fprintf(fp2,"%sn", "version 13.6");
fprintf(fp2,"%sn", "place refdes");
while (!feof(fp1)) {
fscanf(fp1,"%s", refdes);
fscanf(fp1,"%s", Pattern);
fscanf(fp1,"%f", &midx);
fscanf(fp1,"%f", &midy);
fscanf(fp1,"%f", &refx);
fscanf(fp1,"%f", &refy);
fscanf(fp1,"%f", &padx);
fscanf(fp1,"%f", &pady);
fscanf(fp1,"%s", tb);
fscanf(fp1,"%f", &rotation);
fprintf(fp2, "fillin %c%s%c n",tmp,refdes,tmp);
if (rotation!=0) {
fprintf(fp2, "rotaten");
fprintf(fp2, "iangle %fn", rotation);
};
char yy=tb[0];
if (yy!='T') fprintf(fp2, "pop mirrorn");
fprintf(fp2, "pick %f %f n", padx,pady);
fprintf(fp2, "next n");
};
fprintf(fp2, "done");
fclose(fp1);
fclose(fp2);
相關文章
-
PCB文件PROTEL轉換ALLEGRO的技巧
在Protel原理圖的轉化上我們可以利用Protel DXP SP2的新功能來實現。通過這一功能我們可以直接將Protel的原理圖轉化到Capture CIS中。注意事項:1) Protel DXP在輸出Capture DSN文件的時候,沒有輸出封裝信息,在Capture中 -
Choice of large enterprises or small英語四級作文
just as there are distinct differences between being a small fish is a big pond and a big fish in a small pond, so it is with working as a subordinate in a large enterprise and presiding in a small fi -
《learning to solve problems》讀後感
回望新中國成立60餘年,教育領域有許多重大的變革與創新,然而,值得今人反思的是,當今社會的科技實力,依靠的仍然是曾經的“三錢”,曾經的那一批輝煌的科學家。在改革開放後的30餘年,中國就再也沒有培養出像錢學森等一批優秀的 -
英語作文展示:all those friendly people
In my final year of university,I failed a very important examination for my college degree. What's worse,I was refused in a job interview, which had taken me much time to prepare. Sadness possesse -
Diaspora Finance Powers Global Development美文欣賞
Diaspora Finance Powers Global DevelopmentLuis Lopez-Ramirez, a 30-year old Honduran immigrant, makes pizza.He has worked two jobs over 16 hours each day.He carefully saves his money and rents a small -
英語作文:大學生村官 College Graduates Work as Village Offic
Inrecent years, being a village official has become the first choice of manycollege graduates. To this phenomenon, different people have different opinionson it.近年來,村官已成爲許多大學畢業生就業的首 -
英語新聞閱讀:For the love of Earth, stop traveling
An illustration of plane pollution. (The WorldPost)According to former U.N. climate chief Christiana Figueres, we have only three years left in which to bend the emissions curve downward and forestall -
The Unforgettable School Trip英語作文
the unforgettable school triplast tuesday, i went to chimelong paradise with my classmates. i played many different and exciting games. we arrived there at about 9 o’clock. there were 3 people in my -
Will Robot Take the Place of Men英語作文
Many years ago, as the development of technology, robot was created to facilitate peoples work. Robot can do many things for men, like it will accept the order and then carry out it. The most obvious -
英語閱讀範文參考:LovePeopleInAllKindsOfWeather
LovePeopleInAllKindsOfWeatherMake sure your love is unconditional. Make sure you love people in all kinds of "weather". Or else what is the use if we love a person only when he is good or she is nice?