hdlget_param
Return value of specified HDL block-level parameter for specified block
Description
gets the value of a specified HDL property of the block or subsystem and returns the value to the output variable.p
= hdlget_param(block_path
,prop
)
Examples
HDL Block Property Value
Open thesfir_fixed
model. Set theOutputPipeline
parameter for the DUT subsystemsymmetric_fir
to3
by using thehdlset_param
function. Return the value of theOutputPipeline
parameter to the variablep
by using thehdlget_param
function.
opensfir_fixedhdlset_param("sfir_fixed/symmetric_fir","OutputPipeline",3) p = hdlget_param("sfir_fixed/symmetric_fir","OutputPipeline")
p = 3
All HDL Block Properties
Return HDL block parameters and values for the product blockm1
in thesymmetric_fir
subsystem that is in thesfir_fixed
model to the cell arrayp
.
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
Output Arguments
Tips
Use
hdlget_param
to obtain the value of HDL block parameters. For a list of block implementation parameters, seeHDL Block Properties: General.Use
hdldispmdlparams
to see the values of HDL model parameters. To obtain the value of general model parameters, use theget_param
function.