+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 4
    Points: 366, Level: 4

    Join Date
    Jan 2011
    Posts
    5
    Helped
    0 / 0
    Points
    366
    Level
    4

    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

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 264,204, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    46,167
    Helped
    14041 / 14041
    Points
    264,204
    Level
    100

    Re: lookup table using vhdl:

    Arithmetic functions (e.g. sqrt, division) are operating on numbers, not bits. These numbers have a digital representation. The first point, when thinking about lookup tables, is to specify numeric ranges and resolutions, then about a suitable numeric format, mostly fixed point.

    There's a large amount of contributions related to lookup tables, see the similar threads tab as a first hint. Instead of making edaboard members retelling the stuff that have been already written, you should consult these previous threads. And come back with a more specific question, if necessary.



    •   AltAdvertisement

        
       

  3. #3
    Junior Member level 1
    Points: 410, Level: 4

    Join Date
    Jan 2011
    Location
    pune,india
    Posts
    15
    Helped
    5 / 5
    Points
    410
    Level
    4

    Re: lookup table using vhdl:

    use case statement



    •   AltAdvertisement

        
       

  4. #4
    Newbie level 4
    Points: 366, Level: 4

    Join Date
    Jan 2011
    Posts
    5
    Helped
    0 / 0
    Points
    366
    Level
    4

    Re: lookup table using vhdl:

    I need a help regarding a bit of lookup table program provided below:

    case theta_int is

    when 45 => sin_data_int <= to_signed(99,12); cos_data_int <= to_signed(1439,12);

    what is the significance of "to_signed(99,12) and to_signed(1439,12)" ? I am unable to understand that one. Can anyone help me?



--[[ ]]--