Error: VCP2505 : Duplicate identifier: <identifier>

Description

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 (File1.sv file is specified in the alog command), and the second one is run implicitly (the File1.sv is included in the File2.sv with the include directive).

Example

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

alog File1.sv File2.sv

Where File1.sv and File2.sv are as follows:

File 1:

module m(a);
input reg a;
endmodule

File 2:

`include "File1.sv"
module top;
endmodule
Ask Us a Question
x
Ask Us a Question
x
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.