How can I simply invert the floating point number?

Discussion in 'VHDL' started by Siwat Saibua, Sep 20, 2007.

  1. Siwat Saibua

    Siwat Saibua

    Joined:
    Sep 20, 2007
    Messages:
    2
    Likes Received:
    0
    Hi,I am working on fast inversion project and now I need to find a simply inversion code to compare with mind. I searched on some sources but most of them was used ieee.numeric_unsigned.Code Example from that website:
    -------------------------
    library ieee;
    use ieee.std_logic_1164.all;
    use ieee.numeric_unsigned.all;


    entity divider is
    port(DI : in std_logic_vector(7 downto 0);
    DO : out std_logic_vector(7 downto 0));
    end divider;
    architecture archi of divider is
    begin
    DO = 1 / DI;
    end archi;
    --------------------------
    It didn't work with my complier.Do you have any suggestion where can I find either the simply dividing code that I can apply as an inversion code or inversion code itself would be great. The result should come out B<= 1 / A, in case A is std_logic_vector
     
    Siwat Saibua, Sep 20, 2007
    #1
    1. Advertisements

  2. Siwat Saibua

    Siwat Saibua

    Joined:
    Sep 20, 2007
    Messages:
    2
    Likes Received:
    0
    Siwat Saibua, Sep 21, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luca
    Replies:
    1
    Views:
    1,238
    salman sheikh
    Apr 29, 2004
  2. Ram Laxman
    Replies:
    1
    Views:
    490
    Brad Baxter
    Jul 15, 2004
  3. H aka N
    Replies:
    15
    Views:
    16,675
    Ben Jones
    Mar 2, 2006
  4. Motaz Saad
    Replies:
    7
    Views:
    6,812
  5. riya1012@gmail.com

    floating point to fixed point conversion

    riya1012@gmail.com, Feb 21, 2006, in forum: C Programming
    Replies:
    4
    Views:
    1,495
    Default User
    Feb 22, 2006
  6. Saraswati lakki
    Replies:
    0
    Views:
    1,667
    Saraswati lakki
    Jan 6, 2012
  7. teeshift
    Replies:
    2
    Views:
    495
    Chris Pearl
    Dec 1, 2006
  8. Jeff Dik
    Replies:
    8
    Views:
    327
    Robert Klemme
    Mar 30, 2011
Loading...