hdlset_param - Set HDL-related parameters at model or block level - MATLAB (original) (raw)

Set HDL-related parameters at model or block level

Syntax

Description

hdlset_param([path](#mw%5F650b74ab-ed8e-4a49-a2dd-d14c9941e52c),[Name,Value](#namevaluepairarguments)) sets HDL-related parameters in the block or model referenced bypath. 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 asName1,Value1,…,NameN,ValueN.

example

Examples

collapse all

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

collapse all

path — model, block, or subsystem path

string scalar | character vector

Path to the model, block, or subsystem for whichhdlset_param is to set one or more parameter values.

Example: "modelname/subsysA/blockName"

Name-Value Arguments

Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: hdlset_param("sfir_fixed", TargetLanguage = "Verilog")

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: hdlset_param("sfir_fixed", "TargetLanguage", "Verilog")

Name — HDL parameter or property name

string scalar | character vector

Name is a string scalar or character vector that specifies one of the following:

Value — HDL parameter or property value

string scalar | character vector

Value is a value to be applied to the corresponding property in a Name,Value argument. The property value is dependent on the property.

Tips

Version History

Introduced in R2010b