Professional Documents
Culture Documents
Q: What Is ALU
Q: What Is ALU
Arithmetic Circuit
For the following condition write down the values of different variables
Implement F= A + B
A(Ao,A1)
Ao,A1
B(Bo,B1)
Bo,B1
Cin
0
Cout
Can be 0 or 1
F equation
F= A+B
Cin
Cout
F equation
Cin
Cout
F equation
Implement F=A+B+1
A(Ao,A1)
B(Bo,B1)
Implement F=A+B
A(Ao,A1)
B(Bo,B1)
Implement F=A+B+1
A(Ao,A1)
B(Bo,B1)
Cin
Cout
F equation
Cin
Cout
F equation
Cin
Cout
F equation
Implement F=A
A(Ao,A1)
B(Bo,B1)
Implement F=A+1
A(Ao,A1)
B(Bo,B1)
Making Circuits
Lets make a 4 bit Logic Arithmetic Unit
Function Select
Y Value (B)
So
S1
Cin
All 1s
F=A-1
All 1s
F=A
Equation Table
F=A+1
F=A
F=A+B
F=A+B
F=A+B+1
F=A+B+1
Logic Circuit
Equation
For Logic Circuit , lets recap MUX . Complete the following table for
Mux
So
S1
F (write expression)
1
1
2
0
1
0
Now using a mux and gates (or , Xor , And , Not) provide circuit for the
table
S0 S1- F
0
0 A+B
1 A xor B
0 A .B
Now using a mux and gates (or , , And , Not) provide circuit for the
table
S0 S1- F
0
0 A+B
1 A xor B
0 A .B
ALU. Finally now we can make our ALU. An Alu is a simple circuit that is
implemented by combining both logic design and arithmetic circuit
togather