WOLFRAM SYSTEM MODELER

FullAdder

Adding circuit for binary numbers with input carry bit

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Electrical.Digital.Examples.Utilities.FullAdder"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

FullAdder is a two bit adder with additional carry in bit which is composed by Gates components.

Its logic behavior is like this:

FullAdder behavior

input a

input b

input carry c_in

sum s

output carry c_out

0

0

0

0

0

1

0

0

1

0

0

1

0

1

0

1

1

0

0

1

0

0

1

0

1

1

0

1

0

1

0

1

1

0

1

1

1

1

1

1

Connectors (5)

a

Type: DigitalInput

Description: Input DigitalSignal as connector

b

Type: DigitalInput

Description: Input DigitalSignal as connector

c_in

Type: DigitalInput

Description: Input DigitalSignal as connector

s

Type: DigitalOutput

Description: Output DigitalSignal as connector

c_out

Type: DigitalOutput

Description: Output DigitalSignal as connector

Components (3)

Adder2

Type: HalfAdder

Description: Half adder

Adder1

Type: HalfAdder

Description: Half adder

OR

Type: Or

Description: Or logic component with multiple input and one output

Used in Examples (2)

FullAdder

Modelica.Electrical.Digital.Examples

Full 1 Bit Adder Example

Adder4

Modelica.Electrical.Digital.Examples

4 Bit Adder Example

Used in Components (1)

Adder

Modelica.Electrical.Digital.Examples.Utilities

Generic N Bit Adder