replace with sums and shifs

Discussion in 'VHDL' started by Hyuma, Oct 14, 2010.

  1. Hyuma

    Hyuma

    Joined:
    Oct 14, 2010
    Messages:
    3
    hello guys!

    I 've a question how can i change this istructions in my structural with simple sums and shifts operations?

    pOut <= CONV_STD_LOGIC_VECTOR((2* CONV_INTEGER(pIn) + 1), bitWidth/2 + 1);

    pOut <= CONV_STD_LOGIC_VECTOR((2* CONV_INTEGER(pIn)), bitWidth/2 + 1);

    thank you in advance
    Hyuma, Oct 14, 2010
    #1
    1. Advertising

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. Eric Lilja
    Replies:
    9
    Views:
    362
    Old Wolf
    May 26, 2005
  2. jacksu
    Replies:
    7
    Views:
    1,186
    Scott Ellsworth
    Jun 23, 2006
  3. kj

    partial sums problem

    kj, Sep 28, 2010, in forum: Python
    Replies:
    12
    Views:
    792
    Dennis Lee Bieber
    Sep 30, 2010
  4. Tricky
    Replies:
    1
    Views:
    639
    Hyuma
    Oct 14, 2010
  5. Martin Thompson

    Re: change with sums and shifts

    Martin Thompson, Oct 14, 2010, in forum: VHDL
    Replies:
    4
    Views:
    674
Loading...

Share This Page