Wykrywanie przepełnienia

Nasza ocena:

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

Pobierz ten dokument za darmo

Podgląd dokumentu
Wykrywanie przepełnienia - strona 1

Fragment notatki:

Overflow detection Overflow is the most important problem that can occur during addition.
Example (2's complement representation):
Let (A)2=(010011.011)2
then (-A)2=(101100.101)2
One of the possible solutions of detecting overflow is based on testing the carry onto and from
sign digit. If both carry signals are the same, the result of addition is correct. Otherwise there was
overflow error during addition operation (see examples presented above).
If overflow occurred, the number of integer digits should be increased (if it is possible).
... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz