Filter löschen
Filter löschen

HDL Sinusiod with phase offset and variable frequency

3 Ansichten (letzte 30 Tage)
Chris Burkhard
Chris Burkhard am 11 Okt. 2018
Hello everybody,
i try to setup a model with a sinus generator for HDL with variable frequncy. That works so far. But trying to add a phase offset is a problem.
One idea was to use delays with the current period as inputs so that the delay changes with frequency. When i try to generate the HDL code, there occures the error of the delay must be set via dialog. But a constant delay will change the phase-offset when changing the frequency?!
Does anyone has an idea about this?
Also the acceleration of the frequency is done via the multiplication of two counters which is the input for the HDL sin. Is there a more convenient way?

Antworten (1)

Bharath Venkataraman
Bharath Venkataraman am 13 Okt. 2018
You may be able to use the HDL Optimized NCO to meet your needs.

Kategorien

Mehr zu Code Generation finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by