このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
MATLAB と Simulink における固定小数点算術演算
Fixed-Point Designer™ のブロックのライブラリには、一般的な算術演算や行列演算について、CORDIC などのアルゴリズムを使用したハードウェア効率に優れた実装が用意されています。HDL Coder™ を使用して、これらのブロックを含む設計の HDL コードを生成します。Fixed-Point Designer の関数のライブラリには、除算、指数演算、三角関数などの算術演算の CORDIC ベースおよびその他のハードウェア効率に優れた実装が含まれています。コーダーを使用して、それらの関数を組み込む設計用の C/C++ コードを生成します。
CORDIC (COordinate Rotation DIgital Computer) ベースのアルゴリズムには反復的なシフト加算演算のみを必要とするので、ハードウェア効率が最も高いアルゴリズムです。CORDIC アルゴリズムは、明示的な乗数を必要とせず、さまざまな関数を計算するのに適しています。
MATLAB® と Simulink® における行列演算 (線形システム ソルバーや行列分解を含む) の CORDIC ベースの実装については、MATLAB での固定小数点行列演算およびSimulink での固定小数点行列演算を参照してください。
関数
ブロック
トピック
- How to Set CORDIC Input Word Length and Maximum Shift Value to Achieve Desired Precision
This example provides a starting point for the input data type and number of iterations or maximum shift value required for the CORDIC algorithm to achieve a desired accuracy.
- ハードウェア効率に優れた Complex Divide HDL Optimized の実装
Complex Divide HDL Optimized ブロックの使用方法。
- ハードウェア効率に優れた Real Divide HDL Optimized の実装
Real Divide HDL Optimized ブロックの使用方法。
- Customize Output Value of Real Divide HDL Optimized Block When Denominator Is Zero
Use the divideByZero port to customize the value of the block output when division by zero occurs.
- 定数による HDL 用に最適化されたモジュロの実装
Modulo by Constant HDL Optimized ブロックの使用方法。
- HDL 用に最適化した正規化逆数の使用方法
この例では、関数
normalizedReciprocal
および Normalized Reciprocal HDL Optimized ブロックを使用して入力の正規化逆数を計算する方法と、使用のタイミングを示します。 - ハードウェア効率に優れた双曲線正接の実装
ハードウェア効率に優れた双曲線正接を実装します。
- Hardware-Efficient Rotation About Arbitrary Axis Using CORDIC
This example shows how to implement rotation about an arbitrary axis using the CORDIC algorithm in Simulink®. The resulting model supports HDL code generation for deployment to FPGA or ASIC devices.
- Hardware-Efficient Euler Rotations Using CORDIC
This example shows how to implement Euler rotations using a CORDIC kernel. The resulting model is deployable to FPGA or ASIC devices.
- Hardware-Efficient Rotation About Arbitrary Axis Using CORDIC
This example shows how to implement rotation about an arbitrary axis using the CORDIC algorithm in Simulink®. The resulting model supports HDL code generation for deployment to FPGA or ASIC devices.