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(ModuleName,ModulePropertyName) method returns the value of the module property for modules within the dlhdl.ProcessorConfig object.

Input Arguments

expand all

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

'conv', 'fc', or 'adder' 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
Introduced in R2020b