Docsity

Design and Build Unsigned Binary Number Comparators - Lab 3 | ECE 2214, Lab Reports of Digital Systems Design

Toggle sidebar
bg1
ECE 2214 LAB EXPERIMENT 3
DESIGN AND BUILD UNSIGNED BINARY NUMBER
COMPARATORS USING SSI ICS
Background
A. 2-bit Unsigned Binary Number Comparator (UBNC)
Let A = A2 A1 and B = B2 B1 be two 2-bit unsigned binary numbers. A 2-bit unsigned binary
number comparator is a 4-input, 3-output device as shown below. It determines if A is lower
than B (L = 1), equal to B (E = 1), or higher than B (H = 1). The subscript “2” on the outputs
signifies that this is a 2-bit comparator.

A
12
A A

B
12
B B
H2 E2 L2
Fig. 1: 2-bit UBNC
B A if 0
BA if 1
L
B A if 0
BA if 1
B A if 0
BA if 1
H
1
2-bit Unsigned
Binary Number Comparator
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Design and Build Unsigned Binary Number Comparators - Lab 3 | ECE 2214 and more Lab Reports Digital Systems Design in PDF only on Docsity!

ECE 2214 LAB EXPERIMENT 3

DESIGN AND BUILD UNSIGNED BINARY NUMBER

COMPARATORS USING SSI ICS

Background

A. 2-bit Unsigned Binary Number Comparator (UBNC)

Let A = A 2 A 1 and B = B 2 B 1 be two 2-bit unsigned binary numbers. A 2-bit unsigned binary number comparator is a 4-input, 3-output device as shown below. It determines if A is lower than B (L = 1), equal to B (E = 1), or higher than B (H = 1). The subscript “2” on the outputs signifies that this is a 2-bit comparator.   A  A 2 A 1

  B 
B 2 B 1
H 2 E 2 L 2
Fig. 1: 2-bit UBNC

^      0 if A B L^1 if A^ B ^     ^  0 if A B 1 if A B ^      0 if A B H^1 if A^ B 2-bit Unsigned Binary Number Comparator

The logic truth table of this device is as follows:

Table 1: Logic Truth Table of 2-bit UBNC
A 2 A 1 B 2 B 1 L E H

The three output functions are given in Eq. 1. Make sure you understand how to find these equations before proceeding.

L 2 =  A 2 B 2  (A 2 B 2 ) A 1 B 1 

E 2 = (A^2 ^ B 2 )(A 1 B 1 ) (Eq. 1)

H 2 =  A 2 B 2  (A 2 B 2 ) A 1 B 1 

ECE 2214 LAB EXPERIMENT 3 REPORT

Name: _________________

  1. Before building your circuit, make sure you understand Eq. 1. Demonstrate your understanding to your TA by writing the equations L 3 , E 3 , and H 3 for a 3-bit UBNC in the space below:
  2. Clearly draw the circuit for a 2-bit UBNC as given by Eq. 1 in the space below or on a separate sheet of paper. Label the inputs to each gate. Make a list of the ICs you will need. Verify your drawing with your TA.
  1. Build a 2-bit UBNC. Test the following input combinations and record your actual results. Do not simply fill in the table with what you expect to see. A 2 A 1 B 2 B 1 L 2 E 2 H 2 0 0 0 1 0 1 1 0 0 1 0 1 1 0 1 0 1 1 1 0
  2. With another group, build a 4-bit UBNC. Test the following input combinations and record your actual results. Do not simply fill in the table with what you expect to see. A 4 A 3 A 2 A 1 B 4 B 3 B 2 B 1 L 4 E 4 H 4 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 1 0
  1. Draw a logic block diagram for a 8-bit UBNC using two 4-bit UBNCs and one UBNCE.
  2. Draw a logic block diagram for a 16-bit UBNC using four 4-bit UBNCs and three UBNCEs.

Tips for building your 2-bit UBNC

  1. Before building, plan out where to put your ICs on the breadboard in order to make your circuit easy to understand and debug.
  2. Group together your inputs and outputs, and put them in a logical order.
  3. Do not try to build all the three circuits at once! Build and test one at a time.
  4. Begin with the simplest circuit, E 2. Once it works, move on to H 2 and L 2.
  5. Note that there is always exactly one active output. Once you have finished two of the three circuits, you may choose to develop a simpler alternative circuit for the third output based on the state of the other two outputs.