Data processing method and device of network-on-chip and storage medium

By slicing the signal by bytes in the on-chip network and judging the repeatability for data reorganization, the problem of insufficient data packet format adaptability and hardware complexity in the existing technology is solved, and efficient data compression and simplified hardware design are achieved. Improved data transmission efficiency.

CN118779279APending Publication Date: 2024-10-15SHANDONG INSPUR SCI RES INST CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410747867.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing on-chip network data compression solutions suffer from insufficient data packet format adaptability, low data compression rate, and complex hardware implementation, making it difficult to meet the efficient communication requirements of chip design.

Method used

By slicing the target signal into multiple slices by bytes, the arbiter is used to determine the repeatability of the slices, and the data is reorganized and filled based on the degree of repeatability to form a fixed data format, reduce the network transmission bit width, and achieve data compression.

Benefits of technology

It improves network data transmission efficiency, simplifies hardware design, and meets the actual needs of chip design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779279A_ABST
    Figure CN118779279A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a data processing method and device for a network-on-chip and a storage medium, and the method comprises the steps: dividing flit into a plurality of slices according to bytes by taking the flit in a network-on-chip transmission process as a unit, then compressing data according to the repetition degree of the slices, recombining the flit in a fixed data format, and finally sending the recombined flash * to a network. According to the scheme, on one hand, the flit bit width in the actual transmission process of the network is reduced through the data compression scheme, good data compression efficiency and data packet adaptability are achieved, and the network data transmission efficiency is effectively improved; and on the other hand, a data compression mechanism in the data processing method can be realized only through simple circuit logic, hardware design is simple, and the actual requirements of chip design are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device and storage medium for a network on chip. Background Art

[0002] In the field of chip design, as Moore's Law gradually fades, the performance growth rate of single-core processors has also slowed down. In order to meet the performance requirements of chips, multi-processor systems on chip (MPSOC) came into being. Multi-processor systems on chip integrate multiple computing cores on a chip. On the one hand, they can improve performance by increasing the number of processor cores, and on the other hand, they can use the parallelism between cores to better support parallel computing and better allocate computing resources. Therefore, multi-processor systems on chip have gradually become a hot direction in chip design.

[0003] However, in the design of multi-processor SoCs, the traditional bus or crossbar communication mode gradually fails to meet the high-speed and high-bandwidth communication requirements between computing cores. In particular, as the number of computing cores increases, the communication rate gradually becomes the performance bottleneck of multi-processor SoCs. In response to the above problems, the on-chip network technology based on the computer network data transmission mode has been developed and gradually replaced the bus and crossbar switch to become the mainstream communication mode on multi-processor chips. The on-chip network technology first builds a topological structure that associates multiple cores, and then sends data to the target core in the form of data packets through time division multiplexing, reducing the "request-occupancy-release" process of the traditional bus, and has better scalability and higher transmission bandwidth. In addition, the data transmission unit data packets of the on-chip network are often repetitive, and the data transmission bandwidth can be further improved through data compression technology.

[0004] However, current on-chip network data compression solutions have problems such as few compatible data packet formats, low data compression rate, and complex hardware implementation methods, making it difficult to meet the actual needs of chip design.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present disclosure provide a method, device and storage medium for processing data of a network on chip.

[0008] In some embodiments, a data processing method of an on-chip network may include:

[0009] Slice the target signal by byte according to the basic unit of signal transmission, flit, and divide it into m slices;

[0010] Transmit the data at the corresponding positions of m slices to the corresponding arbiter;

[0011] In the arbiter, the input signal simultaneously enters an m-fan-in 1-fan-out AND gate logic circuit and a NOR gate logic circuit to determine whether the position x signals of the m slices are repeated;

[0012] If the signals at position x are all 1, the output of the AND gate logic circuit is 1;

[0013] If the signals at position x are all 0, the output of the NOR gate logic circuit is 1;

[0014] If the signal at position x is not repeated, the output results of the AND gate and the NOR gate are both 0;

[0015] Input the output results of the AND gate and the NOR gate into an OR gate logic circuit to obtain the final repeated output result;

[0016] Based on the repeated output results obtained by multiple arbiters, the reorganized flit* data is obtained;

[0017] The reorganized flit* data is sent to a network node on the target chip through a network router.

[0018] In some embodiments, based on the repeated output results obtained by the multiple arbiters, the reorganized flit* data is obtained, including:

[0019] Based on the repeated output results obtained by multiple arbiters, the target signal is filled into the onehot part of the reorganized flit*. If the signal at the corresponding position is 1, it means that the data at this position of all slices is the same, and the same data is filled into the repeat position in sequence. If the signal at the corresponding position is 0, it means that the signals of the slices at this position are different, and the corresponding signals are filled into the corresponding unique positions in sequence according to the slice-unique correspondence to obtain the reorganized flit* data.

[0020] In some embodiments, the method may further include:

[0021] The network node on the target chip receives the onehot data and repeat data in the flit* data, and fills the repeat data into the repeat table in sequence. The repeat table allows the positions where the onehot data is 1 to be filled, and the other positions are set to 0.

[0022] In some embodiments, the method may further include:

[0023] Receive the onehot data and the corresponding unique data in the flit* data, and fill the unique data into the corresponding unique table in sequence.

[0024] In some embodiments, the method may further include:

[0025] Set up multiple OR gate logic circuits, use the data in the repeat table and the data in a unique table as inputs of the OR gate logic circuits, and obtain decompressed slice data.

[0026] In some embodiments, the method may further include:

[0027] The decompressed slice data are merged in a corresponding order to obtain the target signal.

[0028] In some embodiments, a data processing device of a network on chip includes:

[0029] The slicing module is used to slice the target signal into m slices according to the basic unit of signal transmission, i.e., flit, by byte.

[0030] A transmission module, used to transmit data at corresponding positions of m slices to corresponding arbiters;

[0031] In the arbiter, the input signal simultaneously enters an m-fan-in 1-fan-out AND gate logic circuit and a NOR gate logic circuit to determine whether the position x signals of the m slices are repeated;

[0032] If the signals at position x are all 1, the output of the AND gate logic circuit is 1;

[0033] If the signals at position x are all 0, the output of the NOR gate logic circuit is 1;

[0034] If the signal at position x is not repeated, the output results of the AND gate and the NOR gate are both 0;

[0035] The transmission module is further used to input the output results of the AND gate and the NOR gate into an OR gate logic circuit to obtain a final repeated output result;

[0036] A reorganization module is used to obtain reorganized flit* data based on repeated output results obtained by multiple arbiters;

[0037] The transmission module is also used to send the reorganized flit* data to a network node on a target chip through a network router.

[0038] In some embodiments, the storage medium stores program instructions, wherein the program instructions, when running, execute the data processing method of the on-chip network in the above-mentioned embodiment.

[0039] The data processing method, device, and storage medium of the network on chip provided by the embodiments of the present disclosure can achieve the following technical effects:

[0040] Taking the flit in the on-chip network transmission process as the unit, the flit is divided into multiple slices by byte, and then the data is compressed according to the repetition of the slice, and the flit is reorganized in a fixed data format, and finally the reorganized flit* is sent to the network. On the one hand, the scheme of the present invention reduces the flit bit width in the actual network transmission process through the data compression scheme, has good data compression efficiency and data packet adaptability, and effectively improves the network data transmission efficiency; on the other hand, the data compression mechanism in the data processing method of the present invention only needs simple circuit logic to be implemented, and the hardware design is simple, which meets the actual needs of chip design.

[0041] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0043] Figure 1 It is a flowchart of a data processing method of a network on chip provided by an embodiment of the present disclosure;

[0044] Figure 2 is a schematic diagram of a data compression scheme in a data processing method of a network on chip provided by an embodiment of the present disclosure;

[0045] Figure 3 is a schematic diagram of a final compressed data format provided by an embodiment of the present disclosure;

[0046] Figure 4 is a schematic diagram of a data decompression solution provided by an embodiment of the present disclosure;

[0047] Figure 5is a schematic diagram of the structure of a data processing device of a network on chip provided by an embodiment of the present disclosure;

[0048] Figure 6 It is a schematic diagram of the structure of a data processing system of a network on chip provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0049] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0050] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0051] Unless otherwise stated, the term "plurality" means two or more.

[0052] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0053] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0054] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0055] The following describes the elastic scaling method, device, and storage medium in the Kubernetes cluster provided by the embodiments of the present disclosure in conjunction with the accompanying drawings.

[0056] Figure 1 It is a flowchart of a data processing method of an on-chip network provided by an embodiment of the present disclosure.

[0057] like Figure 1 As shown, the data processing method of the network on chip provided by the present disclosure may include:

[0058] S01, slice the target signal by bytes according to the basic unit of signal transmission flit, and divide it into m slices;

[0059] S02, transmitting the data of the corresponding positions of the m slices to the corresponding arbitrator;

[0060] S03, in the arbiter, the input signal simultaneously enters an m-fan-in 1-fan-out AND gate logic circuit and a NOR gate logic circuit to determine whether the position x signals of the m slices are repeated;

[0061] S04, if the signals at position x are all 1, the output result of the AND gate logic circuit is 1; if the signals at position x are all 0, the output result of the NOR gate logic circuit is 1; if the signals at position x are not repeated, the output results of the AND gate and the NOR gate are both 0;

[0062] S05, inputting the output results of the AND gate and the NOR gate into an OR gate logic circuit to obtain the final repeated output result;

[0063] S06, obtaining reorganized flit* data based on repeated output results obtained by multiple arbitrators;

[0064] S07, sending the reorganized flit* data to the network node on the target chip through the network router.

[0065] It should be noted that the above m can be adjusted according to actual conditions.

[0066] In the present disclosure, the data processing method of the network on chip includes a data compression mechanism, which divides the flit into multiple slices by bytes based on the flit in the on-chip network transmission process (flit is the smallest unit of on-chip network transmission), and then compresses the data according to the repetition of the slice, reorganizes the flit in a fixed data format, and finally sends the reorganized flit* to the network. On the one hand, the scheme of the present invention reduces the flit bit width in the actual network transmission process through the data compression scheme, has good data compression efficiency and data packet adaptability, and effectively improves the network data transmission efficiency; on the other hand, the data compression mechanism in the data processing method of the present invention only needs simple circuit logic to be implemented, and the hardware design is simple, which meets the actual needs of chip design.

[0067] In some embodiments, based on the repeated output results obtained by the multiple arbiters, the reorganized flit* data is obtained, including:

[0068] Based on the repeated output results obtained by multiple arbiters, the target signal is filled into the onehot part of the reorganized flit*. If the signal at the corresponding position is 1, it means that the data at this position of all slices is the same, and the same data is filled into the repeat position in sequence. If the signal at the corresponding position is 0, it means that the signals of the slices at this position are different, and the corresponding signals are filled into the corresponding unique positions in sequence according to the slice-unique correspondence to obtain the reorganized flit* data.

[0069] In some embodiments, Figure 1 The method may also include:

[0070] The network node on the target chip receives the onehot data and repeat data in the flit* data, and fills the repeat data into the repeat table in sequence. The repeat table allows the positions where the onehot data is 1 to be filled, and the other positions are set to 0.

[0071] In some embodiments, Figure 1 The method may also include:

[0072] Receive the onehot data and the corresponding unique data in the flit* data, and fill the unique data into the corresponding unique table in sequence.

[0073] In some embodiments, Figure 1 The method may also include:

[0074] Set up multiple OR gate logic circuits, use the data in the repeat table and the data in a unique table as inputs of the OR gate logic circuits, and obtain decompressed slice data.

[0075] In some embodiments, Figure 1 The method may also include:

[0076] Merge the decompressed slice data in the corresponding order to obtain the target signal.

[0077] In a specific example, Figure 2 It is a schematic diagram of a data compression scheme in a data processing method of an on-chip network.

[0078] Figure 1 The final compressed data format corresponding to the method is as follows Figure 3 As shown. Combined Figure 2 and Figure 3The transmission case of the present invention may be a 2D mesh topology on-chip network with flit as the data transmission unit, and its specific execution process is divided into the following five steps:

[0079] (1) Flit slicing: First, the basic unit of signal transmission, flit, is sliced ​​into m slices by bytes. The data bit width of each slice is 1 byte, or 8 bits.

[0080] (2) Slice transfer: The data at the corresponding positions of m slices are transferred to the corresponding arbiters, that is, the 0th bit data from slice 0 to slice m is input to arbiter arb0, the 1st bit data from slice 0 to slice m is input to arbiter arb1, and so on until the 7th bit data from slice 0 to slice m is input to arbiter arb7.

[0081] (3) Duplicate data judgment: Taking arb0 as an example, the input signal first enters an AND gate logic circuit with m fan-in and 1 fan-out and an NOR gate logic circuit at the same time to judge whether the position 0 signal of the m slices is repeated. If the signals at this position are all 1, the output result of the AND gate logic circuit is 1; if the signals at this position are all 0, the output result of the NOR gate logic circuit is 1; if the signals at this position are not repeated, the output results of the AND gate and the NOR gate are both 0. The output results of the AND gate and the NOR gate are then input into an OR gate logic circuit to obtain the final duplicate output result: if the values ​​of a certain position of all slices are the same, the judge outputs 1, otherwise the output is 0. The duplicate data judgment unit realizes duplicate value judgment through simple AND gates, OR gates and NOR gates, and has excellent circuit implementation performance.

[0082] (4) Flit* data reorganization: The flit* compression format after data reorganization is as follows Figure 3 As shown. The arb0 to arb7 components in the previous step obtain an 8-bit repeated data judgment result. On the one hand, the result is used to fill the signal into the onehot part of the reorganized flit*, and on the other hand, it is used as a judgment signal. When used as a judgment signal, if the signal at the corresponding position is 1, it means that the data at this position of all slices is the same, and the same data is filled into the repeat position in sequence; if the signal at the corresponding position is 0, it means that the signals at this position of the slice are different, and the corresponding signal is filled into the corresponding unique position in sequence according to the slice-unique correspondence.

[0083] (5) filt* data transmission: The data compression process is completed when the reorganized flit* data is obtained. The flit* data is then sent to the designated on-chip network node through the network router.

[0084] To more clearly illustrate the data compression effect of the present invention, Table 1 gives a specific flit compression example performed according to the scheme of the present invention: first, the input flit is 7-byte data, and the data is sliced ​​to obtain 7 slices, each slice having a bit width of 8 bits; then, the repeated data in the 7 slices are compared to obtain the data repetitions of the 0th, 2nd, 3rd, 4th, and 5th bits, and generate a onehot code 0011_1101; then, the repeated data 10001 is written into repeat, and the unique data of each slice is written into the corresponding unique; finally, according to the data compression format, the compressed data flit* is aggregated.

[0085] Table 1: Specific examples of compression schemes

[0086]

[0087]

[0088] As can be seen from the table, the data compression scheme of the present invention is not limited to the identification of repeated data at continuous positions within a slice, but can identify repeated data at various positions within a slice, and has good data packet adaptability. At the same time, the example flit in the table is divided into 7 slices, the number of repeated bits is 5, and the compression ratio is 60%, which has a good data compression effect. Moreover, under the same repetition rate, the compression ratio will decrease with the increase in the number of flits and the increase in slice fragmentation.

[0089] In the above-mentioned data processing method of the on-chip network, the data decompression scheme can be as follows: Figure 4 As shown, the specific execution process is divided into the following steps:

[0090] (1) Flit* data reception: This process completes the selection of flit* data with this node as the destination node from the on-chip network system, and completes the reception and caching of data.

[0091] (2) Repeat data processing: This process completes the processing of repeat data by maintaining an 8-bit wide repeat table. The specific execution process is to receive the onehot data and repeat data in the flit* data, and fill the repeat data into the repeat table in sequence. Note that the repeat table is only allowed to fill the positions where the onehot data is 1, and the other positions are set to 0.

[0092] (3) Unique data processing: This process processes unique data by maintaining m 8-bit wide unique tables. The specific execution process is to receive the onehot data and the corresponding unique data in the flit* data, and fill the unique data into the corresponding unique table in sequence (such as filling the unique 0 data into the unique0 table in sequence, and filling the unique m data into the unique m table in sequence). Note that the unique table is only allowed to fill the positions where the onehot data is 0, and the other positions are set to 0.

[0093] (4) Slice data merging: This process is completed through an OR gate logic circuit. By setting up multiple OR gate logic circuits, the data in the repeat table and the data in a unique table are used as the input of the OR gate logic circuit, and the result is the uncompressed slice data.

[0094] (5) Flit data merging: merge the slices in the corresponding order to obtain the original flit data.

[0095] To more clearly illustrate the data compression effect of the present invention, Table 2 shows a specific flit* decompression example performed according to the scheme of the present invention: first, the compressed flit* is received, and its onehot is identified as 0011_1101, repeat is 10001, and unique is 000, 101, 110, 100, 011, 111, 001 according to the data compression format; then, the onehot and repeat are processed, and according to the position where the onehot is 1, the repeat value 10001 is divided into the 0th, 2nd, 3rd, 4th, and 5th bits assigned to the repeat table to obtain the repeat table data 0010_0001; the onehot and unique data are processed in parallel, and according to the position where the onehot is 0, the corresponding unique value is assigned to the 1st, 6th, and 7th bits of the unique table to obtain the corresponding unique table value; the repeat table data is logically processed with the unique table respectively to obtain the original data of each slice before compression; finally, the slice data before compression are merged to obtain the flit data before compression.

[0096] Table 2: Specific examples of decompression solutions

[0097]

[0098] The advantages of the present invention are: the invention scheme aims at the problems existing in the current on-chip network data compression scheme, such as few adapted data packet formats, low data compression rate, and complex hardware implementation methods, and proposes a low-cost data compression scheme for on-chip networks, which achieves an equal or even better data compression ratio under low circuit utilization. The scheme includes two parts: a data compression mechanism and a data decompression mechanism: a data compression mechanism, which divides a flit into multiple slices by byte based on the flit in the on-chip network transmission process (a flit is the smallest unit of on-chip network transmission), and then compresses the data according to the repetition of the slice, reorganizes the flit in a fixed data format, and finally sends the reorganized flit* to the network; a data decompression mechanism, which receives the reorganized flit, converts the reorganized flit* into the flit before reorganization according to the defined data format, and then transmits it to the computing core to complete the computing operation. On the one hand, the scheme of the present invention reduces the flit bit width in the actual network transmission process through a data compression scheme, has good data compression efficiency and data packet adaptability, and effectively improves the network data transmission efficiency; on the other hand, the data compression / decompression mechanism of the present invention only requires simple circuit logic to be implemented, the hardware design is simple, and the actual needs of chip design are met.

[0099] and Figure 1 Corresponding to the method embodiment in the present disclosure, a data processing device of a network on chip is also provided. Figure 5 is a schematic diagram of the structure of a data processing device of a network on chip provided by an embodiment of the present disclosure, such as Figure 5 As shown, the data processing device of the network on chip may include:

[0100] A slicing module 501 is used to slice the target signal by bytes according to the basic signal transmission unit flit, and divide it into m slices;

[0101] A transmission module 502, configured to transmit data at corresponding positions of m slices to a corresponding arbitrator;

[0102] In the arbiter, the input signal simultaneously enters an m-fan-in 1-fan-out AND gate logic circuit and a NOR gate logic circuit to determine whether the position x signals of the m slices are repeated;

[0103] If the signals at position x are all 1, the output of the AND gate logic circuit is 1;

[0104] If the signals at position x are all 0, the output of the NOR gate logic circuit is 1;

[0105] If the signal at position x is not repeated, the output results of the AND gate and the NOR gate are both 0;

[0106] The transmission module 502 is also used to input the output results of the AND gate and the NOR gate into an OR gate logic circuit to obtain the final repeated output result;

[0107] A reorganization module 503, used to obtain reorganized flit* data based on repeated output results obtained by multiple arbiters;

[0108] The transmission module 502 is also used to send the reorganized flit* data to the network node on the target chip through the network router.

[0109] In some embodiments, based on the repeated output results obtained by the multiple arbiters, the reorganized flit* data is obtained, including:

[0110] Based on the repeated output results obtained by multiple arbiters, the target signal is filled into the onehot part of the reorganized flit*. If the signal at the corresponding position is 1, it means that the data at this position of all slices is the same, and the same data is filled into the repeat position in sequence. If the signal at the corresponding position is 0, it means that the signals of the slices at this position are different, and the corresponding signals are filled into the corresponding unique positions in sequence according to the slice-unique correspondence to obtain the reorganized flit* data.

[0111] In some embodiments, in a data processing device of an on-chip network, a network node on a target chip receives onehot data and repeat data in flit* data, and fills the repeat data into a repeat table in sequence. Repeatable allows filling positions where the data in onehot is 1, and other positions are set to 0.

[0112] In some embodiments, in the data processing device of the on-chip network, it can also be used to receive onehot data and corresponding unique data in the flit* data, and fill the unique data into the corresponding unique table in sequence.

[0113] In some embodiments, in a data processing device of an on-chip network, multiple OR gate logic circuits can also be set up, and the data in a repeat table and the data in a unique table are used as inputs of the OR gate logic circuit to obtain decompressed slice data.

[0114] In some embodiments, in a data processing device of an on-chip network, it can also be used to merge the decompressed slice data in a corresponding order to obtain a target signal.

[0115] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0116] Combination Figure 6 As shown, the embodiment of the present disclosure provides a data processing system 600 of a network on chip, including a processor 604 and a memory 601. Optionally, the system may also include a communication interface 602 and a bus 603. Among them, the processor 604, the communication interface 602, and the memory 601 can communicate with each other through the bus 603. The communication interface 602 can be used for information transmission. The processor 604 can call the logic instructions in the memory 601 to execute the data processing method of the network on chip of the above embodiment.

[0117] In addition, the logic instructions in the memory 601 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0118] The memory 601 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 604 executes the function application and data processing by running the program instructions / modules stored in the memory 601, that is, implementing the data processing method of the on-chip network in the above embodiment.

[0119] The memory 601 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 601 may include a high-speed random access memory and may also include a non-volatile memory.

[0120] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute a data processing method of an on-chip network.

[0121] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.

[0122] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.

[0123] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. As used in the description of the embodiments, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0124] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0125] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0126] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A data processing method for a network on chip, characterized in that: The method comprises: Slice the target signal by byte according to the basic unit of signal transmission, flit, and divide it into m slices; Transmit the data at the corresponding positions of m slices to the corresponding arbiter; In the arbiter, the input signal simultaneously enters an m-fan-in 1-fan-out AND gate logic circuit and a NOR gate logic circuit to determine whether the position x signals of the m slices are repeated; If the signals at position x are all 1, the output of the AND gate logic circuit is 1; If the signals at position x are all 0, the output of the NOR gate logic circuit is 1; If the signal at position x is not repeated, the output results of the AND gate and the NOR gate are both 0; Input the output results of the AND gate and the NOR gate into an OR gate logic circuit to obtain the final repeated output result; Based on the repeated output results obtained by multiple arbiters, the reorganized flit* data is obtained; The reorganized flit* data is sent to a network node on the target chip through a network router.

2. The method according to claim 1, characterized in that The reorganized flit* data is obtained based on the repeated output results obtained by the multiple arbiters, including: Based on the repeated output results obtained by multiple arbiters, the target signal is filled into the onehot part of the reorganized flit*. If the signal at the corresponding position is 1, it means that the data at this position of all slices is the same, and the same data is filled into the repeat position in sequence. If the signal at the corresponding position is 0, it means that the signals of the slices at this position are different, and the corresponding signals are filled into the corresponding unique positions in sequence according to the slice-unique correspondence to obtain the reorganized flit* data.

3. The method according to claim 2, characterized in that The method further comprises: The network node on the target chip receives the onehot data and repeat data in the flit* data, and fills the repeat data into the repeat table in sequence. The repeat table allows the positions where the onehot data is 1 to be filled, and the other positions are set to 0.

4. The method according to claim 3, characterized in that The method further comprises: Receive the onehot data and the corresponding unique data in the flit* data, and fill the unique data into the corresponding unique table in sequence.

5. The method according to claim 4, characterized in that The method further comprises: Set up multiple OR gate logic circuits, use the data in the repeat table and the data in a unique table as inputs of the OR gate logic circuits, and obtain decompressed slice data.

6. The method according to claim 5, characterized in that The method further comprises: The decompressed slice data are merged in a corresponding order to obtain the target signal.

7. A data processing device for a network on chip, characterized in that: The device comprises: The slicing module is used to slice the target signal into m slices according to the basic unit of signal transmission, i.e., flit, by byte. A transmission module, used to transmit data at corresponding positions of m slices to corresponding arbiters; In the arbiter, the input signal simultaneously enters an m-fan-in 1-fan-out AND gate logic circuit and a NOR gate logic circuit to determine whether the position x signals of the m slices are repeated; If the signals at position x are all 1, the output of the AND gate logic circuit is 1; If the signals at position x are all 0, the output of the NOR gate logic circuit is 1; If the signal at position x is not repeated, the output results of the AND gate and the NOR gate are both 0; The transmission module is further used to input the output results of the AND gate and the NOR gate into an OR gate logic circuit to obtain a final repeated output result; A reorganization module is used to obtain reorganized flit* data based on repeated output results obtained by multiple arbiters; The transmission module is also used to send the reorganized flit* data to the network node on the target chip through a network router.

8. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the data processing method of the network on chip as claimed in any one of claims 1 to 6 is executed.

Citation Information

Cited By

  • Data transmission system and method, electronic equipment and storage medium

    CN120407510A

  • A data transmission system, method, electronic device, and storage medium

    CN120407510B