Integer modulo function block
This block is a nonlinear function modulo where the input and output
are integer values.
According to the parameter 'Nbit', the output can't overflow the values
2(Nbit-1)-1 and -2(Nbit-1) which are defined by the signed value of
an integer using the 2's complement arithmetic.
The values of the output are then always in [-2(Nbit-1);2(Nbit-1)-1] and
this function is like a Nbit quantifier.
The output can be negative, positive or zero.
Figure 1: Integer modulo function
- Number of bit
The number of bit per integer.
Type 'vec' of size -1.
- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- regular inputs:
- port 1 : size [1,1] / type 1
- regular outputs:
- port 1 : size [1,1] / type 1
- number/sizes of activation inputs: 0
- number/sizes of activation outputs: 0
- continuous-time state: no
- discrete-time state: no
- object discrete-time state: no
- name of computational function: imodulo
- MODNUMCOS/macros/scicos_blocks/NonLinear/IMODULO_f.sci [view code]
- MODNUMCOS/routines/nonlinear/imodulo.c (Type 2) [view code]
IRCOM Group Alan Layec