hdlset_param
Set HDL-related parameters at model or block level
Description
hdlset_param(
sets HDL-related parameters in the block or model referenced by
path
,Name,Value
)path
. The parameters to be set, and their values, are
specified by one or more Name,Value
arguments. You can specify
several name and value arguments in any order as
Name1,Value1,…,NameN,ValueN
.
Examples
HDL Block Property for Multiple Blocks
This example uses the sfir_fixed
model to show how to locate a
group of blocks in a subsystem and specify the same output pipeline depth for each
of the blocks.
open sfir_fixed; prodblocks = find_system("sfir_fixed/symmetric_fir", "BlockType", "Product"); for ii=1:length(prodblocks), hdlset_param(prodblocks{ii}, "OutputPipeline", 2), end;
Input Arguments
Tips
When you set multiple parameters on the same model or block, use a single
hdlset_param
command that has multiple pairs of arguments, rather than multiplehdlset_param
commands. This technique is more efficient because using a single call requires evaluating parameters only once.To set HDL block parameters for multiple blocks, use the
find_system
function to locate the blocks of interest. Then, use a loop to iterate over the blocks and callhdlset_param
to set the parameters.