Adder

Generic N Bit Adder

Diagram

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 "highes" 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]

b

Type: DigitalInput[n]

c_in

Type: DigitalInput

s

Type: DigitalOutput[n]

c_out

Type: DigitalOutput

Components (1)

Adder

Type: FullAdder[n]