1,298 views
2 votes
2 votes

The total number of comparisons performed in a 8-bit magnitude comparator consist of inputs A[A4, A3, A2, A1] and B[B4, B3, B2, B1] then condition for A>B is :

A 255 x 26

B 255 x 27

C 255 x 28​​​​​

D 255 x 29

1 Answer

2 votes
2 votes


for A > B 


=  (2 (^ (2^n) )  – 2^n )/2    (n = number of bits )
=  (2 (^ (2^8) )  – 2^8 )/2 
=  (2 (^ (16) )  – 2^8 )/2 

= ((2^8) * (2^8) – 1)  )/2 
= 128(255)
= 255 x 2^7

Related questions

0 votes
0 votes
2 answers
2
rajveer43 asked Jan 12
178 views
The number of full and half-adders required to add $32$-bit numbers is______________________
0 votes
0 votes
0 answers
3
Redcom1988 asked Dec 23, 2023
176 views
Design a counter according to the state diagram above using only NAND gates and JK Flip-flops (if needed) complete with state tables
0 votes
0 votes
0 answers
4