필터 지우기
필터 지우기

HDL Sinusiod with phase offset and variable frequency

조회 수: 3 (최근 30일)
Chris Burkhard
Chris Burkhard 2018년 10월 11일
답변: Bharath Venkataraman 2018년 10월 13일
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?

답변 (1개)

Bharath Venkataraman
Bharath Venkataraman 2018년 10월 13일
You may be able to use the HDL Optimized NCO to meet your needs.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by