计算机原理课设报告 - 21 -
M56=M5 OR M6
四、微程序设计,包括各条指令的指令流程和微程序列表。(均为十六进制)
机器指令 指令流程 PC+1 PC->MAR 取指令 M->MDR MDR->IR 0->uPC PC+1 PC->MAR MOV R,Imm M->MDR MDR->R 0->uPC R->R MOV R,R 0->uPC R->SC MOV PC+1 [Imm],R PC->MAR PC_BUS CPMAR 0000 000C 32 PC+1 CPPC 0000 0003 31 0_MPC CPC RDGR 1000 0000 0104 0000 21 30 微程序 PC+1 CPPC PC_BUS CPMAR RD CPMDR RAM_BUS CPIR MPCLDN PC+1 CPPC PC_BUS CPMAR RD CPMDR RAM_BUS WRGR 0_MPC WRGR RDGR 机器代码 0000 0003 0000 000C 0000 00B0 0400 0100 0010 0000 0000 0003 0000 000C 0000 00B0 0008 0100 1000 0000 00C0 0000 微地址 00 01 02 03 04 10 11 12 13 14 20 计算机原理课设报告 - 22 -
M->MDR MDR->MAR SC->M 0->uPC PC+1 PC->MAR M->MDR MOV MDR->MAR R,[Imm] M->MDR MDR->R 0->uPC R->SA PC+1 PC->MAR M->MDR ADD R,R MDR->IR R->SB ALU->SZ SZ->R 0-> uPC R->SA AND R,R PC+1 PC+1 CPPC 0000 0003 61 RD CPMDR RAM_BUS WRGR 0_MPC RE CPSA PC_BUS CPMAR RD CPMDR RAM_BUS CPMAR RAM_BUS CPIR RDGR CPSB S(1001) CN CPZ Z_BUS WRGR 0_MPC RE CPSA 0000 00B0 0008 0100 1000 0000 0004 0200 0000 000C 0000 00B0 0000 0108 0400 0100 0004 0400 0041 4800 0088 0000 1000 0000 0004 0200 44 45 46 50 51 52 53 54 55 56 57 58 60 RAM_BUS CPMAR 0000 0108 43 RD CPMDR RAM_BUS CPMAR C_BUS WR 0_MPC PC+1 CPPC PC_BUS CPMAR RD CPMDR 0000 00B0 0000 0108 0200 0060 1000 0000 0000 0003 0000 000C 0000 00B0 33 34 35 36 40 41 42 计算机原理课设报告 - 23 -
PC->MAR M->MDR MDR->IR R->SB ALU->SZ SZ->R 0-> uPC PC+1 PC->MAR M->MDR MDR->PC JMP Imm PC->MAR M->MDR MDR->IR IR->Upc R->SA PC+1 PC->MAR SUB R,R M->MDR MDR->IR R->SB ALU->SZ PC_BUS CPMAR RD CPMDR RAM_BUS CPIR MPCLDN RE CPSA PC+1 CPPC PC_BUS CPMAR RD CPMDR RAM_BUS CPIR RDGR CPSB S(0110) CN CPZ 0000 000C 0000 00B0 0400 0100 0010 0000 0004 0200 0000 0003 0000 000C 0000 00B0 0400 0100 0004 0400 0040 3000 74 75 76 77 80 81 82 83 84 85 86 PC_BUS CPMAR RD CPMDR RAM_BUS CPIR RDGR CPSB S(1011) CN CPZ Z_BUS WRGR 0_MPC PC+1 CPPC PC_BUS CPMAR RD CPMDR RAM_BUS CPPC 0000 000C 0000 00B0 0400 0100 0004 0400 0040 D800 0088 0000 1000 0000 0000 0003 0000 000C 0000 00B0 0000 0101 62 63 64 65 66 67 68 70 71 72 73 计算机原理课设报告 - 24 -
SZ->R 0-> uPC R->SA ALU->SZ INC R SZ->R 0-> uPC R->SA PC+1 PC->MAR M->MDR MDR->MAR OR R,[Imm] M->MDR MDR->SB ALU->SZ SZ->R 0-> uPC R->SA PC+1 PC->MAR NAND R,R M->MDR MDR->IR R->SB RD CPMDR RAM_BUS CPIR RDGR CPSB 0000 00B0 0400 0100 0004 0400 B3 B4 B5 RD CPMDR RAM_BUS CPSB S(1110) M CPZ Z_BUS WRGR 0_MPC RE CPSA PC+1 CPPC PC_BUS CPMAR 0000 00B0 0000 0500 0040 F000 0088 0000 1000 0000 0004 0200 0000 0003 0000 000C A5 A6 A7 A8 A9 B0 B1 B2 Z_BUS WRGR 0_MPC RE CPSA PC+1 CPPC PC_BUS CPMAR RD CPMDR RAM_BUS CPMAR 0088 0000 1000 0000 0004 0200 0000 0003 0000 000C 0000 00B0 0000 0108 92 93 A0 A1 A2 A3 A4 Z_BUS WRGR 0_MPC RE CPSA S(0000) CPZ 0088 0000 1000 0000 0004 0200 0040 0000 87 88 90 91