WO2010012167A1 - Method and apparatus of instruction execution - Google Patents

Method and apparatus of instruction execution Download PDF

Info

Publication number
WO2010012167A1
WO2010012167A1 PCT/CN2009/071558 CN2009071558W WO2010012167A1 WO 2010012167 A1 WO2010012167 A1 WO 2010012167A1 CN 2009071558 W CN2009071558 W CN 2009071558W WO 2010012167 A1 WO2010012167 A1 WO 2010012167A1
Authority
WO
WIPO (PCT)
Prior art keywords
variable
addend
comparison
instruction
value
Prior art date
Application number
PCT/CN2009/071558
Other languages
French (fr)
Chinese (zh)
Inventor
高秋明
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010012167A1 publication Critical patent/WO2010012167A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/3001Arithmetic instructions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30021Compare instructions, e.g. Greater-Than, Equal-To, MINMAX

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to an instruction execution method and apparatus. Background technique
  • multi-core processors are booming and more widely used, but the concurrent design of software is relatively lagging behind the development of hardware, which restricts the advantages of multi-core processors.
  • One of the main reasons behind software lag is that multi-core processors have not been able to provide software with a complete set of standard and efficient concurrent instruction sets to support software concurrent processing and design.
  • Embodiments of the present invention provide an instruction execution method and apparatus, which combines a comparison operation and an addition operation into a new atomic comparison plus operation instruction, which enhances the parallel function and improves the execution efficiency.
  • an embodiment of the present invention provides an instruction execution method, including: reading the addend variable according to an address of an addend variable;
  • an embodiment of the present invention further provides an instruction execution apparatus, including:
  • a reading module configured to read the addend variable according to an address of the addend variable
  • a comparison module configured to compare the addend variable read by the read module with a preset value
  • An execution module configured to perform an add operation on the addend variable when the result of the comparison operation of the comparison module is established, and assign a result of the add operation to the addend variable; The addend variable before returning the comparison operation.
  • the technical solution of the embodiment of the present invention has the following advantages, because the embodiment of the present invention combines the comparison operation and the addition operation into a new atomic comparison plus operation instruction, thereby enhancing the parallel function and improving the execution efficiency.
  • FIG. 1 is a flowchart of an instruction execution method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a specific implementation manner of an instruction execution method according to an embodiment of the present invention
  • FIG. 5 is a flowchart of another specific implementation manner of an instruction execution method according to an embodiment of the present invention. Execute the device structure diagram. detailed description
  • Embodiments of the present invention combine a comparison operation with an addition operation to form a new single instruction for atomic operations: an atomic comparison plus instruction, and a method and apparatus for performing the instruction.
  • FIG. 1 it is a flowchart of an instruction execution method in the embodiment of the present invention, that is, an execution flowchart of an atomic comparison plus instruction, which includes the following steps:
  • S 1 0 Reads the value of the addend variable from the memory based on the address of the addend variable.
  • the comparison operation is specifically to compare whether the added variable is greater than the preset value, when the value of the added variable is greater than the preset value, the result of the comparison operation is established, when the value of the added variable is not greater than the preset value The result of the comparison operation is not established.
  • the comparison operation is divided into six types, that is, greater than, less than, greater than or equal to, less than or equal to, equal to, and not equal to.
  • the execution instructions proposed by the embodiments of the present invention are also divided into six comparison and addition operations, that is, greater than plus, less than plus, greater than or equal to plus, less than or equal to plus, equal to plus, not equal to plus.
  • addition operations such as signed addition, unsigned addition, 32-bit addition, and 64-bit addition, which are the same as the actual addition instructions in the system. After the addition operation is performed on the value of the addend variable, the result of the addition operation is assigned to the addend variable.
  • step is directly executed, and the value of the addend variable before the comparison operation is returned; if the result of the comparison operation of S102 is not satisfied, the execution is performed directly after the execution of S102 is completed. Step, return the value of the addend variable before the comparison operation.
  • the value of the addend variable before the comparison operation returned by S105 can be further used for the subsequent instruction. It is judged whether the instruction actually performs the addition operation on the addend variable, that is, the execution result of the instruction is verified.
  • the subsequent instruction may be the repeated execution of the atomic comparison plus instruction, so that the value of the addend variable before the comparison operation returned by S105 is needed to determine whether the previous execution of the atomic comparison plus instruction is completed; or other operation instruction , the referenced variable needs to be referenced. Therefore, it is judged whether or not the above-described atomic comparison plus instruction execution is completed by the value of the addend variable before the comparison operation returned by S105.
  • the subsequent instruction determines whether the instruction actually performs an operation on the addend variable, specifically:
  • the value of the added variable before the comparison operation is compared with the preset value for the comparison of the contents of S102.
  • S105 can be executed at any time after the execution of S101 is completed until the end of the instruction, thereby returning the value of the addend variable before the comparison. That is, the value of the addend variable read in S101 is returned. Therefore, the schematic flow diagram shown in FIG. 1 corresponds to only a preferred embodiment of the present invention, and the change in the position of S 105 does not affect the scope of protection of the present invention.
  • the atomic comparison plus instruction in the embodiment of the present invention is a set of instructions, which is a combination of addition and comparison on the mnemonic. As shown in Figure 2, the most typical is greater than plus, and the addition operation is a 32Bit signed plus instruction description. "gt" is an abbreviation for greater than.
  • the comparison operation is divided into six types, that is, greater than, less than, greater than or equal to, less than or equal to, equal to, and not equal to. As shown in FIG. 3, it is a mnemonic abbreviation for six comparisons in the embodiment of the present invention.
  • addition operations such as signed addition, unsigned addition, 32-bit addition, and 64-bit addition, which are the same as the actual addition instructions in the system.
  • Ra, Rb and Rc are three general-purpose 32-bit registers.
  • FIG. 4 it is a flow chart of a specific implementation manner of the instruction execution method in the embodiment of the present invention, and the instruction operation corresponding to the above format is described by using the most common greater than plus, including the following steps:
  • the value of Ra is the address of the addend variable
  • the instruction executing device extracts the value v of the addend variable from the register Ra according to the address.
  • V is a signed 32-bit data that acts as an addend. 5402.
  • the instruction execution device compares the preset values stored in the values V and Rb of the addend variable, that is, whether the comparison V is greater than the data in the Rb.
  • Pre-set signed 32-bit data is stored in Rb, which is used to compare with the added number read in S401.
  • the specific comparison operation may be one of the foregoing six comparison operations.
  • the comparison operation applied in this embodiment is greater than the comparison, that is, whether the value V of the comparison addend variable is greater than the preset value in Rb.
  • the instruction execution device performs an operation on the added value V.
  • the signed 32-bit data subjected to the addition operation by the value V of the addend variable, and the result represents the result data generated after the addition operation is performed on the data values stored in the values V and Rc of the addend variable.
  • the instruction execution device assigns the result of the addition operation to the addend variable.
  • the memory refers specifically to an external storage device, and the instruction execution device can be accessed through an external address or interface, and the register refers to a temporary data storage unit inside the instruction execution device for storing the generated during the operation of the instruction execution device. Temporary data can be automatically or manually emptied after the run ends.
  • the instruction execution device stores the value V of the addend variable before the comparison operation into Ra.
  • the subsequent instructions may take further steps, and the other device further determines whether the value V of the addend variable in the memory performs the actual addition operation. That is, whether the new value writing operation of the memory is actually performed, as shown in FIG. 5, as follows:
  • Ra Read the value in Ra (When the atomic comparison plus instruction is executed, Ra stores the value of the added V before the comparison operation).
  • the comparison operation in this step may be an instruction execution device or other device that needs to know whether the operation is performed, and the change of the main body of the comparison operation does not affect the present.
  • the scope of protection of the invention is not limited to
  • the embodiment of the present invention combines the comparison operation and the addition operation into a new atomic comparison plus operation instruction, thereby enhancing the parallel function and improving the execution efficiency.
  • Write operation may cause write exception * /
  • FIG. 6 it is a structural diagram of an instruction execution apparatus according to an embodiment of the present invention, including: a reading module 610, configured to read a value of an addend variable according to an address of an addend variable.
  • the comparison module 620 is configured to compare the value of the addend variable read by the reading module 610 with a preset value.
  • the comparison operation is divided into six types, that is, greater than, less than, greater than or equal to, less than or equal to, equal to, and not equal to.
  • the execution module 630 is configured to perform an add operation on the value of the addend variable when the comparison module 620 determines that the result of the comparison operation is established, and assign the result of the add operation to the addend variable.
  • addition operations such as signed addition, unsigned addition, 32-bit addition, and 64-bit addition, which are the same as the actual addition instructions in the system.
  • addition operation After performing the addition operation on the value of the addend variable, the result of the addition operation is assigned to the addend variable, and the value of the addend variable is stored to the original address.
  • the execution module 6 30 specifically includes:
  • the execution sub-module 631 is configured to perform an addition operation on the value of the addend variable.
  • the assignment submodule 632 is configured to assign the result of the addition operation performed by the execution submodule 631 to the addend variable.
  • the storage module 640 is configured to store temporary data during execution of the instruction, including one or more of the following values:
  • the value of the addend variable read by the module 61 0 is read, the execution result of the module 630 is executed, and the data value read from each register, such as the preset value read from Rb, Rc in the foregoing embodiment. .
  • the return module 650 is configured to return the value of the addend variable read by the reading module 61 0 for subsequent instructions to determine whether the instruction performs the adding operation.
  • Subsequent devices (subsequent instructions) following this instruction may return the value of the addend variable before the comparison operation (such as the value of the addend variable V described above) and the preset value according to the return module 650 (as in the foregoing Rb Set value) The same comparison operation as that performed in the comparison module 620 is performed.
  • the above modules may be distributed in one device or distributed in multiple devices.
  • the above modules can be combined into one module or further split into multiple sub-modules.
  • the technical solution of the embodiment of the present invention has the following advantages, because the embodiment of the present invention combines the comparison operation and the addition operation into a new atomic comparison plus operation instruction, thereby enhancing the parallel function and improving the execution efficiency.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be hard. Pieces, but in many cases the former is a better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a
  • the terminal device (which may be a cell phone, a personal computer, a server, or a network device, etc.) performs the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Advance Control (AREA)

Abstract

A method and apparatus of instruction execution. The method comprises: reading a summand variable according to the address of the summand variable; carrying out the comparing operation on the summand variable and the preset value; when the comparing result is feasible, performing the addition operation on the summand variable, and assigning the result of the addition operation to the summand variable; returning a value which is the value of the summand variable before the comparing operation.

Description

指令执行方法和装置  Instruction execution method and device
本申请要求于 2008年 7月 31 日 提交中 国专利局 、 申请号为 200810144462. 5, 发明名称为' '一种指令执行方法和装置 "的中国专利申请的 优先权, 其全部内容通过引用结合在本申请中。 技术领域  The present application claims priority to Chinese Patent Application No. 200810144462. 5, the entire disclosure of which is incorporated herein by reference. In the present application.
本发明涉及计算机技术领域, 特别是涉及一种指令执行方法和装置。 背景技术  The present invention relates to the field of computer technologies, and in particular, to an instruction execution method and apparatus. Background technique
目前多核处理器蓬勃发展, 应用越来越广泛, 但软件的并发设计相对 落后于硬件的发展, 制约了多核处理器优势的发挥。 软件落后的主要原因 之一是, 多核处理器一直未能给软件提供一整套标准且有效的并发指令 集, 以支持软件并发处理和设计。  At present, multi-core processors are booming and more widely used, but the concurrent design of software is relatively lagging behind the development of hardware, which restricts the advantages of multi-core processors. One of the main reasons behind software lag is that multi-core processors have not been able to provide software with a complete set of standard and efficient concurrent instruction sets to support software concurrent processing and design.
当前实现的原子 /并发指令有: 原子加指令、 原子交换指令和原子比 较交换指令等。 上述指令虽然都是原子的单指令, 但都不能完全满足并发 软件设计的需要。 发明内容  Currently implemented atomic/concurrent instructions are: atomic plus instructions, atomic swap instructions, and atomic analog swap instructions. Although the above instructions are all atomic single instructions, they can not fully meet the needs of concurrent software design. Summary of the invention
本发明实施例提供一种指令执行方法和装置,将比较操作和加操作结合为 一条新的原子比较加操作指令, 增强了并行功能, 提高了执行效率。 Embodiments of the present invention provide an instruction execution method and apparatus, which combines a comparison operation and an addition operation into a new atomic comparison plus operation instruction, which enhances the parallel function and improves the execution efficiency.
为达到上述目的,本发明实施例一方面提出一种指令执行方法, 包括: 根据被加数变量的地址读取所述被加数变量;  To achieve the above objective, an embodiment of the present invention provides an instruction execution method, including: reading the addend variable according to an address of an addend variable;
对所述被加数变量与预设值进行比较操作;  Comparing the added variable with a preset value;
当所述比较操作的结果成立时, 对所述被加数变量执行加操作, 并将 所述加操作的结果赋值给所述被加数变量; 返回比较操作前的所述被加数变量的值。 When the result of the comparison operation is established, performing an add operation on the addend variable, and assigning a result of the add operation to the addend variable; Returns the value of the addend variable before the comparison operation.
另一方面, 本发明实施例还提出一种指令执行装置, 包括:  On the other hand, an embodiment of the present invention further provides an instruction execution apparatus, including:
读取模块, 用于根据被加数变量的地址读取所述被加数变量; 比较模块, 用于对所述读取模块所读取的被加数变量与预设值进行比 较操作;  a reading module, configured to read the addend variable according to an address of the addend variable; a comparison module, configured to compare the addend variable read by the read module with a preset value;
执行模块, 用于当所述比较模块的比较操作的结果成立时, 对所述被 加数变量执行加操作, 并将所述加操作的结果赋值给所述被加数变量; 返回模块, 用于返回比较操作前的被加数变量。  An execution module, configured to perform an add operation on the addend variable when the result of the comparison operation of the comparison module is established, and assign a result of the add operation to the addend variable; The addend variable before returning the comparison operation.
本发明实施例的技术方案具有以下优点, 因为本发明实施例将比较操 作和加操作结合为一条新的原子比较加操作指令,从而,增强了并行功能, 提高了执行效率。  The technical solution of the embodiment of the present invention has the following advantages, because the embodiment of the present invention combines the comparison operation and the addition operation into a new atomic comparison plus operation instruction, thereby enhancing the parallel function and improving the execution efficiency.
下面通过附图和实施例 , 对本发明的技术方案做进一步的详细描述。 附图说明  The technical solution of the present invention will be further described in detail below through the accompanying drawings and embodiments. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中 所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳 动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图 1为本发明实施例中指令执行方法流程图;  1 is a flowchart of an instruction execution method according to an embodiment of the present invention;
图 1为本发明实施例中最典型的大于加, 且加操作为 32B i t有符号加 的指令描述;  1 is a typical description of an instruction that is greater than plus, and the addition operation is 32B i t signed plus in the embodiment of the present invention;
图 3为本发明实施例中六种比较的助记符缩写;  3 is a mnemonic abbreviation of six comparisons in an embodiment of the present invention;
图 4为本发明实施例中指令执行方法的一种具体实现方式流程图; 图 5为本发明实施例中指令执行方法的另一种具体实现方式流程图; 图 6为本发明实施例中指令执行装置结构图。 具体实施方式 4 is a flowchart of a specific implementation manner of an instruction execution method according to an embodiment of the present invention; FIG. 5 is a flowchart of another specific implementation manner of an instruction execution method according to an embodiment of the present invention; Execute the device structure diagram. detailed description
本发明实施例将比较操作和加操作结合起来, 形成了一个新的原子操 作的单指令: 原子比较加指令, 并提供了执行该指令的方法和装置。  Embodiments of the present invention combine a comparison operation with an addition operation to form a new single instruction for atomic operations: an atomic comparison plus instruction, and a method and apparatus for performing the instruction.
下面结合附图和实施例, 对本发明的具体实施方式作进一步详细描 述:  The specific embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments.
如图 1 所示, 为本发明实施例中指令执行方法流程图, 即原子比较加 指令的执行流程图, 包括以下步骤:  As shown in FIG. 1, it is a flowchart of an instruction execution method in the embodiment of the present invention, that is, an execution flowchart of an atomic comparison plus instruction, which includes the following steps:
S 1 0 根据被加数变量的地址, 从存储器中读取被加数变量的值。 S 1 0 Reads the value of the addend variable from the memory based on the address of the addend variable.
51 02、 将被加数变量的值与预设值进行比较操作。 51 02. Compare the value of the addend variable with the preset value.
如果比较操作的结果成立, 即上述的被加数变量的值与预设值之间确 实存在上述比较操作所对应的关系, 则执行 S 1 03 ;  If the result of the comparison operation is established, that is, the relationship between the value of the addend variable and the preset value does exist in the relationship corresponding to the comparison operation, then S 1 03 is executed;
如果比较操作的结果不成立, 即上述的被加数变量的值与预设值之间 不存在上述比较操作所对应的关系, 则执行 S 1 05;  If the result of the comparison operation is not established, that is, the relationship between the value of the addend variable and the preset value does not exist in the relationship corresponding to the comparison operation, execute S 1 05;
例如: 比较操作具体为比较被加数变量是否大于预设值, 则当被加数 变量的值大于预设值时, 比较操作的结果成立, 当被加数变量的值不大于 预设值时, 比较操作的结果不成立。  For example: the comparison operation is specifically to compare whether the added variable is greater than the preset value, when the value of the added variable is greater than the preset value, the result of the comparison operation is established, when the value of the added variable is not greater than the preset value The result of the comparison operation is not established.
比较操作分为六种, 即大于, 小于, 大于等于, 小于等于, 等于, 不 等于。  The comparison operation is divided into six types, that is, greater than, less than, greater than or equal to, less than or equal to, equal to, and not equal to.
对应这六种比较操作, 本发明实施例所提出的执行指令也相应的分为 六种比较加操作, 即大于加, 小于加, 大于等于加, 小于等于加, 等于加, 不等于加。  Corresponding to the six comparison operations, the execution instructions proposed by the embodiments of the present invention are also divided into six comparison and addition operations, that is, greater than plus, less than plus, greater than or equal to plus, less than or equal to plus, equal to plus, not equal to plus.
基于上述操作分类, 在应用本发明实施例所提出的执行指令过程中, 只要更换比较过程的具体内容, 执行指令所对应的操作也可以产生相应的 变化, 因此, 本发明实施例所提出的执行指令实际上是一组指令, 并且该 指令是原子的, 单指令的。  Based on the foregoing operation classification, in the process of applying the execution instruction proposed by the embodiment of the present invention, as long as the specific content of the comparison process is replaced, the operation corresponding to the execution instruction may also generate a corresponding change. Therefore, the execution of the embodiment of the present invention is performed. An instruction is actually a set of instructions, and the instruction is atomic, single instruction.
51 03 , 对被加数变量的值执行加操作。 SI 04, 将加操作的结果赋值给被加数变量。 51 03 , Perform the addition operation on the value of the added variable. SI 04, assigns the result of the addition operation to the added variable.
如果比较操作的结果成立, 则对被加数变量的值执行加操作。  If the result of the comparison operation is established, an addition operation is performed on the value of the addend variable.
加操作也有多种类型, 如有符号加、 无符号加、 32位加和 64位加等, 和系统中实际的加指令是相同的。 对被加数变量的值执行加操作后, 将加 操作的结果赋值给被加数变量。  There are also many types of addition operations, such as signed addition, unsigned addition, 32-bit addition, and 64-bit addition, which are the same as the actual addition instructions in the system. After the addition operation is performed on the value of the addend variable, the result of the addition operation is assigned to the addend variable.
在此步驟中, 被加数变量在存储器中的值被更新了。  In this step, the value of the addend variable in memory is updated.
S105, 返回比较操作前的被加数变量的值。  S105, returning the value of the addend variable before the comparison operation.
如果 S102的比较操作结果成立, 则在 S104执行完成之后, 直接执行 本步骤, 返回比较操作前的被加数变量的值; 如果 S102 的比较操作结果 不成立, 则在 S102 执行完成之后, 直接执行本步骤, 返回比较操作前的 被加数变量的值。  If the result of the comparison operation of S102 is satisfied, after the execution of S104 is completed, the step is directly executed, and the value of the addend variable before the comparison operation is returned; if the result of the comparison operation of S102 is not satisfied, the execution is performed directly after the execution of S102 is completed. Step, return the value of the addend variable before the comparison operation.
需要进一步指出的是, 在本指令执行后, 即上述的 S101至 S104所述 的原子比较加指令执行完成后, S105所返回的比较操作前的被加数变量的 值, 可进一步用于后续指令判断本指令是否对被加数变量进行了实际的加 操作, 即验证本指令的执行结果。  It should be further pointed out that after the execution of the instruction, that is, after the execution of the atomic comparison plus instruction described in the above S101 to S104 is completed, the value of the addend variable before the comparison operation returned by S105 can be further used for the subsequent instruction. It is judged whether the instruction actually performs the addition operation on the addend variable, that is, the execution result of the instruction is verified.
其中, 后续指令可以是上述原子比较加指令的重复执行, 从而需要通 过 S105 返回的比较操作前的被加数变量的值, 判断上述原子比较加指令 前次执行是否完成; 也可以是其他操作指令, 需要引用被加数变量, 因此, 通过 S105 返回的比较操作前的被加数变量的值, 判断上述原子比较加指 令执行是否完成。  The subsequent instruction may be the repeated execution of the atomic comparison plus instruction, so that the value of the addend variable before the comparison operation returned by S105 is needed to determine whether the previous execution of the atomic comparison plus instruction is completed; or other operation instruction , the referenced variable needs to be referenced. Therefore, it is judged whether or not the above-described atomic comparison plus instruction execution is completed by the value of the addend variable before the comparison operation returned by S105.
进一步的, 后续指令判断本指令是否对被加数变量进行了实际的加操 作, 具体为:  Further, the subsequent instruction determines whether the instruction actually performs an operation on the addend variable, specifically:
将返回的比较操作前的被加数变量的值与预设值进行 S102 相同内容 的比较操作。  The value of the added variable before the comparison operation is compared with the preset value for the comparison of the contents of S102.
如果比较操作的结果成立, 则判断原子比较加指令对被加数变量执行 了加操作。 如果比较操作的结果不成立, 则判断原子比较加指令没有对被加数变 量执行加操作。 If the result of the comparison operation is established, it is judged that the atomic comparison plus instruction performs an addition operation on the added variable. If the result of the comparison operation is not true, then it is judged that the atomic comparison plus instruction does not perform an addition operation on the added variable.
需要进一步说明的是, 本实施例中的 S105与 S104之间没有必然的先 后关系, S105可以在 S101执行完成之后至指令结束之前的任何时间执行, 从而返回比较前的被加数变量的值, 即返回 S101 中读取的被加数变量的 值。 因此, 图 1所示的流程示意图对应的仅是本发明的一种优选实施例, S 105所处位置的变化并不影响本发明的保护范围。  It should be further noted that there is no necessary sequence relationship between S105 and S104 in this embodiment, and S105 can be executed at any time after the execution of S101 is completed until the end of the instruction, thereby returning the value of the addend variable before the comparison. That is, the value of the addend variable read in S101 is returned. Therefore, the schematic flow diagram shown in FIG. 1 corresponds to only a preferred embodiment of the present invention, and the change in the position of S 105 does not affect the scope of protection of the present invention.
S106, 结束指令操作。  S106, ending the instruction operation.
本发明实施例中的原子比较加指令是一组指令集, 在助记符上是加和 比较的组合。 如图 2所示, 为最典型的大于加, 且加操作为 32Bit有符号 加的指令描述。 "gt" 是大于的缩写。  The atomic comparison plus instruction in the embodiment of the present invention is a set of instructions, which is a combination of addition and comparison on the mnemonic. As shown in Figure 2, the most typical is greater than plus, and the addition operation is a 32Bit signed plus instruction description. "gt" is an abbreviation for greater than.
比较操作分为六种, 即大于, 小于, 大于等于, 小于等于, 等于, 不 等于。 如图 3所示, 为本发明实施例中六种比较的助记符缩写。  The comparison operation is divided into six types, that is, greater than, less than, greater than or equal to, less than or equal to, equal to, and not equal to. As shown in FIG. 3, it is a mnemonic abbreviation for six comparisons in the embodiment of the present invention.
加操作也有多种类型, 如有符号加、 无符号加、 32位加和 64位加等, 和系统中实际的加指令是相同的。  There are also many types of addition operations, such as signed addition, unsigned addition, 32-bit addition, and 64-bit addition, which are the same as the actual addition instructions in the system.
加操作和比较操作组合起来很多, 我们选取一种典型形式用于具体解 释。  There are many combinations of addition and comparison operations. We choose a typical form for specific interpretation.
原子的 32BU有符号数大于加的指令操作的格式如下:  The format of the atomic 32BU signed number greater than the added instruction operation is as follows:
addgt Ra, Rb, Rc  Addgt Ra, Rb, Rc
其中, 上述的 Ra、 Rb和 Rc是三个通用 32bit寄存器。  Among them, the above Ra, Rb and Rc are three general-purpose 32-bit registers.
如图 4所示, 为本发明实施例中指令执行方法的一种具体实现方式流 程图, 对应上述格式的指令操作, 以最常见的大于加为例进行说明, 包括 以下步驟:  As shown in FIG. 4, it is a flow chart of a specific implementation manner of the instruction execution method in the embodiment of the present invention, and the instruction operation corresponding to the above format is described by using the most common greater than plus, including the following steps:
S401, Ra的值是被加数变量的地址, 指令执行装置根据这个地址, 从寄存器 Ra中取出被加数变量的值 v。  S401, the value of Ra is the address of the addend variable, and the instruction executing device extracts the value v of the addend variable from the register Ra according to the address.
V为有符号的 32bit数据, 充当被加数。 5402, 指令执行装置对被加数变量的值 V和 Rb 中储存的预设值进行 比较操作, 即比较 V是否大于 Rb中的数据。 V is a signed 32-bit data that acts as an addend. 5402. The instruction execution device compares the preset values stored in the values V and Rb of the addend variable, that is, whether the comparison V is greater than the data in the Rb.
Rb中储存着预设的有符号的 32bit数据, 该数据用于同 S401 中读取 的被加数进行比较。  Pre-set signed 32-bit data is stored in Rb, which is used to compare with the added number read in S401.
具体的比较操作可以为前述的六种比较操作中的一种, 本实施例中所 应用的比较操作为大于比较, 即比较被加数变量的值 V是否大于 Rb 中的 预设值。  The specific comparison operation may be one of the foregoing six comparison operations. The comparison operation applied in this embodiment is greater than the comparison, that is, whether the value V of the comparison addend variable is greater than the preset value in Rb.
如果比较操作的结果成立, 即被加数变量的值 V大于 Rb中的预设值, 则执行 S403;  If the result of the comparison operation is established, that is, the value V of the addend variable is greater than the preset value in Rb, then S403 is performed;
如果比较操作的结果不成立, 即被加数变量的值 V不大于 Rb 中的预 设值, 则执行 S 405。  If the result of the comparison operation is not established, that is, the value V of the addend variable is not greater than the preset value in Rb, S405 is executed.
5403, 指令执行装置对被加数的值 V进行加操作。  5403. The instruction execution device performs an operation on the added value V.
如果比较操作的结果成立, 即 ¥〉111)成立, 则执行 result=v+Rc, 即为 被加数变量的值 V加上 Rc中存储的数据值, Rc代表从寄存器 Rc中读取的 与被加数变量的值 V进行加操作的有符号的 32bit数据, result代表被加 数变量的值 V和 Rc中存储的数据值执行加操作后生成的结果数据。  If the result of the comparison operation is established, ie, ¥>111), then result=v+Rc is executed, that is, the value V of the addend variable is added to the data value stored in Rc, and Rc represents the read from the register Rc. The signed 32-bit data subjected to the addition operation by the value V of the addend variable, and the result represents the result data generated after the addition operation is performed on the data values stored in the values V and Rc of the addend variable.
5404 , 指令执行装置将加操作的结果赋值给被加数变量。  5404. The instruction execution device assigns the result of the addition operation to the addend variable.
执行 result=v+Rc后, 指令执行装置将 result的值根据 Ra寄存器中 的被加数变量的地址写回到存储器, 即更新了被加数变量在存储器中的值 v。  After executing result=v+Rc, the instruction execution device writes the value of result back to the memory according to the address of the addend variable in the Ra register, that is, the value v of the addend variable in the memory is updated.
需要说明的是, 存储器具体指外部的存储设备, 指令执行装置可以通 过外部地址或接口进行访问, 寄存器则是指指令执行装置内部的临时数据 存储单元, 用于存储指令执行装置运行过程中生成的临时数据, 可以在运 行结束后自动或手动清空。  It should be noted that the memory refers specifically to an external storage device, and the instruction execution device can be accessed through an external address or interface, and the register refers to a temporary data storage unit inside the instruction execution device for storing the generated during the operation of the instruction execution device. Temporary data can be automatically or manually emptied after the run ends.
S405, 指令执行装置将比较操作前被加数变量的值 V存入 Ra。  S405. The instruction execution device stores the value V of the addend variable before the comparison operation into Ra.
S406, 结束指令操作。 指令执行装置在执行上述原子比较加指令时, 需要根据寄存器 Ra 的 值 (即变量 V的地址) 来访问外部存储器, 进行读操作和写操作, 有可能 引起地址类访问异常。但是, 异常不会在存储器上产生修改的效果, 因此, 读操作和写操作访问异常不会对数据的一致性和完整性产生影响。 S406, ending the instruction operation. When the above-described atomic comparison plus instruction is executed, the instruction execution device needs to access the external memory according to the value of the register Ra (that is, the address of the variable V), and performs a read operation and a write operation, which may cause an address class access abnormality. However, exceptions do not produce a modified effect on the memory, so read and write access exceptions do not affect the consistency and integrity of the data.
进一步的, 在完成原子比较加的操作后, 即完成 S206 后, 后续的指 令可采用进一步的步骤, 用其他装置进一步来判断存储器中的被加数变量 的值 V是否执行了实际的加操作, 即是否实际地执行了存储器的新数值写 入操作, 如图 5所示, 具体如下:  Further, after the completion of the atomic comparison operation, that is, after S206 is completed, the subsequent instructions may take further steps, and the other device further determines whether the value V of the addend variable in the memory performs the actual addition operation. That is, whether the new value writing operation of the memory is actually performed, as shown in FIG. 5, as follows:
5501 , 读取 Ra 中的值 (当原子比较加指令执行后, Ra中保存着比较 操作前的被加数 V的值) 。  5501, Read the value in Ra (When the atomic comparison plus instruction is executed, Ra stores the value of the added V before the comparison operation).
5502 , 将 Ra 中的值与 Rb 中存储的预设值进行与前述 S 402 中同样的 比较操作。  5502: Perform the same comparison operation as the foregoing S 402 with the value in Ra and the preset value stored in Rb.
即比较 Ra是否大于 Rb中存储的预设值, 进一步的, 本步骤中的比较 操作可以是指令执行装置或其他需要获知是否进行了加操作的装置, 进行 比较操作的主体的变化并不影响本发明的保护范围。  That is, whether the comparison Ra is greater than the preset value stored in the Rb. Further, the comparison operation in this step may be an instruction execution device or other device that needs to know whether the operation is performed, and the change of the main body of the comparison operation does not affect the present. The scope of protection of the invention.
如果比较操作的结果成立, 则执行 S 503;  If the result of the comparison operation is established, then S 503 is performed;
如果比较操作的结果不成立, 则执行 S 504。  If the result of the comparison operation is not established, S 504 is executed.
55 03 , 判断原子比较加指令执行了加操作。  55 03 , Judging the atomic comparison plus instruction to perform the addition operation.
55 04 , 判断原子比较加指令没有执行加操作。  55 04 , Judging that the atomic comparison plus instruction does not perform the addition operation.
本发明实施例将比较操作和加操作结合为一条新的原子比较加操作 指令, 从而, 增强了并行功能, 提高了执行效率。  The embodiment of the present invention combines the comparison operation and the addition operation into a new atomic comparison plus operation instruction, thereby enhancing the parallel function and improving the execution efficiency.
以下为指令执行装置执行上述原子比较加指令时的功能伪码: addg t ( &Ra, &Rb, &Rc)  The following is the function pseudo code when the instruction execution device executes the above atomic comparison plus instruction: addg t ( &Ra, &Rb, &Rc)
{  {
/ *以 Ra 为地址, 读取被加数, 并保存副本。  / * With Ra as the address, read the addend and save the copy.
读操作, 可能引发读异常 */ rodTemp = * (volatile signed int *) Ra Read operation, may cause read exception * / rodTemp = * (volatile signed int *) Ra
/* 32Bit 有符号的比较 */ /* 32Bit Signed comparison */
if ( WrodTemp > Rb)  If ( WrodTemp > Rb)
{  {
I*将加的结果, 以 Ra为地址, 写回存储器。  The result of I* will be added to the memory with Ra as the address.
写操作, 可能引发写异常 */  Write operation, may cause write exception * /
* ( (volatile signed int * ) Ra ) = WrodTemp + Rc ; } 返回原来的被加数到 Ra, 可用于判断是否执行了加操作 */ Ra = WrodTemp; * ( (volatile signed int * ) Ra ) = WrodTemp + Rc ; } Returns the original addend to Ra, which can be used to determine whether an add operation has been performed */ Ra = WrodTemp;
Return ;  Return ;
}  }
如图 6所示, 为本发明实施例中指令执行装置结构图, 包括: 读取模块 610, 用于根据被加数变量的地址读取被加数变量的值。 比较模块 620, 用于对读取模块 610读取的被加数变量的值与预设值 进行比较操作。  As shown in FIG. 6, it is a structural diagram of an instruction execution apparatus according to an embodiment of the present invention, including: a reading module 610, configured to read a value of an addend variable according to an address of an addend variable. The comparison module 620 is configured to compare the value of the addend variable read by the reading module 610 with a preset value.
比较操作分为六种, 即大于, 小于, 大于等于, 小于等于, 等于, 不 等于。  The comparison operation is divided into six types, that is, greater than, less than, greater than or equal to, less than or equal to, equal to, and not equal to.
执行模块 630, 用于在比较模块 620判断比较操作的结果成立时, 对 被加数变量的值执行加操作, 并将加操作的结果赋值给被加数变量。  The execution module 630 is configured to perform an add operation on the value of the addend variable when the comparison module 620 determines that the result of the comparison operation is established, and assign the result of the add operation to the addend variable.
如果比较操作的结果成立, 则对被加数变量的值执行加操作。  If the result of the comparison operation is established, an addition operation is performed on the value of the addend variable.
加操作也有多种类型, 如有符号加、 无符号加、 32位加和 64位加等, 和系统中实际的加指令是相同的。 对被加数变量的值执行加操作后, 将加操作的结果赋值给被加数变 量, 并将被加数变量的值存储到原地址。 There are also many types of addition operations, such as signed addition, unsigned addition, 32-bit addition, and 64-bit addition, which are the same as the actual addition instructions in the system. After performing the addition operation on the value of the addend variable, the result of the addition operation is assigned to the addend variable, and the value of the addend variable is stored to the original address.
执行模块 6 30具体包括:  The execution module 6 30 specifically includes:
执行子模块 631, 用于对被加数变量的值执行加操作。  The execution sub-module 631 is configured to perform an addition operation on the value of the addend variable.
赋值子模块 632 , 用于将执行子模块 631执行的加操作的结果赋值给 被加数变量。  The assignment submodule 632 is configured to assign the result of the addition operation performed by the execution submodule 631 to the addend variable.
存储模块 640, 用于存储指令执行过程中的临时数据, 包括以下数值 的一种或多种:  The storage module 640 is configured to store temporary data during execution of the instruction, including one or more of the following values:
读取模块 61 0所读取的被加数变量的值, 执行模块 630的执行结果, 以及从各寄存器中读取的数据值, 如前述实施例中从 Rb、 Rc 中读取的预 设值。  The value of the addend variable read by the module 61 0 is read, the execution result of the module 630 is executed, and the data value read from each register, such as the preset value read from Rb, Rc in the foregoing embodiment. .
返回模块 650 , 用于返回读取模块 61 0读取的被加数变量的值, 以供 后续指令判断本指令是否执行了加操作。  The return module 650 is configured to return the value of the addend variable read by the reading module 61 0 for subsequent instructions to determine whether the instruction performs the adding operation.
本指令之后的后续装置(后续指令)可根据返回模块 650返回比较操 作前的被加数变量的值 (如前述的被加数变量的值 V ) 与预设值 (如前述 的 Rb 中的预设值) 进行与比较模块 620 中所执行的比较操作内容相同的 比较操作。  Subsequent devices (subsequent instructions) following this instruction may return the value of the addend variable before the comparison operation (such as the value of the addend variable V described above) and the preset value according to the return module 650 (as in the foregoing Rb Set value) The same comparison operation as that performed in the comparison module 620 is performed.
如果比较操作的结果成立, 则判断原子比较加指令执行了加操作; 如 果比较操作的结果不成立, 则判断原子比较加指令没有执行加操作。  If the result of the comparison operation is established, it is judged that the atomic comparison plus instruction performs the addition operation; if the result of the comparison operation is not established, it is judged that the atomic comparison plus instruction does not perform the addition operation.
上述模块可以分布于一个装置, 也可以分布于多个装置。 上述模块可 以合并为一个模块, 也可以进一步拆分成多个子模块。  The above modules may be distributed in one device or distributed in multiple devices. The above modules can be combined into one module or further split into multiple sub-modules.
本发明实施例的技术方案具有以下优点, 因为本发明实施例将比较操 作和加操作结合为一条新的原子比较加操作指令,从而,增强了并行功能, 提高了执行效率。  The technical solution of the embodiment of the present invention has the following advantages, because the embodiment of the present invention combines the comparison operation and the addition operation into a new atomic comparison plus operation instruction, thereby enhancing the parallel function and improving the execution efficiency.
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬 件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技 术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式 体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以 使得一台终端设备(可以是手机, 个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述的方法。 最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be hard. Pieces, but in many cases the former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium, including a plurality of instructions for making a The terminal device (which may be a cell phone, a personal computer, a server, or a network device, etc.) performs the methods described in various embodiments of the present invention. It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 书 Claim
1、 一种指令执行方法, 其特征在于, 包括:  1. An instruction execution method, comprising:
根据被加数变量的地址读取所述被加数变量;  Reading the addend variable according to the address of the addend variable;
对所述被加数变量与预设值进行比较操作;  Comparing the added variable with a preset value;
当所述比较操作的结果成立时, 对所述被加数变量执行加操作, 并将 所述加操作的结果赋值给所述被加数变量;  And when the result of the comparing operation is established, performing an adding operation on the addend variable, and assigning a result of the adding operation to the addend variable;
返回比较操作前的被加数变量的值。  Returns the value of the addend variable before the comparison operation.
2、 根据权利要求 1所述指令执行方法, 其特征在于, 还包括: 后续指令在所述指令执行之后通过所述返回的比较操作前的被加数 变量判断所述指令是否已执行加操作。  2. The instruction execution method according to claim 1, further comprising: the subsequent instruction determining whether the instruction has performed an addition operation by the addend variable before the returning comparison operation after the instruction is executed.
3、 根据权利要求 1所述指令执行方法, 其特征在于, 所述比较操作, 具体包括所述被加数变量与所述预设值之间存在以下关系中的一种:  The instruction execution method according to claim 1, wherein the comparing operation specifically includes one of the following relationships between the addend variable and the preset value:
大于、 小于、 大于等于、 小于等于、 等于或不等于。  Greater than, less than, greater than or equal to, less than or equal to, equal to or not equal to.
4、 一种指令执行装置, 其特征在于, 包括:  4. An instruction execution apparatus, comprising:
读取模块, 用于根据被加数变量的地址读取所述被加数变量; 比较模块, 用于对所述读取模块所读取的被加数变量与预设值进行比 较操作;  a reading module, configured to read the addend variable according to an address of the addend variable; a comparison module, configured to compare the addend variable read by the read module with a preset value;
执行模块, 用于当所述比较模块的比较操作的结果成立时, 对所述被 加数变量执行加操作, 并将所述加操作的结果赋值给所述被加数变量; 返回模块, 用于返回比较操作前的被加数变量。  An execution module, configured to perform an add operation on the addend variable when the result of the comparison operation of the comparison module is established, and assign a result of the add operation to the addend variable; The addend variable before returning the comparison operation.
5、 根据权利要求 4所述指令执行装置, 其特征在于, 所述执行模块, 具体包括:  The instruction execution device according to claim 4, wherein the execution module specifically includes:
执行子模块, 用于对所述被加数变量执行加操作;  An execution submodule, configured to perform an adding operation on the added variable;
赋值子模块, 用于将所述执行子模块执行的所述加操作的结果赋值给 所述被加数变量。  And an assignment submodule, configured to assign a result of the adding operation performed by the execution submodule to the addend variable.
6、 根据权利要求 4所述指令执行装置, 其特征在于, 还包括: 存储模块, 用于存储所述执行模块的执行结果。 The instruction execution device according to claim 4, further comprising: And a storage module, configured to store an execution result of the execution module.
7、 根据权利要求 6所述指令执行装置, 其特征在于, 所述存储模块, 还用于存储所述读取模块读取的所述被加数变量。  The instruction execution device according to claim 6, wherein the storage module is further configured to store the addend variable read by the reading module.
PCT/CN2009/071558 2008-07-31 2009-04-29 Method and apparatus of instruction execution WO2010012167A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2008101444625A CN101324838A (en) 2008-07-31 2008-07-31 Method and apparatus for executing instruction
CN200810144462.5 2008-07-31

Publications (1)

Publication Number Publication Date
WO2010012167A1 true WO2010012167A1 (en) 2010-02-04

Family

ID=40188388

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071558 WO2010012167A1 (en) 2008-07-31 2009-04-29 Method and apparatus of instruction execution

Country Status (2)

Country Link
CN (1) CN101324838A (en)
WO (1) WO2010012167A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8528967B2 (en) 2010-10-19 2013-09-10 GM Global Technology Operations LLC Rear floor structure for a motor vehicle
WO2020161724A1 (en) 2019-02-10 2020-08-13 Yeda Research And Development Co. Ltd. Anti-matrix metalloproteinase 7 (mmp-7) inhibitory antibody and uses thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324838A (en) * 2008-07-31 2008-12-17 华为技术有限公司 Method and apparatus for executing instruction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346462A (en) * 1998-12-31 2002-04-24 英特尔公司 Method and apparatus for improved predicate prediction
CN1788253A (en) * 2003-06-05 2006-06-14 Arm有限公司 Predication instruction within a data processing system
WO2006113420A2 (en) * 2005-04-14 2006-10-26 Qualcomm Incorporated System and method wherein conditional instructions unconditionally provide output
CN101324838A (en) * 2008-07-31 2008-12-17 华为技术有限公司 Method and apparatus for executing instruction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346462A (en) * 1998-12-31 2002-04-24 英特尔公司 Method and apparatus for improved predicate prediction
CN1788253A (en) * 2003-06-05 2006-06-14 Arm有限公司 Predication instruction within a data processing system
WO2006113420A2 (en) * 2005-04-14 2006-10-26 Qualcomm Incorporated System and method wherein conditional instructions unconditionally provide output
CN101324838A (en) * 2008-07-31 2008-12-17 华为技术有限公司 Method and apparatus for executing instruction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8528967B2 (en) 2010-10-19 2013-09-10 GM Global Technology Operations LLC Rear floor structure for a motor vehicle
WO2020161724A1 (en) 2019-02-10 2020-08-13 Yeda Research And Development Co. Ltd. Anti-matrix metalloproteinase 7 (mmp-7) inhibitory antibody and uses thereof

Also Published As

Publication number Publication date
CN101324838A (en) 2008-12-17

Similar Documents

Publication Publication Date Title
US7467295B2 (en) Determining a boot image based on a requesting client address
JP4045062B2 (en) Method, processor, and system for executing load instructions
US7581039B2 (en) Procedure and device for programming a DMA controller in which a translated physical address is stored in a buffer register of the address processing unit and then applied to the data bus and stored in a register of the DMA controller
US20110320680A1 (en) Method and Apparatus for Efficient Memory Bank Utilization in Multi-Threaded Packet Processors
KR20120123127A (en) Method and apparatus to facilitate shared pointers in a heterogeneous platform
US20060026311A1 (en) Procedure for programming a DMA controller in a system on a chip and associated system on a chip
TWI291098B (en) Method and system for data optimization and protection in DSP firmware
JP2014182799A (en) Robust and high performance instructions for system call
US20110209004A1 (en) Integrating templates into tests
WO2010012167A1 (en) Method and apparatus of instruction execution
CN117312330B (en) Vector data aggregation method and device based on note storage and computer equipment
CN111309432A (en) Fault drilling method, device and system
CN113204385A (en) Plug-in loading method and device, computing equipment and readable storage medium
WO2012173822A2 (en) Aliasing buffers
WO2020247240A1 (en) Extended memory interface
CN108959020B (en) Method and device for calculating CPU utilization rate of computer
US20200326942A1 (en) Parameter management between programs
CN108062224B (en) Data reading and writing method and device based on file handle and computing equipment
CN115309499A (en) Method and device for processing numerical groups in virtual machine, electronic equipment and readable storage medium
US20210208890A1 (en) Extended memory operations
CN106502775A (en) The method and system of DSP algorithm is dispatched in a kind of timesharing
CN112631955A (en) Data processing method, data processing device, electronic device, and medium
US8146087B2 (en) System and method for enabling micro-partitioning in a multi-threaded processor
US10083124B1 (en) Translating virtual memory addresses to physical addresses
CN113886162B (en) Computing device performance test method, computing device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09802360

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09802360

Country of ref document: EP

Kind code of ref document: A1