Forum Discussion

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

trouble with Quartus II error

i write a testbench for a decoder but when i compile this file in quartus,this error comes out.

error: can't synthesize current design -- top partition does not contain any logic

but the same design files can be compiled in modelsim successfully.

who can tell me why? how to solve it?

2 Replies

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

    --- Quote Start ---

    i write a testbench for a decoder but when i compile this file in quartus,this error comes out.

    error: can't synthesize current design -- top partition does not contain any logic

    but the same design files can be compiled in modelsim successfully.

    who can tell me why? how to solve it?

    --- Quote End ---

    Hi,

    did you try to synthesize the testbench ? The testbench has no inputs or outputs. I expect

    that Quartus will remove all your logic, because no output depends on an input. A Testbench is only used for simulation.

    Kind regards

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

    --- Quote Start ---

    Hi,

    did you try to synthesize the testbench ? The testbench has no inputs or outputs. I expect

    that Quartus will remove all your logic, because no output depends on an input. A Testbench is only used for simulation.

    Kind regards

    GPK

    --- Quote End ---

    thank you very much! now i knows.