Block: Sum



PIC




Inports


In1

Input #1



In2

Input #2



In3

Input #3



In4

Input #4



In5

Input #5



In6

Input #6



In7

Input #7



In8

Input #8






Outports


Out

Result






Mask Parameters


In1

Input #1



In2

Input #2



In3

Input #3



In4

Input #4



In5

Input #5



In6

Input #6



In7

Input #7



In8

Input #8




Description:

Sum of inputs:

+ ... Input will be added to result.

- ... Input will be subtracted from result.

0 ... Input will be ignored.

Implementations:
FiP8 8 Bit Fixed Point Implementation
FiP16 16 Bit Fixed Point Implementation
FiP32 32 Bit Fixed Point Implementation

Implementation: FiP8


Name FiP8
ID 4800
Revision 0.1
C filename Sum_FiP8.c
H filename Sum_FiP8.h

8 Bit Fixed Point Implementation



Controller Parameters


sign

Bitfield with sign information of inputs




Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In1; 
     int8          *In2; 
     int8          *In3; 
     int8          *In4; 
     int8          *In5; 
     int8          *In6; 
     int8          *In7; 
     int8          *In8; 
     int8          Out; 
     int16         sign; 
} SUM_FIP8;

Implementation: FiP16


Name FiP16
ID 4801
Revision 0.1
C filename Sum_FiP16.c
H filename Sum_FiP16.h

16 Bit Fixed Point Implementation



Controller Parameters


sign

Bitfield with sign information of inputs




Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In1; 
     int16         *In2; 
     int16         *In3; 
     int16         *In4; 
     int16         *In5; 
     int16         *In6; 
     int16         *In7; 
     int16         *In8; 
     int16         Out; 
     int16         sign; 
} SUM_FIP16;

Implementation: FiP32


Name FiP32
ID 4802
Revision 0.1
C filename Sum_FiP32.c
H filename Sum_FiP32.h

32 Bit Fixed Point Implementation



Controller Parameters


sign

Bitfield with sign information of inputs




Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In1; 
     int32         *In2; 
     int32         *In3; 
     int32         *In4; 
     int32         *In5; 
     int32         *In6; 
     int32         *In7; 
     int32         *In8; 
     int32         Out; 
     int16         sign; 
} SUM_FIP32;