A write data path structure and chip
By dividing the chip into groups and blocks and setting up a write enable generation module, the write data path structure is optimized, which solves the problems of long write data path and resource waste, and achieves resource saving and relief of wiring pressure.
Patent Information
- Application Number
- CN202380008784.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-02-22
AI Technical Summary
In proof-of-work based computing chips, the write data path is long and the routing is complex, requiring a large number of registers, which leads to resource waste and high placement and routing pressure.
The memory cells within the chip are divided into multiple groups, with a write enable generation module set up in each group. The write data path interface and parsing unit are located outside the chip. The segmentation module and the write enable generation module are located within each group. The write enable signal of the memory cell is generated through a multi-level connection method, which reduces the routing of the write enable signal between blocks.
This reduces the number of write enable signal traces between blocks, saves register resources, reduces chip area and power consumption, alleviates wiring pressure, and lowers costs.
Smart Images

Figure CN116457751B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to data transmission technology, and more particularly to a write data path structure and chip. Background Technology
[0002] Proof-of-Work (PoW) based computing chips rely on DAG (Directed Acyclic Graph) data for computation. Therefore, before computation begins, a large amount of DAG data must be written to the chip's internal memory. There are various methods for writing DAG data to memory. However, considering that the memory is composed of DRAM (Dynamic Random Access Memory), and DRAM access involves refresh operations during which data writing is not permitted, the current technical solution for the data writing path involves data communication between the computing unit and the memory unit. Each memory unit on the chip can be accessed via a bus. However, memory units are typically distributed throughout the chip, resulting in long paths from the data path entry point to each memory unit. This is especially true for the downstream interface of the protocol conversion unit, which has a long path to each memory unit, leading to complex wiring and requiring numerous registers. Invention Overview
[0004] The following is an overview of the subject matter described in detail herein, and this overview is not intended to limit the scope of the claims.
[0005] This 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; the chip to be written data includes multiple blocks, each block managing multiple memory units; all memory units within 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 write enable signals for the memory units of that block; the write data path interface is connected to the input terminal of the write data grouping module;
[0006] The output of the write data grouping module is connected to the input of the write data parsing unit;
[0007] The output of the write data parsing unit is connected to the input of the segmentation module in the group to which the write data parsing unit belongs;
[0008] The output of the segmentation module is connected to each block within the group to which the segmentation module belongs, as well as the write enable generation module within that block.
[0009] In an exemplary embodiment of this disclosure, the write data path interface and the write data grouping module are disposed outside the chip, while the write data parsing unit and the segmentation module are disposed inside the chip;
[0010] Both the write data parsing unit and the segmentation module are set within any block in each group.
[0011] In an exemplary embodiment of this disclosure, all write enable generation modules within each group are divided into multiple levels according to their connection method with the segmentation module;
[0012] Each block's write enable generation module includes one input interface and X output interfaces; X is a positive integer;
[0013] The input interface of each level write enable generation module is connected to the segmentation module, or to an output interface of the previous level write enable generation module; the output interface of each level write enable generation module is connected to an input interface of the next level write enable generation module, or is left unconnected.
[0014] The input interfaces of the first-level write enable generation module are all connected to the segmentation module.
[0015] In an exemplary embodiment of this disclosure, the write data packet module is connected to the write data path interface via a first bus and can 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 sample valid signal, and a handshake signal;
[0017] The valid sampling signal makes the timing of the first write address and the first write data a multi-cycle timing sequence.
[0018] In an exemplary embodiment of this disclosure, the first write address may include: the 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] Based on the number R of groups within the chip, the multiple address segments are divided into R first-level sub-address segments according to the address segment number, and each first-level sub-address segment corresponds to a group; and a group identifier group_id is generated for each group corresponding to the first-level sub-address segment; R is a positive integer greater than 1;
[0021] Based on 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 second-level sub-address segment corresponds to a block, and the storage space of the corresponding block's storage unit 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 this disclosure, the write data parsing unit may be configured to: receive the second bus signal transmitted by the write data grouping module, and transmit the second bus signal to the segmentation module in the same group after performing protocol conversion.
[0023] The second bus signal may include: the group identifier group_id, the block identifier block_id, a handshake signal, a sample 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 this disclosure, the segmentation module is connected to the block and the write enable generation module via a third bus, and can 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 segmentation module itself belongs. When the group identifier group_id contained in the second bus signal matches the group identifier of the group to which the segmentation module itself belongs, a third bus signal is sent to the block in the group to which the segmentation module itself belongs, corresponding to the block identifier block_id. The third bus signal contains the block identifier block_id, a handshake signal, a sample valid signal, and the write data to be stored corresponding to each block identifier block_id and the second-level sub-address segment. This allows the block to compare the block identifier block_id contained in the third bus signal with its own block identifier after receiving the third bus signal. When the block identifier block_id contained in the third bus signal matches the block identifier of the block itself, the handshake signal is set to a preset flag and the block returns along the original path.
[0026] In an exemplary embodiment of this disclosure, the write enable generation module generates a write enable signal for the memory cell of the block within the block, which may include:
[0027] The address of the corresponding storage unit is determined based on the second-level sub-address segment corresponding to the block identifier block_id;
[0028] Based on the preset flag of the handshake signal and the determined address of the storage unit, a write enable signal for the corresponding storage unit is generated, 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 into the selected storage unit.
[0029] This disclosure also provides a chip that may include: multiple blocks, each block managing multiple storage units; all storage units within the chip are divided into multiple groups, each group corresponding to multiple blocks; each block implements data writing through the write data path structure.
[0030] In an exemplary embodiment of this disclosure, each group's block is divided into multiple levels according to the connection method between the write enable generation module and the segmentation module within that block;
[0031] When the write enable generation module within a block is directly connected to the segmentation module, that block is designated as a first-level block. The level of a block containing a write enable generation module that is not directly connected to the segmentation module increases as the number of blocks that the write enable generation module must pass through to connect to the segmentation module increases.
[0032] After reading and understanding the accompanying diagrams and detailed descriptions, the other aspects can be understood.
[0033] Overview of the attached figures
[0034] The accompanying drawings are used to provide an understanding of the technical solutions of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the technical solutions of this disclosure and do not constitute a limitation on the technical solutions of this disclosure.
[0035] Figure 1 This is a block diagram of the write data path structure according to an embodiment of the present disclosure;
[0036] Figure 2 This is a schematic diagram illustrating the write enable generation module configuration method of the write data path structure in an embodiment of this disclosure;
[0037] Figure 3 This is a block diagram of the write data path structure in related technologies;
[0038] Figure 4 This is a schematic diagram of the routing between blocks in each group of the write enable generation module of the write data path structure in an embodiment of this disclosure.
[0039] Figure 5 This is a block diagram of the chip composition according to an embodiment of the present disclosure.
[0040] Detailed Explanation
[0041] This disclosure describes several embodiments, but these descriptions are exemplary and not limiting, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed embodiments, 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, or may replace, any feature or element of any other embodiment.
[0042] This disclosure includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this disclosure may also be combined with any conventional features or elements to form a unique inventive scheme as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive schemes to form another unique inventive scheme as 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 suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
[0043] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that the method or process does not depend on the specific order of steps described herein. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims relating to the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments disclosed herein.
[0044] This disclosure provides a write data path structure 1, such as... Figure 1As shown, it 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; the chip 2 to be written includes multiple blocks, each block managing multiple storage units; all storage units within the chip 2 are divided into multiple groups, each group corresponding to multiple blocks; each block is equipped with one of the write enable generation modules 15; as... Figure 2 As shown, the write enable generation module 15 is configured to generate write enable signals for the memory cells of the block within the block.
[0045] The write data path interface 11 is connected to the input terminal of the write data packet module 12;
[0046] The output of the write data grouping module 12 is connected to the input of the write data parsing unit 13;
[0047] The output of the write data parsing unit 13 is connected to the input of the segmentation module 14 in the group to which the write data parsing unit 13 is located;
[0048] The output of the segmentation module 14 is connected to each block in the group to which the segmentation module 14 belongs, as well as the write enable generation module 15 in that block.
[0049] A block is a unit block obtained after chip partitioning. Depending on the manufacturing process, the resource size of each block varies, which means the number of memory units it contains varies.
[0050] Related solutions for writing data path structures include: Figure 3 As shown, it includes: a write data path interface 100 and a protocol conversion unit 101.
[0051] The upstream of the protocol conversion unit 101 is connected to the write data path interface 100, which performs protocol conversion on the received write data packets; the downstream is connected to all storage control units 102.
[0052] Protocol conversion unit 101 has three functions: 1) splitting the write data packet into two parts: write address and write data as one part, and sampling valid signal as another part; 2) generating write enable and selecting write enable according to storage address; 3) modifying the single-cycle address and data timing to multi-cycle timing, because the downstream interface of protocol conversion unit 101 is far from the storage control unit 102 of each endpoint, and the single-cycle timing logic can no longer meet the timing requirements. Therefore, the address and data timing of protocol conversion unit 101 is 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. N is the number of blocks in each chip (N is a positive integer), and Z is the number of memory cells within each block storing the write data (Z is a positive integer). Each memory cell corresponds to one write enable signal. In proof-of-work chip designs, the write data path to memory cell 103 is serial. Each write operation only enables the write enable of one memory cell 103, while other write enable signals are invalid. Therefore, a large number of write enable signals travel in parallel between blocks, which is a waste of resources. The write enable signals are single-cycle sequential logic. Output from the protocol conversion interface to a distant memory cell 103 requires the insertion of numerous registers to meet timing requirements.
[0054] The number of storage control units 102 can be defined according to requirements. Here, we take four 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 (again, we take Z=4 as an example, such as 103-1, 103-2, 103-3, and 103-4 representing 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 memory cells 103 based on the memory address, these write enable signals must travel a long path to reach their destination, i.e., the corresponding memory cell 103. A large number of registers need to be inserted between the protocol conversion unit 101 and the memory cells. For destinations that are relatively far away, multiple blocks must be traversed, resulting in a large number of traces. The more memory cells 103 there are, the more write enable signals there are, and the more backpressure signals are generated for the handshake signal wr_ready.
[0056] In exemplary embodiments of this disclosure, as the number of computing and storage units in a chip gradually increases, the number of blocks the chip is divided into also gradually increases. Transmission from the block containing the protocol conversion unit 101 to other blocks, especially blocks that are far apart, must traverse multiple blocks, resulting in a large number of traces between blocks. This not only affects chip dicing but also puts enormous pressure on the layout and routing of each block. The solution of this disclosure improves the write enable signal generation function of the protocol conversion unit 101 by having it performed by a write enable generation module 15. Furthermore, the write enable generation module 15 is located within each block, thereby enabling the write enable signal to be generated directly within each block, reducing the number of traces between blocks and saving a significant amount of registers.
[0057] In the exemplary embodiments of this disclosure, the number of groups R (R is a positive integer greater than 1) can be defined as needed, and no detailed limitation is made here.
[0058] In exemplary embodiments of this disclosure, the number of storage units managed by each block may be the same or different.
[0059] In an exemplary embodiment of this disclosure, the write data path interface 11 and the write data grouping module 12 are disposed outside the chip, and the write data parsing unit 13 and the segmentation module 14 are disposed inside the chip 2;
[0060] Both the write data parsing unit 13 and the segmentation module 14 are located within any block in each group.
[0061] In an exemplary embodiment of this disclosure, the write data packet module 12 is connected to the write data path interface via a first bus and can be configured to receive the 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 sample valid signal, and a handshake signal;
[0063] The valid sampling signal makes the timing of the first write address and the first write data a multi-cycle timing sequence.
[0064] In an exemplary embodiment of this disclosure, the write data path interface 11 serves as the entry point of the write data path structure, through which communication with the host computer can be achieved; 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 this disclosure, the first bus between the write data path interface 11 and the write data packet unit 12 may be in the form of an AXI bus, generally compatible with AXI timing, or in an AXI-like timing configuration.
[0066] AXI (Advanced Extensible Interface) is a bus protocol, a high-performance, high-bandwidth, low-latency on-chip bus.
[0067] In an exemplary embodiment of this disclosure, the first bus signal may include a sample valid signal with a bit width of 1 bit, a write address with a bit width of 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 this disclosure, the first write address may include: the 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] Based on the number R of groups within the chip, the multiple address segments are divided into R first-level sub-address segments according to the address segment number, and each first-level sub-address segment corresponds to a group; and a group identifier group_id is generated for each group corresponding to the first-level sub-address segment; R is a positive integer greater than 1;
[0071] Based on 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 second-level sub-address segment corresponds to a block, and the storage space of the corresponding block's storage unit 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 this disclosure, the write data grouping unit 12 obtains a first write address and determines the number R of all memory cells in the chip to be written into an average group, and the number S of blocks contained in each group on average, wherein the number of memory cells contained in different blocks is not necessarily the same.
[0073] In an exemplary embodiment of this 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. Then, it 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 this disclosure, the scheme of the embodiments of this disclosure is illustrated using R=4 as an example. Figure 1As shown in group1, group2, group3, and group4, the grouping method is based on address ranges. The address range in the first write address is divided into four first-level sub-address ranges. When the total number of memory cells in the chip is M (M is a positive integer), then the address range corresponding to group1 is 0 to M / 4 - 1; the address range corresponding to group2 is M / 4 - 1 to M / 2 - 1; the address range corresponding to group3 is M / 2 to 3M / 4 - 1; and the address range corresponding to group4 is 3M / 4 to M - 1. The group_id is used to identify the group number corresponding to different first-level sub-address ranges.
[0075] In an exemplary embodiment of this disclosure, taking S=11 as an example, the scheme of this embodiment is described. Within each group, the chip is divided into 11 blocks (in different embodiments, the number of blocks in each group may be the same or different; for ease of control, the number of blocks in each group may 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 not the same, and the number of storage units in each block can be allocated according to the actual design requirements. The number of storage units determines the address segment division range within each block.
[0076] In an exemplary embodiment of this disclosure, the 11 blocks within a group can be pre-numbered as: block1, block2, block3, block4, block5, block6, block7, block8, block9, block10, and block11.
[0077] In an exemplary embodiment of this disclosure, when block1 contains k1 memory cells, the address range of the second-level sub-address segment divided in block1 can be 0 to k1-1;
[0078] When block2 contains k2 memory cells, the address range of the second-level sub-address segment corresponding to block2 can be k1 to k2+k1-1.
[0079] When block3 contains k3 memory units, the address range of the second-level sub-address segment corresponding to block3 can be k2+k1 to k3+k2+k1-1; ......
[0081] When block11 contains k11 memory cells, the address range of the second-level sub-address segment corresponding to block11 can be M / 4-k11 to M / 4-1.
[0082] In the exemplary embodiments of this disclosure, K1, K2, K3, K4, K5, K6, K7, K8, K9, K10, and K11 are all positive integers.
[0083] In an exemplary embodiment of this disclosure, when the first-level sub-address segment is further divided within each group, if a second-level sub-address segment contained in the first-level sub-address segment corresponds to the address range in block 2, or if 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 block 2, then the second-level sub-address segment is allocated to block 2, and the block identifier (block_id) of block 2 is associated with 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 range in block 4, or if 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 block 3, then the second-level sub-address segment is allocated to block 3, and the block identifier (block_id) of block 3 is associated with the second-level sub-address segment.
[0084] In an exemplary embodiment of this disclosure, the write data parsing unit 13 may be configured to: receive the second bus signal transmitted by the write data grouping module 12, and transmit the second bus signal to the segmentation module 14 in the same group after performing protocol conversion;
[0085] The second bus signal may include: the group identifier group_id, the block identifier block_id, a handshake signal, a sample 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 this 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 within any block of a group as needed. For example... Figure 4 As shown, the write data parsing unit 13 (wr_con) is set in block1 according to the requirements.
[0087] In an exemplary embodiment of this disclosure, the segmentation module 14 is connected to the block and the write enable generation module via a third bus, and can 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 in the group to which the block identifier block_id is located. The third bus signal contains the block identifier block_id, a handshake signal, a sample valid signal, and the write data to be stored and the second-level sub-address segment corresponding to each block identifier block_id. This allows the block to compare the block identifier block_id contained in the third bus signal with its own block identifier after receiving the third bus signal. 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 flag and the block returns along the original path.
[0089] In an exemplary embodiment of this disclosure, the segmentation module 14 can be represented by wr_path, and a segmentation module 14 (wr_path) can be set in any block in each group as needed.
[0090] In an exemplary embodiment of this 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 belongs. If the received group identifier group_id does not belong to the group identifier of the group to which the segmentation module 14 itself belongs, 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 belongs, 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 this disclosure, before sending the 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 that needs to write data first generates a write enable signal.
[0092] In an exemplary embodiment of this disclosure, the segmentation module 14 communicates with each write enable generation module 15 in a host communication manner, which can be implemented based on the connection method between the segmentation module 14 and the write enable generation module 15 described below.
[0093] In exemplary embodiments of this disclosure, such as Figure 4 As shown, all write enable generation modules 15 within each group are divided into multiple levels according to their connection method with the segmentation module 14;
[0094] Each write enable generation module 15 within a block includes one input interface and X output interfaces; X is a positive integer;
[0095] The input interface of each write enable generation module 15 is connected to the segmentation module 14, or to an output interface of the previous write enable generation module 15; the output interface of each write enable generation module 15 is connected to an input interface of the next write enable generation module 15, or left unconnected.
[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 this disclosure, the write enable generation module 15 may be represented by gen_wen, for example, 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 this disclosure, the write enable generation module 15 directly connected to the segmentation module 14 among a plurality of write enable generation modules 15 (gen_wen) can be regarded as the first-level write enable generation module. The level of the write enable generation module 15 not directly connected to the segmentation module 14 increases with the increase of the number of write enable generation modules 15 that need to be connected to the segmentation module 14.
[0099] In the exemplary embodiments of this disclosure, the value of X can be defined as needed and is not limited in detail herein. For example, X can be selected as 2, that is, each write enable generation module 15 includes one input interface and two output interfaces.
[0100] In an exemplary embodiment of this disclosure, the input interfaces of the first write enable generation module (e.g., gen_wen2) are all connected to the output ports of the segmentation module 14, and the output interfaces are connected to the input interfaces of the second-level write enable generation modules (e.g., gen_wen4, gen_wen5). The output interfaces of the second-level write enable generation modules are connected to the input interfaces of the third-level write enable generation modules (e.g., gen_wen1, gen_wen8, gen_wen6, gen_wen9), and the output interfaces of the third-level write enable generation modules are connected to the input interfaces of the fourth-level write enable modules (e.g., 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 unconnected (i.e., not connected to any module).
[0101] In an exemplary embodiment of this disclosure, the above connection method reduces the number of buses between the segmentation module 14 and the write enable generation module 15, simplifying the wiring layout.
[0102] In the exemplary embodiments of this disclosure, the connection method between the segmentation module 14 and each block is the same as the connection method between the segmentation module 14 and the write enable generation module 15 in each block, which is also a step-by-step connection method.
[0103] In an exemplary embodiment of this disclosure, a block that is directly connected to the segmentation module 14 among a plurality of blocks can be regarded as a first-level block, and the level of a block that is not directly connected to the segmentation module 14 increases as the number of blocks that the write enable generation module in that block needs to pass through to connect to the segmentation module 14 increases.
[0104] In an exemplary embodiment of this disclosure, block2 is a first-level block, gen_wen4 and gen_wen5 are second-level blocks, gen_wen1, gen_wen8, gen_wen6 and gen_wen9 are third-level blocks, and gen_wen3, gen_wen7, gen_wen10 and gen_wen11 are fourth-level blocks.
[0105] In an exemplary embodiment of this disclosure, after any block receives the third bus signal, it can identify whether the received block identifier block_id belongs to the block itself based on the block identifier block_id contained 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 contained in the third bus signal is set to a preset flag to indicate that the handshake is successful, and the handshake signal set to the preset flag is returned along the original path to notify the host computer that the handshake is successful.
[0106] In an exemplary embodiment of this disclosure, the identifier bit of the handshake signal can be a low-level signal by default, and the preset flag can be a high-level signal. When the identifier bit of the handshake signal is marked with the preset flag, the identifier bit of the handshake signal is modified to a high-level signal to confirm that the handshake is successful.
[0107] In an exemplary embodiment of this disclosure, the write enable generation module 15 generates a write enable signal for a memory cell within the block, which may include:
[0108] The address of the corresponding storage unit is determined based on the second-level sub-address segment corresponding to the block identifier block_id;
[0109] Based on the preset flag of the handshake signal and the determined address of the storage unit, a write enable signal for the corresponding storage unit is generated, 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 into the selected storage unit.
[0110] In an exemplary embodiment of this disclosure, when any write enable generation module 15 detects that the handshake signal within the block where it resides is set to a preset flag, i.e., when a successful handshake is detected for that block, it generates a write enable signal for the corresponding memory cell based on the handshake success signal and the memory 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 where the write enable generation module 15 resides to store the corresponding write data into the selected memory cell according to the write enable signal.
[0111] In the exemplary embodiments of this disclosure, the above scheme reduces the reverse pressure signals of the write enable signal and handshake signal that travel between blocks to 1 bit, significantly reducing the routing between blocks and reducing register resources.
[0112] In exemplary embodiments of this disclosure, the solutions of these embodiments include at least the following advantages:
[0113] In the write data path structure, based on the grouping of the entire chip's memory cells, the address segments in the transmitted write address are first grouped, then block-based, and address segments and write enable signals are generated hierarchically. The write enable generation module 15 is distributed in each block, generating the corresponding write enable signal for the memory cell within each block. This eliminates the write enable signal generated by the protocol conversion unit 101 in related schemes, which needs to travel long distances between blocks. Furthermore, with the removal of this write enable signal, the requirement for registers is reduced, and the wiring between blocks is reduced. A mux (multiplexing) circuit that generates thousands of bits of signal is reduced to less than 200 bits, reducing chip area, alleviating chip wiring pressure, reducing cost, and reducing power consumption.
[0114] This disclosure also provides a chip 2, such as... Figure 5 As shown, it may include: multiple blocks, each block managing multiple storage units; 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 this disclosure, each group of blocks is divided into multiple levels according to the connection method between the write enable generation module 15 and the segmentation module 14 within that block;
[0116] When the write enable generation module 15 within a block is directly connected to the segmentation module 14, that block is designated as a first-level block. The level of a block containing a write enable generation module 15 that is not directly connected to the segmentation module 14 increases as the number of blocks that the write enable generation module 15 must pass through to connect to the segmentation module 14 increases.
[0117] In the exemplary embodiments of this disclosure, any of the aforementioned write data path structure 1 is applicable to the chip 2 embodiment, and will not be described in detail here.
[0118] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above 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 collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media 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 technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
Claims
1. A write data path device, comprising: The chip to be written to comprises a write data path interface, a write data grouping module, a write data parsing unit, a segmentation module, and a write enable generation module. The chip includes multiple blocks, each managing multiple memory units. All memory units within the chip are divided into multiple groups, each group corresponding to multiple blocks. Each block contains one of the write enable generation modules. The write enable generation module is configured to generate write enable signals for the memory units within that block. The write data path interface is connected to the input of the write data grouping module. The output of the write data grouping module is connected to the input of the write data parsing unit; The output of the write data parsing unit is connected to the input of the segmentation module in the group to which the write data parsing unit belongs; The output of the segmentation module is connected to each block in the group to which the segmentation module belongs, as well as the write enable generation module in that block. The write data path interface and the write data grouping module are located outside the chip, while the write data parsing unit and the segmentation module are located inside the chip; the write data parsing unit and the segmentation module are both located within any block of each group; The write data grouping module is connected to the write data path interface via a first bus and to the write data parsing unit within each group via a second bus. It is configured to receive the first bus signal transmitted by the write data path interface, and according to the group division of the memory cells of the entire chip, first divide the address segment in the first write address included in the first bus signal into groups, then divide it into blocks, and generate a second bus signal based on the first bus signal and send it to the write data parsing unit; wherein, the second bus signal includes: group identifier and block identifier.
2. The write data path device according to claim 1, wherein, All write enable generation modules within each group are divided into multiple levels based on their connection method with the segmentation modules; The write enable generation module within each block includes one input interface and X output interfaces; X is a positive integer; The input interface of each level write enable generation module is connected to the segmentation module, or to an output interface of the previous level write enable generation module; the output interface of each level write enable generation module is connected to an input interface of the next level write enable generation module, or is left unconnected. The input interfaces of the first-level write enable generation module are all connected to the segmentation module.
3. The write data path device according to claim 1 or 2, wherein, The first bus signal also includes: a sample valid signal and a handshake signal; The valid sampling signal makes the timing of the first write address and the first write data a multi-cycle timing sequence.
4. The write data path device according to claim 3, wherein, The first write address includes: the storage address of the write data and multiple address segments for storing the write data; The write data grouping module is configured as follows: Based on the number R of groups within the chip, the multiple address segments are divided into R first-level sub-address segments according to the address segment number, each first-level sub-address segment corresponding to a group; and a group identifier is generated for each group corresponding to each first-level sub-address segment; R is a positive integer greater than 1; Based on 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 second-level sub-address segment 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 is generated for each block corresponding to the second-level sub-address segment. S is a positive integer greater than 1.
5. The write data path device according to claim 4, wherein, The write data parsing unit is configured as follows: The system receives the second bus signal transmitted by the write data packet module, performs protocol conversion on the second bus signal, and then transmits it to the segmentation module in the same group. The second bus signal also includes: a handshake signal, a sample valid signal, and the write data to be stored corresponding to each block identifier and the second-level sub-address segment.
6. The write data path apparatus according to claim 5, 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 group identifier contained in the second bus signal is compared with the group identifier of the group to which the segmentation module itself belongs. When the group identifier contained in the second bus signal matches the group identifier of the group to which the segmentation module itself belongs, a third bus signal is sent to the block corresponding to the block identifier in the group to which the segmentation module itself belongs. The third bus signal contains the block identifier, a handshake signal, a sample valid signal, and the write data to be stored and the second-level sub-address segment corresponding to each block identifier. This allows the block to compare the block identifier contained in the third bus signal with its own block identifier after receiving the third bus signal. When the block identifier contained in the third bus signal matches the block identifier of the block itself, the handshake signal is set to a preset flag and the block returns along the original path.
7. The write data path apparatus according to claim 6, wherein, The write enable generation module generates write enable signals for the memory cells within the block, including: The address of the corresponding storage unit is determined based on the second-level sub-address segment corresponding to the block identifier; Based on the preset flag of the handshake signal and the determined address of the storage unit, a write enable signal for the corresponding storage unit is generated, 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 into the selected storage unit.
8. A chip, characterized in that, include: Multiple blocks, each managing multiple storage units; all storage units within the chip are divided into multiple groups, each group corresponding to multiple blocks; each block implements data writing through the write data path device as described in any one of claims 1-7.
9. The chip according to claim 8, wherein, The blocks within each group are divided into multiple levels according to the connection method between the write enable generation module and the segmentation module within that block; When the write enable generation module within a block is directly connected to the segmentation module, that block is designated as a first-level block; the level of a block containing a write enable generation module that 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.
Citation Information
Patent Citations
Chip and data transmission method thereof
CN115292237A
