一个机器周期 计算机

机器周期 (Machine Cycle)

The cycle during which a machine language instruction is executed by the processor of the computer system is known as the machine cycle. If a program contains 10 machine language instruction, 10 separate machine cycles should be executed for running the program. As the machine cycle contains four phases namely fetching, decoding, executing and storing.

由计算机系统的处理器执行机器语言指令的周期称为机器周期 。 如果程序包含10条机器语言指令,则应运行10个单独的机器周期来运行该程序。 由于机器周期包含四个阶段,即获取,解码,执行和存储。

The four-phase of the machine cycle is usually grouped into two categories:

机器周期的四个阶段通常分为两类:

  1. Instruction cycle

    指令周期

  2. Execution cycle

    执行周期

1)指令周期 (1) Instruction cycle)

This concept describes the execution sequence of the program. Instruction cycle includes the first two phases, fetching and decoding.

这个概念描述了程序的执行顺序。 指令周期包括前两个阶段,即获取和解码。

i)提取周期 (i) Fetch cycle)

In this cycle, the instructions related to binary sequence is transferred from the memory to CPU.

在该循环中,与二进制序列相关的指令从存储器传送到CPU。

  • CPU generates the memory request based on the program counter to read the instruction from the memory.

    CPU根据程序计数器生成存储器请求,以从存储器中读取指令。

  • Program Counter holds the starting instruction address and immediately points the next instruction address.

    程序计数器保存起始指令地址,并立即指向下一个指令地址。

  • Here, the starting address is provided by the user and the next instruction address is calculated by incrementing.

    此处,起始地址由用户提供,下一条指令地址通过递增来计算。

  • Step size is depending on the size or length of the instruction i.e. if the instruction size is n byte then the step size is n.

    步长取决于指令的大小或长度,即,如果指令大小为n字节,则步长为n。

  • When the processor supports with fixed length instruction then the PC is incremented to affixed constant during the fetch cycle to points the next time instruction address.

    当处理器支持固定长度的指令时,则PC在读取周期内递增到固定的常数,以指向下一个时间指令地址。

  • So during the fetch cycle only the OPCODE related byte to transfer to the CPU. Then PC will be incremented by 1. During the decoding process, the program counter is incremented the next instruction address.

    因此,在获取周期中,只有与OPCODE相关的字节才能传输到CPU。 然后PC将增加1。在解码过程中,程序计数器将增加下一个指令地址。

  • The process of transfer the instruction related binary sequence from the memory to CPU is called an instruction fetch.

    将指令相关的二进制序列从存储器传输到CPU的过程称为指令提取。

ii)解码 (ii) Decoding)

This phase of instruction cycle is responsible for breaking down the instruction into different parts so that it can be easily understood before being processed by the CPU. The Instruction is usually decoded by the instruction decoder which is a vital component of the CPU. The decoding of an instruction is also known as interpreting. The instruction is interpreted to determine two keys attributes of an instruction the opcode and the operands. the type of operations to be performed is identified by the opcode and the data on which the operation is to be performed is identified by the operand. Data is transferred to the Data Register (DR).

指令周期的这个阶段负责将指令分解为不同的部分,以便在被CPU处理之前可以很容易地理解它。 指令通常由指令解码器解码,而指令解码器是CPU的重要组成部分。 指令的解码也称为解释。 解释该指令以确定操作码和操作数的一条指令的两个键属性。 操作码标识要执行的操作的类型,操作数标识要执行的数据。 数据被传输到数据寄存器(DR)。

2)执行周期 (2) Execution cycle)

Execution cycle includes two phase executing and storing. The execution cycle executes the instruction and stores the result back to the main memory or sends it to the output device of the computer system.

执行周期包括两个阶段的执行和存储。 执行周期执行该指令并将结果存储回主存储器或将其发送到计算机系统的输出设备。

i)执行 (i) Executing )

The objective of the execution cycle processes the currently fetched instructions.

执行周期的目标是处理当前获取的指令。

  • To process the instruction there is a need for identifying the type of the operations associated with the instruction.

    为了处理该指令,需要识别与该指令相关联的操作的类型。

  • Opcode indicates the type of the operations.

    操作码指示操作的类型。

  • The opcode is present in the instruction but that information is defined by the instruction format.

    指令中存在操作码,但该信息由指令格式定义。

  • Instruction format gives the layout of an instruction that means is shown the internal structure of an instruction.

    指令格式给出了指令的布局,即表示了指令的内部结构。

  • Instruction format is classified into five types based on the CPU organization.

    指令格式根据CPU的组织分为五种类型。

  • CPU Organisation is classified into three types based on the availability of the ALU operand.

    根据ALU操作数的可用性,CPU组织分为三种类型。

ii)存放 (ii) Storing)

In this phase the result computed in the execution phase is either sent to the memory or to an output device of the computer system. This PC of the CPU is also updated in this phase to point to the next instruction that is to be executed.

在此阶段,在执行阶段计算出的结果将发送到内存或计算机系统的输出设备。 在此阶段,CPU的此PC也将更新,以指向要执行的下一条指令。

翻译自: https://www.includehelp.com/cso/machine-cycle.aspx

一个机器周期 计算机

一个机器周期 计算机_计算机科学组织| 机器周期相关推荐

  1. 计算机指令格式_计算机科学组织| 指令格式

    计算机指令格式 指令格式 (Instruction format ) Instruction format describes the internal structures (layout desi ...

  2. 计算机指令集_计算机科学组织| 指令集及其类型

    计算机指令集 指令系统 (Instruction Set) An instruction set can be defined as a group of instruction that a pro ...

  3. 并行计算机架构_计算机科学组织| 并行处理

    并行计算机架构 并行处理 (Parallel Processing) Parallel processing is processing of the data concurrently. We pr ...

  4. 计算机科学导论专业理解,浅析计算机专业_计算机科学导论_课程的现状及思考.doc...

    浅析计算机专业_计算机科学导论_课程的现状及思考 傅勇 1,张琳 2 (1.南昌大学 人民武装学院 计算机系,江西 南昌 330043:2.南昌陆军指挥学院,江西 南昌 330043)摘要:<计 ...

  5. 大学生计算机python_人人都能学计算机:计算机科学入门与Python编程_学堂在线章节测试答案...

    查看答案 人人都能学计算机:计算机科学入门与Python编程_学堂在线章节测试答案 单击图层调板下方的新图层按钮可以产生新图层.A:错B:对 在图示的薄壁杆件截面图形中,形心与弯曲中心重合的截面有() ...

  6. 计算机器件及设备毕业设计论文,毕业设计(论文)_计算机科学与技术的应用领域简述论文.doc...

    毕业设计(论文)_计算机科学与技术的应用领域简述论文 <计算机科学引论>课程专题报告 题 目:计算机科学与技术的应用领域简述 学生姓名: 徐铭贝 学 院:信息工程学院 系 别:计算机系 专 ...

  7. 计算机编程导论python程序设计答案-学堂在线_计算机科学与Python编程导论_作业课后答案...

    学堂在线_计算机科学与Python编程导论_作业课后答案 答案: 更多相关问题 近代中国完全沦为半殖民地半封建社会的标志是:A.<马关条约>B.<辛丑条约>C.<凡尔赛和 ...

  8. 北京化工大学计算机专业就业,北京化工大学特色专业介绍_计算机科学与技术_专业课程介绍_专业排名_就业方向...

    北京化工大学特色专业介绍_计算机科学与技术_专业课程介绍_专业排名_就业方向 本专业是任何行业和领域所需的数字信息处理专业.计算机信息技术发展的趋势是多功能化.高效率.高可靠性,它更广泛的适用性和更强 ...

  9. 齐鲁师范学院计算机专业师资,齐鲁师范学院特色专业介绍_计算机科学与技术_专业课程介绍_专业排名_就业方向...

    齐鲁师范学院特色专业介绍_计算机科学与技术_专业课程介绍_专业排名_就业方向 学科:工学 门类:电气信息类 专业名称:计算机科学与技术 业务培养目标:本专业培养具有良好的科学素养,系统地.较好地掌握计 ...

最新文章

  1. Spring3.0 AOP 具体解释
  2. Day 1 用户交互
  3. 最简单的基于FFmpeg的AVDevice例子(读取摄像头)
  4. python数据分析numpy_(转)Python数据分析之numpy学习
  5. 用冒泡法对10个整数从小到大排序
  6. 服务端断开_Java多线程技术:实现多用户服务端Socket通信
  7. 【Kafka】Kafka幂等性原理及实现剖析
  8. AVOD-代码理解系列(三)
  9. fl2440第一次烧录
  10. 微信朋友圈怎么发GIF
  11. python爬app视频_用Python爬抖音APP短视频
  12. 围棋打谱软件 android,MultiGo(围棋打谱工具)
  13. 如何给视频加背景音乐?简单快速上手,制作抖音等小视频必备!
  14. 深度学习名词(中英文对照)
  15. 三种最常用的期货交易系统,99%的人都不知道
  16. android view 前景色,Android开发中的一些小技巧
  17. DDOS专题详细讲解
  18. TiDB-explain详解
  19. Java核心技术(进阶)
  20. 安装mysql驱动报错_java.sql.SQLException: org.gjt.mm.mysql.Driver 报错【解决办法】

热门文章

  1. BurpSuite v2021.8.2安装使用
  2. 实战sqlmap绕过WAF
  3. html比赛项目,趣味运动会最新个人比赛项目
  4. AngularJS中ui-router全攻略
  5. 【Python】[02]初识Python
  6. undefined reference 问题各种情况分析
  7. SVN 定时 更新代码 Demo
  8. idea 创建多模块依赖Maven项目
  9. 用JavaScript往DIV动态添加内容
  10. Linux 命令积累 fuser lsof mtr