Forum Discussion

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

Modelsim and sqrt function

Dear Sir

I want to simulation with modelsim. I used megafunction sqrt, when I compile it's ok but when I run it, it will show the component "sqrt" are not bound. How can I fix it now?

Thank in advance

4 Replies

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

    make sure you have the lpm and altera_mf libraries mapped in modelsim.

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

    --- Quote Start ---

    make sure you have the lpm and altera_mf libraries mapped in modelsim.

    --- Quote End ---

    I already have lpm library mapped to modelsim. (220model.vhd and 220pack.vhd)

    Which is altera_mf library? Can you explain for me. Thank you very much
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry. Because I saw a lot of file (altea_mf.vhd, altera_mf_87.vhd and altera_mf_component.vhd) Three of them also have sqrt function. I don't know which one should be used.