Sine, Cosine
Implement fixed-point sine or cosine wave using lookup table approach that exploits quarter wave symmetry
- 库:
Simulink / Lookup Tables
Description
The Sine and Cosine block implements a sine and/or cosine wave in fixed point using a lookup table method that exploits quarter wave symmetry. The block can output the following functions of the input signal, depending upon what you select for the输出公式parameter:
sin(2πu)
cos(2πu)
exp(j2πu)
sin(2πu) and cos(2πu)
You define the number of lookup table points in the查找表的数据点数parameter. The block implementation is most efficient when you specify the lookup table data points to be(2^n)+1
, wherenis an integer.
Use theOutput word lengthparameter to specify the word length of the fixed-point output data type. The fraction length of the output is the output word length minus 2.
端口
输入
Output
Parameters
Model Examples
块特征
Data Types |
|
直接进料 |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
See Also
Sine Wave|Trigonometric Function|Sine HDL Optimized, Cosine HDL Optimized(HDL Coder)