2 Bit Comparator Design. I output g when a b ii output e when a b iii output l when a b written 4 6 years ago by sayali bagwe 6 3k modified 4 6 years ago mumbai university comps sem 3 digital logic design and analysis. The truth table for a 4 bit comparator would have 4 4 256 rows.
It consists of four inputs and three outputs to generate less than equal to and greater than between two binary numbers. Comparison is most basic arithmetic operation that determines if one number is greater than equal to or less than the other number. Your task is to derive an expression for the three outputs of the 2 bit comparator that you are designing.
A comparator is shown as figure 2 1.
Share to twitter share to facebook design of 2 bit comparator using when else statement data flow modeling style. A comparator used to compare two binary numbers each of two bits is called a 2 bit magnitude comparator. The output of comparator is usually 3 binary variables indicating. The truth table for a 4 bit comparator would have 4 4 256 rows.