Forum Discussion

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

modelsim, functional simulation using lpm components? works in the chip not in simula

I am trying to simulate RTL using the Altera Multiply component instantiated in a state machine using modelsim. This is not the inferred multiplier but the lpm component sized to 32 bits.

The problem is the component does not respond/work using the functional simulation mode.

The RTL functions correctly in the Cyclone chip where I developed it but now as I am trying to develop a testbench for others, I can't get it to simulate.

Can I do a functional simulation in RTL that I have instantiated a component?

Thank you,

Don

2 Replies

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

    --- Quote Start ---

    I am trying to simulate RTL using the Altera Multiply component instantiated in a state machine using modelsim. This is not the inferred multiplier but the lpm component sized to 32 bits.

    The problem is the component does not respond/work using the functional simulation mode.

    The RTL functions correctly in the Cyclone chip where I developed it but now as I am trying to develop a testbench for others, I can't get it to simulate.

    Can I do a functional simulation in RTL that I have instantiated a component?

    Thank you,

    Don

    --- Quote End ---

    For those interested, it certainly appears that this is the case. If I compile in Quartus for a timing simulation and use the .vho file with my test bench, I get results!

    Thanks,

    Don:)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Im guessing some bugs in your code. THe LPM components have been around a very long time and will match real hardware behaviour.

    How about posting your code here?