Download TBoaP User Manual - Bit Accurate Modelling
Transcript
15.2.1 Public Methods There are two available public methods. One is a simply copy routine, and the other provides configuration data for the numeric type. void copyConfig(const SimNumericConfiguration &orig); void SimRealFloatConfiguration::configureNumberSystem(int mantissaBits, int exponentBits, bool isSigned); 15.3 SimRealFloat The SimRealFloat class implements SimNumericType and extends SimRealFloatData for this numeric type, and the documentation for those data types should be referenced for further information on the available methods. class SimRealFloat : public SimNumericType, public SimRealFloatData Most of the numerical operations are performed by manuipulating the exponent and mantissa as required, and then calling the resync() method. This method is provides common code for adjusting the mantissa and exponent to make sure that the quantity is represented in a standard floating point form. (specifically, that the mantissa is at least 1 and less than 2). 65