Using Arithmetic Services in ASCET
ASCET supports the use of arithmetic services in the following cases:
- for physical specifications in ESDL and in block diagrams
- in classes, modules and state machines
- for offline and online experiments
- for micro-controller targets, experimental targets (rapid prototyping) and PC
The use of arithmetic services is directly linked to the code generation. The code generator takes the information regarding the function to be selected from the data types of the elements, which are linked with the corresponding inputs and outputs of an operation.
If, for example, an addition has two inputs of unsigned integer 8 bit type (uint8) and one output of unsigned integer 16 bit type (uint16), the code generator searches the current set for the +|u8|u8|u16 key. If the key is found, the code generator uses the function call stored there. Otherwise, depending on the type of the operation, it either uses the standard operation or generates an error message.
See also