メインコンテンツ

このページは前リリースの情報です。該当の英語のページはこのリリースで削除されています。

基本的な HDL アルゴリズム

R2026a
基本的な Simulink® ブロックを使用した簡単な HDL 設計の作成

HDL Coder ブロック ライブラリには、Simulink モデル化環境に追加して、HDL アルゴリズムを開発できる多くの基本的なブロックが含まれます。これらのブロックには、入力ソース、出力シンクや、数学演算および三角演算など、簡単なものから複雑なものまで実行するブロックが含まれます。

Simulink ライブラリ ブラウザーを絞り込んで HDL でサポートされたブロックのみを表示するには、「hdllib」と入力します。この節に記載されているブロックには、[HDL Coder] ライブラリでのみ使用可能なブロックが含まれます。Add および Product などのブロックは、ライブラリ ブラウザーの [Simulink] ライブラリにあります。

HDL コード生成でサポートされている Simulink ブロックのフィルターされたリストについては、Simulink ブロックのリスト (HDL コード生成) を参照してください。

関数

hdllibHDL コード生成と互換性のあるブロックを表示する

ブロック

すべて展開する

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 以降)
Sine HDL Optimized blockSine HDL Optimized and Cosine HDL OptimizedHDL コード生成用に最適化されたルックアップ テーブル法を使用して固定小数点の正弦波と余弦波を実装
HDL Counter blockHDL Counterフリーランまたはカウント制限ハードウェア カウンター
HDL Math Atan2 BlockAtan2CORDIC 近似手法を使用して Atan2 演算を計算し、レイテンシを加味してシミュレートする
HDL Math Sine BlockSinCORDIC 近似手法を使用して正弦演算を計算し、レイテンシを加味してシミュレートする
HDL Math Cosine BlockCosCompute cosine operation using CORDIC approximation method and simulate with latency
HDL Math Cos+jSin BlockCos+jSinCompute Cos+jSin operation using CORDIC approximation method and simulate with latency
HDL Math SinCos BlockSinCosCompute SinCos operation using CORDIC approximation method and simulate with latency
HDL Math rSqrt BlockrSqrtCompute reciprocal square-root operation and simulate with latency
HDL Math Sqrt BlockSqrtCompute Sqrt operation and simulate with latency
LUT based Sqrt block that has two input ports named, dataIn and validIn, and two output ports named, dataOut and validOut.SqrtLUTCompute square-root operation using lookup table (R2026a 以降)
HDL Math Divide BlockDivideCompute division operation and simulate with latency
HDL Math Reciprocal BlockReciprocalCompute reciprocal operation and simulate with latency

トピック

基本的なモデル化

サポートするデータ型

注目の例