필터 지우기
필터 지우기

How to get Sawtooth waveform that can be converted to HDL code

조회 수: 7 (최근 30일)
I have tried to generate a sine pwm using sine and saw-tooth comparison method.The sine PWM block simulated perfectly in the simulink. But error message came when converted to HDL. I have used HDL workflow Adviser for the conversion from simulink to HDL. Error message is no implementation block for signal generator(sawtooth wave).
How to generate a 25KHz sawtooth waveform(-1V to +1V) that can be converted to HDL code? I would like to implement the sine pwm through FPGA board.
Any idea how it is possible? or any alternate method possible for Sine PWM generation?
Regards,

채택된 답변

Tim McBrayer
Tim McBrayer 2013년 3월 25일
As you have noted, the Signal Generator block is not supported by HDL Coder. I don't think that HDL Coder can directly solve your problem here. You are asking for an analog signal out of your FPGA; HDL Coder is a digital design tool. If your board has a D-A converter on it that you can drive with your FPGA, then the digital circuitry needed is basically a simple counter with the desired timing.
  댓글 수: 1
Roy Francis
Roy Francis 2013년 5월 30일
I have tried with a counter free running, but the waveform generated is not a good sine pwm. Any alternate method available for the sine pwm (single phase) generation?
Regards,

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by