A 2 bit comparator
This presentation is the property of its rightful owner.
Sponsored Links
1 / 6

A 2-Bit Comparator PowerPoint PPT Presentation


  • 70 Views
  • Uploaded on
  • Presentation posted in: General

A 2-Bit Comparator. Lecture L5.5 Experiment 3, p. 86. 2-Bit Magnitude Comparator. B1 B0 A1 A0. A_LT_B A_GT_B A_EQ_B. Magnitude Comparator. B1 B0. A1 A0. A_EQ_B. A_GT_B. A_LT_B. 0 0. 0 0. 1. 0. 0. 0 0. 0 1. 0. 1. 0. 0 0. 1 0. 0. 1. 0. 0 0. 1 1. 0. 1. 0.

Download Presentation

A 2-Bit Comparator

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


A 2 bit comparator

A 2-Bit Comparator

Lecture L5.5

Experiment 3, p. 86


2 bit magnitude comparator

2-Bit Magnitude Comparator

B1

B0

A1

A0

A_LT_B

A_GT_B

A_EQ_B


A 2 bit comparator

Magnitude Comparator

B1 B0

A1 A0

A_EQ_B

A_GT_B

A_LT_B

0 0

0 0

1

0

0

0 0

0 1

0

1

0

0 0

1 0

0

1

0

0 0

1 1

0

1

0

0 1

0 0

0

0

1

0 1

0 1

1

0

0

0 1

1 0

0

1

0

0 1

1 1

0

1

0

1 0

0 0

0

0

1

1 0

0 1

0

0

1

1 0

1 0

1

0

0

1 0

1 1

0

1

0

1 1

0 0

0

0

1

1 1

0 1

0

0

1

1 1

1 0

0

0

1

1 1

1 1

1

0

0


A 2 bit comparator

K-Map for A_EQ_B

B1 B0

A1 A0

A_EQ_B

A1 A0

0 0

0 0

1

00

01

11

10

B1 B0

0 0

0 1

0

0 0

1 0

0

1

00

0 0

1 1

0

0 1

0 0

0

0 1

0 1

1

01

1

0 1

1 0

0

0 1

1 1

0

11

1 0

0 0

0

1

1 0

0 1

0

1 0

1 0

1

10

1

1 0

1 1

0

1 1

0 0

0

1 1

0 1

0

1 1

1 0

0

Can’t Simplify

1 1

1 1

1


A 2 bit comparator

K-Map for A_GT_B

A1 A0

B1 B0

A1 A0

A_GT_B

00

01

11

10

B1 B0

0 0

0 0

0

0 0

0 1

1

1

1

1

00

0 0

1 0

1

0 0

1 1

1

01

0 1

0 0

0

1

1

0 1

0 1

0

0 1

1 0

1

11

0 1

1 1

1

1 0

0 0

0

1 0

0 1

0

10

1

1 0

1 0

0

1 0

1 1

1

1 1

0 0

0

1 1

0 1

0

A_GT_B = !B1 & A1

# !B1 & !B0 & A0

# !B0 & A1 & A0

1 1

1 0

0

1 1

1 1

0


A 2 bit comparator

K-Map for A_LT_B

A1 A0

B1 B0

A1 A0

A_LT_B

00

01

11

10

B1 B0

0 0

0 0

0

0 0

0 1

0

00

0 0

1 0

0

0 0

1 1

0

01

0 1

0 0

1

1

0 1

0 1

0

0 1

1 0

0

11

1

1

1

0 1

1 1

0

1 0

0 0

1

1 0

0 1

1

1

1

10

1 0

1 0

0

1 0

1 1

0

1 1

0 0

1

1 1

0 1

1

A_LT_B = B1 & !A1

# B0 & !A1 & !A0

# B1 & B0 & !A0

1 1

1 0

1

1 1

1 1

0


  • Login