当前位置:网站首页>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的安装与使用
- 详细讲解C语言11(C语言系列)
- 软件测试 - 基础篇
- 详细实操分享,下班刷了两小时的搞笑视频,一个月收益7000多
- Redis learning - 01 introduction, installation and configuration
- 别乱用 FULL_CASE 和 PARALLEL_CASE
- 【网络是怎么连接的】第二章(下):一个网络包的接收
- Learning directory
- KITTI Tracking dataset whose format is letf_top_right_bottom to JDE normalied xc_yc_w_h
- 机组实践实验8——使用CMStudio设计基于基本模型机微程序指令(1)
猜你喜欢

文件远程同步、备份神器rsync

Redis learning - 05 node JS client operation redis and pipeline pipeline

第十章 设置结构化日志记录(二)

ES6:Map

Less than 40 lines of code to create a blocprovider

power designer - 自定义注释按钮

ES6模块

NoSQL mongodb - 04 mongodb database and web service combination case

【网络是怎么连接的】第二章(下):一个网络包的接收

Laravel subdomain accesses different routing files and different modules
随机推荐
Vivado 错误代码 [DRC PDCN-2721] 解决
How long ago did PHP get
Research and development practice of Kwai real-time data warehouse support system
Less than 40 lines of code to create a blocprovider
微信小程序测试点总结
How does easygbs solve the abnormal use of intercom function?
Go 结构体方法
第01章_Linux下MySQL的安装与使用
Less than 40 lines of code to create a blocprovider
EasyGBS如何解决对讲功能使用异常?
深入解析 MySQL binlog
Mongodb of NoSQL - 03 mongodb CRUD
Learning directory
Openlayers drawing dynamic migration lines and curves
Fengshentai old shooting range Kali series
Mysql8 master-slave replication
机器学习笔记 - 时间序列的季节性
机组实践实验8——使用CMStudio设计基于基本模型机微程序指令(1)
一个初级多线程服务器模型
710. random numbers in the blacklist