Chapter 3 Ada Language Reference
© National Instruments Corporation 3-33 AutoCode Reference
For these types of conversions, the language-defined conversion is used.
In general, when an explicit conversion is required and there is no
specification of which to choose, AutoCode/Ada will select the explicit
rounding conversion.
Using System-Level Parameters to Generate InstantiationsBefore you can use the system-level parameters to generate operator or
conversion instantiations, all of the subsystems and procedures must be
generated. Simply scoping to a subsystem or procedure is not sufficient.
Code must be generated so that the exact operators and conversion used in
the subsystem or procedure can be determined and recorded.
After all of the subsystems and procedures are generated, you must call the
tpl function collect_fxpdata( ). Until this function is called, all of
the fxp parameters are empty. After being called, all of the operators and
conversions used in the whole model are placed into the system-level fxp
parameters. No assumptions can be made about the order within a given list
parameter. However, the nth element in one list does relate to the nth
element in another list, depending on the purpose of the lists.
For the fxp_operatorid_li and fxp_conversionid_li parameters,
these contain the type of operator or conversion to be instantiated.
However, the lists might contain duplicates. An operator or conversion
instantiation cannot be declared twice in the package specification. Thus,
duplicate operators or conversions must not be generated. Therefore, any
operator or conversion identifier with a value of 1,000 or larger must not be
instantiated.
In addition to containing all of the operators and conversion for all of the
subsystems and procedures in a model, the list can contain other operators
or conversions that are used in the standard packages, such as the scheduler
or system data package.
Using Subsystem-Level Parameters to Generate InstantiationsBefore you can use the subsystem/procedure-level parameters to generate
operator or conversion instantiations, all of the subsystems and procedures
must be code generated. Simply scoping to a subsystem or procedure is not
sufficient. Code must be generated so the exact operators and conversion
used in the subsystem or procedure can be determined and recorded.
After all of the subsystems and procedures are generated, you must call the
tpl function collect_fxpdata( ). Until this function is called and a
subsystem or procedure is scoped, all of the sp_fxp parameters are empty.