Error during HDL code conversion using HDLWorkFlow Advisor

3 views (last 30 days)
Hello, I have created a three phase sine wave using CORDIC sine block in the Simulink. This is to be used for a Sine PWM generation. The model simulated perfectly, but during HDL conversion using HDL WorkFlow Advisor, the following error reported:
| | * *"SPWM_VHz/Sine1/Sine/Look-Up Table Error: The "Use last table value..." parameter on the Lookup Table (n-D) block must be selected for HDL code generation."
"SPWM_VHz/Sine1/Sine/Look-Up Table Error: "Require all inputs to have the same data type" must be selected on the Lookup Table (n-D) for HDL code generation."* * | |
*"SPWM_VHz/Sine1/Sine/Look-Up Table Warning: Using linear interpolation on the Lookup Table (n-D) block requires a divide operator in the generated HDL which may not be synthesizable."
The sine waveform used in the block is set in sample based mode from Simulink. Number of samples used is 1024 samples (2^10 +1 samples/cycle). The model sample time 1us.*
I have enclosed the model for your reference.
Thanking you in advance,
Roy

Accepted Answer

Tim McBrayer
Tim McBrayer on 23 Jun 2014
This issue has been fixed in R2014a and newer releases. For earlier releases you will need to break the library link and manually make the modifications that the error messages are recommending to the LUT block contained within the Sine block.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!