3.2 Conflicting Definitions in top.v and Your Imported Block File

You can introduce a conflict if you import a top.v file and a block file. Libero does not support HDL definition of low level blocks inside top-level HDL files and subsequent importing of block files. For example, the following scenarios cause an error:

  • Import a top.v file (File > Import HDL Source Files) that contains a definition for <top> and a module definition for <block1>.
  • Import the block <block1> (File > Import > Blocks).

Libero passes two duplicate files to your synthesis tool because the definition for <block1> is duplicated. To continue, you must remove the definition of <block1> from top.v and then re-import it.