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.
Examples
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
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:
- The name of an HDL block property of the block or subsystem specified by
path
. "all"
: Ifprop
is set to"all"
,hdlget_param
returnsName,Value
pairs for HDL properties of the specified block or subsystem.
Example: "OutputPipeline"
Output Arguments
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
- Use
hdlget_param
to obtain the value of HDL block parameters. For a list of block implementation parameters, see HDL Block Properties: General. - Use hdldispmdlparams to see the values of HDL model parameters. To obtain the value of general model parameters, use the get_param function.
Version History
Introduced in R2010b