Appearance
Add2
Adds (or subtracts) two double signals: out = sign_aa + sign_bb. Each input has its own +/- sign so the same block can do a + b, a - b, or -a - b.
Category: Math
Keywords: +, -, Σ, sum, plus, minus, subtract, subtraction, summation, addition
Ports
| Name | Direction | Value type | Notes |
|---|---|---|---|
in_a | input | double | |
in_b | input | double | |
out | output | double |
Parameters
| Name | Label | Type | Default | Units | Description |
|---|---|---|---|---|---|
sign_a | Sign A | enum (+ / −) | 1 | — | |
sign_b | Sign B | enum (+ / −) | 1 | — |
Used in samples
Implemented in C++ class SimCompCtlAdd2 (components/control/CSim_comp_ctl_add2/sim_comp_ctl_add2.h).