Error: VCP2505 : Duplicate identifier: <identifier>


The message appears if a file with a specific identifier is compiled twice in a single compilation run, as in the following example, where the first compilation is run explicitly ( file is specified in the alog command), and the second one is run implicitly (the is included in the with the include directive).


To trigger the error, compile the files with the following command:


Where and are as follows:

File 1:

module m(a);
input reg a;

File 2:

`include ""
module top;
Ask Us a Question
Ask Us a Question
Captcha ImageReload Captcha
Incorrect data entered.
Thank you! Your question has been submitted. Please allow 1-3 business days for someone to respond to your question.
Internal error occurred. Your question was not submitted. Please contact us using Feedback form.
We use cookies to ensure we give you the best user experience and to provide you with content we believe will be of relevance to you. If you continue to use our site, you consent to our use of cookies. A detailed overview on the use of cookies and other website information is located in our Privacy Policy.