Model Transformation: Simulink
From UcgnWiki
(→Overview) |
(→Constraints) |
||
Line 9: | Line 9: | ||
These were some of the design requirements for the UCGN output: | These were some of the design requirements for the UCGN output: | ||
* Clearly readable source-code | * Clearly readable source-code | ||
- | * Separation of functionality and parameters ("tunable parameters") | + | * Separation of functionality and parameters ("tunable parameters")<ref>Let's say we want to use the workspace parameters AlphaMax = 12.0 as a tunable parameter. If a Gain block then contains "1.25 * AlphaMax" the resulting code must under no circumstances have the hard-coded value 15 in that place.</ref> |
* Robust data storage (compile-time static structures in favor of pointer run-time constructs) | * Robust data storage (compile-time static structures in favor of pointer run-time constructs) | ||
* Clear software architecture, direct correspondence to the model architecture | * Clear software architecture, direct correspondence to the model architecture | ||
Line 22: | Line 22: | ||
* Simulink user libraries (to enable re-use and collaborative development) | * Simulink user libraries (to enable re-use and collaborative development) | ||
* This set of [[Simulink_Supported_Blocks | Simulink blocks]] | * This set of [[Simulink_Supported_Blocks | Simulink blocks]] | ||
- | * Periodic, condition-driven Stateflow charts | + | * Periodic, condition-driven Stateflow charts (including flowgraph loops) |
- | * Structured data types through bus objects | + | * Structured data types through bus objects |
+ | * Simulink native enumerated types | ||
= Constraints = | = Constraints = | ||
Line 30: | Line 31: | ||
* Continuous systems | * Continuous systems | ||
* S-functions | * S-functions | ||
+ | * Fixed-point design | ||
* Embedded Matlab functions | * Embedded Matlab functions | ||
* Event-driven Stateflow charts | * Event-driven Stateflow charts | ||
Line 39: | Line 41: | ||
* For and While Iterators | * For and While Iterators | ||
* Nested bus-objects at system boundaries | * Nested bus-objects at system boundaries | ||
+ | * Arrays of bus-objects | ||
* Model referencing | * Model referencing | ||
* Multi-rate models | * Multi-rate models | ||
* Stateflow | * Stateflow | ||
- | |||
** Parallel AND state decomposition | ** Parallel AND state decomposition | ||
** Inner transitions | ** Inner transitions |