FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

error during compilation

sharu12345
Beginner
231 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
222 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.


Isaac_V_Intel
Employee
217 Views

Hello, did this info works for you?


Best regards!



Reply