Memory and memory system storing metadata
By introducing metadata mode activation and deactivation mechanisms into memory, the access and storage methods of unit arrays are optimized, metadata storage problems are solved, and efficient storage and performance improvements are achieved.
Patent Information
- Application Number
- CN202410473875.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-22
- Filing Date
- 2024-04-19
- Publication Date
- 2024-11-12
AI Technical Summary
As the amount of data increases, it is difficult for existing memory to effectively store metadata, resulting in an increase in memory area and waste of resources.
By introducing a metadata mode activation and deactivation mechanism in memory, using the data sending/receiving circuit and the ECC engine to generate error correction codes, and adjusting the address conversion method according to the set mode, optimizing the access and storage method of the unit array to realize metadata efficient storage.
It realizes efficient storage of metadata, reduces the increase in memory area, avoids resource waste, and improves memory performance.
Smart Images

Figure CN118942499A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Korean Patent Application No. 10-2023-0060666, filed on May 10, 2023, Korean Patent Application No. 10-2023-0060667, filed on May 10, 2023, Korean Patent Application No. 10-2023-0060668, filed on May 10, 2023, and Korean Patent Application No. 10-2023-0189143, filed on December 22, 2023, which are hereby incorporated by reference in their entirety. Technical Field
[0003] An embodiment of the present disclosure relates to a storage device for storing metadata and user data. Background Art
[0004] With the recent increase in applications using artificial intelligence and big data, the amount of data to be processed has increased explosively. Many computer systems (e.g., data centers and servers) require high-capacity memory, and applications using computer systems require memory with a higher capacity than the computer system may have. In addition, as the amount of data increases, the importance of metadata for data management is gradually increasing.
[0005] Therefore, there is a need for a solution to store metadata in memory in addition to user data in an efficient manner. Summary of the invention
[0006] In an embodiment of the present disclosure, a memory may include a data transmission / reception circuit and a storage body including a plurality of cell arrays. When a metadata mode is activated, data and metadata received by the data transmission / reception circuit may be allocated to and stored in the plurality of cell arrays. When the metadata mode is deactivated, data received by the data transmission / reception circuit may be allocated to and stored in cell arrays other than one or more non-access cell arrays in the plurality of cell arrays.
[0007] In an embodiment of the present disclosure, a memory may include a data transmission / reception circuit, an ECC engine, and a storage body including a plurality of cell arrays. When the metadata mode is activated, the ECC engine may generate an error correction code by using data and metadata received via the data transmission / reception circuit, and when the metadata mode is disabled, the ECC engine may generate an error correction code by using data received via the data transmission / reception circuit. When the metadata mode is activated, the data, metadata, and error correction codes may be allocated to and stored in a plurality of cell arrays. When the metadata mode is disabled, the data and error correction codes may be allocated to and stored in cell arrays other than one or more non-access cell arrays in the plurality of cell arrays.
[0008] In an embodiment of the present disclosure, a memory system may include a memory and a memory controller configured to control the memory, wherein the number of instances of column addresses accessible in the memory changes according to a set mode. The memory controller may include an address conversion circuit configured to convert a system address into a memory address for accessing the memory. The system address may be converted into a memory address according to a method based on a change in the set mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a diagram showing a configuration of a memory bank in which data is stored, included in a memory according to an embodiment of the present disclosure.
[0010] Figure 2 The present invention is a diagram showing an embodiment of the present invention. Figure 1 A diagram of the configuration of the columns in a cell array.
[0011] Figure 3 is a diagram showing a configuration of a memory system according to an embodiment of the present disclosure.
[0012] Figure 4 The present invention is a diagram showing an embodiment of the present invention. Figure 3 Diagram of the memory configuration in .
[0013] Figure 5 The present invention is a diagram showing an embodiment of the present invention. Figure 4 Diagram of the configuration of the storage banks in .
[0014] Figure 6 The present invention is a diagram showing an embodiment of the present invention. Figure 5 A diagram of the configuration of the columns in a cell array.
[0015] Figure 7 It is used to describe the embodiments according to the present disclosure. Figure 4 When metadata mode is activated for the storage Figure 5A diagram of read and write operations of a memory bank based on the value of a column address.
[0016] FIG. 8A to FIG. 8D It is used to describe the embodiments according to the present disclosure. Figure 4 When metadata mode is disabled for storage in Figure 5 A diagram of read and write operations of a memory bank based on the value of a column address.
[0017] Fig. 9 The present invention is a diagram showing an embodiment of the present invention. Figure 3 Diagram of the memory configuration in .
[0018] Fig.10 The present invention is a diagram showing an embodiment of the present invention. Fig. 9 Diagram of the configuration of the storage banks in .
[0019] Fig.11 It is used to describe the embodiments according to the present disclosure. Fig. 9 When metadata mode of the storage is activated Fig.10 A diagram of read and write operations of a memory bank based on the value of a column address.
[0020] FIG. 12A to FIG. 12D It is used to describe the embodiments according to the present disclosure. Fig. 9 When metadata mode is disabled for storage in Fig.10 A diagram of read and write operations of a memory bank based on the value of a column address. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments according to the technical spirit of the present disclosure will be described with reference to the accompanying drawings.
[0022] Embodiments of the present disclosure may provide a method for efficiently storing metadata in a memory.
[0023] According to the embodiments of the present disclosure, metadata can be efficiently stored in a memory and an increase in the memory area supporting the storage of metadata can be minimized.
[0024] Figure 1 is a diagram showing a configuration of a memory bank 100 in which data is stored, which is included in a memory according to an embodiment of the present disclosure.
[0025] Reference Figure 1 , the memory bank 100 may include cell arrays 110_0 to 110_16, row circuits (ROW) 120_0 to 120_16, and column circuits (COL) 130_0 to 130_16.
[0026] Each of the cell arrays 110_0 to 110_16 may include a plurality of memory cells arranged in a plurality of rows and columns.
[0027] The row circuits 120_0 to 120_16 may perform an activation operation of activating a row selected by a row address R_ADD among a plurality of rows of the cell arrays 110_0 to 110_16. For example, the row circuit 120_0 may activate a row selected by a row address R_ADD in the cell array 110_0 after the activation operation starts. The row circuit 120_3 may activate a row selected by a row address R_ADD in the cell array 110_3 after the activation operation starts. During the activation operation, data of a memory cell in the selected row may be sensed and amplified.
[0028] The column circuits 130_0 to 130_16 may write data to a memory cell in a column of a row selected by the row circuits 120_0 to 120_16 in the cell arrays 110_0 to 110_16, or may read data from a memory cell in a selected column. That is, the column circuits 130_0 to 130_16 may perform operations of reading data from or writing data to memory cells corresponding to the selected row and the selected column in the cell arrays 110_0 to 110_16. For example, the column circuit 130_1 may write data to or read data from a memory cell in a column selected by the column address C_ADD in a row selected by the row circuit 120_1 in the cell array 110_1.
[0029] After the read operation and the write operation of the memory bank 100 are started, data (ie, user data) and metadata may be allocated to and stored in the cell arrays 110_0 to 110_16. For example, 128-bit data DATA may be allocated to and stored in 16 cell arrays 110_0 to 110_15 by 8 bits. 8-bit metadata META_DATA may be stored in the cell array 110_16.
[0030] Depending on the memory system including the memory, metadata may be used or may not be used. If metadata is used in the memory system, all cell arrays 110_0 to 110_16 of the memory bank 100 may be used. However, if metadata is not used in the memory system, only the cell arrays 110_0 to 110_15 of the memory bank 100 may be used, and the cell array 110_16 may not be used. In this case, the size of the memory may be increased unnecessarily, which may waste the area of the memory.
[0031] Figure 2 The present invention is a diagram showing an embodiment of the present invention. Figure 1 FIG. 1 is a diagram showing a configuration of a column structure of the cell array 110_0.
[0032] Reference Figure 2 , the column selection signals YI0 to YI127 may be signals for selecting columns in the cell array 110_0. After the read operation and the write operation start, one of the column selection signals YI0 to YI127 may be activated, and eight columns corresponding to the activated column selection signal may be accessed. For example, when the column selection signal YI14 is activated in a state where the 78th row has been activated (or selected), eight memory cells corresponding to the column selection signal YI14 in the 78th row of the cell array 110_0 may be accessed.
[0033] The column selection signals YI0 to YI127 may be generated by the column circuit 130_0 . A column selection signal to be activated among the column selection signals YI0 to YI127 may be selected based on a value of the column address C_ADD.
[0034] Figure 3 is a diagram showing a configuration of a memory system 300 according to an embodiment of the present disclosure.
[0035] Reference Figure 3 , the memory system 300 may include a memory controller 310 and a memory 350 .
[0036] The memory controller 310 may control the operation of the memory 350 based on a request from the host HOST. The host HOST may include a central processing unit (CPU), a graphics processing unit (GPU), and an application processor (AP). The memory controller 310 may include a host interface 311, a scheduler 313, a command generator 315, an address conversion circuit 317, and a memory interface 319.
[0037] The host interface 311 may be an interface between the memory controller 310 and the host HOST.
[0038] The scheduler 313 may determine the order of requests to be made to the memory 350 among the requests from the host HOST. The scheduler 313 may make the order of the requests that have been received from the host HOST and the order of the operations to be instructed to the memory 150 different in order to improve the performance of the memory 350. For example, although the host HOST first requested a read operation from the memory 150 and then requested a write operation to the memory 150, the scheduler 313 may adjust the order of the read operation and the write operation so that the write operation is performed before the read operation.
[0039] The command generator 315 may generate commands to be applied to the memory 350 according to the operation sequence that has been determined by the scheduler 313 .
[0040] The address conversion circuit 317 may convert an address received from the host HOST into a memory address for accessing the memory 350. The address conversion method of the address conversion circuit 317 may differ according to the setting mode. In this case, differing according to the setting mode may mean that the address conversion method is different when the metadata mode is activated (where metadata is stored in the memory 350) and when the metadata mode is deactivated (where metadata is not stored in the memory 350).
[0041] The memory address may include a bank address, a row address, and a column address. The bank address may be an address for selecting a bank to be accessed in the memory 350. The row address may be an address for selecting a row to be accessed in the selected bank. The column address may be an address for selecting a column to be accessed in a selected row in the selected bank. From the perspective of the memory address system, among the bank address, the row address, and the column address, the bank address may be the highest address, the row address may be the middle address, and the column address may be the lower address.
[0042] In the memory 350, the number of accessible column address value instances may be different depending on whether the metadata mode is activated. For example, when the metadata mode is activated in the memory 350, the number of accessible column address value instances in the memory 350 may be N (e.g., 121), where N is an integer equal to or greater than 2. When the metadata mode is deactivated in the memory 350, the number of accessible column address value instances in the memory 350 may be M (e.g., 128), where M is an integer greater than N.
[0043] When the metadata mode is activated, the address conversion circuit 317 may convert the quotient obtained by dividing the value of the system address by N into a memory bank address and a row address, and may convert the remainder into a column address. In addition, when the metadata mode is deactivated, the address conversion circuit 317 may convert the quotient obtained by dividing the value of the system address by M into a memory bank address and a row address, and may convert the remainder into a column address. The reason for this is that the number of individual instances of the column address value that can be selected differs depending on whether the metadata mode is activated or not.
[0044] The memory interface 319 may be an interface between the memory controller 310 and the memory 350. The command / address CA may be sent from the memory controller 310 to the memory 350 through the memory interface 319. The data DATA may be sent and received between the memory controller 310 and the memory 350 through the memory interface 319. In addition to including user data, the data DATA may also include metadata corresponding to the data (i.e., user data). The memory interface 319 may also be referred to as a PHY interface.
[0045] The memory 350 may perform operations instructed by the memory controller 310. The operations instructed by the memory controller 310 may include an activation operation, a precharge operation, a read operation, a write operation, and a refresh operation. When the metadata mode is activated, data and metadata may be written to the memory 350 after the write operation starts, and data and metadata may be read from the memory 350 after the read operation starts. As described above, the number of instances of column address values accessible in the memory 350, i.e., the number of accessible columns, may differ depending on whether the metadata mode is activated.
[0046] Figure 4 The present invention is a diagram showing an embodiment of the present invention. Figure 3 FIG. 3 is a diagram of the configuration of the memory 350 in FIG.
[0047] Reference Figure 4 , the memory 350 may include a command / address receiving circuit 401, a data transmitting / receiving circuit 403, a control circuit 410, a memory bank selecting circuit 420, a data bus 430, and memory banks BK0 to BK3.
[0048] The command / address receiving circuit 401 may receive a command / address CA transmitted by the memory controller 310. The command / address CA may include a signal having a plurality of bits.
[0049] The data transmission / reception circuit 403 may transmit and receive data DATA to and from the memory controller 310. The data DATA may include a plurality of bits. The data DATA may include data (ie, user data) and metadata.
[0050] The control circuit 410 may control the overall operation of the memory 350. The control circuit 410 may control the components within the memory 350 so that the memory 350 may perform the operation indicated by the command / address CA. The operation performed by the memory 350 may include an activation operation, a precharge operation, a read operation, a write operation, and a refresh operation. In addition, the control circuit 410 may activate or deactivate the metadata mode of the memory 350 based on an instruction from the memory controller 310.
[0051] The bank selection circuit 420 may generate bank selection signals BS0 to BS3 for selecting one of the banks BK0 to BK3 by using the bank address BA among the addresses received via the command / address receiving circuit 401. When the bank BK0 is selected by the bank address BA, the bank selection signal BS0 may be activated. When the bank BK2 is selected, the bank selection signal BS2 may be activated.
[0052] The data bus 430 may be a bus for transmitting data between the data transmission / reception circuit 403 and the memory banks BK0 to BK3. After the write operation starts, the data received by the data transmission / reception circuit 403 may be transmitted to the selected memory bank among the memory banks BK0 to BK3 through the data bus 430. After the read operation starts, the data read from the selected memory bank among the memory banks BK0 to BK3 may be transmitted to the data transmission / reception circuit 403 through the data bus 430.
[0053] The memory banks BK0 to BK3 may store data. When the metadata mode is activated, data and metadata may be stored in the memory banks BK0 to BK3. When the metadata mode is deactivated, data may be stored in the memory banks BK0 to BK3, and metadata may not be stored in the memory banks BK0 to BK3. In this case, an example in which the memory 350 includes four memory banks BK0 to BK3 has been shown, but the memory 350 may include a variety of numbers of memory banks, such as 16 or 32.
[0054] Figure 5 The present invention is a diagram showing an embodiment of the present invention. Figure 4 FIG. 4 is a diagram showing the configuration of the memory bank BK0 in FIG.
[0055] Reference Figure 5 , the memory bank BK0 may include cell arrays 510_0 to 510_16 , row circuits 520_0 to 520_16 , column circuits 530_0 to 530_16 , and a data selection circuit 540 .
[0056] Each of the cell arrays 510_0 to 510_16 may include a plurality of memory cells arranged in a plurality of rows and columns.
[0057] The row circuits 520_0 to 520_16 may perform an activation operation of activating a row selected by a row address R_ADD among a plurality of rows of the cell arrays 510_0 to 510_16. For example, the row circuit 520_0 may activate a row selected by a row address R_ADD in the cell array 510_0 after the activation operation starts. The row circuit 520_3 may activate a row selected by a row address R_ADD in the cell array 510_3 after the activation operation starts. During the activation operation, data of a memory cell in the selected row may be sensed and amplified.
[0058] The column circuits 530_0 to 530_16 may write data to a memory cell in a column of a row selected by the row circuits 520_0 to 520_16 in the cell arrays 510_0 to 510_16, or may read data from a memory cell in a selected column. That is, the column circuits 530_0 to 530_16 may perform operations of reading data from or writing data to memory cells corresponding to the selected rows and selected columns in the cell arrays 510_0 to 510_16. For example, the column circuit 530_1 may write data to or read data from a memory cell in a column selected by the column address C_ADD in a row selected by the row circuit 520_1 in the cell array 510_1. The operations of the column circuits 530_0 to 530_16 may be different when the metadata mode is activated and when the metadata mode is deactivated. This will be described in detail later.
[0059] The data selection circuit 540 may control the connection between the column circuits 530_0 to 530_16 and the data bus 430. When the metadata mode is activated, the data selection circuit 540 may connect all the column circuits 530_0 to 530_16 to the data bus 430. That is, when the metadata mode is activated, 128 bits of data may be sent and received between the column circuits 530_0 to 530_15 and the data bus 430, and 8 bits of metadata may be sent and received between the column circuits 530_16 and the data bus 430. When the metadata mode is deactivated, the data selection circuit 540 may connect some of the column circuits 530_0 to 530_16 to the data bus 430. When the metadata mode is deactivated, whether the data selection circuit 540 will connect one of the column circuits 530_0 to 530_16 to the data bus 430 may be determined by the column address C_ADD. This will be described in detail later.
[0060] Banks BK1 to BK3 can also be like Figure 5 The memory bank BK0 in FIG.
[0061] Figure 6 The present invention is a diagram showing an embodiment of the present invention. Figure 5 FIG. 5 is a diagram showing the configuration of columns of the cell array 510_0.
[0062] Reference Figure 6, the column selection signals YI0 to YI120 may be signals for selecting columns of the cell array 510_0. After the read operation and the write operation start, one of the column selection signals YI0 to YI120 may be activated. The eight columns corresponding to the activated column selection signals may be accessed. For example, when the column selection signal YI89 is activated in a state where the 63rd row has been activated (or selected), the eight storage cells corresponding to the column selection signal YI89 in the 63rd row of the cell array 510_0 may be accessed. The column selection signals YI0 to YI120 may be generated by the column circuit 530_0 corresponding to the cell array 510_0.
[0063] Since 121 column selection signals YI0 to YI120 are used in the cell array 510_0, the number of instances of columns accessible in the cell array 510 may be 121. The cell arrays 510_0 to 510_16 may also be like Figure 6 The cell array 510_0 in FIG.
[0064] Figure 7 It is used to describe the present invention according to the embodiment of the present invention. Figure 4 When the metadata mode of the memory 350 is activated Figure 5 FIG. 1 is a diagram of a read operation and a write operation of a memory bank BK0 in the memory 350 based on the value of a column address C_ADD. In this case, the memory bank BK0 among the memory banks BK0 to BK3 of the memory 350 has been selected by the memory bank address BA.
[0065] Reference Figure 7 , it can be seen that when the value of the column address C_ADD is 0, the column selection signal YI0 is activated in the cell arrays 510_0 to 510_16. In addition, it can be seen that when the value of the column address C_ADD is 3, the column selection signal YI3 is activated in the cell arrays 510_0 to 510_16. 128-bit data can be allocated to the cell arrays 510_0 to 510_15 by 8 bits, read from the cell arrays 510_0 to 510_15, and written to the cell arrays 510_0 to 510_15. 8-bit metadata can be read from the cell array 510_16 and written to the cell array 510_16. In Figure 7 , (M) is marked in the parts of the cell array 510_16. This can be used to indicate that metadata is stored in these parts.
[0066] When the metadata mode is activated, the column address C_ADD may have a value of 0 to 120. The column circuits 530_0 to 530_16 may activate the column selection signal YI having the same value as the column address C_ADD. In addition, when the metadata mode is activated, the data selection circuit 540 may connect all column circuits 530_0 to 530_16 to the data bus 430 because all cell arrays 510_0 to 510_16 are accessed.
[0067] Figures 8A to 8D is used to describe Figure 4 When the metadata mode of the storage 350 is disabled Figure 5 FIG. 1 is a diagram of a read operation and a write operation of a memory bank BK0 in the memory 350 based on the value of a column address C_ADD. In this case, the memory bank BK0 among the memory banks BK0 to BK3 of the memory 350 has been selected by the memory bank address BA.
[0068] exist Fig. 8A , X may mean that any column selection signal in the corresponding cell array is not activated. That is, the cell array indicated by X may mean that the cell array is a non-access cell array. It can be seen that when the value of the column address C_ADD is 0, the column selection signal is not activated in the cell array 510_0, and the column selection signal YI0 is activated in the cell arrays 510_1 to 510_16. In this case, the data selection circuit 540 may connect the column circuits 530_1 to 530_16 to the data bus 430. That is, when the value of the column address C_ADD is 0, the cell array 510_0 may be a non-access cell array.
[0069] It can be seen that when the value of the column address C_ADD is 1, the column selection signal is not activated in the cell array 510_1, and the column selection signal YI1 is activated in the cell arrays 510_0 and 510_2 to 510_16. In this case, the data selection circuit 540 can connect the column circuits 530_0 and 530_2 to 530_16 to the data bus 430. That is, when the value of the column address C_ADD is 1, the cell array 510_1 can be a non-access cell array.
[0070] When the metadata mode is deactivated, 128-bit data may be allocated by 8 bits and stored in the remaining cell arrays 510_0 to 510_16 except for the non-access cell array.
[0071] Reference FIG. 8A to FIG. 8D, it can be seen that when the value of the column address C_ADD is within the first range of 0 to 120, one of the cell arrays 510_0 to 510_15 becomes a non-access cell array. Which one of the cell arrays 510_0 to 510_15 will become a non-access cell array can be determined by the value of the column address C_ADD. For example, when the value of the column address C_ADD is 100, the cell array 510_4 can become a non-access cell array. When the value of the column address C_ADD is 101, the cell array 510_5 can become a non-access cell array. When the value of the column address C_ADD is within the first range of 0 to 120, the column selection signals with the same number in the remaining cell arrays except the non-access cell array can be activated.
[0072] When the value of the column address C_ADD is within the second range 121 to 127, the cell array 510_16 may become a non-access cell array, and column selection signals with different numbers in the cell arrays 510_0 to 510_15 may be activated. For example, when the value of the column address C_ADD is 121, column selection signals YI0 to YI15 with different numbers in the cell arrays 510_0 to 510_15 may be activated. In addition, when the value of the column address C_ADD is 125, column selection signals YI64 to YI79 with different numbers in the cell arrays 510_0 to 510_15 may be activated.
[0073] The column selection signal activated when the value of the column address C_ADD is within the second range 121 to 127 may be a column selection signal that has been excluded from access when the value of the column address C_ADD is within the first range 0 to 120. For example, when the value of the column address C_ADD is 0, the column selection signal YI0 of the cell array 510_0 may not be activated. On the contrary, when the value of the column address C_ADD is 121, the column selection signal YI0 of the cell array 510_0 may be activated. In addition, when the value of the column address C_ADD is 98, the column selection signal YI98 of the cell array 510_2 may not be activated. On the contrary, when the value of the column address C_ADD is 127, the column selection signal YI98 of the cell array 510_2 may be activated.
[0074] The data selection circuit 540 may connect the remaining column circuits 530_0 to 530_16 except the column circuits corresponding to the non-access cell arrays to the data bus 430. For example, when the value of the column address C_ADD is 8, the data selection circuit 540 may connect the column circuits 530_0 to 530_7 and 530_9 to 530_16 respectively corresponding to the remaining cell arrays 510_0 to 510_7 and 510_9 to 510_16 except the cell array 510_8 (i.e., the non-access cell array) to the data bus 430. In addition, when the value of the column address C_ADD is 100, the data selection circuit 540 can connect the column circuits 530_0 to 530_3 and 530_5 to 530_16 corresponding to the remaining cell arrays 510_0 to 510_3 and 510_5 to 510_16 except the cell array 510_4 (ie, the non-access cell array) to the data bus 430.
[0075] Each of the cell arrays 510_0 to 510_16 can be accessed by 121 column selection signals YI0 to YI120. However, by using a method of specifying a non-access cell array in the cell arrays 510_0 to 510_16 based on the value of the column address C_ADD, the value of the accessible column address C_ADD in the cell arrays 510_0 to 510_16 can range from 0 to 127.
[0076] like Figure 7 As shown, when the metadata mode is activated, the memory bank BK0 can be accessed by a column address C_ADD having a value of 0 to 120. FIG. 8A to FIG. 8D As shown, when the metadata mode is disabled, the memory bank BK0 can be accessed by the column address C_ADD having a value of 0 to 127. This can be achieved by using a non-access cell array when the value of the column address C_ADD is 121 to 127, and not using the non-access cell array when the value of the column address C_ADD is 0 to 120. By using such a method, it is possible to prevent the cell arrays 510_0 to 510_16 in the memory bank BK0 from being unused and wasted.
[0077] Fig. 9 The present invention is a diagram showing an embodiment of the present invention. Figure 3 The configuration of the memory 350 in FIG. Fig. 9 Description and Figure 4 The embodiment of the invention adds an ECC engine 940 compared to the embodiment of the invention.
[0078] Reference Fig. 9, the memory 350 may include a command / address receiving circuit 401, a data transmitting / receiving circuit 403, a control circuit 410, a memory bank selection circuit 420, a data bus 430, an ECC engine 940, and memory banks BK0 to BK3.
[0079] The ECC engine 940 may generate an error correction code by using the data or the data and metadata received by the data transmission / reception circuit 403 after the write operation starts. The data or the data and metadata and the error correction code generated by the ECC engine may be sent to the data bus 430. For example, when the metadata mode is deactivated, the ECC engine 940 may generate an 8-bit error correction code by using 128-bit data and send the 128-bit data and the 8-bit error correction code to the data bus 430. When the metadata mode is activated, the ECC engine 940 may generate an 8-bit error correction code by using 128-bit data and 8-bit metadata, and may send the 128-bit data, the 8-bit metadata, and the 8-bit error correction code to the data bus 430. Fig. 9 In the embodiment, Figure 4 Compared to the embodiment of FIG. 1 , after the write operation starts, the error correction code may also be stored in a selected memory bank among the memory banks BK0 to BK3 .
[0080] After the read operation starts, the ECC engine 940 may correct errors in the data or the data and metadata transmitted by the data bus 430 by using the error correction code transmitted by the data bus 430, and may send the error-corrected data or the data and metadata to the data transmission / reception circuit 403. For example, when the metadata mode is deactivated, the ECC engine 940 may correct errors in 128-bit data by using an 8-bit error correction code, and may send the error-corrected 128-bit data to the data transmission / reception circuit 403. When the metadata mode is activated, the ECC engine 940 may correct errors in 128-bit data and 8-bit metadata by using an 8-bit error correction code, and may send the error-corrected 128-bit data and 8-bit metadata to the data transmission / reception circuit 403.
[0081] The memory banks BK0 to BK3 may store data, metadata, and an error correction code when the metadata mode is activated, and may store data and an error correction code when the metadata mode is deactivated.
[0082] Fig. 9 It is shown that one ECC engine 940 is included in the memory 350 , but the ECC engine may also be included in each of the memory banks BK0 to BK3 .
[0083] Fig.10The present invention is a diagram showing an embodiment of the present invention. Fig. 9 FIG. 4 is a diagram showing the configuration of the memory bank BK0 in FIG.
[0084] Reference Fig.10 , the memory bank BK0 may include cell arrays 1010_0 to 1010_17 , row circuits 1020_0 to 1020_17 , column circuits 1030_0 to 1030_17 , and a data selection circuit 1040 .
[0085] Each of the cell arrays 1010_0 to 1010_17 may include a plurality of memory cells arranged in a plurality of rows and a plurality of columns. Fig.10 It can be seen that the number of cell arrays in the memory bank BK0 is Figure 5 The number of cell arrays in bank BK0 is one more because Fig.10 The memory bank BK0 also needs to store error correction codes. The columns of each of the cell arrays 1010_0 to 1010_17 can be Figure 6 That is, 121 column selection signals YI0 to YI120 may be used in each of the cell arrays 1010_0 to 1010_17.
[0086] The row circuits 1020_0 to 1020_17 may perform an activation operation of activating a row, which has been selected by the row address R_ADD, among a plurality of rows of the cell arrays 1010_0 to 1010_17.
[0087] The column circuits 1030_0 to 1030_17 can write data to the memory cells in the columns of the rows selected by the row circuits 1020_0 to 1020_17 in the cell arrays 1010_0 to 1010_17 and in the columns selected by the column address C_ADD, and can read data from the memory cells in the selected columns. That is, the column circuits 1030_0 to 1030_17 can perform operations of reading data from or writing data to the memory cells corresponding to the selected rows and selected columns in the cell arrays 1010_0 to 1010_17. The operations of the column circuits 1030_0 to 1030_17 may be different when the metadata mode is activated and when the metadata mode is deactivated. This will be described in detail later.
[0088] The data selection circuit 1040 may control the connection between the column circuits 1030_0 to 1030_17 and the data bus 1030. When the metadata mode is activated, the data selection circuit 1040 may connect all the column circuits 1030_0 to 1030_17 to the data bus 1030. That is, when the metadata mode is activated, 128-bit data may be transmitted and received between the column circuits 1030_0 to 1030_15 and the data bus 430, 8-bit metadata may be transmitted and received between the column circuit 1030_16 and the data bus 430, and 8-bit error correction code may be transmitted and received between the column circuit 1030_17 and the data bus 430.
[0089] When the metadata mode is disabled, the data selection circuit 1040 may connect some of the column circuits 1030_0 to 1030_17 to the data bus 430. When the metadata mode is disabled, which of the column circuits 1030_0 to 1030_17 will be connected to the data bus 430 by the data selection circuit 1040 may be determined by the column address C_ADD. This will be described in detail later.
[0090] Fig.11 It is used to describe the present invention according to the embodiment of the present invention. Fig. 9 When the metadata mode of the memory 350 is activated Fig.10 FIG. 1 is a diagram of a read operation and a write operation of a memory bank BK0 in the memory 350 based on the value of a column address C_ADD. In this case, the memory bank BK0 among the memory banks BK0 to BK3 of the memory 350 has been selected by the memory bank address BA.
[0091] Reference Fig.11 , it can be seen that when the value of the column address C_ADD is 0, the column selection signal YI0 is activated in the cell arrays 1010_0 to 1010_17. In addition, it can be seen that when the value of the column address C_ADD is 3, the column selection signal YI3 is activated in the cell arrays 1010_0 to 1010_17. 128-bit data can be allocated to the cell arrays 1010_0 to 1010_15 by 8 bits, read from the cell arrays 1010_0 to 1010_15, and written to the cell arrays 1010_0 to 1010_15. 8-bit metadata can be read from and written to the cell array 1010_16. 8-bit error correction code can be read from and written to the cell array 1010_17. In Fig.11 In FIG. 1010_16, (M) is marked in the sections of cell array 1010_16. This can be used to indicate that metadata is stored in these sections. In addition, Fig.11, (E) is marked in the portions of cell array 1010_17. This can be used to indicate that error correction codes are stored in these portions.
[0092] When the metadata mode is activated, the column address C_ADD may have a value of 0 to 120. The column circuits 1030_0 to 1030_17 may activate a column selection signal YI having the same value as the column address C_ADD. In addition, when the metadata mode is activated, the data selection circuit 1040 may connect all column circuits 1030_0 to 1030_17 to the data bus 430 because all cell arrays 1010_0 to 1010_17 are accessed.
[0093] FIG. 12A to FIG. 12D It is used to describe the present invention according to the embodiment of the present invention. Fig. 9 When the metadata mode of the storage 350 is disabled Fig.10 FIG. 1 is a diagram of a read operation and a write operation of a memory bank BK0 in the memory 350 based on the value of a column address C_ADD. In this case, the memory bank BK0 among the memory banks BK0 to BK3 of the memory 350 has been selected by the memory bank address BA.
[0094] exist Fig. 12A , X may mean that any column selection signal in the corresponding cell array is not activated. That is, the cell array indicated by X may mean a non-access cell array. It can be seen that when the value of the column address C_ADD is 0, the column selection signal is not activated in the cell array 1010_0, and the column selection signal YI0 is activated in the cell arrays 1010_1 to 1010_17. In this case, the data selection circuit 1040 may connect the column circuits 1030_1 to 1030_17 and the data bus 430. That is, when the value of the column address C_ADD is 0, the cell array 1010_0 may be a non-access cell array.
[0095] It can be seen that when the value of the column address C_ADD is 1, the column selection signal is not activated in the cell array 1010_1, and the column selection signal YI1 is activated in the cell arrays 1010_0 and 1010_2 to 1010_17. In this case, the data selection circuit 1040 can connect the column circuits 1030_0 and 1030_2 to 1030_17 to the data bus 430. That is, when the value of the column address C_ADD is 1, the cell array 1010_1 can be a non-access cell array.
[0096] When the metadata mode is disabled, 128 bits of data and 8 bits of error correction code may be allocated and stored in the remaining cell arrays 1010_0 to 1010_17 except for the non-access cell array by 8 bits. The cell array storing the error correction code in the cell arrays 1010_0 to 1010_17 is indicated by (E) together with the column selection signal. For example, when the value of the column address C_ADD is 0, 128 bits of data may be allocated and stored in the portion corresponding to the column selection signal YI0 of the cell arrays 1010_1 to 1010_16, and the 8 bits of error correction code may be stored in the portion corresponding to the column selection signal YI0 of the cell array 1010_17. When the value of the column address C_ADD is 1, 128-bit data can be allocated to and stored in the part corresponding to the column selection signal YI1 of the cell arrays 1010_0 and 1010_2 to 1010_16, and an 8-bit error correction code can be stored in the part corresponding to the column selection signal YI1 of the cell array 1010_17.
[0097] Reference FIG. 12A to FIG. 12D , it can be seen that when the value of the column address C_ADD is within the first range of 0 to 120, one of the cell arrays 1010_0 to 1010_16 becomes a non-access cell array. Which one of the cell arrays 1010_0 to 1010_16 will become a non-access cell array can be determined by the value of the column address C_ADD. For example, when the value of the column address C_ADD is 0 to 111, the cell arrays 1010_0 to 1010_15 can alternately become non-access cell arrays. When the value of the column address C_ADD is 112 to 120, the cell array 1010_16 can become a non-access cell array. When the value of the column address C_ADD is within the first range of 0 to 120, the column selection signals with the same number in the cell arrays other than the non-access cell arrays can be activated.
[0098] When the value of the column address C_ADD is within the second range 121 to 127, the cell array 1010_17 may become a non-access cell array, and column selection signals having different numbers in the cell arrays 1010_0 to 1010_16 may be activated. In addition, when the value of the column address C_ADD is within the second range 121 to 127, 128 bits of data may be allocated to and stored in the cell arrays 1010_0 to 1010_15, and an 8-bit error correction code may be stored in the cell array 1010_16. For example, when the value of the column address C_ADD is 125, column selection signals YI64 to YI79 and YI117 having different numbers in the cell arrays 1010_0 to 1010_17 may be activated. Furthermore, when the value of the column address C_ADD is 127, column selection signals YI96 to YI111 and YI119 having different numbers in the cell arrays 1010_0 to 1010_17 may be activated.
[0099] The column selection signal activated when the value of the column address C_ADD is within the second range 121 to 127 may be a column selection signal that has been excluded from access when the value of the column address C_ADD is within the first range 0 to 120. For example, when the value of the column address C_ADD is 0, the column selection signal YI0 of the cell array 1010_0 may not be activated. When the value of the column address C_ADD is 121, the column selection signal YI0 of the cell array 1010_0 may be activated. In addition, when the value of the column address C_ADD is 115, the column selection signal YI115 of the cell array 1010_16 may not be activated. When the value of the column address C_ADD is 123, the column selection signal YI115 of the cell array 1010_16 may be activated.
[0100] The data selection circuit 1040 may connect the remaining column circuits 1030_0 to 1030_17 except the column circuits corresponding to the non-access cell arrays to the data bus 430. For example, when the value of the column address C_ADD is 112, the data selection circuit 1040 may connect the column circuits 1030_0 to 1030_15 and 1030_17 respectively corresponding to the remaining cell arrays 1010_0 to 1010_15 and 1010_17 except the cell array 1010_16 (i.e., the non-access cell array) to the data bus 430. In addition, when the value of the column address C_ADD is 99, the data selection circuit 1040 can connect the column circuits 1030_0 to 1030_2 and 1030_4 to 1030_17 corresponding to the remaining cell arrays 1010_0 to 1010_2 and 1010_4 to 1010_17 except the cell array 1010_3 (i.e., the non-access cell array) to the data bus 430.
[0101] Each of the cell arrays 1010_0 to 1010_17 can be accessed by 121 column selection signals YI0 to YI120. However, by using a method of specifying a non-access cell array in the cell arrays 1010_0 to 1010_17 based on the value of the column address C_ADD, the value of the accessible column address C_ADD in the cell arrays 1010_0 to 1010_17 can range from 0 to 127.
[0102] like Fig.11 As shown in FIG. 1 , when the metadata mode is activated, the memory bank BK0 may be accessed through a column address C_ADD having a value of 0 to 120. FIG. 12A to FIG. 12D As shown, when the metadata mode is disabled, the memory bank BK0 can be accessed by the column address C_ADD having a value of 0 to 127. This can be achieved by using a non-access cell array when the value of the column address C_ADD is 121 to 127, and not using the non-access cell array when the value of the column address C_ADD is 0 to 120. By using such a method, it is possible to prevent the cell arrays 1010_0 to 1010_17 from being unused and wasted in the memory bank BK0.
[0103] The numbers shown in the above embodiments are merely examples and may be changed according to other embodiments. For example, after the read operation and write operation of the memory are started, the unit of reading and writing data may be 256 bits instead of 128 bits. The bit number of metadata may be a different bit number instead of 8 bits. The bit number of the error correction code may not be 8 bits. In addition, the non-access cell array determined based on the value of the column address may be different from that in the illustrated figure.
[0104] Although the embodiments according to the technical spirit of the present disclosure have been described above with reference to the accompanying drawings, the embodiments are provided only to describe the embodiments according to the concept of the present disclosure, and the present disclosure is not limited to these embodiments. Without departing from the technical spirit of the present disclosure recorded in the claims, a person of ordinary skill in the art to which the present disclosure belongs can replace, modify and change the embodiments in various ways. Such replacement, modification and change can be considered to belong to the scope of the present disclosure. In addition, these embodiments can be combined to form other embodiments.
Claims
1. A memory, include: Data sending / receiving circuit; as well as A memory bank includes a plurality of cell arrays, wherein: When the metadata mode is activated, data and metadata received by the data transmission / reception circuit are distributed to and stored in the plurality of cell arrays, and When the metadata mode is deactivated, the data received through the data transmission / reception circuit is distributed to and stored in cell arrays other than one or more non-access cell arrays among the plurality of cell arrays.
2. The memory according to claim 1, in, The one or more non-access cell arrays are determined by an address.
3. The memory according to claim 2, in, The address is a column address.
4. The memory according to claim 1, in, A first number of instances of column addresses accessible in the memory bank when the metadata mode is activated and a second number of instances of column addresses accessible in the memory bank when the metadata mode is deactivated are different from each other.
5. The memory according to claim 4, in, The second instance number of the column address is greater than the first instance number of the column address.
6. The memory according to claim 4, in: When the metadata mode is disabled, the range of values of the column address includes a first range and a second range, When the value of the column address is within the first range, accessing a column having the same position in each of the plurality of cell arrays except for the one or more non-access cell arrays, and When the value of the column address is within the second range, a column having a different position in each of the plurality of cell arrays except for the one or more non-access cell arrays is accessed.
7. The memory according to claim 4, in, When the metadata mode is activated, columns having the same position in the plurality of cell arrays are accessed.
8. The memory according to claim 1, further comprising a data bus for transmitting data between the data transmission / reception circuit and the memory bank, in, The memory bank further includes a data selection circuit for connecting the data bus and a cell array to be accessed among the plurality of cell arrays.
9. The memory according to claim 1, in, The data sending / receiving circuit: When the metadata mode is activated, after receiving the data through the plurality of data pads, receiving the metadata through the plurality of data pads; as well as When the metadata mode is disabled, the data is received through the plurality of data pads.
10. The memory according to claim 1, in, The memory includes a plurality of memory banks.
11. A memory, include: Data sending / receiving circuit; ECC engine; as well as A memory bank includes a plurality of cell arrays, wherein: the ECC engine: generating an error correction code by using the data and metadata received via the data transmission / reception circuit when the metadata mode is activated; and generating the error correction code by using the data received via the data transmission / reception circuit when the metadata mode is deactivated, When the metadata mode is activated, the data, the metadata, and the error correction code are allocated to and stored in the plurality of cell arrays, and When the metadata mode is deactivated, the data and the error correction code are allocated to and stored in cell arrays other than one or more non-access cell arrays among the plurality of cell arrays.
12. The memory according to claim 11, in, The one or more non-access cell arrays are determined by an address.
13. The memory according to claim 12, in, The address is a column address.
14. The memory according to claim 11, in, A first number of instances of column addresses accessible in the memory bank when the metadata mode is activated and a second number of instances of column addresses accessible in the memory bank when the metadata mode is deactivated are different from each other.
15. The memory according to claim 14, in, The second instance number of the column address is greater than the first instance number of the column address.
16. The memory according to claim 14, in: When the metadata mode is disabled, the range of values of the column address includes a first range and a second range, When the value of the column address is within the first range, accessing a column having the same position in each of the plurality of cell arrays except for the one or more non-access cell arrays, and When the value of the column address is within the second range, a column having a different position in each of the plurality of cell arrays except for the one or more non-access cell arrays is accessed.
17. The memory according to claim 14, in, When the metadata mode is activated, columns having the same position in the plurality of cell arrays are accessed.
18. The memory according to claim 11, in, The memory bank further comprises a data selection circuit, wherein: When the metadata mode is activated, sending the data, the metadata, and the error correction code to a cell array to be accessed among the plurality of cell arrays; as well as When the metadata mode is disabled, the data and the error correction code are transmitted to the cell array to be accessed among the plurality of cell arrays.
19. The memory according to claim 11, in, The data sending / receiving circuit: When the metadata mode is activated, after receiving the data through the plurality of data pads, receiving the metadata through the plurality of data pads; as well as When the metadata mode is disabled, the data is received through the plurality of data pads.
20. The memory according to claim 11, in, The memory includes a plurality of memory banks.
21. A memory system, include: a memory in which the number of instances of accessible column addresses varies according to a setting mode; as well as a memory controller that controls the memory, the memory controller comprising an address conversion circuit that converts a system address into a memory address for accessing the memory, The system address is converted into the memory address according to a method based on the setting mode change.
22. The memory system according to claim 21, in: The memory address includes a bank address, a row address and a column address, and The number of instances of the column address accessible when the metadata mode is activated is N, where N is an integer equal to or greater than 2, and The number of instances of the column address accessible when the metadata mode is disabled is M, where M is an integer greater than N.
23. The memory system according to claim 22, in, The address conversion circuit: When the metadata mode is activated, a quotient obtained by dividing the value of the system address by N is converted into the bank address and the row address, and a remainder is converted into the column address, and When the metadata mode is disabled, a quotient obtained by dividing the value of the system address by M is converted into the bank address and the row address, and the remainder is converted into the column address.
24. The memory system according to claim 21, in, The memory comprises: Data transmission / reception circuit; and A memory bank includes a plurality of cell arrays, wherein: When the metadata mode is activated, data and metadata received by the data transmission / reception circuit are distributed to and stored in the plurality of cell arrays, and When the metadata mode is deactivated, the data received through the data transmission / reception circuit is distributed to and stored in cell arrays other than one or more non-access cell arrays among the plurality of cell arrays.
