Contents
©
National Instruments Corporation
vii
External_Input ( ) Procedure.............................................................3-10
External_Output( ) Procedure ...........................................................3-11
Linking Handwritten UCBs with AutoCode Applications..............................3-11
Calling UCBs...................................................................................................3-12
Fixed-Point Data Types ....................................................................3-17
Generic Functions .............................................................................3-17
Instantiated Functions .......................................................................3-17
Package Dependencies ......................................................................3-18
System-Level Parameters to Generate User Types...........................3-20
Overflow Protection ........................................................................................3-20
Stand-Alone Files ............................................................................................3-21
Compilation Example......................................................................................3-21
Fixed-Point Type Declarations........................................................................3-23
Generic Functions............................................................................................3-23
Bit-Wise Functions ..........................................................................................3-26
Instantiated Functions Package .......................................................................3-26
Operator Instantiations ......................................................................3-26
Conversion Function Instantiations ..................................................3-27
Sample Package ................................................................................3-28
Addition and Subtraction Functions ................................................................3-29
Multiplication and Division Functions............................................................3-31
System Scope Operators and Conversions........................................3-34
Known Ada Compiler Problems .....................................................................3-35
Comparing Results to SystemBuild’s Simulator.............................................3-35
No-Op Conversion Function ...........................................................................3-36