Pablo,
The FREQ measure was added at the request of an internal Sandia user, and is not present in the HSPICE tool. The Xyce Reference Guide says this about the FREQ measure, which is admittedly unclear. So, maybe we need to update the .MEASURE section of the Reference Guide.
"An estimate of the frequency of <variable>, found by cycle counting during the simulation. Cycles are defined through the values of ON and OFF with MINVAL being used as a tolerance so that
the thresholds becomes (ON - MINVAL) and (OFF + MINVAL)."
If we look at the source code in the file IOInterfacePKG/Output/N_IO_MeasureFrequency.C then the "calculation result" (which is the value for the measure) is defined as:
calculationResult_ = (0.5 *(onToOffCount_ + offToOnCount_))/totalAveragingWindow_;
So, since the FREQ measure is essentially counting how many times the waveform passes through the ON value (from below) and through the OFF value (from above), the
onToOffCount_ + offToOnCount_ variables will both be integers
. The totalAveragingWindow_ is then equal to the total simulation time, or has been possibly windowed by the FROM and TO values for a given FREQ measure. So, it possible (depending on the totalAveragingTime_ value) for a FREQ measure to evaluate to an integer (or a close approximation of one).
-- The Xyce Team