Main Content

dlhdl.buildProcessor

Build and generate custom processor IP

Since R2020b

    Description

    dlhdl.buildProcessor(processorconfigobject) generates a bitstream for the processorconfigobject object.

    dlhdl.buildProcessor(processorconfigobject,Name,Value) 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 in hPC.

    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 in hPC.

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

    Generate a generic deep learning processor IP core.

    dlhdl.buildProcessor(hPC)

    Input Arguments

    collapse all

    Name of the custom processor configuration object, specified as a variable of type dlhdl.Processorconfig.

    Example: dlhdl.buildProcessor(hPC)

    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.

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

    Example:

    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 set OverrideResourceCheck to false, the buildProcessor 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