Description
You may encounter the internal error in the Quartus® II software when synthesizing your design if you use a module named LPM_ADD_SUB. This error occurs due to a conflict in synthesis with the Altera LPM_ADD_SUB module.
Resolution
To avoid this error, rename the LPM_ADD_SUB module in your design.