Supercharge Your Innovation With Domain-Expert AI Agents!

Data processing method and device

A data processing and processor technology, applied in the field of data processing methods and devices, can solve problems such as no execution, data disorder, and inability to guarantee the atomicity of register operations, so as to achieve the effect of ensuring atomicity and improving efficiency

Active Publication Date: 2021-08-13
XIAMEN UNISOC TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In general, modifying a register requires three steps of reading, modifying, and writing. It is difficult for a computer system to guarantee the atomicity of operations on such registers (atomicity: refers to the indivisibility of a transaction, all operations of a transaction are either All are executed without interruption, or none of them are executed), so this register operation method will affect the operation efficiency (three steps can complete the modification of the register value), and cannot guarantee the atomicity of the register operation. At the same time, if the If the operation is interrupted, it may cause some unexpected effects on the computer system
For example, when two subjects (such as two CPUs, two subsystems, two threads, etc.) need to write to the same register at the same time, if the second subject's read step occurs in the first subject's write step After completing the before and read steps, the execution result of the first body will be overwritten by the execution result of the second body, which will lead to problems such as data confusion

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and device
  • Data processing method and device
  • Data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Next, the technical solutions in the embodiments of the present invention will be described in contemplation in the embodiment of the present invention, and it is clear that the described embodiments are intended to be in an embodiment of the invention, not all of the embodiments of the invention. Based on the embodiments of the present invention, there are all other embodiments obtained without making creative labor without making creative labor premises.

[0025] The "Embodiment" mentioned herein means that the specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the invention. This phrase is not necessarily a separate or alternative embodiment of the same embodiment in the various locations in the specification, nor is an independent or alternative embodiment of other embodiments. It can be apparent to those skilled in the art that the embodiments described herein can be combined with...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a data processing method and device.The method comprises the steps of obtaining a data operation instruction, wherein the data operation instruction comprises a destination address, an operation bit and an operation mode, the destination address is the address of a target register, and the operation bit is the bit for operation in the target register; determining an operation address according to the destination address and the operation mode, and generating target data according to the operation bit; and writing the target data into the operation address. According to the method and the device, the target data is written into the operation address to operate the bits in the target register, the value of the register can be changed through one-step operation, the register does not need to be subjected to three-step operation of reading, changing and writing, the atomicity of register operation is ensured, and the efficiency of register operation is improved.

Description

Technical field [0001] The present application relates to the field of registers, and more particularly to a data processing method and apparatus. Background technique [0002] With the rapid development of the semiconductor, multiple modules, multiple subsystems, multiple threads, even multiple operating systems access the same register, more and more. Under normal circumstances, modifying a register requires reading, change, writing three steps to complete, the computer system is difficult to ensure atomicity for such registers (atomicity: referring to the inexability of the transaction, all the operations of a transaction either Not intermittently executed, or one is not executed), so such register operation can affect operational efficiency (three steps to complete the modification of the register value), can not guarantee atomicity of the register operation, If the operation is interrupted, it may cause some unpredictable impact on the computer system. For example, when ther...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/30
CPCG06F9/30145G06F9/30072G06F9/30098
Inventor 黄志鑫
Owner XIAMEN UNISOC TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More