2 votes 2 votes Qus 12. A magnitude comparator consists of inputs A[A3 A2 A1 A0] and B[B3 B2 B1 B0]. The total number of comparisons performed for A>B is ______________ Vasu_gate2017 asked Jan 12, 2017 • edited Jan 16, 2017 by Vasu_gate2017 Vasu_gate2017 483 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply target2017 commented Jan 12, 2017 reply Follow Share A=4 bit , B=4 bit no. of A=B => 2^4 = 16 total = 24×24 = 28 = 256 Rest = toal - no. of a=b = 256 - 16 = 240 So A>B = 240/2 = 120 0 votes 0 votes Vasu_gate2017 commented Jan 12, 2017 reply Follow Share Please elaborate..how magnitude comparator works if A3>B3 then A>B ...............................................................1 comparison if A3=B3 but A2>B2 then A>b................................................2 comparison if A3=B3 and A2=B2 but A1>B1 then A>B..............................3 comparison if A3=B3 and A2=B2 and A1=B1 but A0>B0 then A>B.............4 comparison so TOTAL=10 comparisons This approach is wrong? 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes maximum it will take 10 comparision . http://www.electronicshub.org/digital-comparator-and-magnitude-comparator/ IamRishabh answered Jan 12, 2017 IamRishabh comment Share Follow See all 0 reply Please log in or register to add a comment.