0% found this document useful (0 votes)
10 views

DLD Labrep 6

Uploaded by

hadeeda980
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

DLD Labrep 6

Uploaded by

hadeeda980
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

LAB REPORT

EXPERIMENT 6
DIGITAL LOGIC DESIGN

Name: Hadeed Ahmed


Roll No: 21l-6023
Section: BSR-3A1
Department: Electrical Engineering
Submitted to: Miss Maimoona Akram
DESIGN OF A BINARY COMPARATOR
Introduction:
A Comparator is a combinational circuit that compares two digital or binary
numbers in order to find out whether one binary number is equal, less than, or greater than
the other binary number. We logically design a circuit for which we will have two inputs one
for A and the other for B and have three output terminals, one for A > B condition, one for A
= B condition, and one for A < B condition.

Equipments:
 Logic trainer
 Logic prob
 Jumper wires
 Logic and Exclusive gates

Objective:
 To get familiar with Binary comparator.
 To learn about exclusive gates.
 To understand how to implement a circuit.

Procedure:
The procedure of the experiments are given below:
 In this lab experiment first we will carry out the Boolean expression of a circuit given
in a manual.
 First we will make the truth table of our expression which will help us to check
whether circuit is correct or not.
 Then by using K-map we will find the minimal SOP and POS expression for the
output.
 We will use that minimal expression which will cost less gates and IC’s.
 First we will make the circuit for equal output which means input A is equal to B.
 Equal circuit does not distinguish between either two 0 or two 1‘s as an output A =
B is produced when they are both equal, either A = B = “0” or A = B = “1”.
 Then we will make the circuit for less output which means input A is smaller than B.
 By using upper two conditions we will make the circuit for greater output which
means A is smaller than B.
 At last by using the truth table we will check and verify our circuit.
 This is how we will done this lab.

Issues:
No issues were faced during this lab lecture.

Application:
Comparators are used in central processing units (CPUs) and microcontrollers
(MCUs). These are used in control applications in which the binary numbers representing
physical variables such as temperature, position, etc. are compared with a reference value.

Conclusion:
This lab experiment concludes that the digital comparator can be constructed to
compare the digital signals present at their input terminals and produce an output
depending upon the condition of those inputs. For example, along with being able to add
and subtract binary numbers we need to be able to compare them and determine whether
the value of input A is greater than, smaller than or equal to the value at input B etc.

You might also like