| HalfAdderHalf adder |  | 
This information is part of the Modelica Standard Library maintained by the Modelica Association.
HalfAdder is a two bit adder which is composed by Gates components.
Its logic behavior is like this:
HalfAdder behavior
| input a | input b | sum s | carry c | 
| 0 | 0 | 0 | 0 | 
| 1 | 0 | 1 | 0 | 
| 0 | 1 | 1 | 0 | 
| 1 | 1 | 0 | 1 | 
The parameter delayTime is the delay time (tLH=tHL) of both the components.
| delayTime | Value: 0 Type: Real Description: Delay time | 
|---|
|  | b | Type: DigitalInput | 
|---|---|---|
|  | s | Type: DigitalOutput | 
|  | a | Type: DigitalInput | 
|  | c | Type: DigitalOutput | 
|  | Modelica.Electrical.Digital.Examples Adding circuit for binary numbers without input carry bit | 
|  | Modelica.Electrical.Digital.Examples.Utilities Adding circuit for binary numbers with input carry bit |