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 the sfir_fixed
model. Set the OutputPipeline
parameter for the DUT subsystem symmetric_fir
to 3
by
using the hdlset_param
function. Return the value of
the OutputPipeline
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")
p = 3
All HDL Block Properties
Return HDL block parameters and values for the product block m1
in
the symmetric_fir
subsystem that is in the sfir_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
Output Arguments
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 theget_param
function.