FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits

error during compilation

sharu12345
Beginner
478 Views

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
Isaac_V_Intel
Employee
469 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
Isaac_V_Intel
Employee
464 Views

Hello, did this info works for you?


Best regards!



0 Kudos
Reply