Forum Discussion

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

Can't get the classic simulation to work on .vwf file

Hello,

My project name is CPLD.qpf (MAX II).

I created a .vwf file (OneShot.vwf) which should test a section of CPLD. There is a file named OneShot.bdf (it is part of the CPLD project) and I would like to test it.

Under "Setting/Timing Analysis Setting" I selected the Use Classic option.

Under "Setting/Simulator Setting" I chose Functional as my Simulator mode, and set OneShot.wvf as my Simulation input.

I am trying to run the simulator on OneShot.vwf by clicking the "Start Simulator" button.

The "Simulation Waveforms" shown is for the whole project (CPLD) and not for OneShot.vwf.

What am I doing wrong here?

Thanks,

Eitan Barazani

6 Replies

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

    You have to set OneShot.bdf as design top, compile it and generate a functional simulation netlist. Then you can simulate it.

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

    Hi,

    Will it work if my OneShot is internal to the main file (CPLD.qpf) and it does not have any Input or Output Pins, i.e. it pins are of type "BURIED"?

    Thanks,

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

    I don't understand the question. I suggested to set the OneShot entity as design top for test. Then it's ports aren't internal.

    I suggested to simulate the component alone, because you complained about seeing the waveform for the whole project.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Yes the ports of OneShot are internal. What I did was to create a new project just for OneShot, but I am trying to find out if this the only way?

    Thanks,

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

    I suggest that you can set up other projects for your components respectively and then add the .vhd file to the top project.Maybe it helps.

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

    --- Quote Start ---

    but I am trying to find out if this the only way?

    --- Quote End ---

    It depends on the purpose of your simulation. But I think, in most cases it means faster simulation and direct access to all nodes of interest. If you need part of the embedding design to stimulate your component in a specific way, it's different.