CN107643991A - Data processing chip and system, data storage method for processing forwarding - Google Patents

Data processing chip and system, data storage method for processing forwarding Download PDF

Info

Publication number
CN107643991A
CN107643991A CN201710869045.6A CN201710869045A CN107643991A CN 107643991 A CN107643991 A CN 107643991A CN 201710869045 A CN201710869045 A CN 201710869045A CN 107643991 A CN107643991 A CN 107643991A
Authority
CN
China
Prior art keywords
data
memory
data processing
mark
processing chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710869045.6A
Other languages
Chinese (zh)
Other versions
CN107643991B (en
Inventor
桂文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Suneng Technology Co ltd
Original Assignee
Feng Feng Technology (beijing) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Feng Feng Technology (beijing) Co Ltd filed Critical Feng Feng Technology (beijing) Co Ltd
Priority to CN201710869045.6A priority Critical patent/CN107643991B/en
Publication of CN107643991A publication Critical patent/CN107643991A/en
Application granted granted Critical
Publication of CN107643991B publication Critical patent/CN107643991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Multi Processors (AREA)

Abstract

The embodiment of the invention discloses a kind of data processing chip and system, data storage method for processing forwarding, wherein, data processing chip includes data processing unit and at least one interconnection storage control, at least one interconnection storage control includes the first interconnection storage control and the second interconnection storage control, data processing unit is connected with each interconnection storage control at least one interconnection storage control respectively, each interconnection storage control is connected respectively to a memory, data processing chip is by interconnecting storage control to memory read/write data, and the data exchange between realization and other data processing chips.The embodiment of the present invention reduces complexity and the time realizing difficulty and cost, reduce data processing of the cost of data processing chip, data handling system.

Description

Data processing chip and system, data storage method for processing forwarding
Technical field
The present invention relates to data processing technique, especially a kind of data processing chip and system, data storage forward process Method.
Background technology
In general data handling system, the memory of Large Copacity, the especially data handling system in deep learning are required for, Need the memory of more Large Copacity.Wherein, DDR (Double Data Rate synchronous DRAM) 3, DDR4, GDDR (graphic double Rate synchronization dynamic RAM), the external memory such as HBM (high bandwidth memory), than SRAM (SRAM) Cost Deng high-speed memory in piece is much lower, and therefore, data processing chip typically has the external high-speed memory exclusively enjoyed, Storage control is set inside corresponding data processing chip, data processing chip reads and writes external memory by storage control In data.
As the complexity more and more higher of data processing task is, it is necessary to which the data volume of processing is increasing, it is necessary to complete number Time according to processing task is shorter and shorter, and multiple data processing chips need to be jointly processed by the data of magnanimity, and this requires these Data processing chip is interconnected, and the fast exchange of data is realized between multiple data processing chips and completes number jointly According to processing task.An interconnection controller built in each data processing chip needs, data processing chip pass through built-in interconnection Controller and other data processing chips carry out data exchange, and the interconnection controller in two data processing chips, which passes through to communicate, to be situated between Matter links together, and carries out data exchange.
Realize the present invention during, inventor by study find, existing data handling system at least exist with Lower problem:
In the data handling system of existing more data processing chip interconnections, storage control and interconnection controller are all independent Set, both needed to set storage control inside data processing chip, it is also desirable to set interconnection controller, this adds increased number According to the cost of process chip;
Because IO (input/output) pins of external memory and the I/O pin of interconnection controller are all independently arranged, The I/O pin density of this data handling system is big, causes PCB (printed circuit board (PCB)) complexity high, also increases data processing System realizes difficulty and cost, reduces the reliability of data handling system;
External memory be all each data processing chip exclusively enjoy with it is privately owned, each data processing chip stores data in In respective external memory, the utilization rate of the memory space of memory is reduced;In addition, when a data processing chip needs Using other data processing chips data when, it is necessary to other side's data processing chip by data from its privately owned external memory Read, then pass the data to current data process chip by two data processing chip interconnection controllers, this is increased by The complexity of data processing and time.
The content of the invention
The embodiment of the present invention provides a kind of data handling system implementation of more data processing chip interconnections.
A kind of one side according to embodiments of the present invention, there is provided the data storage forward process side in data handling system Method, the data handling system include at least one memory and at least two data processing chips, memory and data processing Chip is spaced connection successively, forms one-dimensional connection;Each data processing chip includes at least one interconnection storage control, It is connected by interconnecting storage control with memory;At least one memory includes first memory;
Need to deposit to target memory in response to the first data processing chip at least two data processing chip Storage data or when needing the second data processing chip at least two data processing chip to send data, described the One data processing chip is controlled by the first interconnection storage control in first data processing chip to the first interconnection storage The first memory of device connection processed sends request message, and the request message includes pending data, recipient's mark and sent Side's mark, described recipient's mark one recipient of unique mark in the data handling system, the recipient include number According to process chip and memory, described sender mark one data processing core of unique mark in the data handling system Piece;
The first memory identifies that the recipient identifies whether the mark of the first memory;
If recipient's mark is the mark of the first memory, the first memory stores the pending number According to;
Otherwise, if recipient mark is not the mark of the first memory, the first memory is by the request Message Forwards Forwarding is to the second interconnection storage control being connected in the second data processing chip of the first memory simultaneously;
Second data processing chip identifies that the recipient identifies whether the mark of second data processing chip;
If recipient's mark is the mark of second data processing chip, second data processing chip reads institute Pending data is stated to be handled;
Otherwise, if recipient mark is not the mark of second data processing chip, the second data processing core Piece is given the request message Forwards Forwarding by the 3rd interconnection storage control in second data processing chip to be connected simultaneously It is connected to the second memory of the 3rd interconnection storage control;
Using the second memory as the new first memory, perform the first memory and identify the reception Side identifies whether the operation of the mark of the first memory, until recipient mark is the mark of current receiver, by making Institute is read for pending data described in the memory storage of current receiver or by the data processing chip as current receiver Pending data is stated to be handled.
Alternatively, in the above-mentioned each method embodiment of the present invention, in addition to:
Recipient's mark of data to be stored described in first data processing chip record storage.
Alternatively, in the above-mentioned each method embodiment of the present invention, in response at least two data processing chip When first data processing chip is needed to target memory data storage, first data processing chip passes through first data The first interconnection storage control in process chip sends request to the first memory of the first interconnection storage control connection Message, including:Needed in response to the first data processing chip at least two data processing chip to target memory During data storage, first data processing chip is by the data processing unit in first data processing chip by described The working condition of one interconnection storage control is arranged to data write state, and to described in the described first interconnection storage control transmission Request message;The request message is sent to the first memory of connection by the first interconnection storage control;
The first memory stores the pending data, including:The first memory is by the pending data It is stored in the memory cell in the first memory.
Alternatively, in the above-mentioned each method embodiment of the present invention, send request to the described first interconnection storage control and disappear Before breath, in addition to:
Data processing unit in first data processing chip determines that the data type of the pending data is common Data or private data are enjoyed, also including data type in the request message is identified, and the data type is identified for identifying number It is shared data or private data according to type;
The pending data is stored in the memory cell in the first memory by the first memory, including:
Data type mark of the first memory in the request message, the pending data is stored in Respective memory regions in the memory cell.
Alternatively, in the above-mentioned each method embodiment of the present invention, the first memory is according in the request message Data type is identified, and the pending data is stored in into the respective memory regions in the memory cell, including:
Data type mark in the request message, if the data type of the pending data is privately owned number According to the pending data is stored in the memory cell and is pre-assigned at first data by the first memory Manage the first storage region of chip;
If the data type of the pending data is shared data, the first memory deposits the pending data Store up the shared storage area in the memory cell.
Alternatively, in the above-mentioned each method embodiment of the present invention, the first number at least two data processing chip When needing according to process chip to target memory data storage, in addition to:Data processing in first data processing chip Unit determines the target storage domain in the target memory and target memory of the pending data according to being pre-configured with, And obtain the target memory mark and the target storage domain mark, using the mark of the target memory as Recipient's mark;Also include the mark in the target storage domain in the request message;
The pending data is stored in the memory cell in the first memory by the first memory, including: The pending data is stored in the first memory by the first memory according to the mark in the target storage domain The target storage domain in.
Alternatively, in the above-mentioned each method embodiment of the present invention, in addition to:
Needed in response to first data processing chip from recipient's reading data, first data processing chip Data processing unit by be connected to the recipient first interconnection storage control working condition be arranged to data read shape State, and data read request message, the reading are sent to the first memory by the described first interconnection storage control Request message includes transmitting side marking and recipient's mark, and described sender is identified as the mark of first data processing chip Know;
The first memory identifies that the recipient identifies whether the mark of the first memory;
If recipient's mark is the mark of the first memory, the first memory obtains from the first memory The data for taking the data read request message to be asked, and return to the digital independent to the described first interconnection storage control The data that request message is asked;Data processing of the first interconnection storage control into first data processing chip The data that data read request message described in unit forwards is asked;
Otherwise, if recipient mark is not the mark of the first memory, the first memory is by the data Read requests message Forwards Forwarding is to the second data processing chip for being connected to the first memory simultaneously;
Second data processing chip identifies that the recipient identifies whether the mark of second data processing chip;
If recipient's mark is the mark of second data processing chip, second data processing chip obtains institute The data that data read request message is asked are stated, and are deposited along the reverse transfer of the data read request message to described first Reservoir;The number that the first memory is asked to the described first interconnection storage control return data read request message According to;Data processing unit of the first interconnection storage control into first data processing chip forwards the data to read Take the data that request message is asked;
Otherwise, if recipient mark is not the mark of second data processing chip, the second data processing core Piece is by the data read request message Forwards Forwarding to the second memory for being connected to second data processing chip simultaneously;
Using the second memory as the new first memory, perform the first memory and identify the reception Side identifies whether the operation of the mark of the first memory, until current receiver mark is the mark of current receiver, by working as Preceding recipient obtains the data that the data read request message is asked, and along the reverse biography of the data read request message Defeated path transmission gives the first memory;The first memory returns to the data to the described first interconnection storage control The data that read requests message is asked;Data of the first interconnection storage control into first data processing chip Processing unit forwards the data that the data read request message is asked.
Alternatively, in the above-mentioned each method embodiment of the present invention, the recipient is memory, the data read request Also include data type in message to identify, it is shared data or privately owned number that the data type, which is identified for mark data type, According to;
The first memory obtains the data that the data read request message is asked from the first memory, bag Include:
If the data type that the mark in the data read request message is identified is private data, first storage The first storage region that device is pre-assigned to first data processing chip from the memory cell in the first memory is read The data storage for taking the data read request message to be asked;
If the data type that the mark in the data read request message is identified is shared data, first storage The data storage that device is asked from the shared storage area read requests in the memory cell in the first memory.
Alternatively, in the above-mentioned each method embodiment of the present invention, first data processing chip needs to read from recipient Access evidence, including:
The memory block in memory and memory where the data that the first data processing chip determination needs are read Domain obtains the mark of the target memory and the target storage respectively as target memory and target storage domain The mark in domain, the recipient are identified as the mark of the target memory;Also include institute in the data read request message State the mark in target storage domain;
The first memory obtains the data that the data read request message is asked from the first memory, bag Include:
The first memory is according to the mark in the target storage domain, from the target in the first memory The data that the data read request message is asked are read in storage region.
Alternatively, in the above-mentioned each method embodiment of the present invention, in response at least two data processing chip When first data processing chip needs the second data processing chip transmission data at least two data processing chip, First data processing chip interconnects storage control to first interconnection by first in first data processing chip The first memory of storage control connection sends request message, including:
Needed in response to the first data processing chip at least two data processing chip to described at least two When the second data processing chip in data processing chip sends data, the data processing list in first data processing chip The working condition of described first interconnection storage control is arranged to data exchange state by member, and is stored by the described first interconnection Controller sends the request message to the first memory.
Alternatively, in the above-mentioned each method embodiment of the present invention, the memory includes multiple memory interfaces, by respectively depositing Storage interface is connected respectively to the interconnection storage control in different data processing chips, passes through the multiple memory interface In a memory interface receive connection interconnection storage control send request message, by the multiple memory interface Another memory interface the request message is sent in the data processing chip of another memory interface connection Interconnect storage control.
Other side according to embodiments of the present invention, there is provided a kind of data processing chip, the data processing chip bag Data processing unit and at least one interconnection storage control are included, a data processing unit interconnects with described at least one respectively Each interconnection storage control connection in storage control, each storage control that interconnects are connected respectively to a memory;Its In:
The data processing unit, for needing to target memory data storage or needing to another data processing When chip sends data, the memory connected by wherein one interconnection storage control to the interconnection storage control is sent Request message, the request message include pending data, recipient's mark and transmitting side marking, and recipient's mark is in institute To state unique mark one in data handling system and receive square chip, the reception square chip includes data processing chip and memory, Described sender mark data processing chip of unique mark one in the data handling system;And in response to passing through described one Interconnection storage control receives request message, identifies that the recipient in the request message identifies whether the data processing core The mark of piece;If recipient's mark in the request message is the mark of the data processing chip, read described pending Data are to be handled;Otherwise, if recipient's mark in the request message is not the mark of the data processing chip, The request message is given by another interconnection storage control Forwards Forwarding and is connected to the another of the data processing chip simultaneously One memory;
Storage control is interconnected, a memory is connected to, for the request message for sending the data processing unit It is transmitted to the memory of connection.
Alternatively, in the above-mentioned each chip embodiment of the present invention, the data processing unit, it is additionally operable to mutual to described one Join before storage control sends the request message, determine that the pending data is shared data or private data, it is described Also include data type in request message to identify, it is shared data or privately owned that the data type, which is identified for mark data type, Data;And the working condition of described one interconnection storage control is arranged to data write state.
Alternatively, in the above-mentioned each chip embodiment of the present invention, the data processing unit, specifically for needing to store During the pending data, according to being pre-configured with, it is determined that storing the target memory and target memory of the pending data In target storage domain, and obtain the target memory mark and the target storage domain mark, with the mesh The mark of mark memory identifies as the recipient;Also include the mark in the target storage domain in the request message; And the working condition of described one interconnection storage control is arranged to data write state.
Alternatively, in the above-mentioned each chip embodiment of the present invention, the data processing unit, specifically for needing to institute When stating another data processing chip transmission data, the working condition of described one interconnection storage control is arranged to data exchange shape State, and the exchange data are sent to a memory by described one interconnection storage control.
Alternatively, in the above-mentioned each chip embodiment of the present invention, the data processing unit, it is additionally operable to needing from reception When side reads data, the working condition for the interconnection storage control for being connected to the recipient is arranged to data read states, And data read request message, the read requests message are sent to a memory by described one interconnection storage control Include transmitting side marking and recipient's mark, described sender is identified as the mark of the data processing chip;
The interconnection storage control, it is additionally operable to receive the data read request message institute that a memory returns The data storage of request, and forward the data storage that the data read request message asked to the data processing unit.
Alternatively, in the above-mentioned each chip embodiment of the present invention, data class is also included in the data read request message Type identifies, and it is shared data or private data that the data type, which is identified for mark data type,.
Alternatively, in the above-mentioned each chip embodiment of the present invention, the data processing unit, specifically for needing from institute When stating recipient and reading data, it is determined that storage region in memory and memory where needing the data that read respectively as Target memory and target storage domain, and the mark of the target memory and the mark in the target storage domain are obtained, Recipient's mark is specially the mark of the target memory;Also include the target storage domain in the request message Mark.
Another aspect according to embodiments of the present invention, there is provided a kind of data handling system, including:At least one memory With at least two data processing chips, memory and data processing chip are spaced connection successively, form one-dimensional connection;It is each described Data processing chip includes at least one interconnection storage control, is connected by interconnecting storage control with memory;It is described extremely A few memory includes first memory;At least two data processing chip includes the first data processing chip and second Data processing chip;At least one interconnection storage control in first data processing chip includes the first interconnection storage control Device processed, it is connected by the described first interconnection storage control with the first memory;In second data processing chip It is at least one interconnection storage control include described second interconnection storage control, by described second interconnection storage control with The first memory connection;
First data processing chip, for need to target memory data storage or need to it is described at least When the second data processing chip in two data processing chips sends data, storage control is interconnected to institute by described first State first memory and send request message, the request message includes pending data, recipient's mark and transmitting side marking, institute Stating recipient's mark one recipient of unique mark, recipient in the data handling system includes data processing chip And memory, described sender mark one data processing chip of unique mark in the data handling system;
The first memory, for identifying that the recipient identifies whether the mark of the first memory;If described connect Debit's mark is the mark of the first memory, stores the pending data;Otherwise, if recipient mark be not this The mark of one memory, by the request message Forwards Forwarding to the second data processing core for being connected to the first memory simultaneously The second interconnection storage control in piece;
Second data processing chip, for identifying that the recipient identifies whether the mark of second data processing chip Know;If recipient's mark is the mark of second data processing chip, the pending data is read to be handled; Otherwise, if recipient mark is not the mark of second data processing chip, by second data processing chip 3rd interconnection storage control is by the request message Forwards Forwarding to being connected to the of the 3rd interconnection storage control simultaneously Two memories.
Alternatively, in the above-mentioned each system embodiment of the present invention, it is any of the above-described that the data processing chip includes the present invention Data processing chip described in embodiment.
Alternatively, in the above-mentioned each system embodiment of the present invention, the first memory includes:Switching centre's unit, deposit Storage unit and two or more memory interface, each memory interface are deposited with an interconnection in a data processing chip respectively Store up controller connection;
Switching centre's unit, for by being controlled in described two interfaces stored above with the described first interconnection storage First memory interface of device connection receives the request message, identifies that the recipient identifies whether the mark of the first memory Know;If recipient's mark is the mark of the first memory, the pending data in the request message is stored in institute State in memory cell;Otherwise, if recipient mark is not the mark of the first memory, by described two stored above The request message is transmitted to while connected by the second memory interface being connected in interface with the described second interconnection storage control The second interconnection storage control into the second data processing chip of the first memory;Deposited above by described two The first memory interface being connected in storage interface with the described first interconnection storage control receives the data read request message, knows Recipient in not described data read request message identifies whether the mark of the first memory;If the data read request Recipient's mark in message is the mark of the first memory, and the data read request is obtained from the memory cell and is disappeared The asked data of breath, and return to the number that the data read request message asked to the described first interconnection storage control According to;Otherwise, if recipient's mark in the data read request message is not the mark of the first memory, described the is passed through The request message is transmitted to the second interconnection storage control described in two memory interfaces;The memory cell, for depositing Store up data.
Alternatively, in the above-mentioned each system embodiment of the present invention, the memory cell includes:Privately owned storage region and shared Storage region;
The privately owned storage region includes the multiple storage regions for being respectively allocated to each data processing chip in advance;
Also the data type including the pending data is identified in the request message, and the data type, which identifies, to be used for Mark data type is shared data or private data;
Switching centre's unit, specifically for being identified according to the data type, if the data of the pending data Type is private data, and the pending data is stored in the first storage for being pre-assigned to first data processing chip In region;If the data type of the pending data is shared data, the pending data is stored in described share and deposited Storage area domain.
Alternatively, in the above-mentioned each system embodiment of the present invention, data class is also included in the data read request message Type identifies, and it is shared data or private data that the data type, which is identified for mark data type,;
Switching centre's unit, the digital independent is obtained from the memory cell according to the read requests message During the data that request message is asked, specifically for being identified according to the data type, if the data type of the data is private There are data, read the data read request message from the storage region for being pre-assigned to first data processing chip and ask The data storage asked;If the data type of the data is shared data, asked from the shared storage area read requests Data storage.
Alternatively, in the above-mentioned each system embodiment of the present invention, the memory includes:Switching centre's unit, storage are single Member and two or more memory interface, each memory interface store control with an interconnection in a data processing chip respectively Device connection processed;
The memory cell includes:Privately owned storage region and shared storage area, for data storage;The privately owned storage Region includes being respectively allocated to multiple storage regions of each data processing chip, the mark that each storage region passes through storage region in advance Know unique mark;
Also include the mark in the target storage domain in the request message;
Switching centre's unit, for by being controlled in described two interfaces stored above with the described first interconnection storage First memory interface of device connection receives the request message, identifies that the recipient identifies whether the mark of the first memory Know;If recipient's mark is the mark of the first memory, according to the mark in the target storage domain, by the storage In the target storage domain of the data storage in the memory cell;Otherwise, if the recipient mark be not this first The mark of memory, by being controlled in described two interfaces stored above with the second interconnection storage in second data processing chip The request message is transmitted to while is connected to second interconnection of the memory by the second memory interface of device connection processed Storage control;And first be connected by interconnecting storage control in described two interfaces stored above with described first is deposited Data read request message described in storing up interface, identifies that the recipient identifies whether the mark of the first memory;If institute The mark that recipient's mark is the first memory is stated, the data read request message is obtained from the memory cell and is asked The data asked, and return to the data that the data read request message asked to the described first interconnection storage control;Otherwise, If recipient mark is not the mark of the first memory, by described in second memory interface by the request message It is transmitted to the second interconnection storage control.
Alternatively, in the above-mentioned each system embodiment of the present invention, the memory includes:Mixing memory cube dynamic with Machine access memory HMC DRAM, static RAM SRAM, on-site programmable gate array FPGA, application specific integrated circuit ASIC or more mouthfuls of hard disk.
Alternatively, in the above-mentioned each system embodiment of the present invention, the interconnection storage control passes through serializer/de-serializers SERDES, Ethernet or bus and interface standard PCIE are connected with memory.
The data processing chip and system, data storage method for processing forwarding provided based on the above embodiment of the present invention, Interconnection storage control is set in data processing chip, is connected by interconnecting storage control with memory, is stored by interconnecting Controller realized to the reading and writing data in memory, and by interconnect storage control and memory realize with other data Manage the data exchange between chip.Relative to relevant art, the embodiment of the present invention has following advantageous effects:
Storage control and interconnection controller need not be independently arranged, the cost of data processing chip is reduced, reduces IO Pin densities, PCB complexity is reduced, reduce data handling system realizes difficulty and cost, improves data processing The reliability of system;
All data processing chips can be with the memory space of shared memory, when a data processing chip stores from one When the data of other data processing chips storage are read in device, the data directly can be read from memory, without by depositing Store up the data other data processing chips data are read from memory after relay to current data processing chip, improve The utilization rate of memory space, and reduce complexity and the time of data processing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
The accompanying drawing of a part for constitution instruction describes embodiments of the invention, and is used to explain together with description The principle of the present invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood, wherein:
Fig. 1 is the structural representation of data handling system one embodiment of the present invention.
Fig. 2 is the structural representation of data processing chip one embodiment of the present invention.
Fig. 3 is the structural representation of memory cell one embodiment in the embodiment of the present invention.
Fig. 4 is the flow chart of data storage method for processing forwarding one embodiment of the present invention.
Fig. 5 is the flow chart of another embodiment of data storage method for processing forwarding of the present invention.
Fig. 6 is the flow for reading data one embodiment in the embodiment of the present invention from the first data processing chip from recipient Figure.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless have in addition Body illustrates that the unlimited system of part and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The scope of invention.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality Proportionate relationship draw.
The description only actually at least one exemplary embodiment is illustrative to be never used as to the present invention below And its application or any restrictions that use.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as part for specification.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
The embodiment of the present invention can apply to the electronic equipments such as terminal device, computer system/server, its can with it is numerous Other universal or special computing system environments or configuration operate together.Suitable for the electricity such as terminal device, computer system/server The example of well-known terminal device, computing system, environment and/or configuration that sub- equipment is used together includes but is not limited to: Personal computer system, server computer system, thin client, thick client computer, hand-held or laptop devices, based on microprocessor System, set top box, programmable consumer electronics, NetPC Network PC, little types Ji calculate machine Xi Tong ﹑ large computer systems and Distributed cloud computing technology environment including any of the above described system, etc..
The electronic equipments such as terminal device, computer system/server can be in the department of computer science performed by computer system Described under the general linguistic context of system executable instruction (such as program module).Generally, program module can include routine, program, mesh Beacon course sequence, component, logic, data structure etc., they perform specific task or realize specific abstract data type.Meter Calculation machine systems/servers can be implemented in distributed cloud computing environment, and in distributed cloud computing environment, task is by by logical What the remote processing devices of communication network link performed.In distributed cloud computing environment, program module, which can be located at, includes storage In the Local or Remote computing system storage medium of equipment.
In various embodiments of the present invention, whether it is same object that the word such as " first ", " second " is only used for distinguishing, rather than Distinguish the structure inside object.In various embodiments of the present invention, data processing chip uses same structure, and memory is also using same The structure of sample.
Fig. 1 is the structural representation of data handling system one embodiment of the present invention.As shown in figure 1, the number of the embodiment According to processing system, including:At least one memory and at least two data processing chips, memory and data processing chip are successively Interval connection, forms one-dimensional connection.Wherein, each data processing chip includes at least one interconnection storage control, by mutual Connection storage control is connected with memory.Above-mentioned at least one memory includes first memory, or further comprises that second deposits Reservoir, each memory can be connected with the interconnection storage control in one or more data processing chips simultaneously.It is above-mentioned extremely Few two data processing chips include the first data processing chip and the second data processing chip.In first data processing chip At least one interconnection storage control includes the first interconnection storage control, passes through the first interconnection storage control and the first storage Device connects;At least one interconnection storage control in second data processing chip includes the second interconnection storage control, passes through Second interconnection storage control is connected with first memory.The data processing chip of some quantity is schematically illustrated in Fig. 1 And memory, data processing chip, the quantity of memory can be more or less than the number shown in Fig. 1 in various embodiments of the present invention Amount, record of the those skilled in the art based on the embodiment of the present invention can realize corresponding embodiment.Wherein:
First data processing chip, for needing to target memory data storage or needing to the second data processing When chip sends data, request message is sent to first memory by the first interconnection storage control, wrapped in the request message Pending data, recipient's mark and transmitting side marking are included, wherein, recipient identifies unique mark one in a data processing system Individual recipient, recipient include data processing chip and memory, transmitting side marking unique mark one in a data processing system Individual data processing chip.In various embodiments of the present invention, if request message is data storage request message, pending number therein According to for data to be stored;If request message is data exchange request message or data sending request message, therein pending Data are data to be exchanged or data to be sent.
First memory, the recipient for identifying in request message identify whether the mark of the first memory;If connect Debit's mark is the mark of the first memory, stores above-mentioned pending data;Otherwise, if recipient's mark is not that this first is deposited The mark of reservoir, by request message Forwards Forwarding to the be connected in the second data processing chip of the first memory simultaneously Two interconnection storage controls.
In various embodiments of the present invention, Forwards Forwarding refers to, along the transmission direction of message when receiving message in one-dimensional connection Forward message so that message is transmitted in the same direction in one-dimensional connection.
In various embodiments of the present invention, memory for example can be:Mixing memory cube dynamic random access memory (HMC DRAM), static RAM (SRAM), field programmable gate array (FPGA), application specific integrated circuit (ASIC) Or more mouthfuls of hard disks etc., the memories of multiple memory interfaces can be arbitrarily set.Wherein, can be set in HMC DRAM four or with Upper interconnection storage control, each it is correspondingly connected to four or more memories;Two or more interconnections can be set in SRAM Storage control, each it is correspondingly connected to two or more memories;Two or more interconnection storage controls can be set in FPGA Device processed, each it is correspondingly connected to two or more memories;Two or more interconnection storage controls can be set in ASIC, respectively From being correspondingly connected to two or more memories.
In various embodiments of the present invention, interconnection storage control can by serializer/de-serializers (SERDES), Ethernet, Or any wired or wireless communication such as bus and interface standard (PCIE) is connected with memory.
Second data processing chip, the recipient for identifying in request message identify whether second data processing chip Mark;If recipient's mark is the mark of second data processing chip, the pending data is read to be handled, example Such as calculate, store;Otherwise, if recipient's mark is not the mark of second data processing chip, at second data Request message Forwards Forwarding is interconnected storage control by the 3rd interconnection storage control in reason chip to being connected to the 3rd simultaneously The second memory of device.Wherein, second data processing chip also includes the 3rd interconnection storage control.
The data handling system provided based on the above embodiment of the present invention, interconnection storage control is set in data processing chip Device processed, it is connected with memory by interconnecting storage control, the data in memory is read by interconnecting Implementing Memory Controllers Write, and by interconnecting the data exchange between storage control and memory realization and other data processing chips.The present invention Embodiment:Storage control and interconnection controller need not be independently arranged, reduces the cost of data processing chip, reduces IO pipes Pin density, PCB complexity is reduced, reduce data handling system realizes difficulty and cost, improves data processing system The reliability of system;All data processing chips can be with the memory space of shared memory, when a data processing chip is from one When the data of other data processing chips storage are read in memory, the data directly can be read from memory, without logical Cross other data processing chips for storing the data to read data from memory and be transmitted to current data processing chip, carry The high utilization rate of memory space, and reduce complexity and the time of data processing.
Alternatively, in the data handling system of various embodiments of the present invention, first data processing chip can in one-dimensional connection To be connected with the memory at end in the one-dimensional connection, so as to form a link connection.And/or each data processing chip In be all stored with recipient mark and interconnection storage control between relation, so as to need to recipient send request message Or during data read request message, data processing chip selects interconnection storage control transmission accordingly in the data processing chip Request message or data read request message.
Fig. 2 is the structural representation of data processing chip one embodiment of the present invention.As shown in Fig. 2 the number of the embodiment Include data processing unit and at least one interconnection storage control according to process chip, at least one interconnection storage control bag An interconnection storage control and another interconnection storage control are included, data processing unit stores with above-mentioned at least one interconnection respectively Each interconnection storage control connection in controller, each storage control that interconnects are connected respectively to a memory.Wherein:
Data processing unit, for needing to target memory data storage or needing to another data processing chip When sending data, the memory connected by above-mentioned one interconnection storage control to the interconnection storage control sends request Message, the request message include pending data, recipient's mark and transmitting side marking, wherein, recipient is identified in data One reception square chip of unique mark in processing system, receiving square chip includes data processing chip and memory, sender's mark Know one data processing chip of unique mark in a data processing system;And in response to passing through above-mentioned one interconnection storage control Request message is received, identifies that the recipient in request message identifies whether the mark of the data processing chip;If request message In recipient's mark be the data processing chip mark, pending data in read requests message is to be handled; Otherwise, if recipient's mark in request message is not the mark of the data processing chip, request message is passed through into another interconnection Storage control Forwards Forwarding is given is connected to the above-mentioned another memory according to process chip of the number simultaneously.In the embodiment of the present invention, Forwards Forwarding is the direction for forwarding request message, makes same direction of the transmission direction of request message along one-dimensional connection.
Storage control is interconnected, is connected to a memory, for the request message forwarding for sending data processing unit Memory to connection.
The data processing chip provided based on the above embodiment of the present invention, is provided with interconnection storage control, passes through interconnection Storage control is connected with memory, by interconnecting Implementing Memory Controllers to the reading and writing data in memory, and by mutual Join the data exchange between storage control and memory realization and other data processing chips.At the data of the embodiment of the present invention Manage chip:Storage control and interconnection controller need not be independently arranged, reduces the cost of data processing chip, reduces IO pipes Pin density, PCB complexity is reduced, reduce data handling system realizes difficulty and cost, improves data processing system The reliability of system;All data processing chips can be with the memory space of shared memory, when a data processing chip is from one When the data of other data processing chips storage are read in memory, the data directly can be read from memory, without logical Cross other data processing chips for storing the data to read data from memory and be transmitted to current data processing chip, carry The high utilization rate of memory space, and reduce complexity and the time of data processing.
In another embodiment of data processing chip of the present invention, data processing unit can be additionally used in mutual to above-mentioned one Before joining storage control transmission request message, it is shared data or private data to determine pending data, is gone back in request message Data type mark including pending data, it is shared data or privately owned number that the data type, which is identified for mark data type, According to;And the working condition of above-mentioned one interconnection storage control is arranged to data write state.Wherein, the data class of current data Type is shared data or private data, can be determined by the configuration to data processing chip in advance, such as by being pre-configured with Type of service, link in a business procession etc. determines.
Or in another embodiment of data processing chip of the present invention, data processing unit, specifically for needing When storing the pending data in request message, according to being pre-configured with, it is determined that the target memory and mesh of storage pending data Mark memory in target storage domain, and obtain the target memory mark and the target storage domain mark (for example, Chip identification, storage region numbering etc.), identified using the mark of the target memory as recipient;Accordingly, in request message Also include the mark in target storage domain;And the working condition of above-mentioned one interconnection storage control is arranged to data and writes shape State.
In an optional example of each data processing chip embodiment of the present invention, data processing unit therein is specifically used Sent in needs to above-mentioned another data processing chip outside data processing chip where at least two data processing chips During data, the working condition of above-mentioned one interconnection storage control is arranged to data exchange state, and pass through an above-mentioned interconnection Storage control sends to an above-mentioned memory and exchanges data.
In the embodiment of the present invention, interconnection storage control can include following three kinds of working conditions:Data write state, data Read states, data exchange state.When interconnection storage control is in these three states, data processing unit is respectively used to storage Device data storage, from memory read data and with above-mentioned another data processing chip exchange data.
In addition, in the further embodiment of data processing chip of the present invention, data processing unit can also be used to need When reading data from recipient, the working condition for the above-mentioned interconnection storage control for being connected directly or indirectly to recipient is set Data read states are set to, and data read request message is sent to an above-mentioned memory by above-mentioned one interconnection storage control, The read requests message includes transmitting side marking and recipient's mark, and transmitting side marking therein is above-mentioned data processing core The mark of piece.Correspondingly, in the embodiment, above-mentioned interconnection storage control can also be used to receive what an above-mentioned memory returned The data that above-mentioned data read request message is asked, and forward the data read request message to be asked to data processing unit Data storage.
Alternatively, data type can also be included in above-mentioned data read request message to identify, data type mark is used It is shared data or private data in identifying the data types of the data that above-mentioned data read request message is asked.
Or alternatively, data processing unit is specifically used for when needing to read data from recipient, it is determined that needing to read Data where memory and storage region in memory respectively as target memory and target storage domain, and obtain Take the mark of the target memory and the mark in the target storage domain, recipient's mark in above-described embodiment is specially the mesh The mark of memory is marked, the mark in the target storage domain can also be included in above-mentioned request message.
In the data handling system of various embodiments of the present invention, data processing chip can exemplarily pass through any of the above-described number Realized according to process chip embodiment.
Fig. 3 is the structural representation of memory cell one embodiment in the embodiment of the present invention.As shown in figure 3, it is used as this hair One specific example of bright each data handling system embodiment and it is unrestricted, the memory in the embodiment of the present invention includes:Exchange Center cell, memory cell and two or more memory interface, each memory interface respectively with one in a data processing chip Individual interconnection storage control connection.Wherein:
Switching centre's unit, for first by being connected in two or more memory interface with the first interconnection storage control Memory interface receives request message, identifies that the recipient in request message identifies whether the mark of the first memory;If request Recipient's mark in message is the mark of the first memory, and it is single that the pending data in the request message is stored in into storage In member;Otherwise, if recipient's mark in request message is not the mark of the first memory, two or more memory interface is passed through In the request message be transmitted to while be connected to this with second the second memory interface for being connected of interconnection storage control first deposit The second interconnection storage control in second data processing chip of reservoir;By being interconnected in two or more memory interface with first First memory interface of storage control connection receives data read request message, identifies connecing in the data read request message Debit identifies whether the mark of the first memory;If recipient's mark in data read request message is the first memory Mark, obtain the data that the data read request message is asked from memory cell, and to the first interconnection storage control Return to the data that the data read request message is asked;Otherwise, if recipient's mark in data read request message is not The mark of the first memory, request message is transmitted to by the second interconnection storage control by the second memory interface.
Memory cell, for data storage.
In one of example of each embodiment of memory of the present invention, memory cell includes:Privately owned storage region and altogether Storage region is enjoyed, wherein, privately owned storage region includes the multiple storage regions for being respectively allocated to each data processing chip in advance. In above-described embodiment, the data type that pending data can also be included in request message is identified, and the data type, which identifies, to be used for The data type for identifying pending data is shared data or private data.Correspondingly, switching centre's unit is specifically used for basis Data type mark in request message, if the data type of pending data is private data, pending data is stored in It is pre-assigned in the first storage region of the first data processing chip;If the data type of pending data is shared data, By the shared storage area of pending data storage in the memory unit.
In addition, in another example of each embodiment of memory of the present invention, can also be wrapped in data read request message Data type mark is included, it is common that the data type, which is identified for the data type of mark data read requests message requested data, Enjoy data or private data.Correspondingly, switching centre's unit is obtained from memory cell according to the data read request message and is somebody's turn to do During the data that data read request message is asked, specifically for the data type mark in the data read request message Know, if the data type of request data is private data, read from the storage region for being pre-assigned to the first data processing chip The data storage that the data read request message is asked;If the data type of request data is shared data, from shared storage Read the data storage that the data read request message is asked in region.
In addition, referring back to Fig. 3, in another embodiment of memory cell structure shown in Fig. 3, memory cell includes:It is private There are storage region and shared storage area, for data storage.Wherein, privately owned storage region includes being respectively allocated to each number in advance According to multiple storage regions of process chip, the private data of data storage process chip is respectively used to, shared storage area is used for The shared data of each data processing chip in data storage processing system.Each storage region is uniquely marked by the mark of storage region Know.
In the embodiment, the mark in target storage domain is also included in request message.Correspondingly,
Switching centre's unit, for first by being connected in two or more memory interface with the first interconnection storage control Memory interface receives request message, identifies that the recipient in the request message identifies whether the mark of the first memory;If should Recipient's mark in request message is the mark of the first memory, according to the mark in target storage domain, by request message In pending data storage target storage domain in the memory unit in;Otherwise, if the recipient in the request message marks Knowledge is not the mark of the first memory, by being deposited in two or more memory interface with the second interconnection in the second data processing chip The request message is transmitted to while is connected to the second interconnection storage control of memory by the second memory interface of storage controller connection Device processed;And the first memory interface by being connected in two or more memory interface with the first interconnection storage control receives data Read requests message, identify that the recipient in the data read request message identifies whether the mark of the first memory;If should Recipient's mark in data read request message is the mark of the first memory, and the digital independent is obtained from memory cell The data that request message is asked, and return to the number that the data read request message asked to the first interconnection storage control According to;Otherwise, if recipient's mark in the data read request message is not the mark of the first memory, the second storage is passed through Request message is transmitted to the second interconnection storage control by interface.
Fig. 4 is the flow chart of data storage method for processing forwarding one embodiment in data handling system of the present invention.Its In, the data handling system includes at least one memory and at least two data processing chips, memory and data processing core Piece is spaced connection successively, forms one-dimensional connection;Each data processing chip includes at least one interconnection storage control, by mutual Connection storage control is connected with memory;Above-mentioned at least one memory includes first memory.Each data storage of the present invention turns Sending out the data handling system in processing method embodiment can use the data handling system of the various embodiments described above of the present invention to realize. As shown in figure 4, the data storage method for processing forwarding of the embodiment includes:
102, need to deposit to target memory in response to the first data processing chip at least two data processing chips When storing up data or needing the second data processing chip transmission data at least two data processing chips, at the first data Chip is managed to connect to the first interconnection storage control by the first interconnection storage control in first data processing chip First memory send request message.
Wherein, the request message includes pending data, recipient's mark and transmitting side marking, recipient's mark therein Knowing one recipient of unique mark, the recipient in a data processing system includes data processing chip and memory, i.e.,:Receive Side can be data processing chip or memory;Transmitting side marking one number of unique mark in a data processing system According to process chip.
In the data storage method for processing forwarding of another embodiment of the present invention, the first data processing chip sends request and disappeared After breath, recipient's mark of data to be stored in the request message can also be recorded, i.e.,:The pending data is recorded to be sent to Which memory, subsequently to read the pending data from the memory.
In an optional example of the embodiment of the present invention, the operation 102 can be realized in the following way:In response to extremely The first data processing chip in few two data processing chips is needed to target memory data storage, the first data processing core The working condition of first interconnection storage control is arranged to by piece by the data processing unit in first data processing chip Data write state, and send request message to the first interconnection storage control;First interconnection storage control sends out request message Give the first memory of connection.
104, the recipient in first memory identification request message identifies whether the mark of the first memory.
If recipient's mark is the mark of the first memory, illustrate that the pending data in the request message is deposited for needs The data to be stored of storage, perform operation 106.Otherwise, if recipient's mark is not the mark of the first memory, operation is performed 108。
106, first memory stores the pending data in request message.
In an optional example of the embodiment of the present invention, the operation 106 can be realized in the following way:First storage Pending data is stored in the memory cell in the first memory by device.
Afterwards, the follow-up process of the present embodiment is not performed.
108, request message Forwards Forwarding is given and is connected to simultaneously at the second data of the first memory by first memory Manage the second interconnection storage control in chip.
110, the second data processing chip identifies that the recipient in request message identifies whether second data processing chip Mark.
If recipient's mark in request message is the mark of second data processing chip, operation 112 is performed.Otherwise, If recipient's mark in request message is not the mark of second data processing chip, operation 114 is performed.
112, pending data in the second data processing chip read requests message to be handled, such as storage or Calculate.
Afterwards, the follow-up process of the present embodiment is not performed.
114, the second data processing chip please by the 3rd interconnection storage control in second data processing chip Ask message Forwards Forwarding to and meanwhile be connected to the 3rd interconnect storage control second memory, using the second memory as New first memory, operation 104 is performed, until recipient's mark is to be currently received the current receiver of the request message Mark, by the pending data in the memory storage request message as current receiver or by as current receiver Pending data in data processing chip read requests message is to be handled.
It should be noted that using the second memory as new first memory, refer to second memory and new the The operation that one memory performs is identical, without the data processing chip for referring to its connection or interconnection storage control phase therein Together, previous number in transmission direction of the request message along one-dimensional connection is received according to being connected in process chip with the second memory The request message that storage control is sent is interconnected, if recipient's mark is not the mark of the second memory, by the request message Next number in transmission direction of the request message along one-dimensional connection is forwarded to according to being connected in process chip with the second memory Interconnect storage control.
The data storage method for processing forwarding provided based on the above embodiment of the present invention, set in data processing chip mutual Join storage control, be connected by interconnecting storage control with memory, by interconnecting Implementing Memory Controllers in memory Reading and writing data, and realize that the data between other data processing chips are handed over by interconnecting storage control and memory Change.The embodiment of the present invention:Storage control and interconnection controller need not be independently arranged, reduces the cost of data processing chip, I/O pin density is reduced, reduces PCB complexity, reduce data handling system realizes difficulty and cost, improves The reliability of data handling system;All data processing chips can be with the memory space of shared memory, when a data processing When chip reads the data of other data processing chips storage from a memory, directly the number can be read from memory According to without reading data from memory by storing other data processing chips of the data and being transmitted to current data Process chip, improves the utilization rate of memory space, and reduces complexity and the time of data processing.
In various embodiments of the present invention, when memory, data processing chip etc. receive the message or data for needing to forward, such as Fruit receives the message or data that multiple needs forward simultaneously when, according to the priority rule of default settings these can be forwarded to disappear Breath or data, priority rule therein can for example include following any one or more:Type of service, sender, reception Side, sender's type, recipient's type etc..Wherein, the priority rule of type of service is used to illustrate disappearing for different service types The transmission priority relationship of breath or data;The priority rule of sender is used for the message or data for illustrating which sender sends Need priority treatment;The priority rule of recipient is used to illustrate message or the preferential place of data needs for being sent to which recipient Reason;Sender's type includes memory and data processing chip, and which the priority rule of sender's type is sent to for explanation The message or data of the recipient of a little types needs priority treatment;Recipient's type includes memory and data processing chip, connects The priority rule of debit's type is used for recipient needs priority treatment for the message or data of which type.
Fig. 5 is the flow chart of another embodiment of data storage method for processing forwarding of the present invention.As shown in figure 5, the implementation The data storage method for processing forwarding of example can also include:
202, need to deposit to target memory in response to the first data processing chip at least two data processing chips Data are stored up, the first data processing chip is controlled the first interconnection storage by the data processing unit in first data processing chip The working condition of device processed is arranged to data write state, and sends request message to the first interconnection storage control.
Wherein, the request message includes pending data, recipient's mark and transmitting side marking, recipient's mark therein Knowing one recipient of unique mark, the recipient in a data processing system includes data processing chip and memory, i.e.,:Receive Side can be data processing chip or memory;Transmitting side marking one number of unique mark in a data processing system According to process chip.
In the data storage method for processing forwarding of another embodiment of the present invention, the first data processing chip sends request and disappeared After breath, if the storage request message during request message for data storage, data processing unit can also record the request Recipient's mark of data to be stored in message, i.e.,:Record which memory is the pending data be sent to, so as to subsequently from The memory reads the pending data.
204, request message is sent to the first memory of connection by the first interconnection storage control.
206, the recipient in first memory identification request message identifies whether the mark of the first memory.
If recipient's mark is the mark of the first memory, illustrate that the pending data in the request message is deposited for needs The data to be stored of storage, perform operation 208.Otherwise, if recipient's mark is not the mark of the first memory, operation is performed 210。
208, pending data is stored in the memory cell in the first memory by first memory.
Afterwards, the follow-up process of the present embodiment is not performed.
210, request message Forwards Forwarding is given and is connected to simultaneously at the second data of the first memory by first memory Manage the second interconnection storage control in chip.
212, the second data processing chip identifies that the recipient in request message identifies whether second data processing chip Mark.
If recipient's mark in request message is the mark of second data processing chip, operation 214 is performed.Otherwise, If recipient's mark in request message is not the mark of second data processing chip, operation 216 is performed.
214, pending data in the second data processing chip read requests message to be handled, such as storage or Calculate.
Afterwards, the follow-up process of the present embodiment is not performed.
216, the second data processing chip please by the 3rd interconnection storage control in second data processing chip Ask message Forwards Forwarding to and meanwhile be connected to the 3rd interconnect storage control second memory, using the second memory as New first memory, operation 206 is performed, until recipient's mark is to be currently received the current receiver of the request message Mark, by the pending data in the memory storage request message as current receiver or by as current receiver Pending data in data processing chip read requests message is to be handled.
It should be noted that using the second memory as new first memory, refer to second memory and new the The operation that one memory performs is identical, without the data processing chip for referring to its connection or interconnection storage control phase therein Together, previous number in transmission direction of the request message along one-dimensional connection is received according to being connected in process chip with the second memory The request message that storage control is sent is interconnected, if recipient's mark is not the mark of the second memory, by the request message Next number in transmission direction of the request message along one-dimensional connection is forwarded to according to being connected in process chip with the second memory Interconnect storage control.
In another embodiment based on each data storage method for processing forwarding embodiment shown in the above-mentioned Fig. 1-Fig. 2 of the present invention In, request message is sent to the first interconnection storage control in the first data processing chip, can also be included:First data processing Data processing unit in chip determines that the data type of pending data is shared data or private data, is gone back in request message Identified including data type, the data type that the data type identifies for identifying pending data is shared data or privately owned number According to.Correspondingly, pending data is stored in the memory cell in the first memory by first memory, including:First deposits Data type mark of the reservoir in request message, by the respective memory regions of pending data storage in the memory unit.
Specifically, data type mark of the first memory in request message, storage is stored in by pending data Respective memory regions in unit, including:Data type mark in request message, if the data type of pending data For private data, pending data storage is pre-assigned to the first data processing chip by first memory in the memory unit First storage region;If the data type of pending data is shared data, pending data is stored in by first memory Shared storage area in storage unit.
In the further embodiment based on each data storage method for processing forwarding embodiment shown in the above-mentioned Fig. 1-Fig. 2 of the present invention In, in operation 102 or 202, the first data processing chip at least two data processing chips needs to deposit to target memory When storing up data, it can also include:Data processing unit in first data processing chip is treated according to being pre-configured with it is determined that receiving this Target storage domain in the target memory and target memory of processing data, and obtain the mark and mesh of the target memory The mark of storage region is marked, is identified using the mark of target memory as recipient;Wherein provide also to include being somebody's turn to do in request message The mark in target storage domain.Correspondingly, in operation 106 or 208, target storage of the first memory in request message The mark in domain, the pending data in request message is stored in the target storage domain in the first memory.
In an optional example of the above-mentioned each data storage method for processing forwarding embodiment of the present invention, in response to the first number When the second data processing chip transmission data at least two data processing chips are needed according to process chip, at the first data Manage chip and request message is sent to first memory by the first interconnection storage control, can include:In response to the first data Process chip needs to send data to the second data processing chip, and the data processing unit in the first data processing chip is by first The working condition of interconnection storage control is arranged to data exchange state, and is deposited by the first interconnection storage control to first Reservoir sends request message;Request message is transmitted to first memory by first memory.
In addition, in another optional example of the above-mentioned each data storage method for processing forwarding embodiment of the present invention, storage Device includes multiple memory interfaces, is connected respectively by each memory interface to one of them in different data processing chips Storage control is interconnected, the interconnection storage control that its connection is received by a memory interface in multiple memory interfaces is sent Request message, the request message received is deposited by another by another memory interface in the plurality of memory interface Storage interface is sent to the interconnection storage control in the data processing chip of its connection, so as to realize the forwarding of request message.
In addition, in the above-mentioned each data storage method for processing forwarding embodiment of the present invention, can also be managed everywhere including data Chip reads the operation of data from recipient's (such as memory or other data processing chips).Wherein, recipient is storage During device, process chip can read the private data of oneself storage from memory at data, can also read data handling system In the storage of each data processing chip shared data;When recipient is other data processing chips, process chip can be with data Data are obtained from other data processing chips.
Fig. 6 is the flow for reading data one embodiment in the embodiment of the present invention from the first data processing chip from recipient Figure.The present embodiment reads data instance with the first data processing chip and illustrated, and it is real that those skilled in the art are based on the present invention The record of example is applied, could be aware that data processing chip needs to read the implementation of data from recipient.As shown in fig. 6, the reality To apply in example, the first data processing chip reads data from recipient, including:
302, needed in response to the first data processing chip from the number in recipient's reading data, the first data processing chip The working condition for the first interconnection storage control for being connected to recipient is arranged to data read states according to processing unit, and passed through First interconnection storage control sends data read request message to first memory, and the read requests message includes sender Mark and recipient's mark, transmitting side marking therein are the mark of the first data processing chip;Recipient is identified for identifying Recipient, the recipient can be memory or data processing chip.
304, the recipient in first memory identification request message identifies whether the mark of the first memory.
If recipient's mark is the mark of the first memory, operation 306 is performed.Otherwise, if recipient's mark is not this The mark of first memory, perform operation 310.
306, first memory obtains the data that data read request message is asked from the first memory, and to The data that one interconnection storage control returned data read requests message is asked.
308, data processing unit forwarding digital independent of the first interconnection storage control into the first data processing chip The data that request message is asked.
Afterwards, the follow-up process of the present embodiment is not performed.
310, first memory is by data read request message Forwards Forwarding to being connected to the of the first memory simultaneously Two data processing chips.
312, the recipient in the second data processing chip identification data read requests message identifies whether second data The mark of process chip.
If recipient's mark in data read request message is the mark of second data processing chip, operation is performed 312.Otherwise, if recipient's mark in data read request message is not the mark of second data processing chip, behaviour is performed Make 318.
314, the second data processing chip obtains the data that data read request message is asked, and please along the digital independent The reverse path transmission of message is sought to first memory.
In various embodiments of the present invention, reversely refer to the direction opposite with the transmission direction of message during reception message.
316, the data that first memory is asked to the first interconnection storage control returned data read requests message.
318, data processing unit forwarding digital independent of the first interconnection storage control into the first data processing chip The data that request message is asked.
Afterwards, the follow-up process of the present embodiment is not performed.
320, data read request message Forwards Forwarding is given and is connected to second data simultaneously by the second data processing chip The second memory of process chip.
Using second memory as new first memory, 302 operations are performed, until current receiver mark is currently to connect The mark of debit, the data asked of data read request message are obtained by current receiver, and along data read request message Reverse transfer path transmission to first memory, being read from first memory to the first interconnection storage control returned data please Ask the data that message is asked, then the data processing unit turn from the first interconnection storage control into the first data processing chip The data that hair data read request message is asked.
It should be noted that using the second memory as new first memory, refer to second memory and new the The operation that one memory performs is identical, without the data processing chip for referring to its connection or interconnection storage control phase therein Together, previous number in transmission direction of the request message along one-dimensional connection is received according to being connected in process chip with the second memory The request message that storage control is sent is interconnected, if recipient's mark is not the mark of the second memory, by the request message Next number in transmission direction of the request message along one-dimensional connection is forwarded to according to being connected in process chip with the second memory Interconnect storage control.
In an optional example of embodiment illustrated in fig. 6, if recipient is memory, in data read request message also Identified including data type, the data type identifies the data class for the data asked for identifying the data read request message Type is shared data or private data.Accordingly, in operation 304, first memory obtains data reading from the first memory The data that request message is asked are taken, including:If the data type that the mark in data read request message is identified is privately owned Data, what first memory was pre-assigned to the first data processing chip from the memory cell in the first memory first deposits Read the data storage that data read request message is asked in storage area domain;What if the mark in data read request message was identified Data type is shared data, and first memory is read from the shared storage area in the memory cell in the first memory please Seek asked data storage.
In another optional example of embodiment illustrated in fig. 6, the first data processing chip needs to read number from recipient According to Ke Yishi:The storage region in memory and memory where the data that first data processing chip determination needs are read Respectively as target memory and target storage domain, and obtain the mark of the target memory and the mark in target storage domain Know, recipient therein is identified as the mark of target memory, accordingly, target can also be included in data read request message The mark of storage region.Accordingly, in operation 304, first memory obtains data read request from the first memory and disappeared The asked data of breath, including:First memory is according to the mark in target storage domain in data read request message, from first The data that the data read request message is asked are read in target storage domain in memory.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and its The difference of its embodiment, same or analogous part cross-reference between each embodiment.For method, apparatus, For system embodiment, because it is mutually corresponding, related part cross-reference.
Methods and apparatus of the present invention, system may be achieved in many ways.For example, software, hardware, firmware can be passed through Or any combinations of software, hardware, firmware realize methods and apparatus of the present invention, system.The step of for methods described Said sequence be not limited to order described in detail above merely to illustrate, the step of method of the invention, unless with Other manner illustrates.In addition, in certain embodiments, the present invention can be also embodied as recording journey in the recording medium Sequence, these programs include being used for the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covering storage is used In the recording medium for the program for performing the method according to the invention.
Description of the invention provides for the sake of example and description, and is not exhaustively or by the present invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Select and retouch State embodiment and be to more preferably illustrate the principle and practical application of the present invention, and one of ordinary skill in the art is managed The present invention is solved so as to design the various embodiments with various modifications suitable for special-purpose.

Claims (10)

  1. A kind of 1. data storage method for processing forwarding in data handling system, it is characterised in that the data handling system bag At least one memory and at least two data processing chips are included, memory and data processing chip are spaced connection successively, are formed One-dimensional connection;Each data processing chip includes at least one interconnection storage control, by interconnect storage control and Memory connects;At least one memory includes first memory;
    Need to store number to target memory in response to the first data processing chip at least two data processing chip According to or when needing the second data processing chip at least two data processing chip to send data, first number Storage control is interconnected to the first interconnection storage control by first in first data processing chip according to process chip The first memory of connection sends request message, and the request message includes pending data, recipient's mark and sender's mark Know, described recipient's mark one recipient of unique mark in the data handling system, the recipient is included at data Manage chip and memory, described sender mark one data processing chip of unique mark in the data handling system;
    The first memory identifies that the recipient identifies whether the mark of the first memory;
    If recipient's mark is the mark of the first memory, the first memory stores the pending data;
    Otherwise, if recipient mark is not the mark of the first memory, the first memory is by the request message Forwards Forwarding is to the second interconnection storage control being connected in the second data processing chip of the first memory simultaneously;
    Second data processing chip identifies that the recipient identifies whether the mark of second data processing chip;
    If recipient's mark is the mark of second data processing chip, treated described in the second data processing chip reading Processing data is to be handled;
    Otherwise, if recipient mark is not the mark of second data processing chip, second data processing chip leads to Cross in second data processing chip the 3rd interconnection storage control by the request message Forwards Forwarding give and meanwhile be connected to The second memory of 3rd interconnection storage control;
    Using the second memory as the new first memory, perform the first memory and identify recipient's mark Know whether the operation of the mark of the first memory, until the recipient mark be current receiver mark, by as work as Pending data described in the memory storage of preceding recipient is treated as described in being read as the data processing chip of current receiver Processing data is to be handled.
  2. 2. according to the method for claim 1, it is characterised in that also include:
    Recipient's mark of data to be stored described in first data processing chip record storage.
  3. 3. method according to claim 1 or 2, it is characterised in that in response at least two data processing chip The first data processing chip when needing to target memory data storage, first data processing chip first counted by this Being sent according to the first interconnection storage control in process chip to the first memory of the first interconnection storage control connection please Message is sought, including:Need to store to target in response to the first data processing chip at least two data processing chip During device data storage, first data processing chip is by the data processing unit in first data processing chip by described in The working condition of first interconnection storage control is arranged to data write state, and sends institute to the described first interconnection storage control State request message;The request message is sent to the first memory of connection by the first interconnection storage control;
    The first memory stores the pending data, including:The first memory stores the pending data In memory cell in the first memory.
  4. 4. according to the method for claim 3, it is characterised in that send request message to the described first interconnection storage control Before, in addition to:
    Data processing unit in first data processing chip determines that the data type of the pending data is shared number According to or private data, data type is also included in the request message and is identified, the data type is identified for mark data class Type is shared data or private data;
    The pending data is stored in the memory cell in the first memory by the first memory, including:
    Data type mark of the first memory in the request message, the pending data is stored in described Respective memory regions in memory cell.
  5. 5. according to the method for claim 4, it is characterised in that number of the first memory in the request message According to type identification, the pending data is stored in the respective memory regions in the memory cell, including:
    Data type mark in the request message, if the data type of the pending data is private data, institute State first memory the pending data is stored in the memory cell and be pre-assigned to the first data processing core First storage region of piece;
    If the data type of the pending data is shared data, the pending data is stored in by the first memory Shared storage area in the memory cell.
  6. 6. according to the method for claim 3, it is characterised in that the first data at least two data processing chip When process chip is needed to target memory data storage, in addition to:Data processing list in first data processing chip Member determines the target storage domain in the target memory and target memory of the pending data according to being pre-configured with, and The mark of the target memory and the mark in the target storage domain are obtained, institute is used as using the mark of the target memory State recipient's mark;Also include the mark in the target storage domain in the request message;
    The pending data is stored in the memory cell in the first memory by the first memory, including:It is described First memory is according to the mark in the target storage domain, the institute pending data being stored in the first memory State in the domain of target storage.
  7. 7. according to any described methods of claim 1-6, it is characterised in that also include:
    Needed in response to first data processing chip from the number in recipient's reading data, first data processing chip The working condition for the first interconnection storage control for being connected to the recipient is arranged to data read states according to processing unit, and Data read request message is sent to the first memory by the described first interconnection storage control, the read requests disappear Breath includes transmitting side marking and recipient's mark, and described sender is identified as the mark of first data processing chip;
    The first memory identifies that the recipient identifies whether the mark of the first memory;
    If recipient's mark is the mark of the first memory, the first memory obtains institute from the first memory The data that data read request message is asked are stated, and the data read request is returned to the described first interconnection storage control The data that message is asked;Data processing unit of the first interconnection storage control into first data processing chip The data for forwarding the data read request message to be asked;
    Otherwise, if recipient mark is not the mark of the first memory, the first memory is by the digital independent Request message Forwards Forwarding is to the second data processing chip for being connected to the first memory simultaneously;
    Second data processing chip identifies that the recipient identifies whether the mark of second data processing chip;
    If recipient's mark is the mark of second data processing chip, second data processing chip obtains the number The data asked according to read requests message, and stored along the reverse transfer of the data read request message to described first Device;The number that the first memory is asked to the described first interconnection storage control return data read request message According to;Data processing unit of the first interconnection storage control into first data processing chip forwards the data to read Take the data that request message is asked;
    Otherwise, if recipient mark is not the mark of second data processing chip, second data processing chip will The data read request message Forwards Forwarding is to the second memory for being connected to second data processing chip simultaneously;
    Using the second memory as the new first memory, perform the first memory and identify recipient's mark Know whether the operation of the mark of the first memory, until current receiver mark be current receiver mark, by currently connecing Debit obtains the data that the data read request message is asked, and along the reverse transfer road of the data read request message Footpath is transferred to the first memory;The first memory returns to the digital independent to the described first interconnection storage control The data that request message is asked;Data processing of the first interconnection storage control into first data processing chip The data that data read request message described in unit forwards is asked.
  8. 8. according to the method for claim 7, it is characterised in that the recipient is memory, the data read request Also include data type in message to identify, it is shared data or privately owned number that the data type, which is identified for mark data type, According to;
    The first memory obtains the data that the data read request message is asked from the first memory, including:
    If the data type that the mark in the data read request message is identified is private data, the first memory from The first storage region that first data processing chip is pre-assigned in memory cell in the first memory reads institute State the data storage that data read request message is asked;
    If the data type that the mark in the data read request message is identified is shared data, the first memory from The data storage that shared storage area read requests in memory cell in the first memory are asked.
  9. 9. a kind of data processing chip, it is characterised in that the data processing chip includes data processing unit and at least one Storage control is interconnected, the data processing unit stores with each interconnection in described at least one interconnection storage control control respectively Device connection processed, each storage control that interconnects are connected respectively to a memory;Wherein:
    The data processing unit, for needing to target memory data storage or needing to another data processing chip When sending data, the memory connected by wherein one interconnection storage control to the interconnection storage control sends request Message, the request message include pending data, recipient's mark and transmitting side marking, and recipient's mark is in the number Square chip is received according to unique mark in processing system one, the reception square chip includes data processing chip and memory, described Transmitting side marking data processing chip of unique mark one in the data handling system;And in response to being interconnected by described one Storage control receives request message, identifies that the recipient in the request message identifies whether the data processing chip Mark;If recipient's mark in the request message is the mark of the data processing chip, the pending data is read To be handled;Otherwise, if recipient's mark in the request message is not the mark of the data processing chip, by institute State request message by another interconnection storage control Forwards Forwarding to and meanwhile be connected to the another of the data processing chip and deposit Reservoir;
    Storage control is interconnected, is connected to a memory, for the request message forwarding for sending the data processing unit Memory to connection.
  10. A kind of 10. data handling system, it is characterised in that including:At least one memory and at least two data processing chips, Memory and data processing chip are spaced connection successively, form one-dimensional connection;Each data processing chip includes at least one Individual interconnection storage control, is connected by interconnecting storage control with memory;At least one memory is deposited including first Reservoir;At least two data processing chip includes the first data processing chip and the second data processing chip;Described first At least one interconnection storage control in data processing chip includes the first interconnection storage control, is interconnected by described first Storage control is connected with the first memory;At least one interconnection storage control in second data processing chip Including the described second interconnection storage control, it is connected by the described second interconnection storage control with the first memory;
    First data processing chip, for needing to target memory data storage or needing to described at least two When the second data processing chip in data processing chip sends data, by the described first interconnection storage control to described the One memory sends request message, and the request message includes pending data, recipient's mark and transmitting side marking, described to connect Debit's mark one recipient of unique mark in the data handling system, the recipient include data processing chip and deposited Reservoir, described sender mark one data processing chip of unique mark in the data handling system;
    The first memory, for identifying that the recipient identifies whether the mark of the first memory;If the recipient Mark is the mark of the first memory, stores the pending data;Otherwise, if recipient mark is not that this first is deposited The mark of reservoir, the request message Forwards Forwarding is given and is connected to simultaneously in the second data processing chip of the first memory Second interconnection storage control;
    Second data processing chip, for identifying that the recipient identifies whether the mark of second data processing chip; If recipient's mark is the mark of second data processing chip, the pending data is read to be handled;It is no Then, if recipient mark is not the mark of second data processing chip, the in second data processing chip is passed through Three interconnection storage controls give the request message Forwards Forwarding is connected to the second of the 3rd interconnection storage control simultaneously Memory.
CN201710869045.6A 2017-09-22 2017-09-22 Data processing chip and system, and data storing and forwarding processing method Active CN107643991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710869045.6A CN107643991B (en) 2017-09-22 2017-09-22 Data processing chip and system, and data storing and forwarding processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710869045.6A CN107643991B (en) 2017-09-22 2017-09-22 Data processing chip and system, and data storing and forwarding processing method

Publications (2)

Publication Number Publication Date
CN107643991A true CN107643991A (en) 2018-01-30
CN107643991B CN107643991B (en) 2023-09-19

Family

ID=61113814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710869045.6A Active CN107643991B (en) 2017-09-22 2017-09-22 Data processing chip and system, and data storing and forwarding processing method

Country Status (1)

Country Link
CN (1) CN107643991B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395142A (en) * 2020-11-30 2021-02-23 重庆紫光华山智安科技有限公司 Data management method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474969A (en) * 2000-09-29 2004-02-11 英特尔公司 Method and apparatus for scalable disambiguated coherence in shared storage hierachies
CN102521201A (en) * 2011-11-16 2012-06-27 刘大可 Multi-core DSP (digital signal processor) system-on-chip and data transmission method
CN103198048A (en) * 2011-12-12 2013-07-10 意法半导体(R&D)有限公司 Processor communications
WO2014121588A1 (en) * 2013-02-06 2014-08-14 华为技术有限公司 Data access system, memory sharing device, and data access method
CN104424122A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Electronic equipment and memory dividing method
CN104731758A (en) * 2013-12-20 2015-06-24 国际商业机器公司 Coherency overcommit
CN105988970A (en) * 2015-02-12 2016-10-05 华为技术有限公司 Processor of shared storage data, and chip
US20160321180A1 (en) * 2015-04-30 2016-11-03 International Business Machines Corporation Add-On Memory Coherence Directory
WO2017113278A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Data processing method, apparatus and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1474969A (en) * 2000-09-29 2004-02-11 英特尔公司 Method and apparatus for scalable disambiguated coherence in shared storage hierachies
CN102521201A (en) * 2011-11-16 2012-06-27 刘大可 Multi-core DSP (digital signal processor) system-on-chip and data transmission method
CN103198048A (en) * 2011-12-12 2013-07-10 意法半导体(R&D)有限公司 Processor communications
WO2014121588A1 (en) * 2013-02-06 2014-08-14 华为技术有限公司 Data access system, memory sharing device, and data access method
CN104424122A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Electronic equipment and memory dividing method
CN104731758A (en) * 2013-12-20 2015-06-24 国际商业机器公司 Coherency overcommit
CN105988970A (en) * 2015-02-12 2016-10-05 华为技术有限公司 Processor of shared storage data, and chip
US20160321180A1 (en) * 2015-04-30 2016-11-03 International Business Machines Corporation Add-On Memory Coherence Directory
WO2017113278A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Data processing method, apparatus and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任嵘;张盛兵;安建峰;: "单片多处理器系统中交叉开关的设计与实现" *
王焕东;高翔;陈云霁;胡伟武;: "龙芯3号互联系统的设计与实现" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395142A (en) * 2020-11-30 2021-02-23 重庆紫光华山智安科技有限公司 Data management method and device, electronic equipment and storage medium
CN112395142B (en) * 2020-11-30 2023-05-26 重庆紫光华山智安科技有限公司 Data management method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107643991B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US11947798B2 (en) Packet routing between memory devices and related apparatuses, methods, and memory systems
CN107451075A (en) Data processing chip and system, data storage forwarding and reading and processing method
EP3267322B1 (en) Scalable direct inter-node communication over peripheral component interconnect-express (pcie)
CN101841471A (en) System and control method and equipment with the node that connects into multi-dimensional matrix
CN105956659A (en) Data processing device, data processing system and server
CN103338217A (en) Low-latency interface-based networking
CN102866980B (en) Network communication cell used for multi-core microprocessor on-chip interconnected network
US20210311800A1 (en) Connecting accelerator resources using a switch
US10614026B2 (en) Switch with data and control path systolic array
US20190129884A1 (en) Node controller direct socket group memory access
CN107533526B (en) Writing data to storage via PCI EXPRESS fabric with fully connected mesh topology
CN107643991A (en) Data processing chip and system, data storage method for processing forwarding
US20240020261A1 (en) Peer-to-peer route through in a reconfigurable computing system
CN101685428B (en) Memory system and method
CN106100953B (en) PCIe device shares the generation method of network, apparatus and system
EP3822776A1 (en) System and method for transaction broadcast in a network-on-chip
CN107577625A (en) Data processing chip and system, data storage method for processing forwarding
CN208298173U (en) Data processing chip and system
US11003616B1 (en) Data transfer using point-to-point interconnect
CN107690782A (en) It is based at least partially on previous Request forwarding current request
US8606984B2 (en) Hierarchical to physical bus translation
CN208766644U (en) Data processing system
CN208271174U (en) Data processing system
CN105938461A (en) DMA data transmission method, device and network equipment
CN114661654A (en) Access processing device and method, processing device, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190418

Address after: 100192 2nd Floor, Building 25, No. 1 Hospital, Baosheng South Road, Haidian District, Beijing

Applicant after: BITMAIN TECHNOLOGIES Inc.

Address before: 100029 Beijing Haidian District Austria north industrial base project 6 Building 2 level.

Applicant before: SUANFENG TECHNOLOGY (BEIJING) CO.,LTD.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210811

Address after: 100192 Building No. 25, No. 1 Hospital, Baosheng South Road, Haidian District, Beijing, No. 301

Applicant after: SUANFENG TECHNOLOGY (BEIJING) Co.,Ltd.

Address before: 100192 2nd Floor, Building 25, No. 1 Hospital, Baosheng South Road, Haidian District, Beijing

Applicant before: BITMAIN TECHNOLOGIES Inc.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220304

Address after: 100176 901, floor 9, building 8, courtyard 8, KEGU 1st Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing (Yizhuang group, high-end industrial area of Beijing Pilot Free Trade Zone)

Applicant after: Beijing suneng Technology Co.,Ltd.

Address before: 100192 Building No. 25, No. 1 Hospital, Baosheng South Road, Haidian District, Beijing, No. 301

Applicant before: SUANFENG TECHNOLOGY (BEIJING) CO.,LTD.

GR01 Patent grant
GR01 Patent grant