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
Float32 32 Bit Floating Point Implementation
Float64 64 Bit Floating 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; 
     uint16        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; 
     uint16        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; 
     uint16        sign; 
} SUM_FIP32;

Implementation: Float32


Name Float32
ID 4803
Revision 0.1
C filename Sum_Float32.c
H filename Sum_Float32.h

32 Bit Floating Point Implementation



Controller Parameters


sign

Bitfield with sign information of inputs




Data Structure:

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

Implementation: Float64


Name Float64
ID 4804
Revision 0.1
C filename Sum_Float64.c
H filename Sum_Float64.h

64 Bit Floating Point Implementation



Controller Parameters


sign

Bitfield with sign information of inputs




Data Structure:

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