Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MICROPROCESDORES
UNIVERSIDAD TECNOLOGICA
2018
Operaciones aritméticas
Complemento A2 -6 1010
-5 1011
-4 1100
0111 +7 -3 1101
-2 1110
1001 -7 -1 1111
0 0000
-2n-1 hasta +2n-1-1 1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
Adición y sustracción números
sin signo
SUMA RESTA
1 0 1 0 1 0 1 0
1 1 0 1 1 1 0 0
Adición y sustracción
Full Adder
Sumador de n bits
Operaciones aritméticas
Adición y sustracción
Full Subtractor
Operaciones aritméticas
Adición y sustracción
we get 1100 + 1101 = 11001, which produces a
For example, the valid range for a 4- 1 for both Unsigned_Overflow and c . XORing
3
bit signed number goes from –2 to 2 –
3 3
these two values together gives a 0 for the
1 (i.e., from –8 to 7). Adding the two Signed_Overflow signal. On the other hand, if
signed numbers, 4 + 5 = 9 should we treat the two binary numbers, 1100 and 1101,
result in a signed number overflow as unsigned numbers, then we are adding 12 +
since 9 is outside the range
Operaciones aritméticas
Sumador restador
Operaciones aritméticas
Multiplicación
Sin signo
Operaciones aritméticas
Multiplicación
Con signo
Inicio
Algoritmo de Booth
A=0 Q-1 =0
M=Dato1 Q=Dato2
Operaciones aritméticas
C=nbit
10 01
Q0Q1
A=A-M 11 00 A=A+M
Rot Aritm derecha
AQQ-1
c=c-1
N
C=0?
S
Fin
Multiplicación
Con signo Algoritmo de Booth
Inicio
A=0 Q-1 =0
M=Dato1 Q=Dato2
C=nbit
Operaciones aritméticas
10 01
Q0Q1
A=A-M 11 00 A=A+M
Rot Aritm derecha
AQQ-1
c=c-1
N
C=0?
S
Fin
División
Con signo Algoritmo división
Operaciones aritméticas
Punto flotante – Números reales
S Exponent Fraction
Operaciones aritméticas
Single
0 127 255
-128 0 +127
Punto flotante – Números reales
single: 8 bits single: 23 bits
S Exponent Fraction
S Exponent Fraction