时钟周期vs机器周期

Clock cycle

The speed of a computer processor, or CPU, is determined by the clock cycle, which is the amount of time between two pulses of an oscillator. Generally speaking, the higher number of pulses per second, the faster the computer processor will be able to process information. The clock speed is measured in Hz, typically either megahertz (MHz) or gigahertz (GHz). For example, a 4GHz processor performs 4,000,000,000 clock cycles per second.
Computer processors can execute one or more instructions per clock cycle, depending on the type of processor. Early computer processors and slower processors can only execute one instruction per clock cycle, but faster, more advanced processors can execute multiple instructions per clock cycle, processing data more efficiently.

时钟周期 计算机处理器或CPU的速度由时钟周期确定,时钟周期是振荡器的两个脉冲之间的时间量。一般而言,每秒脉冲数越多,计算机处理器处理信息的速度就越快。时钟速度以Hz为单位测量,通常为兆赫兹(MHz)或千兆赫兹(GHz)。例如,4GHz处理器每秒执行4,000,000,000个时钟周期。 计算机处理器可以在每个时钟周期执行一个或多个指令,具体取决于处理器的类型。早期的计算机处理器和较慢的处理器每个时钟周期只能执行一条指令,但更快,更先进的处理器每个时钟周期可以执行多条指令,从而更有效地处理数据。

Machine cycle

The steps performed by the computer processor for each machine language instruction received. The machine cycle is a 4 process cycle that includes reading and interpreting the machine language, executing the code and then storing that code.


Four steps of Machine cycle

  1. Fetch - Retrieve an instruction from the memory.
  2. Decode - Translate the retrieved instruction into a series of computer commands.
  3. Execute - Execute the computer commands.
  4. Store - Send and write the results back in memory.

Instruction cycle

    • The sequence of operations that the cpu has to carry out while execution is called instruction cycle.
    • 1:- Read an Instruction
    • 2:- Decode the instruction
    • 3:- Find the address of operand
    • 4:- retrieve an operand
    • 5:- perform desired operation
    • 6:- find the address of destination
    • 7:- store the result into the destination

机器周期

计算机处理器为接收的每个机器语言指令执行的步骤。机器周期是一个4个过程周期,包括读取和解释机器语言,执行代码然后存储该代码。

机器循环的四个步骤

获取 - 从内存中检索指令。

解码 - 将检索到的指令转换为一系列计算机命令。

执行 - 执行计算机命令。

存储 - 将结果发送回内存。

指令周期

执行时cpu必须执行的操作序列称为指令周期。

1: - 阅读说明

2: - 解码指令

3: - 找到操作数的地址

4: - 检索操作数

5: - 执行所需的操作

6: - 找到目的地的地址

7: - 将结果存储到目的地

原文地址:https://www.quora.com/What-is-clock-cycle-machine-cycle-and-instruction-cycle-in-a-microprocessor

最新文章

  1. Linux 多线程条件变量同步
  2. (转)JAVA AJAX教程第三章—AJAX详细讲解
  3. c语言检测文件是否存在int __cdecl access(const char *, int);
  4. Cocos2d-x v3.6制作射箭游戏(二)
  5. WRONGTYPE Operation against a key holding the wrong kind of value
  6. C# Winform 文件编码批量转换工具
  7. Translation perface: <<Professional JavaScript for Web Developers, 3rd Edition>>
  8. C#开发---利用特性自定义数据导出到Excel
  9. 诡异的问题“该字符串未被识别为有效的 DateTime”
  10. SignalR 聊天室实例详解(服务器端推送版)
  11. 守护进程VS守护线程
  12. 4.0、Android Studio配置你的构建
  13. cas 单点登录(SSO)实验之二: cas-client
  14. 帆软报表(finereport) 折叠树
  15. 洛谷P4155 [SCOI2015]国旗计划(贪心,树形结构,基数排序)
  16. log4net.Layout.PatternLayout 用 conversion 模式格式化日志事件【翻译】
  17. 15个Node.js项目列表
  18. spring集成jpa【为什么有 persistant.xml 文件呢?】
  19. Swift2.0语言教程之函数嵌套调用形式
  20. Java中级面试题及答案整理

热门文章

  1. 什么叫强类型的DATASET
  2. 并不对劲的字符串专题(三):Trie树
  3. 关于ArcGis for javascript的使用
  4. 希尔排序(Shellsort)
  5. CI框架中一个类中调用另一个类中已经加载对象测试
  6. python 高阶函数二 map()和reduce()
  7. Linux的远程桌面配置
  8. JS 数据类型入门与typeof操作符
  9. IP地址简单入门
  10. 数据库执行计划慢导致I/O 慢