前言
很多INTEL(ALTERA) IP生成的時(shí)候會(huì)自帶例程,如LVDS SERDES IP,在菜單Generate中可以選擇生成官方例程。
之后會(huì)在IP所在目錄下生產(chǎn)【lvds_0_example_design】文件夾,但在這個(gè)文件夾中并沒(méi)有FPGA工程。
例程在哪?
查看readme.txt。
This is the readme.txt file for the example design file set of the Altera
LVDS SERDES IP. Files in this directory allow you to do
the following:1) Create a Quartus Prime project that instantiates an LVDS?
? ?interface (same configuration as what you specified in generation).
? ?You can optionally specify the target device and pin location
? ?assignments, run a full compilation using the Quartus Prime software,
? ?verify timing closure, and test the interface on your board using the
? ?programming file generated by the Quartus Prime assembler.
? ? ??
2) Create simulation projects for various supported simulators. The
? ?simulation projects instantiate an LVDS interface (same
? ?configuration as what you specified in the MegaWizard),
? ?and an example test bench that exercises the interface.
? ?The projects are generated so you can run simulation and use the
? ?results as a way to understand the behavior of the LVDS
? ?interface IP. This flow only supports functional simulation. Timing
? ?simulation is not supported, and you must use static timing analysis
? ?provided by the TimeQuest software to verify timing closure.
? ? ??
Notes:
? ?In external PLL mode, an example external PLL is provided in a
? ?standalone QSYS file (lvds_external_pll.qsys).
? ?This can be modified and used in the user's design for external
? ?PLL mode.?
? ?In the synthesis example design, there is an example of how to
? ?connect the external PLL to the LVDS IP including a top-level
? ?SDC file.
? ?
? ?The file under the qsys_interface_bridge directory:
? ?qsys_interface_bridge_hw.tcl defines a custom component to help
? ?connect LVDS to the PLL in QSYS. It simply allows the connection
? ?between non-matching QSYS interfaces (i.e. clock to conduit).
? ?Make sure these files are added to the project directory if you?
? ?wish to modify either the synthesis or simulation QSYS systems.
? ?The qsys_interface_bridge is not needed if using the provided PLL as a
? ?RTL instantiation and connecting the components manually in RTL?
? ?rather than a QSYS system.###############################################################################
Generating a Quartus Prime Example Design
###############################################################################
For information about supported arguments, run:
? ?quartus_sh -t make_qii_design.tcl -help
? ?
To generate a Quartus Prime example design, run:
? ?quartus_sh -t make_qii_design.tcl?
? ?
To specify an exact device to use, run: ??
? ?quartus_sh -t make_qii_design.tcl -device [device_name]
? ?
The generated example design is stored under the "qii" sub-directory.
To re-generate the design, simply delete it and re-run the commands above.
To generate non-default example designs like the DPS (Dynamic Phase Shift),
combined TX/RX or others:
? ? quartus_sh -t make_qii_design.tcl -device [device_name] -system [system_name]Note: [system_name] is the name of the QSYS system for the given example design.
? ? ? For the default "ed_synth.qsys" the system name is "ed_synth".The generated example design is stored under the "qii_<system_name>" sub-directory.
? ?
############################################################################### ??
Generating a Simulation Example Design
############################################################################### ??
??
To generate simulation example designs for a Verilog or a mixed-language
simulator, run:? ?quartus_sh -t make_sim_design.tcl VERILOG
? ?
To generate simulation example designs for a VHDL-only simulator, run:? ?quartus_sh -t make_sim_design.tcl VHDL
? ?
The generated example designs for various simulators are stored under the "sim"
sub-directory. For example, to run simulation using Synopsys' VCS, run:? ?cd sim/synopsys/vcs
? ?./vcs_setup.sh
其中提到
To generate a Quartus Prime example design, run:
? ?quartus_sh -t make_qii_design.tcl?
也就是說(shuō)運(yùn)行這句TCL就可以生產(chǎn)例程。?
運(yùn)行TCL?
1.在當(dāng)前文件夾新建文本文件,更改后綴名為bat
2.把“quartus_sh -t make_qii_design.tcl?”復(fù)制到文本文件。
3.雙擊運(yùn)行bat文件,會(huì)彈出cmd窗口,等待一會(huì)。
4.會(huì)在當(dāng)前目錄下產(chǎn)生文件夾【qii】?,這個(gè)就是例程的FPGA工程。
TCL無(wú)法運(yùn)行怎么辦
大概率是系統(tǒng)環(huán)境變量設(shè)置錯(cuò)誤。需要在環(huán)境變量中是否添加了Quartus II。
系統(tǒng)屬性 ---?環(huán)境變量 ---?用戶變量 --- Path,添加
*\quartus\bin64
延展閱讀:文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-799928.html
震驚!FPGA配置居然一鍵完成! - 知乎文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-799928.html
到了這里,關(guān)于【INTEL(ALTERA)】如何使用Tcl打開(kāi)quartus IP自帶的例程的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!