2-BIT ALU
Wellcome to our presentation.
Slide 1
Group Members
 MAHMUDULHASAN
 FARHANTANVIR
 RISULislam
Slide 2
 What is 2 bit Alu?
 Methodology
 Block Diagram of 2 bit ALU...
 Introduce Various Kinds of IC
 Circuit Diagram
 How to construct
 Verilog Code part
Slide 3
OVERVIEW
2-BIT ALU
 An arithmetic logic unit is a multi-operation, combinational logic
function. It can perform a set of basic arithmetic operations and
set of logic operations. The Alu has a number of selection line to
select a particular operation in the unit. The four data inputs from
A are combined with the four inputs from B to generate an
operation at the F. The mode select input M distinguish between
arithmetic and logic operation. The three function select inputs
A,B,C specify particular arithmetic or logic operation to be
granted
Slide 4
Methodology
 An arithmetic logic unite system has been development by sequence of operation.
To active a successful ALU design we use following methodologies:
 Studying literature on different types of bit and their implementation.
 Studying the existing method for ALU arithmetic and logic operation.
 Analyze and design for the proposed System.
 Implement of a desiring design of Arithmatic Logic Unit.
Slide 5
Block Diagram of 2 Bit Alu
Slide 6
 Two Construct 2-bit ALU
 Efficiently use
 Minimize Circuit and Gate
Slide 7
NEED IC FOR CONSTRUCTION
AND GATE(7408)
OR GATE(7432)
EXOR GATE(7432)
NOT GATE(7408)
8-TO-1 MULTIPLEXER(74151)
ADDER(7483)
Slide 8
REAL VIEW OF IC OR PORT NUMBER
Slide 9
NOT GATE
Slide 10
8-TO-1 MULTIPLEXER(74151)
Slide 11
Logic gate:Adder/substructor:
 Dfsd
 Adder/substructor:
 Full adder truth table. If
mode bit change it work
as a substructor
Slide 12
And|NAND
 And gate and truth table  Nand gate and truth table
Slide 13
OR|NOR
 OR gate and truth Table  Nor gate and truth table
Slide 14
XOR|XNOR
 Xor gate and truth table  Xnor gate and truth
table
Slide 15
Circuit Diagram
Slide 16
TruthTable of the following Circuit
Slide 17
How the Project Work
 In 8*1 multiplexer have 8 input and 1 output. When we select 000 then it select
I(0),when we select 001 then it select I(1).It frequently goes to I(7).when one gate
will select other gate cant work. so we can get 8 operation by frequently change
A,B,C value.
Slide 18
Hardware Implimentation
Slide 19
Advantage
 2 bit ALU has minimum delay time to implimentation
 Minimize the logic Gate
 Less expensive due to use minimum gate
Slide 20
Disadvantage
 Complex circuit Diagram
 Output only 0-15
 They have no memory.we will look at adding some next time
Slide 21
Conclusion
 In this project we design and impliment 2-bit ALU.for simulation we impliment
this project on breadboard found satisfactory result different type of
simulation like and or xor addition and substruction operation.
Slide 22
Future Implimentation
 We impliment 2-bit ALU, but we want to work on 8 bit ALU, later on we
will try to work on 32 bit and 64 bit ALU as much we can
 Our purpose is to reduce delay time
 To make circuit complex free and less expensive.
 Reduce logic gate as much as possible.
Slide 23
Verilog code
 module ALU(input [3:0]ALUOP,input [1:0]A,B,
 output reg [1:0]R,output reg C);
 always@(*)begin
 case(ALUOP)
 4'b0000: {C,R}=(A+B);
 4'b0001: {C,R}=(A-B);
 4'b0010: R=(A&B);
 4'b0011: R=~(A&B);
 4'b0100: R=(A|B);
 4'b0101: R=~(A|B);
 4'b0110: R=(A^B);
 4'b0111: R=~(A^B);
 4'b1000,4'b1001:R=~(A);
 default: R=4'bxxxx;
 endcase
 end
 endmodule
Slide 24
Verilog code screen shot
Slide 26
Verilog code screen shot
Slide 26
Verilog code screen shot
Slide 27
Inquiry
2014-2-60-035@ewu.edu.bd
farhatanvir65@gmail.com
Slide 28
Referrance
 https://commons.wikimedia.org/wiki/File:2
-bit_ALU.png
 https://www.mathworks.com/matlabcentra
l/fileexchange/36074-2-bit-
alu?requestedDomain=www.mathworks.c
om
Slide 29

2 bit alu