当前位置:网站首页>Group counting practice experiment 9 -- using cmstudio to design microprogram instructions based on segment model machine (2)
Group counting practice experiment 9 -- using cmstudio to design microprogram instructions based on segment model machine (2)
2022-06-26 12:59:00 【JamSlade】
One 、 The experiment purpose
- Master the instruction design of segmented model machine
Two 、 Experimental equipment
- Hardware : nothing
- Software :CMSstudio
3、 ... and 、 Experimental content - Master the instruction design of segmented model machine
Four 、 Experimental principle - The program and data are in the same ⼀ address space • AR To refer to as an address pointer • increase PC send AR Micromanipulation
- • Programs and data are stored separately , Program segment and data segment , And stack segments • Fingering :PC • Get the opcode and operand • Data access :AR
- • Stack pointer :SP • The stack data – Stored in data segments • Stack data access : – SP send AR – adopt AR To achieve
- • INL DR • OUTL SR • STA [ADDR], SR • LD DR, [ADDR] • JMP ADDR
5、 ... and 、 The experimental steps
• For the following instructions
– INL DR
– OUTH SR
– STA [ADDR], SR
– LD DR, [ADDR]
– JMP ADDR• Write the machine instruction format • Draw the microinstruction flow chart
• send ⽤ The above instruction system is programmed , Realization
– INPUT read ⼊ The data is saved to ADDR,
– take ADDR The content is OUTPUT display ⽰.
– cycle – Be careful :INPUT read ⼊ To memory and memory output to OUTPUT What you have done ⽤ The register of The requirements are not the same ⼀ individual
6、 ... and 、 Commissioning process 、 Results and Analysis• For the following instructions
– INL DR
– OUTH SR
– STA [ADDR], SR
– LD DR, [ADDR]
– JMP ADDR• Write the machine instruction format
According to the experiment 8 It is not difficult for us to set the following format



I designed my own instruction diagram 
Source program

No addition data segment
assume ds:data
It means that this is a segmented ( Simultaneous use ROM and RAM)
Command system

The design of instruction code and length is detailed in my experiment 8 article
Microprogramming
Don't forget here
RD – p.
RS – accidentally
For example, when the source is Register, And the goal is IOL When , At this time, if we set the instruction code to 21
The first 21 convert to 16 Base number
0100 0001
0100 convert to 1101000000( Corresponding forwarding address 640, therefore 2 The beginning corresponds to 640,0 Beginning correspondence 600)
If we use even pass even ( The second even finger here INPUT/OUTPUT Low position — That is to say IOL) So the first pair corresponds to RD part ( That is to say 01, That is to say R1 register )
If you use odd even , So the corresponding odd uses RS part ( That is to say 00, That is to say R0 register )
start 
640
680
6C0
700
740
During the experiment, we can find that the program area is changed 
The data area is also loaded with data by us 
Finally, the remaining registers are filled according to the experimental requirements 
边栏推荐
- 第01章_Linux下MySQL的安装与使用
- Learning Processing Zoog
- el-form-item 包含两个input, 校验这两个input
- 数字信号处理——线性相位型(Ⅰ、Ⅲ型)FIR滤波器设计(1)
- Websocket and socket IO case practice
- [solved] laravel completes the scheduled job task (delayed distribution task) [execute a user-defined task at a specified time]
- [BSidesCF 2019]Kookie 1
- QT .pri 的建立与使用
- 小程序中控件里面的内容较多,让其支持滚动的良好方案
- 快手实时数仓保障体系研发实践
猜你喜欢
![[极客大挑战 2019]RCE ME 1](/img/66/e135f7e5a7cbdeb5b697f3939a3402.png)
[极客大挑战 2019]RCE ME 1

快手实时数仓保障体系研发实践

Verilog中的系统任务(显示/打印类)--$display, $write,$strobe,$monitor

BigInt:处理大数字(任意长度的整数)

Lightflow completed the compatibility certification with "daocloud Enterprise Cloud native application cloud platform"

Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology

Websocket and socket IO case practice

The laravel dingo API returns a custom error message
![[BSidesCF 2019]Kookie 1](/img/22/585d081668e67b8389a1b90aaebe9d.png)
[BSidesCF 2019]Kookie 1
![[esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统](/img/4a/503240b332e3279047c438f1d9845e.png)
[esp32-C3][RT-THREAD] 基于ESP32C3运行RT-THREAD bsp最小系统
随机推荐
PHP returns false when calling redis method decrby less than 0
Php+laravel5.7 use Alibaba oss+ Alibaba media to process and upload image / video files
轻流完成与「DaoCloud Enterprise 云原生应用云平台」兼容性认证
小白懒人专用-win10-win11一键安装版
processing 函数translate(mouseX, mouseY)学习
环形队列php
TP5 thinkphp5 report serialization of'closure'is not allowed
openlayers 绘制动态迁徙线、曲线
7-16 货币系统Ⅰ
Stream流学习记录
Summary of some application research cases of UAV Remote Sensing in forest monitoring
单例的常用创建和使用方式
Generate JDE dot train
QT .pri 的建立与使用
计组实践实验9——使用CMStudio设计基于分段模型机微程序指令(2)
Solution of Splunk iowait alarm
Nodejs framework express and KOA
el-form-item 包含两个input, 校验这两个input
Go 结构体方法
程序员必备,一款让你提高工作效率N倍的神器uTools