Shift Through?

Discussion in 'Homework Help' started by reach, May 5, 2011.

  1. reach

    Thread Starter New Member

    May 5, 2011
    4
    0
    I'm to complete an assignment that involves making an 8-Function 4 Bit ALU.

    In my Logic Unit (Not the ALU yet), i'm to include a Shift A Through function.

    How would I be able to create a Shifter using AND, NOR, OR, etc. gates?
     
  2. Wendy

    Moderator

    Mar 24, 2008
    20,766
    2,536
    Think more in terms of flip flops, say D type.
     
  3. reach

    Thread Starter New Member

    May 5, 2011
    4
    0
    Is it possible to do without Flip-Flops?

    Because, in my experience, they take too long to make.


    EDIT: And to be honest, I don't know the Digital Works program, well enough.
     
  4. Wendy

    Moderator

    Mar 24, 2008
    20,766
    2,536
    I could be wrong, but my impression is that it basically a shift register, where one D FF feeds another, and another,...

    In the case of 8 bit, this is 8 FF.
     
  5. reach

    Thread Starter New Member

    May 5, 2011
    4
    0
    Considering that the Shifter is only one of 8 functions in the Logic Unit which I have to make(hence the 8 Function 4 Bit ALU name), I would have thought the Shifter be as simple as a Full Adder (which is another of the 8 functions to be included). (Assuming a Full Adder is widely accepted as easy).

    And it's a four Bit ALU but it's made of four 1 Bit ALU's, does that mean it's four D Flip-Flops? (That is, 1 D Flip-Flop per 1 Bit ALU).
     
  6. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
  7. reach

    Thread Starter New Member

    May 5, 2011
    4
    0
    Well, thanks for the answers.

    I ended up using a 4 input MUX as the Shifter.


    Not sure as to correctness, but it's too late to check.
     
Loading...