## Quartus?II文件的管理

Quartus II文件的管理

[<cite style="margin: 0px; padding: 0px 20px 0px 32px; font-style: normal; line-height: 23px; display: inline-block !important; height: 23px; background-repeat: no-repeat; background-position: right -28px; min-width: 1px; overflow-x: visible; white-space: nowrap; text-align: left; font-size: 12px !important; background-image: url("../../../image/30/30_1/images/sg_newsp.png"); width: 34px;">
image

轉(zhuǎn)載</cite>](javascript:;)

| 標(biāo)簽:

雜談

| 分類: MSN搬家 |

Quartus II是一款功能強(qiáng)大的EDA軟件。在這個(gè)繼承開發(fā)環(huán)境中,PLD使用者可以完成編輯、編譯、仿真、綜合、布局布線、時(shí)序分析、生成編程文件、編程等全套PLD開發(fā)流程。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
Quartus II以工程(Project)為單位管理文件。保證了設(shè)計(jì)文件的獨(dú)立性和完整性。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
由于Quartus II功能眾多,每一項(xiàng)功能都對(duì)應(yīng)一個(gè)甚至多個(gè)文件類型。在使用中,如果需要轉(zhuǎn)移或備份某一工程對(duì)應(yīng)的文件,對(duì)眾多文件的取舍成了一個(gè)令人頭痛的問題。類似問題,在使用Maxplus II的過程中也很常見。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
使用Quartus II自帶的工程文件壓縮功能可以省去取舍文件的麻煩。但是.qar文件把眾多文件壓縮成一個(gè)文件,只有解壓縮才能獲取具體文件的信息。如果使用版本控制工具(如CVS)的話,對(duì).qar文件無法進(jìn)行版本比較。甚至當(dāng).qar文件受損時(shí),部分甚至全部文件都無法恢復(fù)了。而且,缺省配置的.qar文件也包含了一些非關(guān)鍵文件,存在一定的冗余。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
解決這一問題的關(guān)鍵在于弄清文件擴(kuò)展名的意義,明明白白地控制文件的取舍。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
下面的文件是從Quartus II幫助文件中拷貝出來的文件擴(kuò)展名解釋。

<wbr style="margin: 0px; padding: 0px;">

<colgroup style="margin: 0px; padding: 0px;"><col width="342" style="margin: 0px; padding: 0px; width: 257pt;"><col width="277" style="margin: 0px; padding: 0px; width: 208pt;"></colgroup>
|

File Type

| Extension |
| AHDL Include File | .inc |
| ATOM Netlist File | .atm |
| Block Design File | .bdf |
| Block Symbol File | .bsf |
| BSDL file | .bsd |
| Chain Description File | .cdf |
| Comma-Separated Value File | .csv |
| Component Declaration File | .cmp |
| Compressed Vector Waveform File | .cvwf |
| Conversion Setup File | .cof |
| Cross-Reference File | .xrf |
| database files | .cdb, .hdb, .rdb, .tdb |
| DSP Block Region File | .macr |
| EDIF Input File | .edf, .edif, .edn |
| Global Clock File | .gclk |
| Graphic Design File | .gdf |
| HardCopy files | .datasheet, .sdo, .tcl, .vo |
| Hexadecimal (Intel-Format) File | .hex |
| Hexadecimal (Intel-Format) Output File | .hexout |
| HSPICE Simulation Deck File | .sp |
| HTML-Format Report File | .htm |
| I/O Pin State File | .ips |
| IBIS Output File | .ibs |
| In System Configuration File | .isc |
| Jam Byte Code File | .jbc |
| Jam File | .jam |
| JTAG Indirect Configuration File | .jic |
| Library Mapping File | .lmf |
| License File | license.dat |
| Logic Analyzer Interface File | .lai |
| Memory Initialization File | .mif |
| Memory Map File | .map |
| PartMiner edaXML-Format File | .xml |
| Pin-Out File | .pin |
| placement constraints file | .apc |
| Programmer Object File | .pof |
| programming files | .cdf, .cof |
| QMSG File | .qmsg |
| Quartus <wbr style="margin: 0px; padding: 0px;">II Archive File | .qar |
| Quartus <wbr style="margin: 0px; padding: 0px;">II Archive Log File | .qarlog |
| Quartus User-Defined Device File | .qud |
| Quartus <wbr style="margin: 0px; padding: 0px;">II Default Settings File | .qdf |
| Quartus II Exported Partition File | .qxp |
| Quartus <wbr style="margin: 0px; padding: 0px;">II Project File | .qpf |
| Quartus <wbr style="margin: 0px; padding: 0px;">II Settings File | .qsf |
| Quartus <wbr style="margin: 0px; padding: 0px;">II Workspace File | .qws |
| RAM Initialization File | .rif |
| Raw Binary File | .rbf |
| Raw Programming Data File | .rpd |
| Routing Constraints File | .rcf |
| Signal Activity File | .saf |
| SignalTap <wbr style="margin: 0px; padding: 0px;">II File | .stp |
| Simulator Channel File | .scf |
| SRAM Object File | .sof |
| Standard Delay Format Output File | .sdo |
| Symbol File | .sym |
| Synopsys Design Constraints File | .sdc |
| Tab-Separated Value File | .txt |
| Tabular Text File | .ttf |
| Tcl Script File | .tcl |
| Text Design File | .tdf |
| Text-Format Report File | .rpt |
| Text-Format Timing Summary File | .tan.summary |
| Timing Analysis Output File | .tao |
| Token File | ted.tok |
| Vector File | .vec |
| Vector Table Output File | .tbl |
| vector source files | .tbl, .vwf, .vec |
| Vector Waveform File | .vwf |
| Verilog Design File | .v, .vh, .verilog, .vlg |
| Verilog Output File | .vo |
| Verilog Quartus Mapping File | .vqm |
| Verilog Test Bench File | .vt |
| Value Change Dump File | .vcd |
| version-compatible database files | .atm, .hdbx, .rcf, .xml |
| VHDL Design File | .vhd, .vhdl |
| VHDL Output File | .vho |
| VHDL Test Bench File | .vht |
| XML files | .cof, .stp, .xml |
| waveform files | .scf, .stp, .tbl, .vec, .vwf |

上面這些文件可以分為五類:
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
1. 編譯必需的文件:設(shè)計(jì)文件(.gdf、.bdf、EDIF輸入文件、.tdf、verilog設(shè)計(jì)文件、.vqm、.vt、VHDL設(shè)計(jì)文件、. vht)、存儲(chǔ)器初始化文件(.mif、.rif、.hex)、配置文件(.qsf、.tcl)、工程文件(.qpf)。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
2. 編譯過程中生成的中間文件(.eqn文件和db目錄下的所有文件)
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
3. 編譯結(jié)束后生成的報(bào)告文件(.rpt、.qsmg等)
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
4. 根據(jù)個(gè)人使用習(xí)慣生成的界面配置文件(.qws等)
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
5. 編程文件(.sof、.pof、.ttf等)
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
上面分類中的第一類文件是一定要保留的;第二類文件在編譯過程中會(huì)根據(jù)第一類文件生成,不需要保留;第三類文件會(huì)根據(jù)第一類文件的改變而變化,反映了編譯后的結(jié)果,可以視需要保留;第四類文件保存了個(gè)人使用偏好,也可以視需要保留;第五類文件是編譯的結(jié)果,一定要保留。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
在使用版本控制工具時(shí),我通常保留第一類、第三類和第五類文件。但是第三類文件通常很少被反復(fù)使用。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
所以,為了維護(hù)一個(gè)最小工程,第一類和第五類文件是一定要保留的。
<wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;"> <wbr style="margin: 0px; padding: 0px;">
此外,當(dāng)一個(gè)項(xiàng)目的設(shè)置內(nèi)容需要轉(zhuǎn)移給另一個(gè)項(xiàng)目時(shí),例如引腳分配信息,需要轉(zhuǎn)移.tcl文件而不是.qsf文件。.tcl文件與.qsf文件的關(guān)系以及如何生成.tcl文件我會(huì)在以后的日志中給出。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容