Problems in converting Matlab code to VERILOG (HDL Coder)
Mostra commenti meno recenti
Hi I have been trying to generate VERILOG code for Automotive Adaptive Cruise control model. I am converting matlab code into verilog code so that I can implement it on FPGA. But the conversion is not possible.
I have some error like this: "Expected R to be one of these types: double. Instead it is of type Embedded.fi"
I do not understand this error completely. Some one please help me out in solving this.
Regards
1 Commento
Kaustubha Govind
il 20 Set 2013
Perhaps you can also post the snippet of code that the error points to.
Risposte (4)
Kiran Kintali
il 20 Set 2013
0 voti
Please contact technical support with the MATLAB code.
Most likely you are running into an operation or function which is not supported and needs to be replaced with a LUT or other approximation.
The error message seems to indicate variable 'R' cannot be fi type since it is not supported by Fixed-Point Designer.
Ravikanth
il 21 Set 2013
0 voti
Ravikanth
il 21 Set 2013
0 voti
3 Commenti
Kaustubha Govind
il 23 Set 2013
Ravikanth: What specific line(s) does the error occur at? Does the error message point to a specific part of the code?
Ravikanth
il 24 Set 2013
Kaustubha Govind
il 26 Set 2013
Is the type of the variable 'a' double or fi? I don't see that line in the file that you attached.
The message about parallelization seems to suggest that you are attempting to generate code from a PARFOR loop or some other Parallel Computing construct. Such parallelized code produces calls to OpenMP in generated code.
Ravikanth
il 26 Set 2013
0 voti
Categorie
Scopri di più su Speed and Area Optimization in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!