计算机组成原理仿真系统中微指令分析与设计中生成①与指令AND RD,RS:(RS)与(RD)→(RD) ②求反指令NOT (addr1),(addr2):/(addr1)→(addr2) ③异或指令XOR (addr1),(addr2):(addr1)异或(addr2)→(RD) ④或指令OR (addr1),(addr2):(addr1)或(addr2)→(RD) ⑤数据传送指令MOV RD,(addr):(addr)→(RD)的微指令吗、码
时间: 2023-11-12 11:03:45 浏览: 105
生成①指令AND RD,RS的微指令:
1. MAR <- PC
2. PC <- PC + 1
3. MBR <- M[MAR]
4. IR <- MBR
5. MAR <- PC
6. PC <- PC + 1
7. MBR <- M[MAR]
8. RS <- MBR
9. MAR <- PC
10. PC <- PC + 1
11. MBR <- M[MAR]
12. RD <- MBR
13. (RS) AND (RD) -> (RD)
生成②反指令NOT (addr1),(addr2)的微指令:
1. MAR <- PC
2. PC <- PC + 1
3. MBR <- M[MAR]
4. IR <- MBR
5. MAR <- PC
6. PC <- PC + 1
7. MBR <- M[MAR]
8. addr1 <- MBR
9. NOT (addr1) -> (addr2)
生成③异或指令XOR (addr1),(addr2)的微指令:
1. MAR <- PC
2. PC <- PC + 1
3. MBR <- M[MAR]
4. IR <- MBR
5. MAR <- PC
6. PC <- PC + 1
7. MBR <- M[MAR]
8. addr1 <- MBR
9. MAR <- PC
10. PC <- PC + 1
11. MBR <- M[MAR]
12. addr2 <- MBR
13. (addr1) XOR (addr2) -> (RD)
生成④或指令OR (addr1),(addr2)的微指令:
1. MAR <- PC
2. PC <- PC + 1
3. MBR <- M[MAR]
4. IR <- MBR
5. MAR <- PC
6. PC <- PC + 1
7. MBR <- M[MAR]
8. addr1 <- MBR
9. MAR <- PC
10. PC <- PC + 1
11. MBR <- M[MAR]
12. addr2 <- MBR
13. (addr1) OR (addr2) -> (RD)
生成⑤数据传送指令MOV RD,(addr)的微指令:
1. MAR <- PC
2. PC <- PC + 1
3. MBR <- M[MAR]
4. IR <- MBR
5. MAR <- PC
6. PC <- PC + 1
7. MBR <- M[MAR]
8. addr <- MBR
9. (addr) -> (RD)
阅读全文