Contenido principal

dlhdl.buildProcessor

R2026b

Build and generate custom processor IP

    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 = '';
    hPC.UseVendorLibrary = 'off';

    Generate a generic deep learning processor IP core.

    dlhdl.buildProcessor(hPC)

    Input Arguments

    collapse all

    Processor configuration, specified as a dlhdl.ProcessorConfig object.

    Name-Value Arguments

    collapse all

    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.

    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 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'

    Limitations

    When you set the deep learning processor configuration

    • SynthesisTool to Altera Quartus II

    • ProcessorDataType to int8

    • ConvThreadNumber to 4

    you must set TargetLanguage to Verilog.

    Version History

    Introduced in R2020b

    expand all