Forum Discussion

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

I have problem... top level design entity problem

i defined project name test0 and made the file name and entity name and2.

The code is working good .

I set the and2 file top-level entity.

but i have top level entity problem ..error : top level entity 'and2' is undefined.

should the project name , entity name and file name be all the same?

2 Replies

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

    --- Quote Start ---

    should the project name , entity name and file name be all the same?

    --- Quote End ---

    it's not compulsory that they must be the same, but having same entity name and file name will make things easier for you when you set top level entity from the file window. if not, you got to open settings-> assignment and set the top entity name.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    make sure and2 is included in your list of project files, and that you've actually called the entity and2 (the top level will come from the entity name, not the file name).