Block: Maximum



PIC




Inports


In1

Input #1



In2

Input #2






Outports


Out

Maximum of Input #1 and Input #2




Description:

Outputs the greater value of the two input signals.

Calculation:

Out  = max  (In1, In2)

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 368
Revision 0.1
C lename Maximum_FiP8.c
H lename Maximum_FiP8.h

8 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int8          *In1; 
     int8          *In2; 
     int8          Out; 
} MAXIMUM_FIP8;

Implementation: FiP16


Name FiP16
ID 369
Revision 0.1
C lename Maximum_FiP16.c
H lename Maximum_FiP16.h

16 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int16         *In1; 
     int16         *In2; 
     int16         Out; 
} MAXIMUM_FIP16;

Implementation: FiP32


Name FiP32
ID 370
Revision 0.1
C lename Maximum_FiP32.c
H lename Maximum_FiP32.h

32 Bit Fixed Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     int32         *In1; 
     int32         *In2; 
     int32         Out; 
} MAXIMUM_FIP32;

Implementation: Float32


Name Float32
ID 371
Revision 0.1
C lename Maximum_Float32.c
H lename Maximum_Float32.h

32 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float32       *In1; 
     float32       *In2; 
     float32       Out; 
} MAXIMUM_FLOAT32;

Implementation: Float64


Name Float64
ID 372
Revision 0.1
C lename Maximum_Float64.c
H lename Maximum_Float64.h

64 Bit Floating Point Implementation

Data Structure:

typedef struct { 
     uint16        ID; 
     float64       *In1; 
     float64       *In2; 
     float64       Out; 
} MAXIMUM_FLOAT64;