modelHalfAdder
Half adder
Information
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.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | delayTime | 0 | Delay time |
Connectors
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Digital.Gates.AndGate | AND | ||
| Modelica.Electrical.Digital.Gates.XorGate | XOR |