WOLFRAM SYSTEM MODELER
IntegerToBinaryConverterBlock that converts an integer number to a binary array. |
![]() |
SystemModel["EducationExamples.ElectricalEngineering.EightBitAdder.Components.IntegerToBinaryConverter"]
This block takes an integer number and converts it into an array of size n consisting of 1-bit numbers. 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.
This domain example is an informational resource made freely available by Wolfram Research.
All content in this bundle is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. By accessing the content or using it in any way, you accept and agree to be bound by the terms of this license. If you do not agree to these Terms of Use, you may not use this content. Wolfram Research reserves the right to change, modify, add to, or remove portions of these Terms of Use at any time without notice. Please refer back to www.wolfram.com for the latest Terms of Use.
A summary of the licensing terms can be found at:
http://creativecommons.org/licenses/by-nc-sa/3.0
The full legal code can be found at:
http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode
n |
Value: 8 Type: Integer Description: Number of bits. |
---|
![]() |
u |
Type: IntegerInput |
---|---|---|
![]() |
y |
Type: DigitalOutput[n] |
![]() |
EducationExamples.ElectricalEngineering.EightBitAdder.Components 8-bit adder component. |