Set HDL-related parameters at model or block level
hdlset_param(path,Name,Value)
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
pair arguments. You can specify
several name and value pair arguments in any
order as Name1,Value1,…,NameN,ValueN
.
|
Path to the model or block for which Default: None |
Specify optional comma-separated pairs of Name,Value
arguments,
where Name
is the argument name and Value
is
the corresponding value. Name
must appear inside
single quotes (' '
). You can specify several name
and value pair arguments in any order
as Name1,Value1,...,NameN,ValueN
.
|
Default: None |
|
Default: Default value is dependent on the property. |
The following example uses the sfir_fixed
model
to demonstrate 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;
When you set multiple parameters on the same model
or block, use a single hdlset_param
command with
multiple pairs of arguments, rather than multiple hdlset_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 call hdlset_param
to
set the desired parameters.