Arquitetura de Computadores Prof Luiza Arquitetura de Computadores

  • Slides: 28
Download presentation
Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

nível 5 linguagem orientada para problemas tradução nível 4 linguagem de montagem tradução nível

nível 5 linguagem orientada para problemas tradução nível 4 linguagem de montagem tradução nível 3 sistema operacional interpretação nível 2 máquina convencional interpretação nível 1 microprogramação execução direta nível 0 lógica digital Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

BA BC BB PC AC SP IR TIR 0 +1 -1 AMASK SMASK A

BA BC BB PC AC SP IR TIR 0 +1 -1 AMASK SMASK A B C endereço M 0 D E F L 0 LA LB MAR L 1 MBR dado M 1 M 2 M 3 Arquitetura de Computadores A 0 AMUX F 0 F 1 ALU DESL Profª Luiza N S 0 S 1 Z

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

0000 xxxxxx LODD 0001 xxxxxx STOD 0010 xxxxxx ADDD 0011 xxxxxx SUBD 0100 xxxxxx

0000 xxxxxx LODD 0001 xxxxxx STOD 0010 xxxxxx ADDD 0011 xxxxxx SUBD 0100 xxxxxx JPOS 0101 xxxxxx JZER 0110 xxxxxx JUMP 0111 xxxxxx LOCO 1000 xxxxxx LODL 1001 xxxxxx STOL 1010 xxxxxx ADDL 1011 xxxxxx SUBL 1100 xxxxxx JNEG 1101 xxxxxx JNZE 1110 xxxxxx CALL AC : = M[x] : = AC AC : = AC + M[x] AC : = AC - M[x] se AC > 0 então PC : = x se AC = 0 então PC : = x AC : = M[SP + x] : = AC AC : = AC + M[SP +x] AC : = AC - M[SP + x] se AC < 0 então PC : = x se AC /= 0 então PC : = x SP : = SP - 1; M[SP] : = PC; PC : = x 1111000000 PSHI SP : = SP - 1; M[SP] : =M[AC] 111100100000 POPI M[AC] : = M[SP]; SP : =SP+1 11110100000 PUSH SP : = SP - 1; M[SP] : = AC 111101100000 POP AC : = M[SP]; SP : = SP + 1 11111000000 RETN PC : = M[SP]; SP : = SP + 1 111110100000 SWAP TMP : = AC; AC : = SP; SP : = TMP 11111100 yyyy INSP SP : = SP + y 11111110 yyyy DESP SP : = SP - y Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

0000 0001 0010 0011 0100 0101 0110 0111 ADD r 1 : = r

0000 0001 0010 0011 0100 0101 0110 0111 ADD r 1 : = r 1 + r 2 AND r 1 : = r 1. r 2 MOVE r 1 : = r 2 COMPL r 1 : = inv (r 2) LSHIFT r 1 : = lshift (r 2) RSHIFT r 1 : = rshift (r 2) GETMBR r 1 : = MBR TEST if r 2 < 0 then N : = true; if r 2 = 0 then Z : = true BEGRD MAR : = r 1; rd BEGWR MAR : = r 1; MBR : = r 2; wr CONRD RD CONWR WR 1000 1001 1010 1011 1100 1101 NJUMP 1110 ZJUMP 1111 UJUMP if N then goto r if Z then goto r Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

Arquitetura de Computadores Profª Luiza

CPU Memória Controlador de vídeo Controlador de teclado Controlador de disquete Controlador de disco

CPU Memória Controlador de vídeo Controlador de teclado Controlador de disquete Controlador de disco Estrutura lógica de um computador pessoal Arquitetura de Computadores Profª Luiza