Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
23 Views

error during compilation

hi

i am not able to compile vhd file generated from qysy (nios ).

error : can't compile duplicate declarations of entity "uart_1" into library "work".

 

please help me in resolving this error.

0 Kudos
2 Replies
Highlighted
Employee
14 Views

Hello Sharu,


A .qip file often compiles IP into different libraries. For example, if you create two DDR3 interfaces, they may both have a file called calibration.v(I'm making that up as an example). Now, in Verilog and VHDL you can't add two files with the same top level name. (They may be identical, but synthesis doesn't know that and doesn't check for it). Normally you would only add it once, but that would be a pain with IP, having to manage which files are duplicates from other IP and selectively removing them. The way it's handled is the .qip compiles them into libraries that match the IP name, so for example, you can have two distinct calibration.v files.  


If you search the .vqm, are there more than one module with that name? You need to compile the specified entities in different libraries.


Best regards,

Isaac Vazquez.


0 Kudos
Highlighted
Employee
9 Views

Hello, did this info works for you?


Best regards!



0 Kudos