Core particle communication method and device, core particle, chip and storage medium
Through the conversion of address mapping relationships, the communication problem of heterogeneous address spaces between different Dies is solved, the transmission and reception of data packets between cores in heterogeneous address spaces is realized, and the correct access of data packets is ensured.
Patent Information
- Application Number
- CN202410844319.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
AI Technical Summary
The existing technology fails to effectively solve the communication problem of heterogeneous address spaces between different Dies, resulting in data packets being unable to normally access the target address space during transmission.
By obtaining the data packet and converting the first address information in the address field of the data packet into the second address information according to the address mapping relationship between the first address space and the second address space, and generating the second data packet, heterogeneous addresses are realized. Inter-core communication in space.
It realizes inter-core communication in heterogeneous address spaces, ensures that data packets can be correctly transmitted and received between different address spaces, and solves access problems caused by heterogeneous address spaces.
Smart Images

Figure CN118764459A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a core particle communication method and device, a core particle, a chip, and a storage medium. Background Art
[0002] Die (also called "chip", "core crystal" or "bare die") is a piece of chip with complete functions cut from a wafer. The required chips are connected and packaged into a complete chip. With the development of integrated circuit technology, multi-die architecture has become more and more common, and communication between dies has become an important consideration in chip design.
[0003] The address spaces of different dies may be different, so when a data packet is transmitted from one die to a die with a heterogeneous address space, its address information needs to be converted into address information that can be accessed by the receiving die. Although there are relevant communication standards for the die-to-die interconnection interface, there is no relevant solution for the communication problem between different dies with heterogeneous address spaces. Summary of the invention
[0004] The embodiments of the present application are intended to provide a chiplet communication method and device, a chiplet, a chip, and a storage medium.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, a chiplet communication method is provided, which is applied to a first chiplet and includes:
[0007] Acquire a first data packet, wherein the format of the first data packet includes a header field, an address field, and a data field;
[0008] According to the address mapping relationship between the first address space and the second address space, convert the first address information in the address field of the first data packet into the second address information to obtain a second data packet;
[0009] Among them, the first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being the address space accessed by the first core particle, the second address space is the address space accessed by the second core particle; in response to the first address space being the address space accessed by the second core particle, the second address space is the address space accessed by the first core particle.
[0010] In a second aspect, a chiplet communication device is provided, which is applied to a first chiplet and includes:
[0011] An acquiring unit, configured to acquire a first data packet, wherein the format of the first data packet includes a header field, an address field, and a data field;
[0012] An address conversion unit, configured to convert the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space, so as to obtain a second data packet;
[0013] Among them, the first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being the address space accessed by the first core particle, the second address space is the address space accessed by the second core particle; in response to the first address space being the address space accessed by the second core particle, the second address space is the address space accessed by the first core particle.
[0014] In a third aspect, a core particle is provided, the core particle comprising a processor configured to call and run a computer program from a memory to execute the steps of the aforementioned method.
[0015] In a fourth aspect, a chip is provided, comprising a first core particle, the first core particle comprising a processor configured to call and run a computer program from a memory to execute the steps of the aforementioned method.
[0016] In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the aforementioned method when executed by a processor.
[0017] In the embodiment of the present application, a core-grain communication method and device, core-grain, chip, and storage medium are provided, and the method includes: obtaining a first data packet, the format of the first data packet includes a header field, an address field, and a data field; if the first address space and the second address space are different address spaces, according to the address mapping relationship between the first address space and the second address space, the first address information in the address field of the first data packet is converted into the second address information to obtain the second data packet. In this way, when the address spaces are heterogeneous during communication between core-grains, address mapping is performed according to the pre-configured address mapping relationship, thereby realizing communication between core-grains with heterogeneous address spaces. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the first process of the chiplet communication method in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of the address mapping relationship in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of the address mapping relationship from a 32-bit address to a 64-bit address in an embodiment of the present application;
[0021] Figure 4A schematic diagram of an address mapping relationship from a 64-bit address to a 64-bit address in an embodiment of the present application;
[0022] Figure 5 This is a schematic diagram of a data sending process in an embodiment of the present application;
[0023] Figure 6 This is a schematic diagram of a data receiving process in an embodiment of the present application;
[0024] Figure 7 This is a schematic diagram of a data sending and receiving process in an embodiment of the present application;
[0025] Figure 8 A schematic diagram of a register configuration method in an embodiment of the present application;
[0026] Fig. 9 A schematic diagram of a data packet format in an embodiment of the present application;
[0027] Fig.10 This is a second flow chart of the chiplet communication method in an embodiment of the present application;
[0028] Fig.11 This is a schematic diagram of the structure of the chiplet communication device in the embodiment of the present application;
[0029] Fig.12 This is a schematic diagram of the composition structure of the core particle in the embodiment of the present application;
[0030] Fig.13 Schematic diagram of the chip structure in the embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0032] Figure 1 Schematic diagram of the first process of the chiplet communication method in the embodiment of the present application. Figure 1 As shown, the method may specifically include:
[0033] Step 101: Obtain a first data packet, the format of the first data packet includes a header field, an address field and a data field;
[0034] It should be noted that the embodiment of the present application provides a chiplet communication method, which may specifically refer to a chiplet communication method in a heterogeneous address space, and performs address conversion based on the address mapping relationship of the heterogeneous address space, thereby realizing chiplet communication in the heterogeneous address space. Heterogeneous address space means that in different types of chiplets, since they each have different memory management methods and addressing mechanisms, they have obvious differences in one or more of the address space, representation method, size, and working principle.
[0035] The first address information in the address field of the first data packet can be understood as original address information, the first address space can be understood as original address space, and the first address information is used to identify the storage address of the data in the data field in the first address space.
[0036] In some embodiments, the first data packet is a data packet sent from the first core particle to the second core particle, the first address space is an address space accessed by the first core particle, and the first address space can also be understood as the original address space allocated by the second core particle. Since the address spaces of the first core particle and the second core particle are heterogeneous, the second core particle cannot normally access the original address space, and therefore it is necessary to map the original address space to a second address space accessible to the second core particle, i.e., convert the address space.
[0037] In some embodiments, acquiring the first data packet includes: generating the first data packet according to the data to be sent. In some embodiments, the data to be sent is encapsulated according to the communication protocol between the core particles to generate the first data packet.
[0038] In some embodiments, the first data packet is a data packet sent by the second core particle to the first core particle, the first address space is the address space accessed by the second core particle, and the second address space can also be understood as the original address space allocated by the first core particle. However, since the address spaces of the first core particle and the second core particle are heterogeneous, the first core particle cannot normally access the original address space, and therefore it is necessary to map the original address space to the second address space accessible to the first core particle, i.e., the conversion address space.
[0039] In some embodiments, acquiring the first data packet includes: receiving the first data packet sent by the second chiplet. In some embodiments, receiving encoded data, serializing and processing the received encoded data according to the communication protocol between chiplets, and decoding the received encoded data to generate the first data packet.
[0040] The format of the first data packet includes a header field, an address field, and a data field, wherein the header field includes control information of the data packet, which is used to ensure that the data packet is correctly transmitted and parsed; the address field includes relevant address information, and the data field includes data actually transmitted by the first chip. It should be noted that the specific format of the data packet and the size and content of each field depend on the communication protocol used to adapt to different usage environments.
[0041] In some embodiments, the first data packet further includes a start field and an end field. The start field may be located before the header field as a start mark of the data packet, and the end field may be located after the data field as an end mark of the data packet.
[0042] Step 102: According to the address mapping relationship between the first address space and the second address space, the first address information in the address field of the first data packet is converted into the second address information to obtain the second data packet, wherein the first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being an address space accessed by the first core particle, the second address space is an address space accessed by the second core particle; in response to the first address space being an address space accessed by the second core particle, the second address space is an address space accessed by the first core particle.
[0043] The second address information in the address field of the second data packet can be understood as conversion address information, the second address space can be understood as conversion address space, and the second address information is used to identify the storage address of the data in the data field in the second address space.
[0044] The address mapping relationship is used to indicate the address mapping mode of the heterogeneous first address space and the second address space when the first core particle communicates with the second core particle, and the first address space and the second address space are different address spaces. In some embodiments, when the first data packet is a data packet sent by the first core particle to the second core particle, the first address space is the address space accessed by the first core particle, and the second address space is the address space accessed by the second core particle. When the first data packet is a data packet sent by the second core particle to the first core particle, the first address space is the address space accessed by the second core particle, and the second address space is the address space accessed by the first core particle.
[0045] In some embodiments, the address mapping relationship may include: an address conversion function and configuration parameters. The address conversion function may be a preset address conversion function or an address conversion function flexibly configured according to the heterogeneous address space characteristics of the first core particle and the second core particle. The configuration parameters include one or more parameters involved in the address conversion function. The configuration parameters may be preset parameters or parameters flexibly configured according to the heterogeneous address space characteristics of the first core particle and the second core particle. In the embodiment of the present application, the flexible configuration of the address mapping relationship between the first address space and the second address space can be achieved by configuring the address conversion function and / or the configuration parameters.
[0046] In some embodiments, according to the address mapping relationship between the first address space and the second address space, the first address information in the address field of the first data packet is converted into the second address information to obtain the second data packet, including: calling the address mapping function to determine the second address information according to the first address information, the first starting address and the second starting address.
[0047] In some embodiments, the configuration parameters include: a first starting address of a first address space and a second starting address of a second address space; calling an address mapping function to perform the following address conversion process: determining an offset address of the first address information relative to the first starting address based on the first address information and the first starting address; determining the second address information based on the offset address and the second starting address.
[0048] Specifically, the expression of the address mapping function is:
[0049] Conversion address = original address – start address + conversion area start address
[0050] The original address is an address of a first address space indicated by the first address information, and the converted address is an address of a second address space indicated by the second address information.
[0051] In some embodiments, the configuration parameters may include: a first start address and a first end address of the first address space, a size of the first address space or a size of the second address space.
[0052] In some embodiments, the configuration parameters may include: a first starting address and a first ending address of a first address space, and a second starting address of a second address space, the first starting address being mapped to the second starting address. The size of the first address space defined by the first starting address and the first ending address, the second ending address being obtained based on the size of the first address space and the second starting address.
[0053] In some embodiments, the configuration parameters may also include: a first starting address of the first address space, and a second starting address and a second ending address of the second address space, the first starting address being mapped to the second starting address, and the size of the second address space defined by the second starting address and the second ending address, and the first ending address being obtained according to the size of the second address space and the first starting address.
[0054] In some embodiments, the size of the first address space is greater than or equal to the preset address space size. The embodiment of the present application designs the size of the first address space by configuring the first start address and the first end address, and requires that the first address space is not less than the preset address space size.
[0055] Exemplarily, the first preset bit of the first start address is the fourth preset value, the second preset bit of the first end address is the fifth preset value, the difference between the fifth preset value and the fourth preset value is greater than or equal to the preset address space size, and the first preset bit of the second start address is the fourth preset value. By configuring the preset bits of the first start address and the second end address as preset values, the size of the first address space is limited, and by setting the first preset bits of the first start address and the second start address to the fourth preset value, address alignment is ensured.
[0056] Exemplarily, the preset address space size can be 4KB, the first preset bit can be the lower 12 bits of the first starting address, the fourth preset value is 0, the second preset bit can be the lower 12 bits of the first ending address, and the fifth preset value is 1, ensuring alignment while ensuring a minimum address space of 4KB.
[0057] Figure 2 Schematic diagram of the address mapping relationship in the embodiment of the present application, such as Figure 2 As shown, when the first core sends data to the second core, the original address space is the address space accessible to the first core, including the first address space, and the converted address space is the address space accessible to the second core, including the second address space. Since the address spaces of the first core and the second core are heterogeneous, the first address space is inaccessible to the second core, and the first address space needs to be mapped to the second address space accessible to the second core to ensure that the second core can correctly access the data storage unit to accurately receive the data sent by the first core.
[0058] The first address space may be allocated by a processor that controls resource scheduling of the first core particle and the second core particle, and the processor may exist independently of the first core particle and the second core particle, and may belong to the first core particle or the second core particle. The second address space may be allocated by a processor that controls resource scheduling of the first core particle and the second core particle, and the processor may exist independently of the first core particle and the second core particle, and may belong to the first core particle or the second core particle.
[0059] In some embodiments, the first start address includes a low-bit address and a high-bit address, the first end address includes a low-bit address and a high-bit address, and the second start address includes a low-bit address and a high-bit address.
[0060] The first address space and the second address space have the same or different address bits. Dividing the address space into two parts, a low-bit address and a high-bit address, can cope with the situation where the address bits of heterogeneous address spaces are different. For example, the first address space is a 32-bit address and the second address space is a 64-bit address, or the first address space is a 64-bit address and the second address space is a 32-bit address.
[0061] In response to the address of the first address space including a low-bit address, the high-bit address of the first start address is a first preset value, and the high-bit address of the first end address is a second preset value;
[0062] In response to the address of the second address space including a low-bit address, the high-bit address of the second start address is a third preset value.
[0063] That is, when the address space is represented only by the low-bit address, the high-bit address can be set to a preset value, for example, the first preset value, the second preset value and the third preset value are all 0. The first preset value, the second preset value and the third preset value may also be different.
[0064] In some embodiments, the low-bit address includes the low 32-bit address, and the high-bit address includes the high 32-bit address.
[0065] In some embodiments, the low-bit address includes a low 16-bit address, the high-bit address includes a high 16-bit address, or the high-bit address includes a 16-31-bit address, a 32-47-bit address, or a 48-63-bit address.
[0066] In some embodiments, the method may further include: when the first address information indicates the first address space, executing the step of converting the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space to obtain the second data packet; or
[0067] When the first address information does not indicate the first address space, the step of converting the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space to obtain the second data packet is skipped.
[0068] In some embodiments, when the first address information indicates that the first address space is outside, the first data packet is sent to the second core particle, so that the second core particle stores the data in the data field to the first address space according to the first address information, or the first data packet is parsed, and the data in the data field is stored in the first address space according to the first address information.
[0069] That is to say, if the first address information does not indicate any preset first address space, it indicates that the first address information does not need to be converted, and the first data packet is directly sent or parsed.
[0070] In some embodiments, when the first core particle sends data to the second core particle, the method further includes: sending a second data packet to the second core particle, so that the second core particle parses the second data packet and stores the data in the data field into the second address space according to the second address information.
[0071] In some embodiments, sending the second data packet to the second chiplet may include: encoding the second data packet to obtain encoded data, performing parallel-to-serial processing on the encoded data, and then sending the encoded data to the second chiplet at the opposite end.
[0072] Figure 5 Schematic diagram of a data transmission process in an embodiment of the present application. Figure 5 As shown, in the scenario where the first chiplet sends a data packet, the data that the first chiplet is going to send to the second chiplet enters from the data bus, and after being encapsulated in the communication protocol and adding a preset identifier, becomes a data packet with a fixed format. The data packet passes through the address translation unit (DieAddress Translation Unit, dATU). If its address information is in the first address area pre-configured in a certain "sending" address mapping relationship, it is converted into new address information according to the address mapping relationship. The data packet with the new address information is then sent to the second chiplet at the opposite end through the encoding and parallel-to-serial unit, and the new address information can be accurately recognized by the second chiplet.
[0073] That is to say, an address conversion unit can be configured at the data sending end, and the sending end converts the address information, so that the receiving end can directly obtain the address information that can be accurately identified without performing address conversion. When the first chip receives the data packet as the receiving end, the first chip does not include the address conversion unit and does not perform address conversion.
[0074] In some embodiments, when the first core particle receives data from the second core particle, the method further includes: parsing the second data packet, and storing the data in the data field into the second address space according to the second address information.
[0075] Figure 6 Schematic diagram of a data receiving process in an embodiment of the present application. Figure 6 As shown, in the scenario where the first chip receives a data packet, the second chip needs to send data containing address information to the first chip. When the data is transmitted to the first chip through the port, it first passes through the serial-to-parallel conversion and decoding unit to become a data packet format. When passing through the address conversion unit, it is determined whether the address in the data packet is within the first address area of a certain "receive" address mapping relationship. If there is a matching storage unit, the address information in the data packet is converted into new address information according to the address mapping relationship, and the new data packet enters the data bus through the unpacking unit.
[0076] That is, a data conversion unit may also be configured at the data receiving end, and the receiving end converts the address information. When the first chip acts as a sending end to send a data packet, the first chip does not include an address conversion unit and does not perform address conversion.
[0077] Figure 7Schematic diagram of a data sending and receiving process in an embodiment of the present application. Figure 7 As shown, the "sending" address conversion unit and the "receiving" address conversion unit can be configured in the first chip at the same time, so that only the first chip needs to be modified, and the second chip communicating with the first chip does not need to be modified.
[0078] It should be noted that when the first chiplet communicates with multiple second chiplets with heterogeneous address spaces, a corresponding number of address conversion units can be added, or address conversion units can be configured only on the sending and / or receiving paths. The address conversion units can be configured with different address mapping relationships and perform different address conversions on address information, thereby achieving communication with different second chiplets.
[0079] In the embodiment of the present application, the address conversion unit is used to solve the communication problem of the chiplets in the chip scenario where there are at least two chiplets interconnected with heterogeneous address spaces, that is, the address conversion problem of different address spaces. The address conversion unit can also solve the chiplet communication problem between chips.
[0080] In some embodiments, the method further includes: pre-configuring configuration parameters of one or more address mapping relationships, each address mapping relationship corresponds to an address mapping mode, and flexibly setting the address mapping mode by configuring the address mapping relationship.
[0081] Exemplarily, one or more register groups are configured, and the configuration parameters of the register groups are used to describe the configuration parameters of the address mapping relationship. That is, one or more register groups can be pre-configured, and the configuration parameters of each register group are used to describe the configuration parameters of an address mapping relationship, and then address conversion can be implemented based on the address mapping relationship.
[0082] In some embodiments, the configuration parameters of the register set are written into the register set through the configuration bus, and the configuration parameters of the register set are used to describe the configuration parameters of the address mapping relationship. In other words, the data is directly written into the target register through the configuration bus.
[0083] In some embodiments, a third data packet is obtained, the format of the third data packet includes a header field, an address field, and a data field; a register group is configured according to the third data packet, and the configuration parameters of the register group are used to describe the configuration parameters of the address mapping relationship. In other words, register configuration is performed by configuring the data packet.
[0084] In some embodiments, a third data packet sent by another chiplet is received. For example, the other chiplet may be a second chiplet at the opposite end communicating with the first chiplet, and receives the third data packet sent by the second chiplet. That is, before transmitting data with the second chiplet, the first chiplet first obtains the configuration data packet sent by the second chiplet, configures the register group, and then converts the address information of the transmission data according to the configured address mapping relationship. The other chiplet may be a third chiplet different from the first chiplet and the second chiplet.
[0085] In some embodiments, configuring the register group according to the third data packet includes: determining the target register in the register group according to the third address information in the address field of the third data packet; and writing the target register according to the configuration parameters in the data field of the third data packet.
[0086] The format of the third data packet includes a header field, an address field and a data field, wherein the header field includes control information of the data packet, which is used to ensure correct transmission and parsing of the data packet; the address field includes the third address information of the target register, and the data field includes configuration parameters of the target register.
[0087] In some embodiments, the register group includes a control register and multiple address registers; when the control register is configured as the first control information, the register group is enabled to describe the configuration parameters of the address mapping relationship; when the control register is configured as the second control information, the register group is disabled.
[0088] Exemplarily, the first control information is a first value indicating that the register group is enabled, and the second control information is a second value indicating that the register group is disabled, and the first value and the second value are different. The first value and the second value can be represented by 1 bit, for example, the first value can be 1 and the second value can be 0; the first value can also be 0 and the second value can also be 1.
[0089] In some embodiments, the control register is configured after the configuration of the multiple address registers is completed. That is, after the configuration of each address register is completed, the address mapping relationship described by the address register is enabled or disabled by configuring the control register.
[0090] In some embodiments, when the control register is configured as the second control information, the address register is initialized.
[0091] In some embodiments, the packet header field includes at least: a first field, the first field is used to indicate the type of the data packet; the value of the first field is a first value, which is used to indicate that the type of the data packet is a first data packet; the value of the first field is a second value, which is used to indicate that the type of the data packet is a third data packet. Exemplarily, the current data packet type is identified by the first field, and the subsequent processing flow of the data packet is determined according to the current data packet type.
[0092] The first field may be a reserved field of the packet header field, and the first field is used to identify the data packet type.
[0093] Figure 8 Schematic diagram of register configuration in the embodiment of the present application, such as Figure 8 As shown, the first method is to directly write the configuration parameters into the corresponding register through the configuration bus. This process corresponds to Figure 8 The second method is to configure through the configuration data packet transmitted from the other end. Specifically, when the data packet is sent from the other end (such as the second core particle) to the first core particle, it is restored to a data packet after decoding and serial-to-parallel conversion. The data packet will be parsed by a MUX (Multiplexer) and the first field (Packet Type) of its header field will be read. This process corresponds to Figure 8 ②, if the Packet Type field is 1, then the data packet is the third data packet, which is used to configure the register. The target register address is determined according to the address information in the address field, and the configuration of the target register is completed using the data field. If the Packet Type field is 0, then the data packet is the first data packet, which accesses the storage space type. The data packet is sent to the address translation unit for address translation to determine the accessed storage space address. This process corresponds to Figure 8 ③ in the.
[0094] Fig. 9 Schematic diagram of the data packet format in the embodiment of the present application, such as Fig. 9 As shown, the data packet format includes a start mark (COM), a data packet (Packet) and an end mark (END), wherein the data packet (Packet) includes at least a header field (Head), an address field (address) and a data field (data).
[0095] Exemplarily, the format of the header field (Head) includes at least the following fields: Address Type, Operation Type (Opcode), Encapsulation Packet Length (Length), Data Packet Type (Packet Type) and Reserved. Among them, Address Type (Address Type) is used to indicate a 32-bit address or a 64-bit address, and Operation Type is used to indicate a read operation, a write operation or a read data return operation. For the Data Packet Type field, bit 3 can be taken out of the original reserved bits [3:0] to identify the type of the data packet Packet Type.
[0096] Fig.10 Schematic diagram of the second process of the chiplet communication method in the embodiment of the present application. Fig.10 As shown, the method may specifically include:
[0097] Step 1001: pre-configure one or more configuration parameters of address mapping relationships;
[0098] Exemplarily, one or more register groups are configured, and configuration parameters of the one or more register groups are used to describe configuration parameters of one or more address mapping relationships, and the configuration parameters of the address mapping relationship specifically include: a first starting address and a first ending address of a first address space, and a second starting address of a second address space, and the first starting address and the first ending address are used to limit the range of the first address space. When N register groups are configured, register group i describes the configuration parameters of address mapping relationship i, and i takes a value of 0-(N-1).
[0099] In some embodiments, the one or more register sets may include a "send" register set and / or a "receive" register set.
[0100] In some embodiments, the configuration method at least includes direct configuration via a configuration bus or configuration via a configuration data packet sent by the other end. The two register configuration methods can meet more scenario requirements and increase configuration flexibility.
[0101] Step 1002: Acquire a first data packet, the format of the first data packet including a header field, an address field, and a data field;
[0102] Step 1003: Obtain first address information in the address field of the first data packet;
[0103] Step 1004: traverse the first address space described by one or more address mapping relationships according to the first address information, and determine the target first address space indicated by the first address information;
[0104] Exemplarily, in a scenario where the first chip sends a data packet, the first address space described by one or more "send" register groups is traversed according to the first address information; in a scenario where the first chip receives a data packet, the first address space described by one or more "receive" register groups is traversed according to the first address information.
[0105] Specifically, when the first address information is located within the address range of the first address space (including the starting address and the ending address), it is determined that the first address information indicates a memory unit of the first address space; when the first address information is located outside the address range of the first address space, it is determined that the first address information does not indicate a memory unit of the first address space.
[0106] Step 1005: converting the first address information in the address field of the first data packet into the second address information according to the address mapping relationship corresponding to the target first address space, thereby obtaining a second data packet;
[0107] Step 1006: Send a second data packet to the second chip.
[0108] By adopting the above technical solution, when the address spaces are heterogeneous during communication between chiplets, address mapping is performed according to a pre-configured address mapping relationship, thereby realizing communication between chiplets with heterogeneous address spaces.
[0109] The following is a further example of the chiplet communication method provided in the embodiment of the present application.
[0110] 1. Core particle structure design and data flow direction
[0111] The design of the address translation unit in the embodiment of the present application is based on the chiplet communication protocol, and an address translation unit (Die Address Translation Unit, dATU) is added. Figure 7 As shown, an address conversion unit is added to the data sending path and the data receiving path of the first core particle, the dotted box part includes the data sending path and the data receiving path, and the first core particle (also can be expressed as DieA) and the second core particle (also can be expressed as DieB) that communicate are two adjacent core particles with heterogeneous address spaces.
[0112] The first chip is preparing to send data to the second chip. After the data enters the data bus, it is encapsulated and marked with a K code in the communication protocol and becomes a data packet with a fixed format. The data packet passes through the address conversion unit. If its address information is in the first address area pre-configured in a certain "sending" address mapping relationship, it is converted into new address information according to the address mapping relationship. The data packet with the new address information is then sent to the second chip at the opposite end through the encoding and parallel-to-serial unit. The new address information can be accurately recognized by the second chip.
[0113] Similarly, the second chip needs to send data containing address information to the first chip. When the data is transmitted to the first chip through the port, it is first converted into a data packet format through the serial-to-parallel conversion and decoding unit. When passing through the address conversion unit, it is determined whether the address in the data packet is in the first address area of a certain "receive" address mapping relationship. If there is a matching storage unit, the address information in the data packet is converted into new address information according to the address mapping relationship, and the new data packet then enters the data bus through the unpacking unit.
[0114] It should be noted that Figure 7 The address translation of "issuing" and "receiving" needs to distinguish the register groups using different address translation units.
[0115] 2. Address Translation Unit
[0116] In the embodiment of the present application, the size of each first address space can be set to a minimum of 4KB, and the size of the first address space can be limited by configuring the first start address and the first end address of the first address space. The specific implementation process of the address conversion unit is described in detail:
[0117] First, you need to configure the register group of the address translation unit: ① When the original address space is 32-bit address and the conversion address space is 64-bit, such as Figure 3 As shown, the starting address of the first address space i is configured to the 32-bit starting address (BaseAddress register), and the lower 12 bits are required to be always 0. The end address of the first address space i is configured to the 32-bit end address (Limit Address) register, and the lower 12 bits are always 1 to ensure alignment and ensure a minimum of 4KB of space. The upper 32 bits and lower 32 bits of the starting address of the second address space after address conversion are respectively configured to the upper target address (UpperTarget Address) register and the lower target address (Lower Target Address) register, where the lower 12 bits are always 0. ② When the original address space is a 64-bit address and the converted address space is 64 bits. As Figure 4 As shown, the register configuration is basically the same as the 32-bit address case, but the upper 32 bits of the start address and the end address of the first address space need to be configured in the upper start address (Upper Base Address) register and the upper end address (Upper Limit Address) register respectively.
[0118] The configuration of each address mapping relationship is similar. After configuring each address register, you need to enable the region, that is, configure the bit0 of the control register (Region Control) corresponding to the region to 1. When the address of the data packet happens to match between the start address and the end address of a region, the address in the data packet will be modified to: conversion address = original address – start address + conversion region start address.
[0119] 3. Register Group of Address Translation Unit
[0120] Based on the description method of the address mapping relationship in the embodiment of the present application, the register group can be divided into a "send" register group and a "receive" register group, wherein the "send" register group configures the address mapping relationship when the first chip sends data to the second chip, and the "receive" register group configures the address mapping relationship when the first chip receives data from the second chip.
[0121] Table 1 "Send" register group
[0122]
[0123] Table 2 "Receive" register group
[0124]
[0125]
[0126] 4. Two configuration methods of register group
[0127] The configuration methods of the register group include at least the following two configuration methods:
[0128] like Figure 8 As shown, the first configuration method is to directly write data to the target register through the configuration bus, and the second configuration method is to configure through a configuration data packet transmitted from the other end.
[0129] The second configuration method is as follows:
[0130] like Fig. 9 As shown, the data packet format includes a start mark (COM), a data packet (Packet) and an end mark (END), wherein the data packet (Packet) includes at least a header field (Head), an address field (address) and a data field (data).
[0131] In the reserved bits [3:0] of the packet header field, bit 3 is taken out to identify the type of the data packet (Packet Type). When the Packet Type field is 0, it indicates that the data packet is a memory access storage space type, and when the Packet Type field is 1, it indicates that the data packet is a configuration type. When the data packet is sent from the opposite end (such as DieB) to DieA, it is restored to a data packet after decoding and serial-to-parallel conversion. The data packet will be parsed by a MUX (Multiplexer) and its Packet Type will be read. If the Packet Type field is 1, the data in the data packet is configured into the register. If the address field happens to be the address of the register of the address translation unit, the configuration of the register of an address translation unit is completed using the data field.
[0132] The above two methods can be used to configure the registers of the address translation unit. You can choose one of them according to the scenario and requirements.
[0133] The technical solution provided by the embodiment of the present application has the following beneficial effects:
[0134] 1. Through address conversion, the communication problem between core particles with heterogeneous address spaces is solved;
[0135] 2. In the header field of the data packet, a first field for identifying the data packet type is added. On the basis of not changing the traditional communication protocol, the first data packet and the third data packet are identified by the first field, thereby providing a new configuration register method;
[0136] 3. Two register configuration methods are proposed to make the configuration more flexible to meet the needs of more scenarios.
[0137] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a chiplet communication device, which is applied to the first chiplet, such as Fig.11 As shown, the chiplet communication device 110 includes:
[0138] The acquiring unit 1101 is configured to acquire a first data packet, wherein the format of the first data packet includes a header field, an address field, and a data field;
[0139] An address conversion unit 1102 is used to convert the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space, so as to obtain a second data packet;
[0140] Among them, the first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being the address space accessed by the first core particle, the second address space is the address space accessed by the second core particle; in response to the first address space being the address space accessed by the second core particle, the second address space is the address space accessed by the first core particle.
[0141] In some embodiments, the address mapping relationship includes: an address conversion function and configuration parameters, the configuration parameters including: a first starting address of a first address space and a second starting address of a second address space;
[0142] The address conversion unit 1102 is used to call the address mapping function to determine the second address information according to the first address information, the first starting address and the second starting address.
[0143] In some embodiments, the configuration parameters further include: a first end address of the first address space;
[0144] The first start address includes a low-bit address and a high-bit address, the first end address includes a low-bit address and a high-bit address, and the second start address includes a low-bit address and a high-bit address;
[0145] In response to the address of the first address space including a low-bit address, the high-bit address of the first start address is a first preset value, and the high-bit address of the first end address is a second preset value;
[0146] In response to the address of the second address space including a low-bit address, the high-bit address of the second start address is a third preset value.
[0147] In some embodiments, the address conversion unit 1102 is used to execute the step of converting the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space to obtain the second data packet when the first address information indicates the first address space; or to skip the step of converting the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space to obtain the second data packet when the first address information does not indicate the first address space.
[0148] In some embodiments, the chiplet communication device 110 further includes: a configuration unit, configured to pre-configure configuration parameters of one or more address mapping relationships;
[0149] The address conversion unit 1102 is used to traverse the first address space described by one or more address mapping relationships according to the first address information, determine that the first address information indicates a target first address space; and obtain an address mapping relationship corresponding to the target first address space.
[0150] In some embodiments, the acquiring unit 1101 is further configured to receive a third data packet sent by the second chip, wherein the format of the third data packet includes a header field, an address field, and a data field;
[0151] The configuration unit is used to configure the register group according to the third data packet, and the configuration parameters of the register group are used to describe the configuration parameters of the address mapping relationship.
[0152] In some embodiments, the configuration unit is used to determine the target register in the register group according to the third address information in the address field of the third data packet; and write the target register according to the configuration parameters in the data field of the third data packet.
[0153] In some embodiments, the register group includes a control register and multiple address registers; when the control register is configured as the first control information, the register group is enabled to describe the configuration parameters of the address mapping relationship; when the control register is configured as the second control information, the register group is disabled.
[0154] In some embodiments, the packet header field includes at least: a first field, the first field is used to indicate the data packet type; the value of the first field is a first value, used to indicate that the data packet type is a first data packet; the value of the first field is a second value, used to indicate that the data packet type is a third data packet.
[0155] In some embodiments, the configuration unit is used to write configuration parameters of the register group into the register group through a configuration bus, and the configuration parameters of the register group are used to describe configuration parameters of the address mapping relationship.
[0156] In some embodiments, the chiplet communication device 110 further includes: a communication unit, configured to send a second data packet to the second chiplet, so that the second chiplet parses the second data packet and stores the data in the data field into the second address space according to the second address information.
[0157] In some embodiments, the chiplet communication device 110 further includes: a parsing unit, configured to parse the second data packet and store the data in the data field into the second address space according to the second address information.
[0158] In practical applications, the above-mentioned chip communication device can be a processor that executes the method steps in the embodiment of the present application, or it can be a chip. In the present application, the device can realize the functions of multiple units through software, hardware, or a combination of software and hardware, so that the device can execute the chip communication method provided in any of the above embodiments. And the technical effects of each technical solution of the device can refer to the technical effects of the corresponding technical solutions in the chip communication method, and this application will not repeat them one by one.
[0159] Based on the hardware implementation of each unit in the above-mentioned chiplet communication device, the embodiment of the present application also provides a chiplet, such as Fig.12 As shown, the core particle 120 includes a processor 1201 configured to call and run a computer program from a memory 1202 to perform any of the steps of the method described by the first core particle.
[0160] In some embodiments, the core particle 120 may further include a memory 1202 , wherein the processor may call and run a computer program from the memory to implement the method in the embodiments of the present application.
[0161] Of course, in practical applications, Fig.12 As shown, the various components in the core particle 120 are coupled together through a bus system 1203. It can be understood that the bus system 1203 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1203 also includes a configuration bus, a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus system 1203 in the figure.
[0162] The present application also provides a chip, such as Fig.13 As shown, the chip 130 includes a first chip 1301 and a second chip 1302.
[0163] The first core 1301 is used to obtain a first data packet, the format of which includes a header field, an address field, and a data field; according to an address mapping relationship between the first address space and the second address space, convert the first address information in the address field of the first data packet into the second address information to obtain a second data packet;
[0164] The first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being an address space for access by the first core-grain, the second address space is an address space for access by the second core-grain; in response to the first address space being an address space for access by the second core-grain, the second address space is an address space for access by the first core-grain;
[0165] The first coregrain 1301 is used to send the second data packet to the second coregrain 1302 ; or, the first coregrain 1301 is used to receive the first data packet sent by the second coregrain 1302 .
[0166] It should be noted that the first core particle 1301 is also used to execute other method steps implemented by the first core particle in the aforementioned embodiment, and the second core particle 1302 is also used to execute other method steps implemented by the second core particle in the aforementioned embodiment, which will not be repeated here.
[0167] Of course, in practical applications, Fig.13 As shown, the various components in the chip 130 are coupled together through a bus system. It can be understood that the bus system is used to realize the connection and communication between these components. In addition to the data bus, the bus system also includes a configuration bus, a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus systems in the figure.
[0168] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.
[0169] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.
[0170] In some embodiments, the chip 130 may further include an input interface 1303. The processor may control the input interface 1303 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0171] In some embodiments, the chip 130 may further include an output interface 1304. The processor may control the output interface 1304 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0172] In some embodiments, the second chip may also be included in another chip.
[0173] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-on-chip, a system-on-a-chip (SoC), a chip system or a system-on-chip chip, etc.
[0174] The chip provided in the embodiments of the present application can be applied to any one or more electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, cameras, virtual reality devices, augmented reality devices, smart home devices, etc.
[0175] In an exemplary embodiment, the present application also provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of the first chip to complete the steps of the aforementioned method.
[0176] An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described in the embodiments of the present application are implemented.
[0177] In some embodiments, the computer program product can be applied to the first core particle in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the first core particle in each method of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0178] The embodiment of the present application also provides a computer program.
[0179] In some embodiments, the computer program can be applied to the first core particle in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the first core particle in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0180] It should be understood that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0181] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments, but are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. The expressions "having", "may have", "include" and "include", or "may include" and "may include" in this application can be used to indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), but the presence of additional features is not excluded.
[0182] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
[0183] The technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0184] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. The embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0185] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0186] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0187] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A chiplet communication method, applied to a first chiplet, characterized in that: The method comprises: Acquire a first data packet, wherein the format of the first data packet includes a header field, an address field, and a data field; According to the address mapping relationship between the first address space and the second address space, convert the first address information in the address field of the first data packet into the second address information to obtain a second data packet; Among them, the first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being the address space accessed by the first core particle, the second address space is the address space accessed by the second core particle; in response to the first address space being the address space accessed by the second core particle, the second address space is the address space accessed by the first core particle.
2. The method according to claim 1, characterized in that The address mapping relationship includes: an address conversion function and configuration parameters, and the configuration parameters include: a first starting address of the first address space and a second starting address of the second address space; The converting the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space to obtain the second data packet comprises: The address mapping function is called to determine the second address information according to the first address information, the first starting address and the second starting address.
3. The method according to claim 2, characterized in that The configuration parameters also include: a first end address of the first address space; Wherein, the first starting address includes a low-bit address and a high-bit address, the first ending address includes a low-bit address and a high-bit address, and the second starting address includes a low-bit address and a high-bit address; In response to the address of the first address space including a low-bit address, the high-bit address of the first start address is a first preset value, and the high-bit address of the first end address is a second preset value; In response to the address of the second address space including a low-bit address, the high-bit address of the second start address is a third preset value.
4. The method according to any one of claims 2 to 3, characterized in that: The method further comprises: Pre-configure configuration parameters of one or more address mapping relationships; Traversing the first address space described by the one or more address mapping relationships according to the first address information, and determining that the first address information indicates a target first address space; Obtain an address mapping relationship corresponding to the target first address space.
5. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: receiving a third data packet sent by the second core particle, wherein the format of the third data packet includes a header field, an address field and a data field; According to the third data packet, a register group is configured, and configuration parameters of the register group are used to describe configuration parameters of the address mapping relationship.
6. The method according to claim 5, characterized in that The configuring the register set according to the third data packet comprises: Determining a target register in the register group according to third address information in the address field of the third data packet; The target register is written according to the configuration parameters in the data field of the third data packet.
7. The method according to any one of claims 5 to 6, characterized in that: The register group includes a control register and a plurality of address registers; The method further comprises: When the control register is configured as the first control information, the register group is enabled to describe the configuration parameters of the address mapping relationship; When the control register is configured as the second control information, the register group is disabled.
8. The method according to claim 5, characterized in that The packet header field includes at least: a first field, the first field being used to indicate a data packet type; The value of the first field is a first value, which is used to indicate that the data packet type is the first data packet; The value of the first field is the second value, which is used to indicate that the data packet type is the third data packet.
9. The method according to any one of claims 2 to 4, characterized in that: The method further comprises: The configuration parameters of the register group are written into the register group through the configuration bus, and the configuration parameters of the register group are used to describe the configuration parameters of the address mapping relationship.
10. A chiplet communication device, applied to a first chiplet, characterized in that: The chiplet communication device comprises: An acquiring unit, configured to acquire a first data packet, wherein the format of the first data packet includes a header field, an address field, and a data field; An address conversion unit, configured to convert the first address information in the address field of the first data packet into the second address information according to the address mapping relationship between the first address space and the second address space, so as to obtain a second data packet; Among them, the first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being the address space accessed by the first core particle, the second address space is the address space accessed by the second core particle; in response to the first address space being the address space accessed by the second core particle, the second address space is the address space accessed by the first core particle.
11. A core particle, comprising a processor, configured to call and run a computer program from a memory to perform the steps of the method according to any one of claims 1 to 9.
12. A chip, comprising a first core particle and a second core particle; wherein: The first core is used to obtain a first data packet, the format of which includes a header field, an address field, and a data field; according to an address mapping relationship between the first address space and the second address space, convert the first address information in the address field of the first data packet into the second address information to obtain a second data packet; The first address information indicates the first address space, and the second address information indicates the second address space; in response to the first address space being an address space for access by the first core-grain, the second address space is an address space for access by the second core-grain; in response to the first address space being an address space for access by the second core-grain, the second address space is an address space for access by the first core-grain; The first core-grain is used to send the second data packet to the second core-grain; or, the first core-grain is used to receive the first data packet sent by the second core-grain.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
