请帮我做一份关于用TEC-8模型机实现或非指令系统的各指令的微程序方框图,以及微指令清单
时间: 2024-03-26 10:34:19 浏览: 61
好的,以下是一个简单的用TEC-8模型机实现或非指令系统的各指令的微程序方框图,以及微指令清单的示例:
1. 加法指令
微程序方框图:
```
_____________________
| |
V |
_______ ___________
|Fetch | |Load MDR |
|Instr. |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Fetch | |Load MAR |
|Addr. |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Fetch | |Load MBR |
|Data 1 |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Fetch | |Load AC |
|Data 2 |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Add | |Store AC |
|_______|<------|to Addr. |
|___________|
```
微指令清单:
| 微指令 | 控制信号 |
| ------ | ------------------ |
| 1 | MAR <- PC |
| 2 | MBR <- M(MAR) |
| 3 | IR <- MBR |
| 4 | MAR <- PC + 1 |
| 5 | MBR <- M(MAR) |
| 6 | MAR <- MBR |
| 7 | MBR <- M(MAR) |
| 8 | AC <- MBR |
| 9 | MAR <- PC + 2 |
| 10 | MBR <- M(MAR) |
| 11 | AC <- AC + MBR |
| 12 | M(MAR) <- AC |
| 13 | PC <- PC + 3 |
2. 减法指令
微程序方框图:
```
_____________________
| |
V |
_______ ___________
|Fetch | |Load MDR |
|Instr. |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Fetch | |Load MAR |
|Addr. |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Fetch | |Load MBR |
|Data 1 |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Fetch | |Load AC |
|Data 2 |-----> |with Addr.|
|_______| |__________|
| |
V |
_______ ___________
|Sub | |Store AC |
|_______|<------|to Addr. |
|___________|
```
微指令清单:
| 微指令 | 控制信号 |
| ------ | ------------------ |
| 1 | MAR <- PC |
| 2 | MBR <- M(MAR) |
| 3 | IR <- MBR |
| 4 | MAR <- PC + 1 |
| 5 | MBR <- M(MAR) |
| 6 | MAR <- MBR |
| 7 | MBR <- M(MAR) |
| 8 | AC <- MBR |
| 9 | MAR <- PC + 2 |
| 10 | MBR <- M(MAR) |
| 11 | AC <- AC - MBR |
| 12 | M(MAR) <- AC |
| 13 | PC <- PC + 3 |
以上是一个简单的示例,实际的微程序方框图和微指令清单可能会更加复杂。需要注意的是,TEC-8模型机的具体实现可能会因不同的硬件和软件环境而有所不同。如果您需要更详细的信息,请参阅相关文献或资料。
阅读全文