You are on page 1of 6

Digital Logic Design

Digital Assignment 1

L.Shane John Paul


16BEC0206
ECE2003 Slot: A2
1. 4-bit Magnitude Comparator
case 1:
A=0010
B=0011

A<B

A>B

A=B

case 2:
A=1010
B=0011
case 3:
A=1011
B=1011

2. 4-bit Carry Look Ahead Adder


case 1:
A=1001
CLA Generator
B=0011 => Sum=1100; Carry=0
Cout

S3

S2

S1

S0
case 2:
A=1011
B=1001 => Sum=0100; Carry=1

case 3:
A=1110
B=1101 => Sum=1011; Carry=1
3. 4-bit BCD adder using 4-bit CLA
case 1:
A=0101
B=0010 => Sum=0111, Carry=0 (Binary sum=0111)
CLA Adder-1
Cout

CLA Adder-2

S3

S2

S1

S0

case 2:
A=0110
B=1001 => Sum=0101, Carry=1 (Binary sum=1111)
case 3:
A=1011
B=0110 => Sum=0111, Carry=1 (Binary sum=1 0001)