AdderGeneric N Bit Adder |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
The Adder is a generic n bit adder which is composed as a chain of FullAdder components. n can be chosen by the user, a and b are the n bit input vectors, s is the sum vector, and c_out is the carry bit of the "highest" FullAdder. All components are built up by Gate components.
n |
Value: 2 Type: Integer Description: Number of single adders |
---|
a |
Type: DigitalInput[n] |
|
---|---|---|
b |
Type: DigitalInput[n] |
|
c_in |
Type: DigitalInput |
|
s |
Type: DigitalOutput[n] |
|
c_out |
Type: DigitalOutput |
Adder |
Type: FullAdder[n] |
---|