Quartus II是一款功能強大的EDA軟體。在這個集成開發環境中,PLD使用者可以完成編輯、編譯、模擬、綜合、布局布線、時序分析、生成編程文件、編程等全套PLD開發流程。
Quartus II以工程(Project)為單位管理文件。保證了設計文件的獨立性和完整性。
由於Quartus II功能眾多,每一項功能都對應一個甚至多個文件類型。在使用中,如果需要轉移或備份某一工程對應的文件,對眾多文件的取捨成了一個令人頭痛的問題。類似問題,在使用Maxplus II的過程中也很常見。
使用Quartus II自帶的工程文件壓縮功能可以省去取捨文件的麻煩。但是.qar文件把眾多文件壓縮成一個文件,只有解壓縮才能獲取具體文件的信息。如果使用版本控制工具(如CVS)的話,對.qar文件無法進行版本比較。甚至當.qar文件受損時,部分甚至全部文件都無法恢復了。而且,預設配置的.qar文件也包含了一些非關鍵文件,存在一定的冗餘。
解決這一問題的關鍵在於弄清文件擴展名的意義,明明白白地控制文件的取捨。
下面的文件是從Quartus II幫助文件中拷貝出來的文件擴展名解釋。
Quartus II文件擴展名 |
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 II Archive File | .qar |
Quartus II Archive Log File | .qarlog |
Quartus User-Defined Device File | .qud |
Quartus II Default Settings File | .qdf |
Quartus II Exported Partition File | .qxp |
Quartus II Project File | .qpf |
Quartus II Settings File | .qsf |
Quartus 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 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 |
上面這些文件可以分為五類:
1. 編譯必需的文件:設計文件(.gdf、.bdf、EDIF輸入文件、.tdf、verilog設計文件、.vqm、.vt、VHDL設計文件、. vht)、存儲器初始化文件(.mif、.rif、.hex)、配置文件(.qsf、.tcl)、工程文件(.qpf)。
2. 編譯過程中生成的中間文件(.eqn文件和db目錄下的所有文件)
3. 編譯結束後生成的報告文件(.rpt、.qsmg等)
4. 根據個人使用習慣生成的界面配置文件(.qws等)
5. 編程文件(.sof、.pof、.ttf等)
上面分類中的第一類文件是一定要保留的;第二類文件在編譯過程中會根據第一類文件生成,不需要保留;第三類文件會根據第一類文件的改變而變化,反映了編譯后的結果,可以視需要保留;第四類文件保存了個人使用偏好,也可以視需要保留;第五類文件是編譯的結果,一定要保留。
在使用版本控制工具時,我通常保留第一類、第三類和第五類文件。但是第三類文件通常很少被反覆使用。
所以,為了維護一個最小工程,第一類和第五類文件是一定要保留的。
此外,當一個項目的設置內容需要轉移給另一個項目時,例如引腳分配信息,需要轉移.tcl文件而不是.qsf文件。.tcl文件與.qsf文件的關係以及如何生成.tcl文件我會在以後的日誌中給出。
[admin via 研發互助社區 ] Quartus II文件的管理已經有4249次圍觀
http://cocdig.com/docs/show-post-43143.html