Device for reporting data

By introducing a task management module to analyze the execution sequence and calling the information generation group in the data reporting processing device, the problem of low development efficiency of multi-scene projects in the existing technology is solved, efficient data reporting and multi-scene adaptation are achieved, and the chip is improved Performance and application scenarios.

CN118939394APending Publication Date: 2024-11-12SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961901.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing data reporting processing device is not conducive to the rapid iteration and development of multi-scene projects, and requires frequent modification of the jump conditions and signal generation conditions of the state machine, resulting in low development efficiency and high maintenance costs.

Method used

A data reporting device is designed to generate an execution sequence through the task processing engine, and the processing channel is stored in the cache and forwarded to the task management module. The task management module analyzes the execution sequence and calls the information generation group to realize the execution of the data reporting task, avoiding the problem of Direct modification of the state machine supports data reporting in multiple scenarios.

Benefits of technology

It improves the speed and adaptability of data reporting, supports multi-scenario applications, reduces the marginal cost of chip development, and improves the richness of chip performance and application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939394A_ABST
    Figure CN118939394A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data reporting, and discloses a device for data reporting, comprising: a task processing engine configured to generate an execution sequence based on a data reporting task and send the execution sequence to a processing channel; the processing channel is configured to store the execution sequence into the internal cache after receiving the execution sequence, and send the execution sequence to the task management module if the execution sequence exists in the internal cache; the task management module is configured to determine an inter-group execution sequence of the plurality of information generation groups based on the execution sequence after receiving the execution sequence, and call the plurality of information generation groups according to the inter-group execution sequence; and each information generation group is configured to report data generated based on the received execution sequence to a lower-level engine when being called by the task management module. Data reporting in various scenes can be realized, high random combinability and high adaptability are realized, and the data reporting speed is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data reporting, and in particular to a device for data reporting. Background Art

[0002] With the rapid development of information technology, people's demand for data processing technology continues to increase. Different types of data processing engines are widely used in chip development, and a series of response processing methods have also been generated. The response processing speed and adaptability greatly affect the performance, development speed and stability of the chip. Therefore, how to design a high-quality and high-performance response processor is becoming more and more important.

[0003] In the data reporting processing device in the related technology, the task sending processing module needs to modify the jump conditions and execution order of each state machine according to the changes in the data processing tasks. If new mode functions need to be added subsequently, it may be necessary to change the jump conditions and signal generation conditions of the state machine in large quantities, which is not conducive to the rapid iteration and development of multi-scenario projects. Summary of the invention

[0004] In view of this, the present invention provides a device for data reporting to solve the problem that the data reporting processing device in the related art is not conducive to the rapid iteration and development of multi-scenario projects.

[0005] In a first aspect, the present invention provides a device for data reporting, the device comprising: the task processing engine, configured to generate an execution sequence based on a data reporting task, and send the execution sequence to a processing channel; the processing channel, configured to store the execution sequence in an internal cache after receiving the execution sequence, and if the execution sequence exists in the internal cache, send the execution sequence to a task management module; the task management module, configured to determine, after receiving the execution sequence, an execution order between multiple information generation groups based on the execution sequence, and call multiple information generation groups according to the execution order between the groups; each of the multiple information generation groups is configured to report the data generated based on the received execution sequence to a lower-level engine when called by the task management module.

[0006] In an optional embodiment, the information generation group includes a data reporting module and multiple information generation modules, and the information generation group has a corresponding relationship with the information generation modules within the information generation group; the task management module is further configured to determine the intra-group execution order of each of the multiple information generation groups based on the execution sequence, and call each information generation module based on the corresponding intra-group execution order when calling the information generation group; for the multiple information generation modules, each information generation module is configured to send the data generated based on the received execution sequence to the data reporting module when called; the data reporting module is configured to report the received generated data to the lower-level engine.

[0007] In an optional embodiment, the execution sequence includes: an inter-group sequence flag and an information generation sequence, wherein the information generation sequence includes an identifier of the information generation module; the task management module is further configured to call the corresponding information generation module based on the identifier, and based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group in parallel to each of the information generation groups, or send the inter-group execution sequence represented by the information generation sequence to each of the information generation groups.

[0008] In an optional embodiment, the execution sequence also includes: an intra-group sequence flag, wherein the intra-group sequence flag is set corresponding to the information generation group, and the number of the intra-group sequence flags is the same as the number of the information generation groups; the task management module is further configured to call each of the information generation modules in parallel within each of the information generation groups based on the intra-group sequence flag, or to call each of the information generation modules based on the intra-group execution order represented by the information generation sequence.

[0009] In an optional embodiment, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each of the information generation groups in parallel, or, send the information generation sequence corresponding to the information generation group to each of the information generation groups based on the inter-group execution order represented by the information generation sequence; based on the intra-group sequence flag, call each of the information generation modules in parallel within each of the information generation groups, or, call each of the information generation modules according to the intra-group execution order represented by the information generation sequence.

[0010] In an optional embodiment, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each of the information generation groups based on the inter-group execution order represented by the information generation sequence, and based on the intra-group sequence flag, call each of the information generation modules in parallel within each of the information generation groups: based on the execution order of the information generation groups represented by the inter-group sequence flag, call each of the information generation groups in sequence, and call each of the information generation modules in parallel within each of the information generation groups.

[0011] In an optional embodiment, the task management module is further configured to: send the information generation sequence corresponding to the information generation group in parallel to each of the information generation groups based on the inter-group sequence flag, and call each of the information generation modules in accordance with the intra-group execution order represented by the information generation sequence based on the intra-group sequence flag: send the information generation sequence corresponding to the information generation group in parallel to each of the information generation groups, and call each of the information generation modules in sequence based on the intra-group execution order represented by the information generation sequence in each of the information generation groups.

[0012] In an optional embodiment, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each of the information generation groups in parallel; based on the intra-group sequence flag, call each of the information generation modules in parallel within each of the information generation groups: send the information generation sequence corresponding to the information generation group to each of the information generation groups in parallel, and call each of the information generation modules in parallel within each of the information generation groups.

[0013] In an optional embodiment, the task management module is further configured as follows: based on the inter-group sequence flag, the information generation sequence corresponding to the information generation group is sent in parallel to each of the information generation groups; based on the multiple intra-group sequence flags, each of the information generation modules is called in some of the information generation groups based on the intra-group execution order represented by the information generation sequence; in the case where each of the information generation modules is called in parallel in some of the information generation groups: based on the execution order of the information generation groups represented by the inter-group sequence flag, each of the information generation groups is called in sequence; in the case where it is determined based on the intra-group sequence flag that the first information generation group in the called information generation group calls each of the information generation modules in parallel, each of the information generation modules is called in parallel in the first information generation group; or, in the case where it is determined based on the intra-group sequence flag that the second information generation group in the called information generation group calls each of the information generation modules in sequence based on the intra-group execution order represented by the information generation sequence, each of the information generation modules is called in sequence in the second information generation group based on the intra-group execution order represented by the information generation sequence; until the information generation sequence is executed.

[0014] In an optional embodiment, there are multiple task processing engines, the processing channels are set corresponding to the task processing engines, and the number of processing channels is multiple, and the device for data reporting also includes: a first polling scheduling arbitrator, wherein the first polling scheduling arbitrator is configured to select a target execution sequence from the multiple execution sequences issued by the multiple processing channels, and forward the target execution sequence to the task management module.

[0015] The task management module communicates directly with each independent information generation group. When the upper-level task processing engine sends down the execution sequence, the processing channel receives and forwards the execution sequence to the task management module. The task management module will parse the execution sequence and schedule the information generation groups sequentially or in parallel to complete the execution of the entire data reporting task. There is no need to change the jump conditions and signal generation conditions of the state machine. Only the execution sequence needs to be set to realize data reporting in various scenarios. It has high random combination and high adaptability, which greatly improves the speed of data reporting, and also provides support for multi-scenario applications of the chip, greatly improving the performance of the chip and enriching the application scenarios of the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram showing the structure of a data reporting processing device in the related art is shown;

[0018] Figure 2 A schematic diagram of the structure of a device for data reporting provided by an embodiment of the present invention is shown;

[0019] Figure 3 A schematic structural diagram of another device for data reporting provided by an embodiment of the present invention is shown;

[0020] Figure 4 A schematic structural diagram of another device for data reporting provided by an embodiment of the present invention is shown;

[0021] Figure 5 A schematic diagram of a data reporting process of a device for data reporting in an embodiment of the present invention is shown;

[0022] Figure 6 A schematic diagram of the data reporting process of the first execution sequence is shown;

[0023] Figure 7 A schematic diagram of the data reporting process of the second execution sequence is shown;

[0024] Figure 8 A schematic diagram of the data reporting process of the third execution sequence is shown;

[0025] Fig. 9 A schematic diagram of the data reporting process of the fourth execution sequence is shown. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0027] Figure 1 FIG. 1 shows a schematic diagram of the structure of a data reporting processing device in the related art. Figure 1As shown, the data reporting processing device in the related technology directly receives the mode task issued by the data processing engine. The data reporting processing device in the related technology needs to pre-acquire the mode issued by the upper engine, the type of task state to be used and its execution order, and needs to preset the internal state machine and related circuits compatible with each mode according to the system scenario. At the sending end, the reporting information of each state of each mode will be sent serially to the lower-level engine. The processing process of the execution status of each mode of the data reporting processing device in the related technology is as follows:

[0028] Processing process of mode one: the first processing channel 102 receives the mode one task issued by the first task processing engine 101, and forwards the mode one task to the task sending processing device 103. The task sending processing device 103 identifies the task mode as mode one, starts the internal state machine, first executes the write retry count value task state, and after the relevant information is prepared, sends the information to the first subordinate engine 110 through the Advanced eXtensible Interface (AXI). When the write retry count value task is completed, the write current flag control command block (CB) task is executed again, and the prepared information is sent to the first subordinate engine 110 through AXI. Finally, the write CB completion task is executed, and the prepared information is sent to the first subordinate engine 110 through AXI. At this point, the execution of the entire mode one task is completed.

[0029] Processing process of mode 2: The first processing channel 102 receives the mode task sent by the first task processing engine 101, and forwards the mode 2 task to the task sending processing device 103. The task sending processing device 103 identifies the task mode as mode 2, starts the internal state machine, executes the write CB task, and sends the information to the first lower-level engine 110 through AXI after the relevant information is ready. At this point, the entire mode 2 task execution is completed.

[0030] Processing process of mode three: the first processing channel 102 receives the mode task issued by the first task processing engine 101, and forwards the mode three task to the task sending processing device 103. The task sending processing device 103 identifies the task mode as mode three, starts the internal state machine, first executes the write next CB task, and sends the information to the first subordinate engine 110 through AXI after the relevant information is prepared. When the write next CB task is completed, the write CB completion task is executed again, and the prepared information is sent to the first subordinate engine 110 through AXI. At this point, the execution of the entire mode three task is completed.

[0031] Processing process of mode 4: The first processing channel 102 receives the mode task issued by the first task processing engine 101, and forwards the mode 4 task to the task sending processing device 103. The task sending processing device 103 identifies the task mode as mode 4, starts the internal state machine, executes the next CB task, and sends the information to the first lower-level engine 110 through AXI after the relevant information is ready. At this point, the entire mode 4 task execution is completed.

[0032] The first task processing engine of the data reporting processing device in the related technology directly sends the mode task, and the task sending processing device needs to modify the jump conditions and execution order of each state machine according to the change of the mode, and send the task information to the first subordinate engine in sequence.

[0033] The data reporting processing device in the related technology processes data based on a state machine that is highly bound to the mode sequence. In the current rich scene applications, each data processing engine needs to develop its own data reporting engine according to its own task mode, which is not conducive to the rapid iteration and development of the project, and various problems are inevitable in the repeated development process. The high state machine binding solution in the related technology, if you want to add new mode functions later, then it may be necessary to change the state machine's jump conditions and signal generation conditions on a large scale, which is very unfavorable for developers to maintain the data processing engine and will increase marginal costs.

[0034] Figure 2 FIG. 1 is a schematic diagram showing the structure of a device for reporting data provided by an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides a device for data reporting, including: a task processing engine 201, configured to generate an execution sequence based on a data reporting task, and send the execution sequence to a processing channel 202; a processing channel 202, configured to store the execution sequence in an internal cache after receiving the execution sequence, and if the execution sequence exists in the internal cache, send the execution sequence to a task management module 203; a task management module 203, configured to determine an execution order between multiple information generation groups based on the execution sequence after receiving the execution sequence, and call multiple information generation groups according to the execution order between the groups; multiple information generation groups, each information generation group is configured to report the data generated based on the received execution sequence to a lower-level engine when called by the task management module.

[0035] In this device, data reporting refers to the process of sending data from one system or application to another system or application. The task processing engine generates an execution sequence according to the engine requirements. The information generation group may include: a first information generation group 321 and a second information generation group 322.

[0036] In the device for data reporting provided by the embodiment of the present invention, the task management module directly communicates with each independent information generation group. When the upper-level task processing engine sends down the execution sequence, the processing channel receives and forwards the execution sequence to the task management module. The task management module parses the execution sequence and schedules the information generation groups sequentially or in parallel to complete the execution of the entire data reporting task. There is no need to change the jump conditions and signal generation conditions of the state machine. Only the execution sequence needs to be set to realize data reporting in various scenarios. It has high random combination and high adaptability, greatly improves the speed of data reporting, and also provides support for multi-scenario applications of the chip, greatly improves the performance of the chip, and enriches the application scenarios of the chip.

[0037] In some optional embodiments, Figure 3 FIG. 2 shows a schematic diagram of another device for reporting data provided by an embodiment of the present invention. Figure 3 As shown, an embodiment of the present invention also provides a device for data reporting, including: a task processing engine 201, a processing channel 202, a task management module 203, at least one information generation module and a data reporting module 208; the task processing engine 201 is configured to generate an execution sequence based on the data reporting task; after receiving the execution sequence, the processing channel 202 stores the execution sequence in an internal cache, and if the execution sequence exists in the internal cache, the processing channel 202 sends the execution sequence to the task management module 203; the task management module 203 is configured to communicate directly with each information generation module, and the task management module 203 calls each information generation module in sequence based on the execution sequence, and each information generation module sends the generated information to the data reporting module 208; the data reporting module 208 is configured to report the generated information to the lower-level engine 209.

[0038] Among them, the information generation module may include: a first information generation module 204, exemplarily, the first information generation module 204 may be a write current CB task information generation module; a second information generation module 205, exemplarily, the second information generation module 205 may be a write retry count value task information generation module; a third information generation module 206, exemplarily, the third information generation module 206 may be a write next CB task information generation module; a fourth information generation module 207, exemplarily, the fourth information generation module 207 may be a write CB completion task information generation module. Each information generation module has a unique identifier. Exemplarily, the identifier of the first information generation module is 1, the identifier of the second information generation module is 2, the identifier of the third information generation module is 3, and the identifier of the fourth information generation module is 4. The execution sequence includes the identifier of the information generation module. The data reporting module 208 may be an AXI sending generator module. The embodiment of the present invention does not limit the number and specific functions of the information generation modules, and those skilled in the art can determine them according to actual needs. Advanced eXtensible Interface (AXI) is an on-chip bus protocol for high performance, high bandwidth and low latency.

[0039] The task processing engine 201 can directly issue an execution sequence with an execution order. For example, the execution sequence can be 2, 1, 4. The task sending processing module executes the second information generation module, the first information generation module and the fourth information generation module in sequence according to the execution sequence. When each information generation module is executed, the generated information is sent to the data reporting module, and the data reporting module sends the generated information to the lower-level engine.

[0040] Specifically, the task processing engine issues a data reporting task with an execution sequence of 2, 1, and 4 and maintaining the order. The task management module receives the execution sequence based on the processing channel. The task management module parses the execution sequence and, based on the identifier code in the execution sequence, sequentially schedules the second information generation module 205 to write the retry count value task information generation module, generate the required information, and send the information to the lower-level engine through the AXI sending generator module. Then schedule the first information generation module 204 to write the current CB task information generation module, generate the required information, and send the information to the lower-level engine through the AXI sending generator module. Finally, schedule the fourth information generation module 207 to write the CB completion task information generation module, generate the required information, and send the information to the lower-level engine through the AXI sending generator module. At this point, the entire sequence task is fully executed.

[0041] In the device for data reporting provided by the embodiment of the present invention, the task management module directly communicates with each independent information generation module, and the information generation modules can be freely combined. When the upper-level task processing engine sends down the execution sequence, the processing channel receives and forwards the execution sequence to the task management module. The task management module parses the execution sequence and schedules the information generation modules in sequence to complete the execution of the entire data reporting task. There is no need to change the jump conditions and signal generation conditions of the state machine. Only the execution sequence needs to be set to realize data reporting in various scenarios. It has high random combination and high adaptability, greatly improves the speed of data reporting, and also provides support for multi-scenario applications of the chip, greatly improves the performance of the chip, and enriches the application scenarios of the chip.

[0042] Figure 4 FIG. 2 shows a schematic diagram of the structure of another device for data reporting provided by an embodiment of the present invention. Figure 4 As shown, in some optional embodiments, the information generation group includes a data reporting module and multiple information generation modules, and the information generation group has a corresponding relationship with the information generation modules within the information generation group; the task management module 203 is further configured to determine the intra-group execution order of each information generation group in the multiple information generation groups based on the execution sequence, and call each information generation module based on the corresponding intra-group execution order when calling the information generation group; for multiple information generation modules, each information generation module is configured to send the data generated based on the received execution sequence to the data reporting module when being called; the data reporting module is configured to report the received generated data to the lower-level engine.

[0043] like Figure 4 As shown, in the aforementioned device for data reporting, the data reporting module and multiple information generation modules constitute an information generation group, and the number of information generation groups is multiple; wherein, the information generation group and the information generation module within the information generation group have a corresponding relationship; the task management module 203 obtains the inter-group execution order of the multiple information generation groups and the intra-group execution order of each information generation group based on the execution sequence and the corresponding relationship; the task management module 203 calls each information generation module based on the inter-group execution order and the intra-group execution order.

[0044] In this embodiment, the third data reporting module 316 and the fifth information generating module 308, the sixth information generating module 309, and the seventh information generating module 310 form a first information generating group 321. The fourth data reporting module 317 and the eighth information generating module 311, the ninth information generating module 312, and the tenth information generating module 313 form a second information generating group 322. The information generating module in the embodiment of the present invention mainly carries the conversion of the functional requirements of each system. The number of information generating groups and the functions of the information generating modules can be customized according to the system requirements, and the number of information generating modules can be increased or decreased. The embodiment of the present invention is illustrated by six information generating modules and two information generating groups.

[0045] Among them, the fifth information generation module 308 can be a write retry count value information generation module. The function of the fifth information generation module 308 is to subtract 1 from the received retry count value, and construct the generated information according to the format required by the destination engine, and send it to the lower-level module.

[0046] The sixth information generation module 309 can be a write error coding information generation module. The function of the sixth information generation module 309 is to re-encode the received error code according to the system error plan, and construct the generated information in the format required by the destination engine and send it to the lower-level module.

[0047] The seventh information generation module 310 can be a write synchronization target counter information generation module. The function of the seventh information generation module 310 is to re-encode the received synchronization target counter according to the system plan, construct the generated information in the format required by the destination engine, and send it to the lower-level module.

[0048] The eighth information generation module 311 can be a module for generating information about the completion of the write CB task. The function of the eighth information generation module 311 is to complete the execution of the receive CB task, add a verification message, whether the task is correctly executed, and some sideband information, and send them to the lower-level module.

[0049] The ninth information generation module 312 may be a module for generating information of a next CB task. The function of the ninth information generation module 312 is to receive the next CB information, construct the generated information in accordance with the format required by the destination engine, and send it to the lower-level module.

[0050] The tenth information generation module 313 may be a module for generating information of a write current CB task. The function of the tenth information generation module 313 is to receive the current CB information, construct the generated information in the format required by the target engine, and send it to the lower level module. The function of the information generation module may be set according to the chip application scenario.

[0051] As the integration of chips becomes higher and higher, the complexity of chips becomes higher and higher, the scale of chips becomes larger and larger, and the number of integrated modules increases, the overall performance requirements of chips are also getting higher and higher. As the application scenarios of chips change faster and faster, how to develop high-performance data reporting and processing devices efficiently and with high quality has become a key point in chip development.

[0052] The device for data reporting provided by the embodiment of the present invention only needs to set the sequence command externally, and almost no internal changes are required to realize function reporting in various scenarios. Its high random combination and high adaptability greatly improve the development speed and quality of the chip; it supports the mechanism of parallel input of multi-channel sequence commands and parallel output of multi-task information, which greatly improves the performance of the chip; it also provides execution sequences such as inter-group order preservation, inter-group non-order preservation, intra-group order preservation and intra-group non-order preservation. Its flexible combination form greatly enriches the application scenarios of the chip; in the current fast-paced technological changes, the chip development can be completed quickly, thereby seizing a larger market.

[0053] like Figure 4 As shown, in some optional implementations, there are multiple task processing engines, processing channels are set corresponding to the task processing engines, there are multiple processing channels, and the device for data reporting also includes: a first polling scheduling arbitrator 307, wherein the first polling scheduling arbitrator 307 is configured to select a target execution sequence from multiple execution sequences issued by multiple processing channels, and forward the target execution sequence to the task management module 203.

[0054] In this embodiment, if Figure 3 As shown, the third task processing engine 301 corresponds to the third processing channel 304, and the fourth task processing engine 302 corresponds to the fourth processing channel 305. The figure is only for exemplary explanation. The number of task processing engines can be set to multiple, and the number of processing channels can also be set to multiple accordingly.

[0055] The main function of the polling scheduling arbitrator is to coordinate and allocate resources to ensure that requests in each processing channel can obtain equal resource access opportunities within a period of time. The first polling scheduling arbitrator maintains a polling order and grants resource access rights to each processing channel in turn according to this order. Whenever a processing channel needs to access resources, the first polling scheduling arbitrator grants resources to the next processing channel, and then continues to grant resources to the next processing channel in the next iteration. This mechanism ensures fairness. Regardless of the priority of the processing channel, it will be served in the order of polling. The first polling scheduling arbitrator can avoid starvation. Even if there are high-priority processing channels, they will not occupy resources all the time, because the first round-robin scheduling arbitrator will periodically poll all processing channels to ensure that each processing channel has the opportunity to access resources. The implementation of the first polling scheduling arbitrator is relatively simple and does not require too much complex priority logic. Each processing channel only needs to wait for its polling order to arrive before it can access resources.

[0056] In some optional implementations, in each information generation group, a polling scheduling arbitrator is provided between the information generation module and the data reporting module. For example, the fifth information generation module 308, the sixth information generation module 309 and the seventh information generation module 310 all send the generated information to the second round-robin scheduling arbitrator 314, which receives the generated information sent by each information generation module and sends the generated information to the third data reporting module 316. The polling scheduling arbitrator in each information generation group can coordinate and allocate resources between each information generation module, and by maintaining a polling order, granting each information generation module resource access rights in turn according to this order, it helps to reduce the complexity and maintenance cost of the system.

[0057] Figure 5 FIG. 2 shows a schematic diagram of a data reporting process of a device for data reporting in an embodiment of the present invention. Figure 5As shown, S401: the task processing engine sends an execution sequence to the processing channel corresponding to it; S402: the processing channel receives the execution sequence sent by the upper-level task processing engine, and stores the execution sequence in the buffer. When there is an execution sequence in the buffer, the processing channel sends a task sending request to the first round-robin scheduling arbitrator, wherein the buffer is a memory composed of a random access memory (RAM); S403: the first polling scheduling arbitrator selects a task of a processing channel and stores its task information in the task management buffer; S404: the task management module takes out the execution sequence from the buffer, and determines whether the inter-group sequence flag is turned on based on the execution sequence. If it is turned on, the tasks will be sent in sequence according to the sequence generated by the information in the execution sequence. The information is sent to the corresponding information generation groups. If the sequence flag between groups is not turned on, the commands of each information generation group are sent to each group for processing at the same time. In each information generation group, it will be determined whether the sequence flag within the group is set. If it is set, the task information must be sent to each information generation module in sequence according to the information generation sequence in the execution sequence. If the order is not maintained within the group, the information generation sequence within the group can be sent to each information generation module at the same time; S405: The information generation modules generate their own corresponding sending information according to their functions, and send the sending information to the corresponding polling scheduling arbitrator; S406: The polling scheduling arbitrator in each information generation group receives the request of its superior information generation module and sends it to the data reporting module; S407: The data reporting module generates data reporting logic and sends the generated information to the subordinate engine.

[0058] In some optional embodiments, the execution sequence includes: an inter-group sequence flag and an information generation sequence, wherein the information generation sequence includes an identifier of an information generation module, and the task management module is further configured to call the corresponding information generation module based on the identifier, and based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each information generation group in parallel, or, based on the inter-group execution order represented by the information generation sequence, send it to each information generation group.

[0059] In this embodiment, the command format of the execution sequence is shown in the following table:

[0060] Table 1 Execution sequence command format

[0061]

[0062] The embodiment of the present invention divides the information generation modules into multiple groups in parallel based on the chip performance requirements. Each group corresponds to a data reporting module, namely, an AXI sending generator. When the inter-group sequence flag is 1, the tasks between the information generation groups need to be executed in sequence. When the inter-group sequence flag is 0, the tasks between the information generation groups can be executed concurrently.

[0063] The information generation sequence can arbitrarily arrange the identifier codes of the information generation modules. Each information generation module has a unique identifier. The user can generate an information generation sequence based on the codes of the information generation modules based on actual needs, and send the execution sequence including the information generation sequence to the information management module for execution. Among them, the information bit stores the space for generating information, and each information generation module identifier has its corresponding information space.

[0064] In some optional embodiments, as shown in Table 1, the execution sequence also includes: an intra-group sequence flag, wherein the intra-group sequence flag is set corresponding to the information generation group, and the number of the intra-group sequence flags is the same as the number of information generation groups; the task management module is further configured to call the information generation modules in parallel in each information generation group based on the intra-group sequence flag, or to call each information generation module based on the intra-group execution order represented by the information generation sequence.

[0065] In this embodiment, the intra-group sequence flag includes: a first information generation group sequence flag and a second information generation group sequence flag. When the intra-group sequence flag is 1, the tasks in each information generation group need to be executed in sequence, and when the intra-group sequence flag is 0, the tasks in each information generation group can be executed concurrently.

[0066] In this way, sequence tasks can be executed concurrently or sequentially in each information generation group, which can meet the needs of different data reporting tasks.

[0067] In some optional embodiments, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each information generation group in parallel, or, send the information generation sequence corresponding to the information generation group to each information generation group based on the inter-group execution order represented by the information generation sequence; based on the intra-group sequence flag, call each information generation module in parallel within each information generation group, or, call each information generation module according to the intra-group execution order represented by the information generation sequence.

[0068] Based on the execution order between groups and within groups, the parallel input of multi-channel sequence commands and the parallel output of multiple information generation modules can be realized, which greatly improves the performance of the device. The flexible combination forms such as inter-group order preservation, inter-group non-order preservation, intra-group order preservation or intra-group non-order preservation greatly enrich the application scenarios of the chip. In the case of new demands for the information generation module, the decoupling and sequence separation control characteristics of the information generation module can be used to quickly and high-quality implement new functions. In the current fast-paced technological updates and changes, it can help quickly complete the development of chips and provide an opportunity to seize a larger market.

[0069] In some optional embodiments, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each information generation group based on the inter-group execution order represented by the information generation sequence, and based on the intra-group sequence flag, call each information generation module in parallel within each information generation group: based on the execution order of the information generation group represented by the inter-group sequence flag, call each information generation group in sequence, and call each information generation module in parallel within each information generation group.

[0070] In this embodiment, the first execution sequence command is shown in Table 2:

[0071] Table 2 First execution sequence command

[0072]

[0073] As shown in Table 2, from the information content represented by the first execution sequence command 100 0000089, it can be seen that the first execution sequence command is to maintain order between groups, the first information generation group does not maintain order within the group, the second information generation group does not maintain order within the group, and the information generation sequence is 8 and 9 data reporting tasks.

[0074] Figure 6 FIG. 2 shows a schematic diagram of the data reporting process of the first execution sequence. Figure 6 As shown,

[0075] S501: Based on the inter-group sequence flag and the intra-group sequence flag, determine which group the first execution sequence points to first. After the task management module receives the first execution sequence command and parses the execution sequence, it is determined that the command is an inter-group order-preserving task. Then the sequence command is directly controlled in the inter-group control logic layer and is not distributed to the intra-group control logic layer for control; send the content corresponding to the code 9 in the sequence to the ninth information generation module for processing;

[0076] S502: extract the first task information code 9 from the execution sequence command, call and write the next CB task information generation module; send the generated information to the lower-level engine through the fourth data reporting module; when the task information 9 is executed;

[0077] S503: Extract the second task information code 8 from the execution sequence command, call the write CB to complete the task information generation module, send the content corresponding to code 8 in the information generation sequence to the eighth information generation module for processing, send the generated information to the lower-level engine through the fourth data reporting module, and the first execution sequence command is executed. In this way, the execution of the first execution sequence command can be realized, and the order preservation between information generation groups and the data reporting tasks that are not in the order preservation within each information generation group can be realized.

[0078] In some optional embodiments, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group in parallel to each information generation group, and based on the intra-group sequence flag, call each information generation module in accordance with the intra-group execution order represented by the information generation sequence: send the information generation sequence corresponding to the information generation group in parallel to each information generation group, and call each information generation module in sequence in each information generation group based on the intra-group execution order represented by the information generation sequence.

[0079] In this embodiment, the second execution sequence command is shown in Table 3:

[0080] Table 3 Second execution sequence commands

[0081]

[0082] As shown in Table 3, from the information content represented by the second execution sequence command 011 0000589, it can be seen that the second execution sequence command is no order preservation between groups, order preservation within the first information generation group, order preservation within the second information generation group, and the information generation sequence is 5, 8 and 9 data reporting tasks.

[0083] Figure 7 FIG. 2 shows a schematic diagram of the data reporting process of the second execution sequence. Figure 7 As shown:

[0084] S601: Based on the inter-group sequence flag and the intra-group sequence flag, determine which group the second execution sequence points to first. After the task management module receives the second execution sequence command and parses the execution sequence, it determines that the command is an inter-group non-sequence-preserving task, then identifies the sequence identifier, sends the sequence identifier to the corresponding information generation group by group, and is processed by the control logic layer within the group, sending 8 and 9 to the second information generation group, and at the same time, sending 5 to the first information generation group; in the second information generation group, the content corresponding to the code 9 in the sequence is sent to the ninth information generation module for processing; then execute S602 and S604;

[0085] S602: extract the first task information code 9 from the execution sequence command, call and write the next CB task information generation module; send the generated information to the lower-level engine through the fourth data reporting module; at the same time, send the content corresponding to the code 5 in the sequence to the fifth information generation module for processing, and then execute S603;

[0086] S603: extract the second task information code 8 from the execution sequence command, call the write CB completion task information generation module, send the content corresponding to code 8 in the information generation sequence to the eighth information generation module for processing, send the generated information to the lower-level engine through the fourth data reporting module, and the second execution sequence command is executed;

[0087] S604: In the first information generation group, extract the third task information code 5 from the execution sequence command, call the write retry count value task information generation module, send the content corresponding to code 5 in the information generation sequence to the fifth information generation module for processing, and send the generated information to the lower-level engine through the third data reporting module.

[0088] In this way, the execution of the second execution sequence command can be realized, and the data reporting task of not maintaining the order between information generation groups but maintaining the order within each information generation group is realized.

[0089] In some optional embodiments, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each information generation group in parallel; based on the intra-group sequence flag, call each information generation module in parallel within each information generation group: send the information generation sequence corresponding to the information generation group to each information generation group in parallel, and call each information generation module in parallel within each information generation group.

[0090] In this implementation, the third execution sequence command is shown in Table 4:

[0091] Table 4 The third execution sequence command

[0092]

[0093] As shown in Table 4, from the information content represented by the first execution sequence command 000 0000879, it can be seen that the third execution sequence command is no order preservation between groups, no order preservation within the first information generation group, no order preservation within the second information generation group, and the information generation sequence is 8, 7 and 9 data reporting tasks.

[0094] Figure 8 A schematic diagram of the data reporting process of the third execution sequence is shown.

[0095] like Figure 8 As shown, the data reporting process of the third execution sequence includes:

[0096] S701: Based on the inter-group sequence flag and the intra-group sequence flag, determine which group the third execution sequence points to first. After the task management module receives the third execution sequence command and parses the execution sequence, it determines that the command is an inter-group non-sequence-preserving task, then identifies the sequence identifier, sends the sequence identifier to the corresponding information generation group by group, and is processed by the control logic layer within the group, sending 8 and 9 to the second information generation group, and at the same time, sending 7 to the first information generation group; sending the content corresponding to the code 9 in the sequence to the ninth information generation module for processing,

[0097] S702: extract the first task information code 9 from the execution sequence command, call and write the next CB task information generation module; send the generated information to the lower-level engine through the fourth data reporting module; at the same time,

[0098] S703: extract the second task information code 8 from the execution sequence command, call the write CB to complete the task information generation module, send the content corresponding to code 8 in the information generation sequence to the eighth information generation module for processing, and send the generated information to the lower-level engine through the fourth data reporting module; while the second information generation group is executing,

[0099] S704: Extract the third task information code 7 from the execution sequence command, call the write synchronization target counter task information generation module, send the content corresponding to code 7 in the information generation sequence to the seventh information generation module for processing, and send the generated information to the lower-level engine through the third data reporting module; the third execution sequence command is executed. In this way, the execution of the third execution sequence command can be realized, and the data reporting task without preserving the order between information generation groups and without preserving the order within each information generation group can be realized.

[0100] In some optional embodiments, the task management module is further configured to: based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each information generation group in parallel; based on multiple intra-group sequence flags, call each information generation module in sequence within some information generation groups based on the intra-group execution order represented by the information generation sequence; in the case where each information generation module is called in parallel within some information generation groups: call each information generation group in sequence based on the execution order of the information generation group represented by the inter-group sequence flag; in the case where it is determined based on the intra-group sequence flag that the first information generation group in the called information generation group calls each information generation module in parallel, call each information generation module in parallel in the first information generation group; or, in the case where it is determined based on the intra-group sequence flag that the second information generation group in the called information generation group calls each information generation module in sequence based on the intra-group execution order represented by the information generation sequence, call each information generation module in sequence in the second information generation group based on the intra-group execution order represented by the information generation sequence; until the information generation sequence is executed.

[0101] In this implementation, the fourth execution sequence command is shown in Table 5:

[0102] Table 5 Fourth execution sequence command

[0103]

[0104] As shown in Table 5, from the content represented by the fourth execution sequence command 101 0005689, it can be seen that the fourth execution sequence is to maintain order between groups, the first information generation group does not maintain order within the group, and the second information generation group maintains order within the group. The information generation sequence: data reporting tasks 5, 6, 8 and 9.

[0105] Fig. 9 A schematic diagram of the data reporting process of the fourth execution sequence is shown.

[0106] like Fig. 9 As shown, the data reporting process of the fourth execution sequence includes:

[0107] S801: Based on the inter-group sequence flag and the intra-group sequence flag, determine which group the fourth execution sequence points to first. After the task management module receives the fourth execution sequence command and parses the execution sequence, it is determined that the command is an inter-group order preservation task. The sequence command is directly controlled at the inter-group control logic layer, and codes 8 and 9 in the sequence are sent to the second information generation group, and 5 and 6 are sent to the first information generation group; the content corresponding to code 9 in the sequence is sent to the ninth information generation module for processing.

[0108] S802: extract the first task information code 9 from the execution sequence command, call and write the next CB task information generation module; send the generated information to the lower-level engine through the fourth data reporting module; when the task information 9 is executed,

[0109] S803: extract the second task information code 8 from the execution sequence command, call the write CB to complete the task information generation module, send the content corresponding to code 8 in the information generation sequence to the eighth information generation module for processing, and send the generated information to the lower-level engine through the fourth data reporting module; after the sequence in the second information generation group is executed, execute S804 and S805 simultaneously in the first information generation group,

[0110] S804: extract the third task information code 5 from the execution sequence command, call the write retry count value task information generation module, send the content corresponding to code 5 in the information generation sequence to the fifth information generation module for processing, and send the generated information to the lower-level engine through the third data reporting module;

[0111] S805: Extract the fourth task information code 6 from the execution sequence command, call the write error code task information generation module, send the content corresponding to code 6 in the information generation sequence to the sixth information generation module for processing, send the generated information to the lower-level engine through the third data reporting module, and the fourth execution sequence command is executed. In this way, the execution of the fourth execution sequence command can be realized, and the data reporting task of maintaining the order between information generation groups, not maintaining the order within some information generation groups, and maintaining the order within some information generation groups can be realized.

[0112] The device for data reporting provided by the embodiment of the present invention is applicable to various general servers and storage servers that need data reporting. For example, it is a file server, a print server, an application database server or a Web server, and it can even be a combination of the above functions. Applicable storage servers include: Network Attached Storage (NAS), Object Storage Service (OSS), Block Storage, File Storage NAS (Apsara File Storage NAS), File Storage CPFS (Cloud Paralleled FileSystem), File Storage HDFS (Apsara File Storage for HDFS) and Tablestore.

[0113] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A device for data reporting, characterized in that: The device comprises: The task processing engine is configured to generate an execution sequence based on the data reporting task and send the execution sequence to the processing channel; The processing channel is configured to store the execution sequence in an internal cache after receiving the execution sequence, and if the execution sequence exists in the internal cache, send the execution sequence to the task management module; The task management module is configured to, after receiving the execution sequence, determine an execution order among the plurality of information generation groups based on the execution sequence, and call the plurality of information generation groups according to the execution order among the plurality of information generation groups; There are a plurality of information generation groups, each of which is configured to report data generated based on the received execution sequence to a lower-level engine when called by the task management module.

2. The device according to claim 1, characterized in that The information generation group includes a data reporting module and a plurality of information generation modules, and the information generation group has a corresponding relationship with the information generation modules within the information generation group; The task management module is further configured to determine, based on the execution sequence, an execution order within each of the plurality of information generation groups, and to call each of the information generation modules based on the corresponding execution order within the group when calling the information generation group; For the plurality of information generating modules, each of the information generating modules is configured to send data generated based on the received execution sequence to the data reporting module when called; The data reporting module is configured to report the received generated data to the lower-level engine.

3. The device according to claim 2, characterized in that The execution sequence includes: an inter-group sequence flag and an information generation sequence, wherein the information generation sequence includes an identifier of the information generation module; The task management module is further configured to call the corresponding information generation module based on the identifier, and based on the inter-group sequence flag, send the information generation sequence corresponding to the information generation group to each of the information generation groups in parallel, or send the inter-group execution order represented by the information generation sequence to each of the information generation groups.

4. The device according to claim 3, characterized in that The execution sequence further includes: an intra-group sequence flag, wherein the intra-group sequence flag is set corresponding to the information generation group, and the number of the intra-group sequence flag is the same as the number of the information generation groups; The task management module is further configured to call each of the information generation modules in parallel in each of the information generation groups based on the intra-group sequence flag, or to call each of the information generation modules based on the intra-group execution order represented by the information generation sequence.

5. The device according to claim 4, characterized in that The task management module is further configured as follows: Based on the inter-group sequence flag, the information generation sequence corresponding to the information generation group is sent to each of the information generation groups in parallel, or the information generation sequence corresponding to the information generation group is sent to each of the information generation groups based on the inter-group execution order represented by the information generation sequence; Based on the intra-group sequence flag, each of the information generation modules is called in parallel in each of the information generation groups, or each of the information generation modules is called according to the intra-group execution order represented by the information generation sequence.

6. The device according to claim 5, characterized in that The task management module is further configured as follows: Based on the inter-group sequence flag, the information generation sequence corresponding to the information generation group is sent to each of the information generation groups based on the inter-group execution order represented by the information generation sequence, and based on the intra-group sequence flag, each of the information generation modules is called in parallel in each of the information generation groups: Based on the execution order of the information generation groups represented by the inter-group sequence flags, each of the information generation groups is called in sequence, and each of the information generation modules is called in parallel within each of the information generation groups.

7. The device according to claim 5, characterized in that The task management module is further configured as follows: In the case where, based on the inter-group sequence flag, the information generation sequence corresponding to the information generation group is sent in parallel to each of the information generation groups, and based on the intra-group sequence flag, each of the information generation modules is called in the intra-group execution order represented by the information generation sequence: The information generation sequence corresponding to the information generation group is sent to each of the information generation groups in parallel, and each of the information generation modules is called in sequence in each of the information generation groups based on the intra-group execution order represented by the information generation sequence.

8. The device according to claim 5, characterized in that The task management module is further configured as follows: In the case where the information generation sequence corresponding to the information generation group is sent in parallel to each of the information generation groups based on the inter-group sequence flag, and each of the information generation modules is called in parallel within each of the information generation groups based on the intra-group sequence flag: The information generation sequence corresponding to the information generation group is sent in parallel to each of the information generation groups, and each of the information generation modules is called in parallel in each of the information generation groups.

9. The device according to claim 5, characterized in that The task management module is further configured as follows: In the case where, based on the inter-group sequence flag, the information generation sequence corresponding to the information generation group is sent in parallel to each of the information generation groups, based on a plurality of intra-group sequence flags, each of the information generation modules is called in sequence within some of the information generation groups based on the intra-group execution sequence represented by the information generation sequence, and each of the information generation modules is called in parallel within some of the information generation groups: Based on the execution order of the information generation groups represented by the inter-group sequence flags, calling each of the information generation groups in sequence; In a case where it is determined based on the intra-group sequence flag that the first information generation group in the called information generation group calls each of the information generation modules in parallel, calling each of the information generation modules in the first information generation group in parallel; or In a case where it is determined based on the intra-group sequence flag that the second information generation group in the called information generation group sequentially calls each of the information generation modules based on the intra-group execution order represented by the information generation sequence, in the second information generation group, sequentially call each of the information generation modules based on the intra-group execution order represented by the information generation sequence; Until the information generation sequence is completed.

10. The device according to any one of claims 1 to 9, characterized in that The number of the task processing engines is multiple, the processing channels are set corresponding to the task processing engines, the number of the processing channels is multiple, and the device for data reporting further includes: a first polling scheduling arbitrator, wherein, The first polling scheduling arbitrator is configured to select a target execution sequence from the plurality of execution sequences sent from the plurality of processing channels, and forward the target execution sequence to the task management module.