| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink HDL Coder |
| Contents | Index |
This section lists other limitations that apply when generating HDL code with the Embedded MATLAB Function block. These limitations are:
The HDL compatibility checker (checkhdl) performs only a basic compatibility check on the Embedded MATLAB Function block. HDL related warnings or errors may arise during code generation from an Embedded MATLAB Function block that is otherwise valid for simulation. Such errors are reported in a separate message window.
The Embedded MATLAB subset does not support nested functions. Subfunctions are supported, however. For an example, see Tutorial Example: Incrementer.
Use of multiple values on the left side of an expression is not supported. For example, an error results from the following assignment statement:
[t1, t2, t3] = [1, 2, 3];
![]() | Language Support | Generating Scripts for HDL Simulators and Synthesis Tools | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |