Main Content

getModuleProperty

Class: dlhdl.ProcessorConfig
Package: dlhdl

Use the getModuleProperty method to get values of module properties within the dlhdl.ProcessorConfig object

Description

The getModuleProperty(processorConfigObject,ModuleName,ModulePropertyName) method returns the value of the module property for modules within the dlhdl.ProcessorConfig object.

Input Arguments

expand all

Instance of the processor configuration object, specified as a dlhdl.ProcessorConfig object.

The dlhdl.ProcessorConfig object module name, specified as a character vector or string.

'conv', 'fc', or 'custom' module properties specified as character vector.

Example: "ConvThreadNumber" or 'ConvThreadNumber'

This table lists module names and module property names.

Examples

expand all

  1. Create an example object by using the dlhdl.ProcessorConfig class, and then use the getModuleProperty method to obtain the ConvThreadNumber.

    hPC = dlhdl.ProcessorConfig;
    hPC.getModuleProperty("conv","ConvThreadNumber")
  2. Once you execute the code, the result is:

    ans =
    
        16
  1. Create an example object by using the dlhdl.ProcessorConfig class, and then use the getModuleProperty method to obtain the ConvThreadNumber.

    hPC = dlhdl.ProcessorConfig;
    hPC.getModuleProperty("fc","InputMemorySize")
  2. Once you execute the code, the result is:

    ans =
    
           25088

Version History

Introduced in R2020b