.Modelica.Electrical.Digital.Examples.Utilities.HalfAdder

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.


Generated at 2025-08-28T18:21:08Z by OpenModelicaOpenModelica 1.25.2 using GenerateDoc.mos