saveBitstreamInfoFile
Class: dlhdl.Bitstream
Namespace: dlhdl
Description
saveBitstreamInfoFile( overwrites
a MAT file using information from the specified bitstream.bitstreamObject)
Input Arguments
Bitstream information, specified as a dlhdl.Bitstream object.
Examples
Create a generic deep learning processor configuration object. To generate the
bitstream 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'Display the myProcessor.mat file information.
bitstreamPath = fullfile("myProject","myProcessor.mat"); bitstream = load(bitstreamPath,"BitstreamBuildInfo"); bitstream.BitstreamBuildInfo
ans =
BitstreamBuildInfo with properties:
ProcessorConfig: [1×1 dnnfpga.config.CNN5ProcessorConfig]
VendorName: ''
BoardName: ''
ReferenceDesignName: ''
Frequency: 200Use 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'Update the myProcessor.mat file by using the
saveBistreamInfoFile method.
saveBitstreamInfoFile(hB) bitstreamPath = fullfile("myProject","myProcessor.mat"); bitstream = load(bitstreamPath,"BitstreamBuildInfo"); bitstream.BitstreamBuildInfo
ans =
BitstreamBuildInfo with properties:
ProcessorConfig: [1×1 dnnfpga.config.CNN5ProcessorConfig]
VendorName: 'Xilinx'
BoardName: 'Xilinx Zynq UltraScale+ MPSoC ZCU102 Evaluation Kit'
ReferenceDesignName: 'DL Reference Design With BRAM Access'
Frequency: 200Version 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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)