hdlget_param - Return value of specified HDL block-level parameter for specified block - MATLAB (original) (raw)

Main Content

Return value of specified HDL block-level parameter for specified block

Syntax

Description

[p](#mw%5Fd39967d8-0e0e-431f-8819-72ae7d3230ee) = hdlget_param([block_path](#mw%5F1358e0cf-cc3c-4706-a794-42087f0c2a7b),[prop](#mw%5Fb485fc9c-4ec1-4382-b0d5-b2050ea87232)) gets the value of a specified HDL property of the block or subsystem and returns the value to the output variable.

example

Examples

collapse all

HDL Block Property Value

Open the sfir_fixed model. Set theOutputPipeline parameter for the DUT subsystemsymmetric_fir to 3 by using the hdlset_param function. Return the value of theOutputPipeline parameter to the variable p by using the hdlget_param function.

open sfir_fixed hdlset_param("sfir_fixed/symmetric_fir","OutputPipeline",3) p = hdlget_param("sfir_fixed/symmetric_fir","OutputPipeline")

All HDL Block Properties

Return HDL block parameters and values for the product block m1 in the symmetric_fir subsystem that is in thesfir_fixed model to the cell array p.

p = hdlget_param("sfir_fixed/symmetric_fir/m1","all")

p =

1×18 cell array

Columns 1 through 8

{'Architecture'}  {'Linear'}  {'ConstrainedOutp…'}  {[0]}  {'DSPStyle'}  {'none'}  {'HandleDenormals'}  {'inherit'}

Columns 9 through 16

{'InputPipeline'}  {[0]}  {'LatencyStrategy'}  {'inherit'}  {'MantissaMultipl…'}  {'inherit'}  {'NFPCustomLatency'}  {[0]}

Columns 17 through 18

{'OutputPipeline'}  {[0]}

Input Arguments

collapse all

block_path — Block or subsystem path

string scalar | character vector

Path to a block or subsystem in the current model.

Example: "modelname/subsysA/blockName"

prop — HDL block property

string scalar | character vector

A string scalar or character vector that designates one of the following:

Example: "OutputPipeline"

Output Arguments

collapse all

p — Variable containing HDL block property value

none

p stores the value of the HDL block property specified byprop. The data type and dimensions of p depend on the data type and dimensions of the value returned. If prop is set to "all", p is a cell array.

Tips

Version History

Introduced in R2010b