Chapter 3 Ada Language Reference© National Instruments Corporation 3-33 AutoCode ReferenceFor these types of conversions, the language-defined conversion is used.In general, when an explicit conversion is required and there is nospecification of which to choose, AutoCode/Ada will select the explicitrounding conversion.Using System-Level Parameters to Generate InstantiationsBefore you can use the system-level parameters to generate operator orconversion instantiations, all of the subsystems and procedures must begenerated. Simply scoping to a subsystem or procedure is not sufficient.Code must be generated so that the exact operators and conversion used inthe subsystem or procedure can be determined and recorded.After all of the subsystems and procedures are generated, you must call thetpl function collect_fxpdata( ). Until this function is called, all ofthe fxp parameters are empty. After being called, all of the operators andconversions used in the whole model are placed into the system-level fxpparameters. No assumptions can be made about the order within a given listparameter. However, the nth element in one list does relate to the nthelement 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 conversioninstantiation cannot be declared twice in the package specification. Thus,duplicate operators or conversions must not be generated. Therefore, anyoperator or conversion identifier with a value of 1,000 or larger must not beinstantiated.In addition to containing all of the operators and conversion for all of thesubsystems and procedures in a model, the list can contain other operatorsor conversions that are used in the standard packages, such as the scheduleror system data package.Using Subsystem-Level Parameters to Generate InstantiationsBefore you can use the subsystem/procedure-level parameters to generateoperator or conversion instantiations, all of the subsystems and proceduresmust be code generated. Simply scoping to a subsystem or procedure is notsufficient. Code must be generated so the exact operators and conversionused in the subsystem or procedure can be determined and recorded.After all of the subsystems and procedures are generated, you must call thetpl function collect_fxpdata( ). Until this function is called and asubsystem or procedure is scoped, all of the sp_fxp parameters are empty.