Engee 文档

Integer to Bit Converter

将整数的向量映射到位的向量。

类型: IntToBit

图书馆中的路径:

/Communication Systems/Utility Blocks/Integer to Bit Converter

资料描述

Integer to Bit Converter 将输入向量中的每个整数(或定点值)映射到输出向量中的一组位。

港口

输入

# IN_1 — 的输入信号
一个整数标量 | 向量是一列整数

Details

输入信号是整数或长度的列向量的形式 整数。

如果 M 由参数设置 Number of bits per integer(M) :

  • 当为参数 Number of bits per integer(M) 值设置 未签名 输入值必须是范围内的整数 [0,(2M-1)].

  • 当为参数 Number of bits per integer(M) 值设置 签署 输入值必须是范围内的整数 [(-2M-1),(2M-1—1)].

数据类型

漂浮物16, 漂浮物32, 漂浮64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, 布尔

复数支持

是的

输出

# OUT_1 — 的输出信号
位标量 | 向量是一列位

Details

作为标量或长度位的列向量返回的输出信号 .

数据类型

漂浮物16, 漂浮物32, 漂浮64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, 布尔

复数支持

是的

参数

主要

# Number of bits per integer(M) — 每整数位数(M)
Real number

Details

值范围内作为整数映射到输入中的每个整数的输入位数 [1, 64].

默认值

3

程序使用名称

nBits

可调谐

可计算

# Treat input values as — 如何处理输入值
Unsigned | Signed

Details

指定是否应将整数值的输入范围视为有符号(Signed)或无符号(Unsigned).

Unsigned | Signed

默认值

Unsigned

程序使用名称

signedinputValues

可调谐

可计算

# Output bit order — 输出位的顺序
MSB first | LSB first

Details

判断输出的第一位是否为最高位(MSB first)或低阶位(LSB first).

MSB first | LSB first

默认值

MSB first

程序使用名称

bitOrder

可调谐

可计算

# Output data type — 输出数据的类型
Inherit: auto | Smallest unsigned integer | Same as input | Float64 | Float32 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Bool

Details

指定输出位的数据类型。

Inherit: auto | Smallest unsigned integer | Same as input | Float64 | Float32 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Bool

默认值

Inherit: auto

程序使用名称

outDtype

可调谐

可计算

附加选项

C 代码生成: 是