WOLFRAM SYSTEM MODELER

BinaryToIntegerConverter

Block that converts a binary array to an integer number

Wolfram Language

In[1]:=
SystemModel["EducationExamples.ElectricalEngineering.BinaryCounter.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 Examples (1)

FourBitCounter

EducationExamples.ElectricalEngineering.BinaryCounter

Demonstration model with a counter, clocks and a binary to integer converter