WOLFRAM SYSTEM MODELER
HalfAdderAdding circuit for binary numbers without input carry bit |
SystemModel["Modelica.Electrical.Digital.Examples.HalfAdder"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This example demonstrates an adding circuit for binary numbers, which internally realizes the interconnection to And and to Xor in the final sum.
a b c s t 1 0 1 0 1 0 1 1 0 2 1 1 0 1 3 0 0 0 0 4
t is the pick-up instant of the next bit(s) in the simulation. The simulation stop time should be 5 seconds.
a |
Type: Table Description: Digital Tabular Source |
|
---|---|---|
b |
Type: Table Description: Digital Tabular Source |
|
Adder |
Type: HalfAdder Description: Half adder |
|
s |
Type: LogicToReal Description: Logic to Real converter |
|
c |
Type: LogicToReal Description: Logic to Real converter |