Digital Adder block
This block is a binary adder with carry output. With a feedback from the carry to one of input, one can realize an accumulator with this block.
- Number of bits
Number of bits of the internal registers.
Properties : Type 'vec' of size 1.
- Output type
Output data type
- 1
double
- 3/4/5
int32/int16/int8
- 6/7/8
uint32/uint16/uint8
- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- regular inputs:
- port 1 : size [-1,-2] / type -1
- port 2 : size [-1,-2] / type -1
- regular outputs:
- port 1 : size [-1,-2] / type 3
- port 2 : size [-1,-2] / type 3
- 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: adder_c
- MODNUMCOS/macros/scicos_blocks/Integer/ADDER_c.sci [view code]
- MODNUMCOS/routines/integer/adder_c.c (Type 4) [view code]
INRIA A. Layec