计算机指令格式

指令格式 (Instruction format )

  1. Instruction format describes the internal structures (layout design) of the bits of an instruction, in terms of its constituent parts.

    指令格式按照指令的组成部分描述指令位的内部结构(布局设计)。

  2. An Instruction format must include an opcode, and address is dependent on an availability of particular operands.

    指令格式必须包含操作码,并且地址取决于特定操作数的可用性。

  3. The format can be implicit or explicit which will indicate the addressing mode for each operand.

    格式可以是隐式或显式的,这将指示每个操作数的寻址模式。

  4. Designing of an Instruction format is very complex. As we know a computer uses a variety of instructional. There are many designing issues which affect the instructional design, some of them are given are below:

    指令格式的设计非常复杂。 众所周知,计算机使用各种指令。 有许多影响教学设计的设计问题,下面列出其中一些:

    • Instruction length: It is a most basic issue of the format design. A longer will be the instruction it means more time is needed to fetch the instruction.指令长度:这是格式设计的最基本问题。 指令越长,则意味着需要更多的时间来提取指令。
    • Memory size: If larger memory range is to be addressed then more bits will be required in the address field.存储器大小:如果要寻址更大的存储器范围,则地址字段中将需要更多位。
    • Memory organization: If the system supports the virtual memory then memory range which needs to be addressed by the instruction, is larger than the physical memory.内存组织:如果系统支持虚拟内存,则该指令需要解决的内存范围大于物理内存。
    • Memory transfer length: Instruction length should be equal to the data bus length or it should be multiple of it.内存传输长度:指令长度应等于数据总线长度,或者应为数据总线长度的倍数。
  5. Instruction formats are classified into 5 types based on the type of the CPU organization. CPU organization is divided into three types based on the availability of the ALU operands, which are as follows here:

    根据CPU组织的类型, 指令格式分为5种类型。 根据ALU操作数的可用性,CPU的组织分为三种类型,如下所示:

1) STACK CPU

1)堆栈CPU

In this organization, ALU operands are performed only on a stack data. This means that both of the ALU operations are always required in the stack. The same stack is also used as the destination. In the stack, we can perform insert and deletion operation at only one end which is called as the top of a stack. So in this format, there is no need of address because in this TOS becomes the default location.

在这种组织中,仅对堆栈数据执行ALU操作数。 这意味着在堆栈中始终需要两个ALU操作。 相同的堆栈也用作目标。 在堆栈中,我们只能在称为堆栈顶部的一端执行插入和删除操作。 因此,以这种格式,不需要地址,因为在此TOS中,它成为默认位置。

In this organization, only the ALU operands are zero address operation whereas data transfer instructions are not a zero address instruction. The computable instruction format of STACK CPU is Zero Address Instruction Format.

在这种组织中,只有ALU操作数是零地址操作,而数据传输指令不是零地址指令。 STACK CPU的可计算指令格式为零地址指令格式

.minHeight{ min-height: 250px; } @media (min-width: 1025px){ .minHeight{ min-height: 90px; } } .minHeight{ min-height: 250px; } @media (min-width: 1025px){ .minHeight{ min-height: 90px; } }

2) Accumulator CPU

2)累加器CPU

In this organization, one of the ALU operands is always present in the accumulator. The same accumulator is also used as the destination. Another ALU operand is present either in the register or in memory. In processor design, only one accumulator is present so it becomes the default location.

在这种组织中,累加器中始终存在一个ALU操作数。 同一累加器也用作目标。 寄存器或存储器中存在另一个ALU操作数。 在处理器设计中,仅存在一个累加器,因此它成为默认位置。

The computable instruction format of Accumulator CPU is One Address Instruction Format.

累加器CPU的可计算指令格式为“ 一个地址指令格式”

3) General Register CPU

3)通用寄存器CPU

Based on the number of the registers possible in the processors, the architecture is divided into two types:

根据处理器中可能存在的寄存器数量,该体系结构分为两种类型:

  1. Register-Memory references CPU

    寄存器存储器参考CPU

  2. Register-Register references CPU

    寄存器-寄存器引用CPU

i) Register-Memory Reference CPU

i)寄存器存储器参考CPU

In this architecture, processors support less number of registers. Therefore register file size is small. In this organization, the first ALU operand is always required in the register. The same register can also be used as the destination. The second ALU operand is present either in a register or in memory. The computable instruction format of the register to memory reference CPU is Two Address Instruction Format.

在这种体系结构中,处理器支持较少数量的寄存器。 因此,寄存器文件的大小很小。 在这种组织中,寄存器中始终需要第一个ALU操作数。 相同的寄存器也可用作目标。 第二个ALU操作数存在于寄存器或存储器中。 寄存器到存储器参考CPU的可计算指令格式为“ 两个地址指令格式”

ii) Register-Register Reference CPU

ii)寄存器-寄存器参考CPU

In this architecture, processors support number of registers, therefore, register file size is large. In this organization, ALU operands are performed only on a registers data that means both of the ALU operands are required in the register. Due to more number of register present in the CPU, the separate register is used to store the result. The computable instruction format of Register-Register Reference CPU is Three Address Instruction Format.

在这种体系结构中,处理器支持寄存器的数量,因此,寄存器文件的大小很大。 在这种组织中,仅对寄存器数据执行ALU操作数,这意味着寄存器中需要两个ALU操作数。 由于CPU中存在更多的寄存器,因此使用单独的寄存器存储结果。 寄存器-寄存器参考CPU的可计算指令格式为三地址指令格式。

Four Address instruction format

四地址指令格式

This format contains the 4 different address fields with an opcode. Since PC is used as the mandatory register in the CPU design which is used to hold the next instruction address. So four instruction format is not in the use.

此格式包含4个不同的地址字段和一个操作码。 由于PC被用作CPU设计中的强制寄存器,用于保存下一条指令地址。 因此没有使用四种指令格式。

翻译自: https://www.includehelp.com/cso/instruction-format.aspx

计算机指令格式

计算机指令格式_计算机科学组织| 指令格式相关推荐

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

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

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

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

  3. 一个机器周期 计算机_计算机科学组织| 机器周期

    一个机器周期 计算机 机器周期 (Machine Cycle) The cycle during which a machine language instruction is executed by ...

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

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

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

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

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

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

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

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

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

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

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

    学堂云_计算机科学与Python编程导论_作业课后答案 答案: 更多相关问题 保本基金参与股指期货交易,应当根据风险管理的原则,以套期保值为目的.() 基金经理主要依据股票投资价值报告来决定实际的投资 ...

最新文章

  1. 如何快速get到AI工程师面试重点,这12道题必备!
  2. 廖雪峰Java1-2Java程序基础-3整数运算
  3. 【Kotlin】接口 ( 声明 | 实现 | 接口方法 | 接口属性 | 接口覆盖冲突 | 接口继承 )
  4. 【Python基础】学习Python 一定要吃透这 5 个内置函数
  5. Java中Map集合类的用法(HashMap)
  6. 【性能优化】 之 10053 事件
  7. 如何理解和运用策略模式
  8. ObjectDataSource控件的使用...
  9. 1345.跳跃游戏IV-LeetCode
  10. 二分类模型(清风建模学习笔记)
  11. Unity3D放破解反编译。DLL加密,mono解密。全程详解。
  12. 用python写一个股票提醒、并用邮件方式发送出去
  13. 高通7x27a平台UART配置
  14. 活动创意来源和感想思考
  15. ubuntu基本配置学习(1)
  16. 什么叫版面_什么叫版面,版心,版式?
  17. 齐鲁工业大学计算机应用技术研究生专业,研究生培养
  18. CS230 Full-cycle DL progjects
  19. 学校计算机维护投标,计算机维护招投标技术文件.doc
  20. UG/NX二次开发Siemens官方NXOPEN实例解析—2.8 DrawingCycle(图纸打印)

热门文章

  1. ubuntu下c 访问mysql_Ubuntu下用C语言访问MySQL数据库
  2. 计算机信息技术为教育带来的变化,信息技术对课堂教学带来的变化
  3. (转)模拟鼠标/键盘
  4. src/main/resorces applicationContext.xml
  5. 图像处理中常见的时域与频域区别与关系
  6. centos7输入法,非root用户无法使用
  7. axios请求报Uncaught (in promise) Error: Request failed with status code 404
  8. POJ 3468 A Simple Problem with Integers(线段树:区间更新)
  9. 读书笔记-你不知道的JS上-混入与原型
  10. 在 Windows 上测试 Redis Cluster的集群填坑笔记