Forum Discussion

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

compiling package

When I tried to compile package in quartus i get " Error (12007): Top-level design entity "usb_pkg" is undefined"

what are the compiler settings I need to use?

2 Replies

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

    --- Quote Start ---

    When I tried to compile package in quartus i get " Error (12007): Top-level design entity "usb_pkg" is undefined"

    what are the compiler settings I need to use?

    --- Quote End ---

    this is VHDL code I down loaded. I am using Quartus software from Altera. I was able to compile files that had entity declarations. all the "components" are put in a package so I can implement a USB device in the FPGA. For package file there is no entity. Obviously i am not setting up the compiler correctly. It worked for others by declaring the entity name in the genaral part of the settings to compile. with the package file, I am getting this error. (sorry for the confusion about package). I looked through the VHDL book and the file is correct but I am doing something wrong to compile;. appreciate help
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In what i down loaded there are several parts and one of them is the packge vhdl code. I compiled individual parts and i tried to compile the package code also which need not be separtely compiled. When I ran the top level code with all parts, including package, it ran fine. I learned some thing .

    thanks. This can now end.