WOLFRAM SYSTEM MODELER

Adder

Generic N Bit Adder

Diagram

Wolfram Language

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

Information

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

The Adder is a generic n bit adder which is composed as a chain of FullAdder components. n can be chosen by the user, a and b are the n bit input vectors, s is the sum vector, and c_out is the carry bit of the "highest" FullAdder. All components are built up by Gate components.

Parameters (1)

n

Value: 2

Type: Integer

Description: Number of single adders

Connectors (5)

a

Type: DigitalInput[n]

Description: Input DigitalSignal as connector

b

Type: DigitalInput[n]

Description: Input DigitalSignal as connector

c_in

Type: DigitalInput

Description: Input DigitalSignal as connector

s

Type: DigitalOutput[n]

Description: Output DigitalSignal as connector

c_out

Type: DigitalOutput

Description: Output DigitalSignal as connector

Components (1)

Adder

Type: FullAdder[n]

Description: Adding circuit for binary numbers with input carry bit