Forum Discussion

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

IEEE 754 in modelsim

Is there any way to get ieee 754 floating point to display as decimal modelsim? Either built in function, plugin or script.

Thanks

5 Replies

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

    Use the floating point package to convert them to reals so they display nicely on the window. Modelsim has the floating point package in floatfixlib.

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

    If i understand correctly I have to convert the signals in the source file?

    Is there any way to do this in directly in modelsim?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    it has to be source file.

    Otherwise you have to look at the binary.