Forum Discussion

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

module cannot be declared more than once

After generating the .qsys file when I am trying to run the top module verilog file in quartus II it is giving error :Error (10228): Verilog HDL error at gmmpipe.v(6): module "gmmpipe" cannot be declared more than once. I gave gmm_accelerator.v and gmmpipe.v module during qsys generation .In includes the gmmpipe.v module. I am attaching both the module. How to fix this error? Please help.

12 Replies

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

    Your file is being included twice. Once by your include statement, and other time because it is mentioned in the list of files in the project. Remove the file from the project and it should work.

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

    I agree with Galfonz

    I have checked verilog files.

    I did not find multiple declaration of gmmpipe twice.

    follow Galfonz's instruction.