detecting overflow in arithmetic left shifter

Discussion in 'VHDL' started by dlamoris, Oct 26, 2006.

  1. dlamoris

    dlamoris

    Joined:
    Oct 26, 2006
    Messages:
    2
    Hi, I'm trying to implement an arithmetic left shifter in vhdl. I used barrel shifter for a 16 bit number (4 levels of 2-1 muxes) and I'm wondering how I can detect overflow in shifting. I know if I shifted out anything that's different from the sign bit I'll have an overflow, but how can I efficiently detect that (using xors?) What would be the least amount of logic to do it?

    Thanks in advance.
    dlamoris, Oct 26, 2006
    #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. Fano
    Replies:
    9
    Views:
    2,222
    Ray Andraka
    Oct 16, 2003
  2. ALuPin

    Barrel shifter

    ALuPin, Feb 18, 2004, in forum: VHDL
    Replies:
    1
    Views:
    1,415
    Jonathan Bromley
    Feb 18, 2004
  3. ALuPin
    Replies:
    0
    Views:
    668
    ALuPin
    Feb 20, 2004
  4. dangerlee

    logical left shifter or latch ??

    dangerlee, May 5, 2004, in forum: VHDL
    Replies:
    4
    Views:
    840
    Egbert Molenkamp
    May 7, 2004
  5. joshc
    Replies:
    5
    Views:
    552
    Keith Thompson
    Mar 31, 2005
Loading...

Share This Page