hdlsetup
Set model configuration parameters for HDL code generation
Syntax
Description
hdlsetup(
sets the parameters of the model specified by modelname)modelname to values
required for HDL code generation.
For a list of the parameters and values this function sets, see Parameter Configurations.
Examples
Use the hdlsetup function to set up a
Simulink® model for HDL code generation.
Open the model before.
modelname="hdlcoder_simple_up_counter";
open_system(modelname);In the MATLAB Command Window, use the hdlsetup
function to set model configuration parameters to values required for HDL
code
generation.
hdlsetup(modelname);
### ArtificialAlgebraicLoopMsg value is set from 'warning' to 'error' (revert). ### AlgebraicLoopMsg value is set from 'error' to 'warning' (revert). ### InheritOutputTypeSmallerThanSingle value is set from 'off' to 'on' (revert).
You can use the set_param function to change the
model settings. For
example:
set_param(modelname, "AlgebraicLoopMsg", "error");
Input Arguments
Name of the model for which you want to generate HDL code, specified as a string.
Data Types: string
More About
This table lists the model configuration parameters that
hdlsetup configures.
| Command-Line Parameter Setting | Configuration Parameter Dialog Box Setting |
|---|---|
Set Solver to
FixedStepDiscrete. | Set Type to
Fixed-set and
Solver to Discrete (no continuous
states). |
Set FixedStep to
auto. | Set Fixed-step size (fundamental sample
time) to auto. |
Set EnableMultiTasking to
off. | Clear the Treat each discrete rate as a separate task check box. |
Set AlgebraicLoopMsg to
error. | Set Algebraic loop to
error. |
Set SingleTaskRateTransMsg to
error. | Set Single task data transfer to
error. |
Set MultiTaskRateTransMsg to
error. | Set Multitask data transfer to
error. |
Set InheritOutputTypeSmallerThanSingle
to on. | Select Inherit floating-point output type smaller than single precision. |
Set BlockReduction to
off. | Clear the Block Reduction check box. |
Set ConditionallyExecuteInputs to
off. | Clear the Conditional input branch execution check box. |
Set DefaultParameterBehavior to
Inlined. You can set this parameter at
the command line by using set_param or
hdlsetup. | Set Default parameter behavior to
|
Set DataTypeOverride to
off. | No dialog box prompt. |
Set ProdHWDeviceType to
ASIC/FPGA->ASIC/FPGA. | Set Device vendor to
ASIC/FPGA. |
Set ShowLineDimensions. | In the Simulink Editor, on the Debug tab, select Information Overlays > Signal Dimensions. |
Set SampleTimeColors to
on. | In the Simulink Editor, on the Debug tab, select Information Overlays > Colors. |
Set ShowPortDataTypes to
on. | In the Simulink Editor, on the Debug tab, select Information Overlays > Alias Data Types. |
Set SignalLoggingSaveFormat to
Dataset. | No dialog box prompt. |
If these settings are incompatible with other configuration parameters in the model, HDL Coder™ displays a warning and lists the model parameters that have to be fixed.
Version History
Introduced in R2006b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)