Signal Processing Components

AddFix2 ( 2-Input Fixed-Point Adder )

Library Numeric, Math
Symbol

Parameters

NameDescriptionDefaultType
OverflowHandleroutput overflow characteristic: wrapped, saturate, zero saturate, warningwrapped enumerated
ReportOverflowsimulation overflow error report: DONT REPORT, REPORTREPORT enumerated
RoundFixfixed-point computations, assignments, and data type conversions: TRUNCATE, ROUNDTRUNCATE enumerated
UseArrivingPrecisionuse precision of arriving data: NO, YESYES enumerated
InputPrecisionprecision of input(used only if UseArrivingPrecision is set to NO)2.14 precision
OutputPrecisionprecision of output accumulation2.14 precision
Pin Inputs

Pin No.NameDescriptionSignal Type
1 input1  fix
2 input2  fix
Pin Outputs

Pin No.NameDescriptionSignal Type
3 output  fix
Notes/Equations/References

   1.   AddFix2 outputs the sum of the two inputs as a fixed-point value with precision specified by OutputPrecision.

   2.   If the fixed-point operations cannot fit into the precision specified, overflow occurs with the overflow characteristic specified by OverflowHandler. If ReportOverflow=REPORT, after the simulation has finished the number of overflow errors (if any) will be reported. RoundFix identifies whether fixed-point computations are truncate or round method. If UseArrivingPrecision=NO, the input is cast to the precision specified by InputPrecision.

For details on these fixed-point parameters refer to "Parameters for Fixed-Point Components" in the Agilent Ptolemy Simulation manual.