Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Compile - Error (10481): VHDL Use Clause error at auk_ddr_controller.vhd(35):

Hey, sorry, I just want to bring this over to the IP Discussion forum. Problem is here:

http://www.alteraforum.com/forum/showthread.php?t=4665 (http://www.alteraforum.com/forum/showthread.php?t=4665)

I'm trying to compile the PCIe to DDR2 reference design and Quartus gives the following error:

Info: Found 2 design units, including 1 entities, in source file auk_ddr_controller.vhd
	Info: Found design unit 1: auk_ddr_controller-rtl
	Info: Found entity 1: auk_ddr_controller
Error (10481): VHDL Use Clause error at auk_ddr_controller.vhd(35): design library "auk_ddr_lib" does not contain primary unit "auk_ddr_functions"
Error (10800): VHDL error at auk_ddr_controller.vhd(35): selected name in use clause is not an expanded name

Since the whole mess is generated by the DDR2 controller MegaFunction and presumably brought in all the settings when I converted from the 7.1 to the 8.0 SP1 Megacore IP, I'm not sure how to proceed.

Thanks for your help.

Leslie

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am seeing the same problem. I just downloaded Quatrus II 9.0 and tried to build nios2eds\examples\verilog\niosII_cycloneII_2c35\low_cost. I got exactly the same error. I tried renaming the nios2eds\examples\verilog\niosII_cycloneII_2c35\low_cost\db directory and no change.

    I am running the Quatrus Web edition 9.0 on Vista.

    Any ideas?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Try deleting the db directory and recompiling.

    --- Quote End ---

    Didn't work.

    See my reply to the next post.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I am seeing the same problem. I just downloaded Quatrus II 9.0 and tried to build nios2eds\examples\verilog\niosII_cycloneII_2c35\low_cost. I got exactly the same error. I tried renaming the nios2eds\examples\verilog\niosII_cycloneII_2c35\low_cost\db directory and no change.

    I am running the Quatrus Web edition 9.0 on Vista.

    Any ideas?

    --- Quote End ---

    Yes, I figured it out. See this post.

    http://www.alteraforum.com/forum/showthread.php?t=4665 (http://www.alteraforum.com/forum/showthread.php?t=4665)

    The example project I was building was supposed to have been compiled by Altera under Quartus II 8.0. I'm sure it did. However, the designer probably still had 7.2 installed on his/her computer. Some of the megafunctions were from 7.2 and still referenced the old path. So they wouldn't compile on my computer. The error message was fairly cryptic.

    Hmmm, maybe I also had to add a library to the project... the 7.2 megafunctions were archived in a subdirectory but I didn't notice until I'd already taken the other approach.

    I can't guarantee that's your problem, too, but it's worth a shot. Try recompiling or recreating the megafunctions in your design.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Cool,

    Same error I'm getting (not using Vista). I am trying to compile an example problem so it sound like I have to locate the line in the code that is referencing a none existent link and substitute in a correct link for Quartus 9.0...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Yes, I figured it out.

    The example project I was building was supposed to have been compiled by Altera under Quartus II 8.0. I'm sure it did. However, the designer probably still had 7.2 installed on his/her computer. Some of the megafunctions were from 7.2 and still referenced the old path. So they wouldn't compile on my computer. The error message was fairly cryptic.

    Hmmm, maybe I also had to add a library to the project... the 7.2 megafunctions were archived in a subdirectory but I didn't notice until I'd already taken the other approach.

    I can't guarantee that's your problem, too, but it's worth a shot. Try recompiling or recreating the megafunctions in your design.

    --- Quote End ---

    I'm having the same problem. However, I'm new to NIOS II, and have never used the MegaWizard or SOPC Builder. Can someone please instruct me on how I would "recompile or recreate" the megafunctions to work with 9.0 and my DE2_70 Development board?

    Thanks a ton in advance!

    -Jorden
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I just tried to recompile C:\altera\90sp2\nios2eds\examples\vhdl\niosII_cycloneII_2c35\standard

    With Qaurtus(+Nios) 9.0sp2

    And I get same error although ddr_sdram_controller-library is in Project libraries (already in Assignments settings).

    I success compiling by :

    backup the altera example first !

    * removing db, incremental_db folders

    * regenerating SOPC (with Sopc Builder)

    I have warning messages.

    I don't sure it is working good