loadInfoFromPlugin
Class: dlhdl.Bitstream
Namespace: dlhdl
Load and update bitstream information using board and reference design plugin files
Since R2024b
Description
loadInfoFromPlugin(
loads and updates the specified bitstream using the plugin files specified by the name-value
arguments.bitstreamObject
,Name=Value
)
Input Arguments
bitstreamObject
— Bitstream information
dlhdl.Bitstream
object
Bitstream information, specified as a dlhdl.Bitstream
object.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
boardPlugin
— Board plugin file
hdlcoder.Board
object
Board plugin file, specified as a hdlcoder.Board
object. The
board plugin file must be on the MATLAB® path.
Example: boardPlugin=ZCU102_DL.plugin_board
refDesignPlugin
— Reference design plugin file
hdlcoder.ReferenceDesign
object
Reference design plugin file, specified as a
hdlcoder.ReferenceDesign
object. The reference design plugin file
must be on the MATLAB path.
Example: refDesignPlugin=ZCU102_DL.RefDesign.plugin_rd
Examples
Update Bitstream Information Using Board and Reference Design Plugin Files
Create a generic deep learning processor configuration object. To generate the
bistream faster, turn off the conv
and fc
modules.
Save the object in the variable hPC
.
hPC = dlhdl.ProcessorConfig; hPC.TargetPlatform = 'Generic Deep Learning Processor'; hPC.SynthesisTool = ''; hPC.setModuleProperty("conv",ModuleGeneration="off"); hPC.setModuleProperty("fc",ModuleGeneration="off");
Generate a deep learning processor IP core. Name the processor
myProcessor
and save it in the folder
myProject
.
dlhdl.buildProcessor(hPC,ProjectFolder='myProject', ... ProcessorName="myProcessor");
Create a bitstream object using the information from the deep learning processor MAT
file myProcessor.mat
.
path = fullfile("myProject","myProcessor.mat"); hB = dlhdl.Bitstream(path)
hB = Bitstream with properties: Name: '' Path: 'myProcessor.mat' MemoryBaseAddress: '0' MemoryAddressRange: '0' ProcessorBaseAddress: '0' ProcessorAddressRange: '0x10000'
Use information from the board and reference design plugin files to update the
dlhdl.Bitstream
object.
boardPlugin = DLZCU102.plugin_board; refDesign = DLZCU102.DLRefDesign_BRAM.plugin_rd; loadInfoFromPlugin(hB,boardPlugin=boardPlugin,refDesignPlugin=refDesign); hB
hB = Bitstream with properties: Name: '' Path: 'myProcessor.mat' MemoryBaseAddress: 'C0000000' MemoryAddressRange: '200000' ProcessorBaseAddress: 'A0000000' ProcessorAddressRange: '0x10000'
Version History
Introduced in R2024b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)