日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2023/12/1 编程问答 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 计算机指令格式_计算机科学组织| 指令格式 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

計算機指令格式

指令格式 (Instruction format )

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

    指令格式按照指令的組成部分描述指令位的內部結構(布局設計)。

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

    指令格式必須包含操作碼,并且地址取決于特定操作數的可用性。

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

    格式可以是隱式或顯式的,這將指示每個操作數的尋址模式。

  • 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.內存傳輸長度:指令長度應等于數據總線長度,或者應為數據總線長度的倍數。
  • 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:

    根據處理器中可能存在的寄存器數量,該體系結構分為兩種類型:

  • Register-Memory references CPU

    寄存器存儲器參考CPU

  • 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

    計算機指令格式

    總結

    以上是生活随笔為你收集整理的计算机指令格式_计算机科学组织| 指令格式的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。