Data reordering method and device

A data sorting and data technology, applied in the field of data processing, can solve the problems of large chip power consumption, large write bandwidth of sorting RAM, complex implementation, etc., and achieve the effects of reducing the number of reads and writes, saving cleaning, saving power consumption and resources

Inactive Publication Date: 2011-11-16
HUAWEI TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to ensure that the read data is the processing result obtained by the current processing, the above sorting mechanism needs to perform two write operations on the sorting RAM for each search result, one writes the processed result and valid mark, and one output returns the result It is necessary to clear the effective flag, which not only occupies a large write bandwidth of the sorting RAM, but also consumes a lot of power consumption of the chip, which is more complicated to implement

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 reordering method and device
  • Data reordering method and device
  • Data reordering method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] In order to reduce the write bandwidth and chip power consumption of the sort RAM, and simplify the sorting process, an embodiment of the present invention provides a data sorting method, see figure 1 , the method includes:

[0045] 101: Add serial numbers to the multiple data to be processed according to the order of arrival of the multiple data to be processed, where the number of the serial numbers corresponds to the storage address in the memory of the processing result of the data to be processed;

[0046] 102: According to the sequence number, add valid tags to the plurality of data to be processed, and replace the valid tags after the sequence number reaches a maximum value and overflows;

[0047] 103: Process the multiple data to be processed to obtain multiple processing results;

[0048] 104: According to the serial number, write the processing result and its corresponding valid flag into the memory;

[0049] 105: Read the processing result in the memory acc...

Embodiment 2

[0053] In order to reduce the write bandwidth and chip power consumption of the sorting RAM, and simplify the sorting process, an embodiment of the present invention provides a data sorting method. Taking message processing as an example, the data to be processed is a message, and the memory is a sorting RAM. see figure 2 , the method includes:

[0054] 201: According to the order of arrival of the messages, add a serial number and a valid mark to the messages;

[0055] Specifically, the increment of the serial number can be implemented by a counter. Every time a message arrives, the added serial number is incremented, and the increment range can be set by the system, which is not specifically limited in the embodiment of the present invention.

[0056] For example: see Table 1, add sequence number 00 to the first arriving packet A, add sequence number 01 to the second arriving packet B, add sequence number 10 to the third arriving packet C, and add sequence number 10 to the...

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 invention discloses a data reordering method and a device, belonging to the data processing field. The method comprises the steps: according to the arrival sequences of a plurality of datum to be processed, adding serial numbers for the datum to be processed; according to the serial numbers, adding effective marks for the datum to be processed and replacing the effective marks after the serial numbers maximize and overflow; processing the datum to be processed to obtain a plurality of processing results; according to the serial numbers, writing the processing results into a memorizer; andaccording to the effective marks, reading the processing results in the memorizer. The invention also discloses a data reordering device. After message processing results are read, the message processing results can be avoided from being wrongly and repeatedly read without the mode of deleting the effective marks, thus omitting the step of eliminating the effective mark, reducing the read-write times of the sequencing RAM and saving the consumption and resources of the chip.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a data sorting method and device. Background technique [0002] During data processing, the data enters the processing module in the order of input. The processing module processes each input data at different times. Some are processed quickly and some are processed slowly. As long as the processing is completed, the search result will be returned immediately, that is, the return of the data processing result The sequence is not in one-to-one correspondence with the input sequence. Therefore, for application scenarios that require sequential returns, the returned results need to be sorted so that the returned results correspond to the sequence of the search request. [0003] The data sorting method in the prior art is as follows: [0004] Taking message processing as an example, first add a serial number to the message, and then perform message processing on the input message. The...

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 Patents(China)
IPC IPC(8): G06F7/24
Inventor 洪荣峰
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products