Basic code generator with customiseable hooks and block libraries
This module implements a code-generator for Xcos with multiple back-ends. Using hooks and block library to specialize the code generator for a language or a platform. As it is fully implemented in Scilab it allow any user to overload / redefine some behaviors.
Currently it generates : Scilab code.
The generated Scilab code can also be used by a translator (from Scilab to anything else) like Scilab2C or emmtrix Code Generator.
ABS_VALUE | zero-crossing parameter is ignored |
BIGSOM_f | - |
CLOCK_c | independent events are re-synchronized to only one implicit master clock |
CONST_m | - |
CONVERT | - |
DEMUX | - |
DERIV | converted to Laplace discrete āzā notation |
DOLLAR_f | converted to Laplace discrete āzā notation |
EXTRACTOR | - |
FROM | resolved by the frontend |
FROMWSB | implemented by the user in Embedded Scilab |
GAINBLK_f | - |
scifunc_block_m | implemented by the user in Embedded Scilab. This is also used for |
GOTO | resolved by the frontend |
IN_f | label propagated as the input variable name of the superblock function |
INTRPLBLK_f | - |
LOGICAL_OP | - |
NRMSOM_f | - |
OUT_f | label propagated as the input variable name of the superblock function |
POWBKL_f | - |
PRODUCT | - |
RELATIONALOP | - |
SATURATION | zero-crossing parameter is ignored, it saturates only on the next discrete step |
SINBLK_f | - |
SQRT | - |
SUMMATION | - |
SWITCH2_m | - |
SUPER_f | Produce an independent Scilab macro ; the block label will be the function name and each port labels will be used as inputs and outputs names to mimic a function call. |
TANBLK_f | - |
TrigFun | - |