Forum Discussion

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

lookup table using vhdl:

Hai! How to convert binary bits (eg."00") to digital symbols(eg."1/sqrt(2) ) using lookup tables in vhdl coding? Can anyone help me out please

4 Replies

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

    For two bits IQ mapping, you only have 4 IQ points (QPSK) hence one +/- amplitude level per I or Q. you don't need to worry about sqrt(2) since all levels are same and you can choose any high enough +/- value that suits your resolution.

    for multi-level case e.g (16 QAM), you have at least two levels and then you need to scale amplitude according to constellation diagram(ratio). But this is not what you are after.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    How to write vhdl coding for the conversion of real numbers to binary (including decimal points) and more over which is synthesizable?

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

    You'll need to write a conversion function.

    The IEEE floating point package should have them. http://www.vhdl.org/fphdl/

    If you meant fixed point, you can get the same things from the fixed point packages on the same page.