Write data path structure and chip

By designing the write data path structure in the computing chip, dividing the groups and blocks, and directly generating the write enable signal in each block, the problem of long write data path path and resource waste caused by the distribution of storage units is solved, and resource saving and resource saving are achieved. Routing optimization.

WO2024174121A1PCT designated stage expired Publication Date: 2024-08-29SUNLUNE (SINGAPORE) PTE LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/077614
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In a computing chip based on DAG data, data cannot be written during the refresh process of the storage unit, and the storage units are distributed throughout the chip, resulting in a long write data path, complex wiring, and a large number of registers required, resulting in waste of resources and wiring pressure. .

Method used

A write data path structure is designed, including a write data path interface, a write data grouping module, a write data analysis unit and a write enable generation module. By dividing multiple groups and blocks, a write enable signal is generated in each block. Reduce the number of traces of write enable signals between blocks and save register resources.

Benefits of technology

It effectively reduces the travel of write enable signals between blocks, reduces register requirements, reduces wiring, reduces chip area and cost, and relieves wiring pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023077614_29082024_PF_FP_ABST
    Figure CN2023077614_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in embodiments of the present disclosure are a write data path structure and a chip. The write data path structure comprises: a write data path interface (11), a write data grouping module (12), a write data parsing unit (13), a segmenting module (14), and a write enable generation module (15); the chip (2) to which data is to be written comprises a plurality of blocks, and each block manages a plurality of storage units, respectively; all the storage units in the chip (2) are divided into a plurality of groups, and each group corresponds to a plurality of blocks; one write enable generation module (15) is provided in each block, respectively; the write enable generation module (15) is configured to generate, in the block, a write enable signal for each storage unit of the block; and the write data path interface (11), the write data grouping module (12), the write data parsing unit (13), the segmenting module (14), and the write enable generation module (15) are sequentially connected.
Need to check novelty before this filing date? Find Prior Art

Description

A write data path structure and chip Technical Field

[0001] The embodiments of the present disclosure relate to data transmission technology, and in particular to a write data path structure and chip. Background Art

[0002] The calculations of proof-of-work computing chips all rely on DAG (Direct Acyclic Graph) data. Therefore, before the calculation begins, a large amount of DAG data must be written to the storage units inside the chip. There are many ways to write DAG data to the storage units. Considering that the storage units are composed of DRAM (Dynamic Random Access Memory), there will be refreshes during the access process of DRAM, and writing data is not allowed at this time. Therefore, the relevant technical solution for writing data paths is to communicate data between the computing unit and the storage unit, and each storage unit in the chip can be accessed through the bus. However, the storage units are usually spread throughout the entire chip, and the path from the entrance of the data path to the end point of each storage unit is long. In particular, the downstream interface of the protocol conversion unit is far away from each storage unit, the routing is complex, and a large number of registers are required.

[0003] SUMMARY OF THE INVENTION

[0004] The following is a summary of the subject matter described in detail herein and is not intended to limit the scope of the claims.

[0005] The present disclosure provides a write data path structure, which may include: a write data path interface, a write data grouping module, a write data parsing unit, a segmentation module, and a write enable generation module; a chip to be written with data includes multiple blocks, each block managing multiple storage units; all storage units in the chip are divided into multiple groups, each group corresponding to multiple blocks; each block is provided with a write enable generation module; the write enable generation module is configured to generate a write enable signal for the storage units in the block; the write data path interface is connected to an input end of the write data grouping module;

[0006] The output end of the write data grouping module is connected to the input end of the write data parsing unit;

[0007] The output end of the write data parsing unit is connected to the input end of the segmentation module of the group where the write data parsing unit is located;

[0008] The output end of the segmentation module is connected to each block in the group where the segmentation module is located and the write enable generation module in the block.

[0009] In an exemplary embodiment of the present disclosure, the write data path interface and the write data grouping module are arranged outside the chip, and the write data parsing unit and the segmentation module are arranged inside the chip;

[0010] The write data parsing unit and the segmentation module are both arranged in any block in each group.

[0011] In an exemplary embodiment of the present disclosure, all write enable generation modules within each group are divided into multiple levels according to the connection mode with the segmentation module;

[0012] The write enable generation module in each block includes one input interface and X output interfaces; X is a positive integer;

[0013] The input interface of each level of write enable generation module is connected to the segmentation module, or is connected to an output interface of the previous level of write enable generation module; the output interface of each level of write enable generation module is connected to an input interface of the next level of write enable generation module, or is left floating;

[0014] Wherein, the input interfaces of the first-level write enable generation module are all connected to the segmentation module.

[0015] In an exemplary embodiment of the present disclosure, the write data grouping module is connected to the write data path interface via a first bus and may be configured to receive a first bus signal transmitted by the write data path interface;

[0016] The first bus signal may include: a first write address, a first write data, a sampling valid signal and a handshake signal;

[0017] The sampling valid signal enables the first write address and the first write data timing to be a multi-cycle timing.

[0018] In an exemplary embodiment of the present disclosure, the first write address may include: a storage address of the write data and a plurality of address segments for storing the write data;

[0019] The write data grouping module is connected to the write data parsing unit via a second bus and can be configured as follows:

[0020] According to the number R of groups in the chip, the multiple address segments are divided into R first-level sub-address segments according to the numbers of the address segments, each of the first-level sub-address segments corresponds to a group; and a group identifier group_id is generated for the group corresponding to each first-level sub-address segment; R is a positive integer greater than 1;

[0021] According to the number S of blocks contained in each group, the first-level sub-address segment corresponding to each group is divided into S second-level word address segments, each of which corresponds to a block, and the storage space of the storage unit of the corresponding block is greater than or equal to the size of the write data corresponding to the second-level sub-address segment; a block identifier block_id is generated for each block corresponding to the second-level sub-address segment; S is a positive integer greater than 1.

[0022] In an exemplary embodiment of the present disclosure, the write data parsing unit may be configured to: receive the second bus signal transmitted by the write data grouping module, perform protocol conversion on the second bus signal, and then transmit the second bus signal to the segmentation module in the same group;

[0023] The second bus signal may include: the group identifier group_id, the block identifier block_id, a handshake signal, a sampling valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment.

[0024] In an exemplary embodiment of the present disclosure, the segmentation module is connected to the block and the write enable generation module via a third bus, and may be configured as follows:

[0025] After receiving the second bus signal transmitted by the write data parsing unit, the group identifier group_id contained in the second bus signal is compared with the group identifier of the group to which the segment module itself belongs. When the group identifier group_id contained in the second bus signal is consistent with the group identifier of the group to which the segment module itself belongs, a third bus signal is sent to the block corresponding to the block identifier block_id in the group to which the segment module itself belongs. The third bus signal includes the block identifier block_id, a handshake signal, a sampling valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment. After receiving the third bus signal, the block compares the block identifier block_id contained in the third bus signal with the block identifier of the block itself. When the block identifier block_id contained in the third bus signal is consistent with the block identifier of the block itself, the handshake signal is set to a preset mark and the block returns to the original path.

[0026] In an exemplary embodiment of the present disclosure, the write enable generation module generates a write enable signal for a storage unit of the block within the block, which may include:

[0027] Determine the address of the corresponding storage unit according to the second-level sub-address segment corresponding to the block identifier block_id;

[0028] A write enable signal of a corresponding storage unit is generated according to the preset mark of the handshake signal and the determined address of the storage unit, so that the block selects the corresponding storage unit according to the write enable signal and stores the write data corresponding to the block identifier block_id in the selected storage unit.

[0029] An embodiment of the present disclosure also provides a chip, which may include: multiple blocks, each block managing multiple storage units; all storage units in the chip are divided into multiple groups, each group corresponding to multiple blocks; each block implements data writing through the write data path structure described in any one of claims 1-8.

[0030] In an exemplary embodiment of the present disclosure, blocks within each group are divided into multiple levels according to the connection mode between the write enable generation module and the segmentation module within the block;

[0031] When the write enable generation module in a block is directly connected to the segmentation module, the block is regarded as a first-level block; the level of the block where the write enable generation module is not directly connected to the segmentation module increases as the number of blocks that the write enable generation module needs to pass through to connect to the segmentation module increases.

[0032] Still other aspects will become apparent upon reading and understanding the accompanying drawings and detailed description.

[0033] Summary of the Figures

[0034] The accompanying drawings are used to provide an understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation to the technical solution of the present disclosure.

[0035] FIG1 is a block diagram of a write data path structure according to an embodiment of the present disclosure;

[0036] FIG2 is a schematic diagram of a configuration method of a write enable generation module of a write data path structure according to an embodiment of the present disclosure;

[0037] FIG3 is a block diagram of a write data path structure in the related art;

[0038] FIG4 is a schematic diagram of wiring between blocks in each group of a write enable generation module of a write data path structure according to an embodiment of the present disclosure;

[0039] FIG5 is a block diagram of chip composition according to an embodiment of the present disclosure.

[0040] Details

[0041] The present disclosure describes a plurality of embodiments, but this description is exemplary rather than restrictive, and it will be apparent to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present disclosure. Although many possible feature combinations are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0042] The present disclosure includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The disclosed embodiments, features, and elements of the present disclosure may also be combined with any conventional features or elements to form a unique inventive solution defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other inventive solutions to form another unique inventive solution defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this disclosure may be implemented individually or in any appropriate combination. Therefore, the embodiments are not subject to other limitations except for the limitations set forth in the appended claims and their equivalents. In addition, various modifications and changes may be made within the scope of protection of the appended claims.

[0043] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps in the specific order described. As will be understood by those skilled in the art, other orders of steps are also possible. Therefore, the specific order of the steps set forth in the specification should not be interpreted as a limitation on the claims. In addition, the claims to the method and / or process should not be limited to performing their steps in the order written, and those skilled in the art can readily understand that these orders can be changed and still remain within the spirit and scope of the disclosed embodiments.

[0044] The present disclosure provides a write data path structure 1, as shown in FIG1 , which may include: a write data path interface 11, a write data grouping module 12, a write data parsing unit 13, a segmentation module 14, and a write enable generation module 15; a chip 2 to which data is to be written includes multiple blocks, each of which manages multiple storage cells; all storage cells in the chip 2 are divided into multiple groups, each group corresponding to multiple blocks; each block is provided with a write enable generation module 15; as shown in FIG2 , the write enable generation module 15 is configured to generate a write enable signal for the storage cells in the block within the block;

[0045] The write data path interface 11 is connected to the input end of the write data grouping module 12;

[0046] The output end of the write data grouping module 12 is connected to the input end of the write data parsing unit 13;

[0047] The output end of the write data parsing unit 13 is connected to the input end of the segmentation module 14 of the group where the write data parsing unit 13 is located;

[0048] The output end of the segmentation module 14 is connected to each block in the group where the segmentation module 14 is located and the write enable generation module 15 in the block.

[0049] The block resource block is the unit block obtained after the chip is cut. Depending on the process, the resource size of each block is different, that is, the number of storage units it contains is different.

[0050] A related scheme of the write data path structure is shown in FIG3 , which includes: a write data path interface 100 and a protocol conversion unit 101 .

[0051] The protocol conversion unit 101 is connected upstream to the write data path interface 100 to perform protocol conversion on the received write data packets; and is connected downstream to all storage control units 102 .

[0052] The protocol conversion unit 101 has three functions: 1) splitting the write data packet into two parts: the write address and write data as one part, and the sampling valid signal as the other part; 2) generating a write enable and selecting the write enable according to the storage address; 3) modifying the single-cycle address and data timing to a multi-cycle timing. Because the downstream interface of the protocol conversion unit 101 is far away from the storage control unit 102 of each endpoint, the single-cycle timing logic can no longer meet the timing requirements. Therefore, the address and data timing of the protocol conversion unit 101 is a multi-cycle timing.

[0053] The protocol conversion unit S101 can generate N*Z write enable signals based on the storage address of the write data, where N is the number of blocks each chip is divided into, and is a positive integer. Z is the number of storage cells within each block that store the write data, and is a positive integer. Each storage cell corresponds to a write enable signal. In the chip design of proof-of-work, the write data path for accessing storage cell 103 is serial. Each time a piece of data is written, only the write enable of one storage cell 103 is selected, while the write enable of the other storage cells is invalid. Therefore, a large number of write enable signals travel in parallel between blocks, which is a waste of resources. The write enable signal is a single-cycle sequential logic. It is output from the protocol conversion interface and reaches the more distant storage cell 103. A large number of registers must be inserted to meet the timing.

[0054] The number of storage control units 102 can be customized based on demand. Here, four storage control units 102 are used as an example, such as 102-1, 102-2, 102-3, and 102-4. Each storage control unit 102 manages a certain capacity of storage units 103 (here, Z=4 is still used as an example, such that 103-1, 103-2, 103-3, and 103-4 each represent a group of storage units). Each storage unit 103 corresponds to a write enable signal and a handshake signal wr_ready (or write handshake signal) indicating whether the storage unit 103 is accessible.

[0055] After the protocol conversion unit 101 generates write enable signals for all storage units 103 based on the storage addresses, these write enable signals must traverse a long path to reach their destination. This requires a large number of registers to be inserted between the protocol conversion unit 101 and the corresponding storage unit 103. For destinations farther away, these signals must also pass through multiple blocks, resulting in a significant amount of wiring. The more storage units 103 there are, the more write enable signals are generated, and the more backpressure signals are generated for the handshake signal wr_ready.

[0056] In the exemplary embodiment of the present disclosure, as the number of computing units and storage units of a chip gradually increases, the number of blocks into which the chip is divided gradually increases. Transmission from the block where the protocol conversion unit 101 is located to other blocks, especially blocks that are farther away, must pass through multiple blocks. There are a large number of wirings between blocks, which not only affects the cutting of the chip, but also brings huge pressure on the layout and wiring of each block. The embodiment of the present disclosure improves the write enable signal generation function of the protocol conversion unit 101, which is completed by the write enable generation module 15, and the write enable generation module 15 is set in each block, so that the write enable signal is generated directly in each block, reducing the number of wirings of the write enable signal between blocks and saving a large number of registers.

[0057] In the exemplary embodiments of the present disclosure, the number R of groups (R is a positive integer greater than 1) can be defined according to needs and is not limited in detail here.

[0058] In exemplary embodiments of the present disclosure, the number of storage units managed by each block may be the same or different.

[0059] In an exemplary embodiment of the present disclosure, the write data path interface 11 and the write data grouping module 12 are arranged outside the chip, and the write data parsing unit 13 and the segmentation module 14 are arranged inside the chip 2;

[0060] The write data parsing unit 13 and the segmentation module 14 are both arranged in any block in each group.

[0061] In an exemplary embodiment of the present disclosure, the write data grouping module 12 is connected to the write data path interface via a first bus and may be configured to receive a first bus signal transmitted by the write data path interface;

[0062] The first bus signal may include: a first write address, a first write data, a sampling valid signal and a handshake signal;

[0063] The sampling valid signal enables the first write address and the first write data timing to be a multi-cycle timing.

[0064] In an exemplary embodiment of the present disclosure, the write data path interface 11 serves as the entrance to the write data path structure, and communication with the host computer can be carried out through the write data path interface 11; before the communication information (i.e., the first bus signal) enters the write data path interface 11, the single-cycle address and data timing has been modified to a multi-cycle timing.

[0065] In an exemplary embodiment of the present disclosure, the first bus between the write data path interface 11 and the write data grouping unit 12 may be in the form of an AXI bus, which is generally compatible with AXI timing or AXI-like timing.

[0066] AXI (Advanced Extensible Interface) is a bus protocol and an on-chip bus designed for high performance, high bandwidth, and low latency.

[0067] In an exemplary embodiment of the present disclosure, the first bus signal may include a sampling valid signal with a bit width of 1 bit, a write address with a bit width less than 32 bits (i.e., the first write address mentioned above), write data with a bit width of 512 bits (i.e., the first write data mentioned above), and a handshake signal wr_ready with a bit width of 1 bit.

[0068] In an exemplary embodiment of the present disclosure, the first write address may include: a storage address of the write data and a plurality of address segments for storing the write data;

[0069] The write data grouping module 12 is connected to the write data parsing unit 13 via a second bus and can be configured as follows:

[0070] According to the number R of groups in the chip, the multiple address segments are divided into R first-level sub-address segments according to the numbers of the address segments, each of the first-level sub-address segments corresponds to a group; and a group identifier group_id is generated for the group corresponding to each first-level sub-address segment; R is a positive integer greater than 1;

[0071] According to the number S of blocks contained in each group, the first-level sub-address segment corresponding to each group is divided into S second-level word address segments, each of which corresponds to a block, and the storage space of the storage unit of the corresponding block is greater than or equal to the size of the write data corresponding to the second-level sub-address segment; a block identifier block_id is generated for each block corresponding to the second-level sub-address segment; S is a positive integer greater than 1.

[0072] In an exemplary embodiment of the present disclosure, the write data grouping unit 12 obtains a first write address and determines the number R of groups into which all storage cells in the chip to be written are evenly divided, and the average number S of blocks contained in each group, where the number of storage cells contained in different blocks is not necessarily the same.

[0073] In an exemplary embodiment of the present disclosure, the write data grouping unit 12 first divides the address segment in the first write address into R first-level sub-address segments and determines the group_id of the group to which it belongs, and then divides each first-level word address segment into S second-level sub-address segments and determines the block_id of the block to which it belongs.

[0074] In the exemplary embodiments of the present disclosure, R=4 is used as an example to illustrate the embodiments of the present disclosure. As shown in group1, group2, group3, and group4 in Figure 1, the grouping method is based on address segment division, and the address segment in the first write address is evenly divided into 4 first-level sub-address segments. When the number of storage cells in the entire chip is M (M is a positive integer), the address segment corresponding to group1 is 0 to M / 4-1; the address segment corresponding to group2 is M / 4-1 to M / 2-1; the address segment corresponding to group3 is M / 2 to 3M / 4-1; and the address segment corresponding to group4 is 3M / 4 to M-1. Group_id is used to mark the group number corresponding to different first-level sub-address segments.

[0075] In the exemplary embodiments of the present disclosure, S=11 is used as an example to illustrate the embodiments of the present disclosure. Within each group, the chip is divided into 11 blocks (in different embodiments, the number of blocks divided within each group can be the same or different. For ease of control, the number of blocks divided within each group can be set to be the same). For the 11 blocks, the first-level sub-address segment within each group is further segmented; the address range within each block is different, and the number of storage units within each block can be allocated according to actual design requirements. The number of storage units determines the range of address segment division within each block.

[0076] In an exemplary embodiment of the present disclosure, 11 blocks in a group may be numbered in advance: block 1, block 2, block 3, block 4, block 5, block 6, block 7, block 8, block 9, block 10, block 11.

[0077] In an exemplary embodiment of the present disclosure, when block 1 contains k1 storage units, the address segment range of the second-level sub-address segment divided in block 1 may be 0 to k1-1;

[0078] When block2 contains k2 storage units, the address range of the second-level sub-address segment divided in block2 can be k1 to k2 + k1-1;

[0079] When block3 contains k3 storage units, the address segment range of the second-level sub-address segment divided in block3 can be k2+k1 to k3+k2+k1-1;

[0080] ......

[0081] When block 11 contains k11 storage units, the address segment range of the second-level sub-address segment divided in block 11 may be M / 4-k11 to M / 4-1.

[0082] In an exemplary embodiment of the present disclosure, K1, K2, K3, K4, K5, K6, K7, K8, K9, K10, and K11 are all positive integers.

[0083] In an exemplary embodiment of the present disclosure, when the first-level sub-address segment is divided again within each group, if a second-level sub-address segment contained in the first-level sub-address segment corresponds to the address segment range in block2, or the storage space size corresponding to the second-level sub-address segment is less than or equal to the storage space of the storage unit in block2, then the second-level sub-address segment is divided into block2, and the block identifier block_id of block2 is corresponded to the second-level sub-address segment; similarly, if another second-level sub-address segment contained in the first-level sub-address segment corresponds to the address segment range in block4, or the storage space size corresponding to the second-level sub-address segment is less than or equal to the storage space of the storage unit in block3, then the second-level sub-address segment is divided into block3, and the block identifier block_id of block3 is corresponded to the second-level sub-address segment.

[0084] In an exemplary embodiment of the present disclosure, the write data parsing unit 13 may be configured to: receive the second bus signal transmitted by the write data grouping module 12, perform protocol conversion on the second bus signal, and then transmit the second bus signal to the segmentation module 14 in the same group;

[0085] The second bus signal may include: the group identifier group_id, the block identifier block_id, a handshake signal, a sampling valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment.

[0086] In an exemplary embodiment of the present disclosure, the write data parsing unit 13 can be represented by wr_con, and the write data parsing unit 13 (wr_con) can be set in any block within a group as required. As shown in Figure 4, the write data parsing unit 13 (wr_con) is set in block 1 as required.

[0087] In an exemplary embodiment of the present disclosure, the segmentation module 14 is connected to the block and the write enable generation module via a third bus, and may be configured as follows:

[0088] After receiving the second bus signal transmitted by the write data parsing unit 13, the group identifier group_id contained in the second bus signal is compared with the group identifier of the group to which the segmentation module 14 itself belongs. When the group identifier group_id contained in the second bus signal is consistent with the group identifier of the group to which the segmentation module 14 itself belongs, a third bus signal is sent to the block corresponding to the block identifier block_id in the group to which the segmentation module 14 itself belongs. The third bus signal includes the block identifier block_id, a handshake signal, a sampling valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment. After receiving the third bus signal, the block compares the block identifier block_id contained in the third bus signal with the block identifier of the block itself. When the block identifier block_id contained in the third bus signal is consistent with the block identifier of the block itself, the handshake signal is set to a preset mark and the block returns to the original path.

[0089] In an exemplary embodiment of the present disclosure, the segmentation module 14 may be represented by wr_path, and a segmentation module 14 (wr_path) may be set in any block in each group as required.

[0090] In an exemplary embodiment of the present disclosure, the segmentation module 14 can identify whether the received group identifier group_id belongs to the group identifier of the group to which the segmentation module 14 itself is located. If the received group identifier group_id does not belong to the group identifier of the group to which the segmentation module 14 itself is located, the second bus signal can be ignored. If the received group identifier group_id belongs to the group identifier of the group to which the segmentation module 14 itself is located, the segmentation module 14 can send a third bus signal to the block in the group through the second bus to send the write data to the corresponding block for storage.

[0091] In an exemplary embodiment of the present disclosure, before sending write data to the corresponding block for storage, the segmentation module 14 first communicates with the write enable generation module 15 in each block so that the write enable generation module 15 in the block where data needs to be written first generates a write enable signal.

[0092] In an exemplary embodiment of the present disclosure, the segmentation module 14 may communicate with each write enable generation module 15 in a host communication manner, which may be based on the connection manner between the segmentation module 14 and the write enable generation module 15 described below.

[0093] In an exemplary embodiment of the present disclosure, as shown in FIG4 , all write enable generation modules 15 in each group are divided into multiple levels according to the connection mode with the segmentation module 14 ;

[0094] The write enable generation module 15 in each block includes one input interface and X output interfaces; X is a positive integer;

[0095] The input interface of each level of write enable generation module 15 is connected to the segmentation module 14, or is connected to an output interface of the previous level write enable generation module 15; the output interface of each level of write enable generation module 15 is connected to an input interface of the next level write enable generation module 15, or is left floating;

[0096] The input interfaces of the first-level write enable generation module 15 are all connected to the segmentation module 14 .

[0097] In an exemplary embodiment of the present disclosure, the write enable generation module 15 can be represented by gen_wen. For example, the gen_wen in the 11 blocks are gen_wen1, gen_wen2, gen_wen3, gen_wen4, gen_wen5, gen_wen6, gen_wen7, gen_wen8, gen_wen9, gen_wen10 and gen_wen11 respectively.

[0098] In an exemplary embodiment of the present disclosure, the write enable generation module 15 (gen_wen) directly connected to the segmentation module 14 among multiple write enable generation modules 15 can be used as the first-level write enable generation module, and the level of the write enable generation module 15 not directly connected to the segmentation module 14 increases with the increase in the number of write enable generation modules 15 that need to be passed through to connect to the segmentation module 14.

[0099] In the exemplary embodiments of the present disclosure, the value of X can be defined as required and is not limited in detail herein. For example, X=2 can be selected, that is, each write enable generation module 15 includes one input interface and two output interfaces.

[0100] In an exemplary embodiment of the present disclosure, the input interface of the first write enable generation module (such as gen_wen2) is connected to the output port of the segmentation module 14, and the output interface is connected to the input interface of the second-level write enable generation module (such as gen_wen4, gen_wen5); the output interface of the second-level write enable generation module is connected to the input interface of the third write enable generation module (such as gen_wen1, gen_wen8, gen_wen6, gen_wen9), and the output interface of the third write enable generation module is connected to the input interface of the fourth-level write enable module (such as gen_wen3, gen_wen7, gen_wen10, gen_wen11). Since there is no fifth-level write enable module, the output interface of the fourth-level write enable module is left floating (i.e., not connected to any module).

[0101] In the exemplary embodiment of the present disclosure, the above connection method reduces the number of buses between the segmentation module 14 and the write enable generation module 15 , thereby simplifying the wiring layout.

[0102] In an exemplary embodiment of the present disclosure, the connection mode between the segmentation module 14 and each block is the same as the connection mode between the segmentation module 14 and the write enable generation module 15 in each block, which is also a step-by-step connection mode.

[0103] In an exemplary embodiment of the present disclosure, a block directly connected to the segmentation module 14 among multiple blocks can be used as a first-level block, and the level of blocks not directly connected to the segmentation module 14 increases with the increase in the number of blocks that the write enable generation module in the block needs to pass through to connect to the segmentation module 14.

[0104] In an exemplary embodiment of the present disclosure, block2 serves as a first-level block, gen_wen4 and gen_wen5 serve as second-level blocks, gen_wen1, gen_wen8, gen_wen6, and gen_wen9 serve as third-level blocks, and gen_wen3, gen_wen7, gen_wen10, and gen_wen11 serve as fourth-level blocks.

[0105] In an exemplary embodiment of the present disclosure, after receiving the third bus signal, any block can identify whether the received block identifier block_id belongs to the block itself based on the block identifier block_id included in the third bus signal. If the received block identifier block_id does not belong to the block itself, the third bus signal can be ignored. If the received block identifier block_id belongs to the block itself, the handshake signal included in the third bus signal is set to a preset mark, indicating that the handshake is successful, and the handshake signal with the preset mark is returned along the original path to notify the host computer of the current handshake success.

[0106] In an exemplary embodiment of the present disclosure, the identification bit of the handshake signal can default to a low-voltage signal, and the preset mark can be a high-voltage signal. When the identification bit of the handshake signal is marked as a preset mark, the identification bit of the handshake signal is modified to a high-voltage signal to confirm that the handshake is successful.

[0107] In an exemplary embodiment of the present disclosure, the write enable generation module 15 generates a write enable signal for a storage unit in the block within the block, which may include:

[0108] Determine the address of the corresponding storage unit according to the second-level sub-address segment corresponding to the block identifier block_id;

[0109] A write enable signal of a corresponding storage unit is generated according to the preset mark of the handshake signal and the determined address of the storage unit, so that the block selects the corresponding storage unit according to the write enable signal and stores the write data corresponding to the block identifier block_id in the selected storage unit.

[0110] In an exemplary embodiment of the present disclosure, when any write enable generation module 15 detects that a handshake signal within the block in which the write enable generation module 15 resides is set to a preset flag, i.e., detects that the handshake of the block has succeeded, the write enable signal for the corresponding storage unit is generated based on the handshake success signal and the storage address corresponding to the write address (i.e., the segmented second-level sub-address segment) transmitted by the third bus signal. This causes the block in which the write enable generation module 15 resides to store the corresponding write data in the selected storage unit according to the write enable signal.

[0111] In the exemplary embodiments of the present disclosure, the above solution reduces the back pressure signals of the write enable signal and the handshake signal passing between blocks to 1 bit, significantly reducing the wiring between blocks and reducing register resources.

[0112] In the exemplary embodiments of the present disclosure, the embodiments of the present disclosure include at least the following advantages:

[0113] In the write data path structure, the address segments in the transmitted write address are first grouped and then block-divided according to the grouping of the memory cells across the entire chip. Address segments and write-enable signals are generated hierarchically. Write-enable generation modules 15 are distributed within each block, generating write-enable signals for the corresponding memory cells within each block. This eliminates the write-enable signals generated by protocol conversion unit 101 in related solutions, which need to travel long distances between blocks. The elimination of these write-enable signals reduces register requirements and wiring between blocks. The MUX circuit, which previously generated several thousand bits of signals, is reduced to less than 200 bits, reducing chip area, alleviating chip wiring pressure, and lowering costs and power consumption.

[0114] The embodiment of the present disclosure also provides a chip 2, as shown in Figure 5, which may include: multiple blocks, each block managing multiple storage units respectively; all storage units in the chip 2 are divided into multiple groups, each group corresponding to multiple blocks; each block implements data writing through the write data path structure 1.

[0115] In an exemplary embodiment of the present disclosure, blocks within each group are divided into multiple levels according to the connection mode between the write enable generation module 15 and the segmentation module 14 within the block;

[0116] When the write enable generation module 15 in a block is directly connected to the segmentation module 14, the block is regarded as a first-level block; the level of the block where the write enable generation module 15 that is not directly connected to the segmentation module 14 is located increases as the number of blocks that the write enable generation module 15 needs to pass through to connect to the segmentation module 14 increases.

[0117] In the exemplary embodiments of the present disclosure, any embodiment of the aforementioned write data path structure 1 is applicable to the embodiment of the chip 2 and will not be described in detail here.

[0118] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media generally embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A write data path structure, comprising: Write data path interface, write data grouping module, write data parsing unit, segmentation module and write enable generation module; The chip to be written with data comprises a plurality of blocks, each block managing a plurality of storage units respectively; all storage units in the chip are divided into a plurality of groups, each group corresponding to a plurality of blocks; a write enable generation module is provided in each block; the write enable generation module is configured to generate a write enable signal of the storage unit in the block; the write data path interface is connected to the input end of the write data grouping module; The output end of the write data grouping module is connected to the input end of the write data parsing unit; The output end of the write data parsing unit is connected to the input end of the segmentation module of the group where the write data parsing unit is located; The output end of the segmentation module is connected to each block in the group where the segmentation module is located and the write enable generation module in the block.

2. The write data path structure according to claim 1, wherein: The write data path interface and the write data grouping module are arranged outside the chip, and the write data parsing unit and the segmentation module are arranged inside the chip; The write data parsing unit and the segmentation module are both arranged in any block in each group.

3. The write data path structure according to claim 1, wherein: All write enable generation modules in each group are divided into multiple levels according to the connection mode with the segmentation module; The write enable generation module in each block includes an input interface and X output interfaces; X is a positive integer; The input interface of each level of write enable generation module is connected to the segmentation module, or connected to an output interface of the previous level of write enable generation module; the output interface of each level of write enable generation module is connected to an input interface of the next level of write enable generation module, or is left unconnected; Among them, the input interfaces of the first-level write enable generation module are all connected to the segmentation module.

4. The write data path structure according to claim 2 or 3, wherein: The write data grouping module is connected to the write data path interface via a first bus, and is configured to receive a first bus signal transmitted by the write data path interface; The first bus signal includes: a first write address, a first write data, a sampling valid signal and a handshake signal; The sampling effective signal enables the first write address and the first write data timing to be a multi-cycle timing.

5. The write data path structure according to claim 4, wherein: The first write address includes: a storage address of the write data and a plurality of address segments for storing the write data; The write data grouping module is connected to the write data parsing unit via a second bus and is configured as follows: According to the number R of groups in the chip, the multiple address segments are divided into R first-level sub-address segments according to the numbers of the address segments, and each of the first-level sub-address segments corresponds to a group; and a group identifier group_id of the group corresponding to each of the first-level sub-address segments is generated; R is a positive integer greater than 1; According to the number S of blocks contained in each group, the first-level sub-address segment corresponding to each group is divided into S second-level sub-address segments, each of the second-level sub-address segments corresponds to a block, and the storage space of the storage unit of the corresponding block is greater than or equal to the size of the write data corresponding to the second-level sub-address segment; a block identifier block_id of each block corresponding to the second-level sub-address segment is generated; S is a positive integer greater than 1.

6. The write data path structure according to claim 5, wherein: The write data parsing unit is configured as follows: receiving a second bus signal transmitted by the write data grouping module, performing protocol conversion on the second bus signal and transmitting the second bus signal to the segmentation module in the same group; The second bus signal includes: the group identifier group_id, the block identifier block_id, a handshake signal, a sampling valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment.

7. The write data path structure according to claim 6, wherein: The segmentation module is connected to the block and the write enable generation module via a third bus, and is configured as follows: After receiving the second bus signal transmitted by the write data parsing unit, the second The group identifier group_id contained in the bus signal is compared with the group identifier of the group where the segment module itself is located. When the group identifier group_id contained in the second bus signal is consistent with the group identifier of the group where the segment module itself is located, a third bus signal is sent to the block corresponding to the block identifier block_id in the group where the segment module itself is located; the third bus signal includes the block identifier block_id, a handshake signal, a sampling valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment; after receiving the third bus signal, the block compares the block identifier block_id contained in the third bus signal with the block identifier of the block itself. When the block identifier block_id contained in the third bus signal is consistent with the block identifier of the block itself, the handshake signal is set to a preset mark and then returns to the original path.

8. The write data path structure according to claim 7, wherein: The write enable generation module generates a write enable signal of a storage unit of the block in the block, including: Determine the address of the corresponding storage unit according to the second-level sub-address segment corresponding to the block identifier block_id; A write enable signal of a corresponding storage unit is generated according to the preset mark of the handshake signal and the determined address of the storage unit, so that the block selects the corresponding storage unit according to the write enable signal and stores the write data corresponding to the block identifier block_id in the selected storage unit.

9. A chip, characterized in that: include: A plurality of blocks, each block managing a plurality of storage units; all storage units in the chip are divided into a plurality of groups, each group corresponding to a plurality of blocks; Each block implements data writing through the write data path structure as described in any one of claims 1-8.

10. The chip according to claim 9, wherein: The blocks in each group are divided into multiple levels according to the connection mode between the write enable generation module and the segmentation module in the block; When the write enable generation module in a block is directly connected to the segmentation module, the block is regarded as a first-level block; The level of the block where the write enable generation module that is not directly connected to the segmentation module is located increases as the number of blocks that the write enable generation module needs to pass through to connect to the segmentation module increases.

Citation Information

Patent Citations

  • Data security processing device, system and method

    CN111143897A

  • Method for operation chip to access in-chip storage area and operation chip

    CN113986817A

  • Computer chip, computer board card and storage space allocation method and device

    CN115080455A

  • Chip and data transmission method thereof

    CN115292237A

  • Multi-chip module for MRAM devices

    US20190180807A1