dlhdl.Workflow.getBuildInfo - Retrieve bitstream resource utilization - MATLAB (original) (raw)
Main Content
Class: dlhdl.Workflow
Namespace: dlhdl
Retrieve bitstream resource utilization
Since R2021a
Syntax
Description
[area](#mw%5Fedbb8235-598d-4083-8e75-ac48a5394247) = getBuildInfo([workflowObject](#mw%5F468ce996-53ee-4d9d-9866-690c2c6a3762%5Fsep%5Fmw%5F348d2c6b-da53-4e76-ac9f-682c2e359b46))
returns a structure containing the bitstream resource utilization.
Input Arguments
Deep learning network deployment options, specified as adlhdl.Workflow
object.
Output Arguments
Bitstream resource utilization returned as a structure.
- The
Block Memory Bits
utilization is available for IntelĀ® bitstreams only. - The resource utilization results of Intel bitstreams show the
Block RAM
utilization as 100%. To analyze bitstream resource utilization, refer to theBlock Memory Bits
utilization instead.
Examples
- Create a file in your current working folder called
getLogoNetwork.m
. In the file, enter:
function net = getLogoNetwork
if ~isfile('LogoNet.mat')
url = 'https://www.mathworks.com/supportfiles/gpucoder/cnn_models/logo_detection/LogoNet.mat';
websave('LogoNet.mat',url);
end
data = load('LogoNet.mat');
net = data.convnet;
end - Create a
dlhdl.Workflow
object that hasLogoNet
as theNetwork
argument andarria10soc_single
as theBitstream
argument.
snet = getLogoNetwork;
hW = dlhdl.Workflow('Network',snet,'Bitstream','arria10soc_single'); - Call
getBuildInfo
argument to retrieve thearria10soc_single
resource utilization. Store the resource utilization inarea
.
Deep Learning Processor Bitstream Build Info
Resource Utilized Total Percentage
LUTs (CLB/ALM)* 93578 251680 37.18
DSPs 278 1687 16.48
Block RAM 2131 2131 100.00
Block Memory Bits 23211920 43642880 53.19
- LUT count represents Configurable Logic Block(CLB) utilization in Xilinx devices and Adaptive Logic Module (ALM) utilization in Intel devices.
area =
struct with fields:
LUT: [93578 251680]
BlockMemoryBits: [23211920 43642880]
BlockRAM: [2131 2131]
DSP: [278 1687]
Version History
Introduced in R2021a