Using Implementation Casts in ESDL
Unlike the scenario in the block diagram editor, implementation casts can only be added to the ESDL editor using a button.
- Add the required number of implementation casts using the
Implementation cast button. Use the implementation casts in ESDL code in accordance with the rules listed in Implementation Casts in ESDL and references therein.
- Implementation casts are referenced by their names.
- They are always enclosed in parentheses.
- They are immediately in front of the element they refer to.
- If an implementation cast refers to the result of an operation, this operation has to be enclosed in parentheses. The operation can be part of a larger calculation.
Note |
|---|
When you apply an implementation cast to a logical variable or expression, an error message is generated during code generation. |
See also