WOLFRAM SYSTEM MODELER

BinaryToIntegerConverter

Block that converts a binary array to an integer number.

Wolfram Language

In[1]:=
SystemModel["EducationExamples.ElectricalEngineering.EightBitAdder.Components.BinaryToIntegerConverter"]
Out[1]:=

Information

Model Principles

This block takes an array of size n consisting of 1-bit numbers and converts the array into an integer number. The parameter n, the total number of bits, can be specified so that the block can be used for conversions of arbitrary size. The maximum size of the integer that the block can take follows 2n-1 if the integer is unsigned or 2n-1-1 if the integer is signed.

Parameters (1)

n

Value: 8

Type: Integer

Description: Number of bits.

Connectors (2)

x

Type: DigitalInput[n]

Description: Input DigitalSignal as connector

y

Type: IntegerOutput

Description: 'output Integer' as connector

Used in Components (1)

Adder

EducationExamples.ElectricalEngineering.EightBitAdder.Components

8-bit adder component.