Hi, so I'm doing an assignment and we need to build a 4 bit 4 function ALU.
the 4 functions are:
S1 S2 OUTPUT
0 0 Shift A Through (X = A)
0 1 Logical AND (X = A AND B)
1 0 Logical XOR (X = A XOR B)
1 1 Full adder (X = A + B)
I've attached a picture of what my ALU looks like now, before any shifts.
I don't understand the term shift through? I looked through my lecture notes and they don't explain it. From what i understand, to make a shift register that can shift bits left or right, you need flip flops, but I'm completely at loss with shift through.
Any help would be greatly appreciated,
thanks
the 4 functions are:
S1 S2 OUTPUT
0 0 Shift A Through (X = A)
0 1 Logical AND (X = A AND B)
1 0 Logical XOR (X = A XOR B)
1 1 Full adder (X = A + B)
I've attached a picture of what my ALU looks like now, before any shifts.
I don't understand the term shift through? I looked through my lecture notes and they don't explain it. From what i understand, to make a shift register that can shift bits left or right, you need flip flops, but I'm completely at loss with shift through.
Any help would be greatly appreciated,
thanks
Attachments
-
60.4 KB Views: 23