主要内容

支持的模块和数据类型

R2026b
支持的模块库和数据类型

HDL Coder 模块库包含许多基本模块,您可将其添加到 Simulink® 建模环境并开发 HDL 算法。这些模块包括输入源、输出信宿及执行基础到复杂数学和三角运算的模块。

HDL Coder 模块库包含许多基本模块,您可将其添加到 Simulink 建模环境并开发 HDL 算法。这些模块包括输入源、输出信宿及执行基础到复杂数学和三角运算的模块。

要过滤 Simulink 库浏览器以仅显示 HDL 支持的模块,请输入 hdllib。本节列出的模块包括仅在 HDL Coder 库中可用的模块。Add 和 Product 等模块在库浏览器的 Simulink 库中提供。

有关过滤后的支持 HDL 代码生成的 Simulink 模块的列表,请参阅 Simulink 模块列表(HDL 代码生成)。

函数

hdllib显示与 HDL 代码生成兼容的模块

模块

全部展开

Bit Concat blockBit Concat将最多 128 个输入字串联成单个输出
Bit Reduce blockBit Reduce对所有输入信号位进行 AND、OR 或 XOR 位归约,结果为单个位
Bit Rotate blockBit Rotate按位的位置旋转输入信号
Bit Shift blockBit Shift输入信号的逻辑或算术移位
Bit Slice blockBit Slice从输入信号返回连续位字段
Bits to Word BlockBits to WordConvert vector of bits to integer (自 R2023a 起)
Word to Bits BlockWord to BitsConverts real numbers to vector of bits (自 R2023a 起)
Deserializer1D blockDeserializer1DConvert scalar stream or smaller vectors to vector signal
Multiply-Accumulate blockMultiply-AccumulatePerform a multiply-accumulate operation on the inputs
Multiply-Add blockMultiply-AddMultiply-add combined operation
Serializer1D blockSerializer1DConvert vector signal to scalar or smaller vectors
Dual Port RAM System blockDual Port RAM SystemDual-port RAM that supports simultaneous read and write operations
Dual Rate Dual Port RAM blockDual Rate Dual Port RAMDual-port RAM that supports two rates
HDL FIFO blockHDL FIFOStore sequence of input samples in first in, first out register
Simple Dual Port RAM System blockSimple Dual Port RAM SystemSimple dual-port RAM that supports simultaneous read and write operations
Single Port RAM System blockSingle Port RAM SystemSingle-port RAM that supports sequential read and write operations
True Dual Port RAM System blockTrue Dual Port RAM SystemTrue dual-port RAM that supports simultaneous read and write operations (自 R2023b 起)
Simple Tri Port RAM System blockSimple Tri Port RAM SystemSimple tri-port RAM that supports simultaneous read and write operations (自 R2023b 起)
Unit Delay Enabled Synchronous blockUnit Delay Enabled SynchronousDelay input signal by one sample period when external Enable signal is true
Unit Delay Resettable Synchronous blockUnit Delay Resettable SynchronousDelay input signal by one sample period when external Reset signal is false
Unit Delay Enabled Resettable Synchronous blockUnit Delay Enabled Resettable SynchronousDelay input signal by one sample period when external Enable signal is true and external Reset signal is false
Tapped Delay Enabled Synchronous BlockTapped Delay Enabled SynchronousDelay scalar signal multiple sample periods and output all delayed versions when external Enable signal is true (自 R2023a 起)
Tapped Delay Resettable Synchronous BlockTapped Delay Resettable SynchronousDelay scalar signal multiple sample periods and output all delayed versions when external Reset signal is false (自 R2023a 起)
Tapped Delay Enabled Resettable Synchronous BlockTapped Delay Enabled Resettable SynchronousDelay scalar signal multiple sample periods and output all delayed versions when external Enable signal is true and external Reset signal is false (自 R2023a 起)
Enabled Delay blockEnabled DelayDelay input signal by fixed or variable sample periods when external enable signal is true (自 R2024b 起)
Enabled Resettable Delay blockEnabled Resettable DelayDelay input signal by fixed or variable sample periods when external Enable signal is true and external Reset signal is false (自 R2024b 起)
State Control blockState ControlSpecify synchronous reset and enable behavior for blocks with state
Synchronous Subsystem blockSynchronous SubsystemRepresent subsystem that has synchronous reset and enable behavior
Enabled Synchronous Subsystem blockEnabled Synchronous SubsystemRepresent enabled subsystem that has synchronous reset and enable behavior
Resettable Synchronous Subsystem blockResettable Synchronous SubsystemRepresent resettable subsystem that has synchronous reset and enable behavior
Sine HDL Optimized blockSine HDL Optimized and Cosine HDL OptimizedImplement fixed-point sine and cosine wave by using lookup table approach optimized for HDL code generation
HDL Counter blockHDL CounterFree-running, count-limited, or modulo hardware counter
HDL Math Atan2 BlockAtan2使用 CORDIC 逼近方法计算 Atan2 运算,并进行带延迟的仿真
HDL Math Sine BlockSin使用 CORDIC 逼近方法计算正弦运算并带延迟进行仿真
HDL Math Cosine BlockCos使用 CORDIC 逼近方法计算余弦运算并带延迟进行仿真
HDL Math Cos+jSin BlockCos+jSin使用 CORDIC 逼近方法计算 Cos+jSin 运算并带延迟进行仿真
HDL Math SinCos BlockSinCos使用 CORDIC 逼近方法计算 SinCos 运算并带延迟进行仿真
HDL Math rSqrt BlockrSqrtCompute reciprocal square-root operation and simulate with latency
HDL Math Sqrt BlockSqrtCompute Sqrt operation and simulate with latency
HDL Math Divide BlockDivideCompute division operation and simulate with latency
HDL Math Reciprocal BlockReciprocalCompute reciprocal operation and simulate with latency

主题

模块支持

数据类型支持

基础建模