Forum Discussion

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

How to add test bench to the SOPC?

Hi there,

I want to add an Avalon slave custom peripheral test bench, so I can simulate the system. The question is that I don't want to add it to the main Quartus project. Is there any way to add the test bench to the simulation files generated by the SOPC builder for the modelsim?

Thanks in advance.

Best regards,

VT

1 Reply

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

    Hi there, I solved the issue.

    To add custom test bench you can use the generated {sopc_system}.v file. At the bottom of the file there is "module test_bench" with the rest of the logic included. You can adjust the test bench to your design.

    It's very simple but you have to know it :)

    Best regards,

    VT