Generate continuous or discrete sine wave (HDL Coder)
The Sine Wave block is available with DSP System Toolbox™.
For information about the simulation behavior and block parameters, see Sine Wave.
This block has a single, default HDL architecture.
For HDL code generation, you must select the following Sine Wave block settings:
Computation method: Table
lookup
Sample mode: Discrete
Output:
The output port cannot have data types single
or double
.
This block supports code generation for complex signals.