filProgramFPGA
Load programming file onto FPGA
Description
filProgramFPGA(
loads a bit file onto an FPGA using the toolchain specified by
fpgaTool
,programFile
,chainPosition
)fpgaTool
.
Examples
Load Programming File to AMD FPGA
Program an AMD® FPGA.
First, set your system environment for accessing AMD tools from MATLAB® by using the hdlsetuptoolpath
function.
hdlsetuptoolpath('ToolName','Xilinx Vivado',... 'ToolPath','C:\Vivado\2021.1\Win\bin\vivado')
Next, program the FPGA using the programming file
/dir/mybitstream.bit
at JTAG chain position 1.
filProgramFPGA('AMD Vivado','/dir/mybitstream.bit',1);
Load Programming File to Intel FPGA
Program an Intel® FPGA.
First, set your system environment for accessing Intel tools from MATLAB by using the hdlsetuptoolpath
function.
hdlsetuptoolpath('ToolName','Altera Quartus II',... 'ToolPath','C:\altera\20.1\quartus\bin\quartus.exe');
Next, program the FPGA using the programming file
/dir/mybitstream.bit
at JTAG chain position 1.
filProgramFPGA('Intel','/dir/mybitstream.bit',1);
Input Arguments
fpgaTool
— FPGA and toolchain vendor
'AMD ISE'
| 'AMD Vivado'
| 'Intel'
| 'Microchip'
FPGA toolchain vendor, specified as 'Intel'
, 'AMD
ISE'
,'AMD Vivado'
, or
'Microchip'
.
Data Types: char
| string
programFile
— Name of programming file
character vector | string scalar
Name of the programming file to load to the FPGA, specified as a character vector or string scalar.
Example: 'arty.runs\impl_1\design_1.bit'
Data Types: char
| string
chainPosition
— JTAG chain position
nonnegative integer
JTAG chain position, specified as a nonnegative integer.
If you specify
fpgaTool
as'AMD ISE'
or'AMD Vivado'
,chainPosition
is a required input.If you specify
fpgaTool
as'Intel'
, specifyingchainPosition
is optional. If you do not specifychainPosition
in this case, the function assumes a value of1
.If you specify
fpgaTool
as'Microchip'
, the function ignoreschainPosition
.
Version History
Introduced in R2011a
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)