[SOLVED] A 2-bit comparator

25.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Show the bit configuration that represents the decimal number 255 in
(a) Binary,
(b) Binary Coded Decimal (BCD),
(c) ASCII,
(d) ASCII with odd parity.

• A 2-bit comparator compares two 2-bit words, A and B, and assets outputs indicating whether the decimal equivalent of word A is less than, greater than or equal to that of word B. K-map method can be used to derive the minimized equations to describe the behavior of the comparator and Verilog module can be written to test the working of the comparator. Complete the following:

  • Derive minimized equations for the comparator outputs – A less than B, A equal to B, and A greater than B.
  • Draw logic diagram.
  • Write and test the Verilog Module for this comparator.
Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.