dlhdl.buildProcessor - Build and generate custom processor IP - MATLAB (original) (raw)

Build and generate custom processor IP

Since R2020b

Syntax

Description

dlhdl.buildProcessor([processorConfigObject](#mw%5F83f02baf-e9c2-4f6e-ab7c-93af906a6c69%5Fsep%5Fmw%5F4aaceff3-0437-4357-96fe-ca0f4d3de873)) generates a bitstream for the processorconfigobject object.

dlhdl.buildProcessor([processorConfigObject](#mw%5F83f02baf-e9c2-4f6e-ab7c-93af906a6c69%5Fsep%5Fmw%5F4aaceff3-0437-4357-96fe-ca0f4d3de873),[Name,Value](#namevaluepairarguments)) generates a bitstream for the processorconfigobject object, with additional options specified by one or more Name,Value arguments.

example

Examples

Generate Custom Bitstream for Custom Processor Configuration

Create a custom processor configuration. Generate a bitstream for the custom processor configuration.

Create a dlhdl.ProcessorConfig object. Save the object inhPC.

hPC = dlhdl.ProcessorConfig

Generate a custom bitstream for hPC

dlhdl.buildProcessor(hPC)

Generate Custom Bitstream and Specify Project Folder Name, Deep Learning Processor IP Core Name, and Target Code Generation language

Create a custom deep learning processor configuration. When you generate code specify the project folder name, deep learning processor IP core name, and target code generation language.

hPC = dlhdl.ProcessorConfig; dlhdl.buildProcessor(hPC,'ProjectFolder','fconlyprocessor_prj',... 'ProcessorName','fconlyprocessor','HDLCoderConfig',{'TargetLanguage','Verilog'});

Generate a Tool-Independent Generic Deep Learning Processor IP Core

Create a generic deep learning processor configuration and generate a generic deep learning processor IP core.

Create a dlhdl.ProcessorConfig object. Save the object inhPC.

hPC = dlhdl.ProcessorConfig; hPC.TargetPlatform = 'Generic Deep Learning Processor'; hPC.SynthesisTool = ''; hPC.UseVendorLibrary = 'off';

Generate a generic deep learning processor IP core.

dlhdl.buildProcessor(hPC)

Input Arguments

collapse all

Processor configuration, specified as adlhdl.ProcessorConfig object.

Name-Value Arguments

collapse all

Specify optional pairs of arguments asName1=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.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'ProjectFolder', 'fconlyprocessor_prj'

Name of project folder where generated files are saved

Example: 'ProjectFolder', 'fconlyprocessor_prj'

Name of generated deep learning processor IP core

Example: 'ProcessorName', 'fconlyprocessor'

Specify whether to generate VHDL or Verilog code.

Example: 'HDLCoderConfig',{'TargetLanguage','Verilog'}

Flag to display resource utilization and warning for over consumption of resources specified as a logical datatype. When you setOverrideResourceCheck to false, thebuildProcessor function displays the estimated resource consumption and a warning if the resource consumption exceeds 100 percent of the resources of the target board. When you set OverrideResourceCheck to true, the buildProcessor function does not display the estimated resource consumption or a warning if the resource consumption exceeds 100 percent of the resources of the target board.

Example: 'OverrideResourceCheck', 'false'

Version History

Introduced in R2020b