Error in converting function into fixed point using HDL coder.

Hello every one, I am trying to optimize the coefficients of FIR Low pass filter using PSO algorithm. I have done with matlab code now want to convert matlab code to vhdl using HDL coder. there is certain error fitness function in line 13 while performing fixed point conversion. can any one tell me how to remove this error. thanks in advance.

댓글 수: 2

I think the issue is that the freqz function is not supported for HDL code generation (it does not support fixed point data as input, which is what the MATLAB to HDL conversion is doing).
I don't know what part of this design you are actually wanting to generate HDL code for... Do you actually intend to generate HDL for PSO and/or fitness functions? Or do you want to generate HDL with the optimized filter coefficients generated by your algorithm?
Thanks John for response. basically i intend to generate VHDL code for PSO algorithm and fitness function.

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

답변 (0개)

질문:

2018년 3월 10일

댓글:

2018년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by