Forum Discussion

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

LPM rom

hi, im new in quartus and vhdl. im trying to use the rom from the megafunction for my project. can i store real number in the rom? or it has to be hex? if it has to be hex, is it hav to be the ieee hex format?

12 Replies

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

    The numbers in the MIF file is an unsigned binary number. That number has a signed equivolent, which is what you mean. You have to work out what the signed number is and in the mif file you put the unsigned equivolent. In the hardware it can mean whatever you want (because its just a load of bits).

    Its easier just to create a constant and write behavioural VHDL to instantiate the ROM, then you can write it however you want.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    tq tricky,

    i have 6 set of data n 256 word per set...

    so i think its much more easy for to using MIF file...