Getting Error while using HDL Coder

I am using Matlab to generate Verilog HDL code for Multivarient Newton Raphson method. I have attached my project along with the screenshot for the issue which i face while using the HDL coder. Kindly help me to resolve the issue.

3 Comments

Hi, I am unable to access the attachments. Can you please reshare them?
I had no problem accessing the attachment. I used "Save link as" to save the zip file (internal name: data.zip ) and unzipped the zip file to get a directory named Matlab_HDL_Coder that contained a simulink project and associated files.
@Shlok, I was able to reproduce the problem accessing the attachments.
Colleagues have done an initial investigation. The links work if you switch to the mathworks.com domain. To do so, scroll to the bottom of the page, click the country currently displayed on the right, and in the popup select "United States".
My apologies for the inconvenience.

Sign in to comment.

Answers (1)

If you are still facing the issue please reach out to MathWorks technical support.
I tried the example model in R2025b release and saw this valid error message.
>> makehdl('MV_newtonSubsystem/Subsystem')
In MATLAB Function, MV_newtonSubsystem/Subsystem/MATLAB Function, contains "'break'" . Use of while, break, continue, return, or parfor keywords in MATLAB code may prevents HDL code generation.

Categories

Find more on FPGA, ASIC, and SoC Development in Help Center and File Exchange

Asked:

on 23 Jun 2025

Answered:

on 2 Dec 2025

Community Treasure Hunt

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

Start Hunting!