Forum Discussion

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

Problem simulating a project with Qsys system instantiated

Hi,

I want to simulate a simple project with a Qsys system along with some additional codes inside another top level module. I could simulate with just the codes, but the problem started when i tried to include the Qsys modules inside my project. I have followed some tutorials on Qsys simulation, but they point to using the Qsys system as the top level without using any additional code. So i couldn't get much idea from that too.

The code compiles normally and when I start simulation with "RTL simulation", modelsim starts and compiles. Afterward when I try to Simulate the Top level module it shows error-

ModelSim>vsim -voptargs=+acc work.top#  vsim -voptargs=+acc work.top #  Loading work.top#  Loading work.testMemory#  ** Error: (vsim-3033) D:/ACT/attempt2/testMemory/simulation/testMemory.v(54): Instantiation of 'testMemory_MemoryBlock' failed. The design unit was not found.#          Region: /top/u0#          Searched libraries:#              D:\Act\attempt2\simulation\modelsim\rtl_work
      .
      .
      .
      .#  ** Error: (vsim-3033) D:/ACT/attempt2/testMemory/simulation/testMemory.v(235): Instantiation of 'altera_reset_controller' failed. The design unit was not found.#          Region: /top/u0#          Searched libraries:#              D:\Act\attempt2\simulation\modelsim\rtl_work#  Error loading design

But I can see the reported modules in the list of libraries..(attached image)

Now I don't know how to add the libraries to "work" group or make the program search in all other libraries beside rtl_work. I am still in the learning phase and this is my first project involving simulation. So I don't know much about the jargon. Also I don't know how to make a tcl file.

I was hoping someone could help me resolving the issue or give me some pointers to thing that I should be reading.

2 Replies