Komparator binarny

Nasza ocena:

3
Wyświetleń: 1610
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Komparator binarny - strona 1

Fragment notatki:

Comparison If we use binary comparator for numbers in sign magnitude, 1's or 2's complement representation,
the result isn't correct. It is caused by sign bit, which is equal 1 for negative numbers but in binary
numbers has the biggest weight. To obtain correct result the negative numbers should be
complemented (in 1's and 2's complement representation), or both numbers should be tested like
during addition (in sign magnitude representation).
Using sign magnitude or 1's complement representation, there is one more problem: there are two
zeros: positive (e.g. 0000.0000) and negative (1000.0000 for sign magnitude or 1111.1111 for 1's
complement). For these reasons comparator should use an additional combinational circuit,
detecting positive and negative zeros and forcing equality one the output.
... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz