Semiconductor memory device
By adopting a parallel processing bus structure in a semiconductor memory device, the problem of data processing performance degradation during continuous same mask writing processing is solved, and parallel execution of multiple mask writing processing in the same memory bank is realized, improving improve processing efficiency.
Patent Information
- Application Number
- CN202410225976.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-02
- Filing Date
- 2024-02-29
- Publication Date
- 2024-09-03
Smart Images

Figure CN118585375A
Abstract
Description
Technical Field
[0001] The present disclosure relates to a semiconductor memory device. Background Art
[0002] As a semiconductor memory device, for example, there is a case where a DRAM (Dynamic Random Access Memory) having an ECC (Error Check and Correct) function that autonomously performs error correction processing on data is used. In addition, a DRAM having an ECC function and capable of performing a mask write process that rewrites only a portion of the data when writing data to the semiconductor memory device is known (Patent Document 1). According to the semiconductor memory device described in Patent Document 1, a plurality of mask write processes that are different from each other in the storage bodies that are the objects of data writing are pipelined, thereby suppressing a decrease in the data processing performance of the semiconductor memory device.
[0003] Prior art literature
[0004] Patent Literature
[0005] Patent Document 1: U.S. Patent Application Publication No. 2022 / 0245031A1 Summary of the invention
[0006] However, when a plurality of mask write processes are executed successively to access the same storage banks, the next mask write process cannot be executed unless the previous series of processes are completed, which results in a problem of reduced data processing performance.
[0007] The present disclosure can be implemented as the following embodiments.
[0008] According to one embodiment of the present disclosure, a semiconductor memory device is provided. The semiconductor memory device is capable of performing a mask write process, wherein the mask write process is a process of rewriting data having a data length smaller than a preset data access unit, and the semiconductor memory device comprises: a plurality of memory banks, each having a data recording unit for recording rewrite data and an ECC code recording unit for recording an error correction code corresponding to the rewrite data; a read amplifier provided in each of the plurality of memory banks, and performing reading and writing of data for each of the plurality of memory banks; an ECC code generating unit for generating the error correction code; an error correction unit for performing data error correction using the error correction code; a first bus for connecting each of the read amplifiers and the error correction unit, and transmitting the data output from each of the read amplifiers to the error correction unit; and a second bus for connecting the ECC code generating unit and the read amplifier, and transmitting the data output from the ECC code generating unit to each of the read amplifiers.
[0009] According to the semiconductor memory device of this embodiment, since the first bus and the second bus are provided, the output of data from the sense amplifier to the error correction unit and the input of data from the ECC code generation unit to the sense amplifier can be performed in parallel in the same memory bank. Therefore, even when a plurality of mask write processes are performed successively in the same memory banks as data write targets, as long as the columns as access targets are different from each other, the next mask write process can be performed in parallel without waiting for the completion of the previous mask write process, and the decline in data processing performance can be suppressed. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 This is an explanatory diagram showing a schematic structure of a semiconductor memory device according to the first embodiment.
[0011] Figure 2 This is a flowchart showing the procedure of the mask writing process according to the first embodiment.
[0012] Figure 3 This is a flowchart showing the procedure of the mask writing process according to the first embodiment.
[0013] Figure 4 This is a timing chart showing an example of the operation of the semiconductor memory device according to the first embodiment.
[0014] Figure 5 It is an explanatory diagram showing a schematic structure of a semiconductor memory device according to the second embodiment.
[0015] Figure 6 This is a flowchart showing the procedure of the mask writing process according to the second embodiment.
[0016] Figure 7This is a flowchart showing the procedure of the mask writing process according to the second embodiment.
[0017] Figure 8 This is a flowchart showing the procedure of the mask writing process according to the second embodiment.
[0018] Fig. 9 This is a timing chart showing an example of the operation of the semiconductor memory device according to the second embodiment. DETAILED DESCRIPTION
[0019] (First embodiment)
[0020] The semiconductor memory device 100 of the present embodiment reads and writes data in response to a request received from a computing device 200 such as a CPU or GPU (Graphics Processing Unit). In the present embodiment, the semiconductor memory device 100 is configured as LPDDR4 (Low Power DDR4), and is configured to be able to perform a mask write process in addition to a normal write process of data writing. "Mask write process" is a process of rewriting a portion of data read out in a data access unit pre-set as a specification of the semiconductor memory device 100 with newly input data having a smaller data length than the access unit and writing it back again. In addition, in the following description, a command requesting a mask write process issued from the computing device 200 is also referred to as a "mask write command".
[0021] In the following description, data longer than the data access unit is also referred to as "mask data". In addition, data whose part is rewritten by mask data is also referred to as "rewrite target data". In addition, a bit column in the rewrite target data that is rewritten by mask data is also referred to as "rewrite target portion". In the present embodiment, the mask data includes address information indicating an address of a storage area that holds the rewrite target data, and information indicating which bit column in the rewrite target data is to be the rewrite target portion.
[0022] like Figure 1 As shown, the semiconductor memory device 100 of this embodiment includes an input / output circuit 10, an input / output bus IOB, a plurality of memory banks B0 to B7, an ECC operation circuit 20, a main read bus MRB, and a main write bus MWB. In addition to the above-mentioned structure, the semiconductor memory device 100 also includes a clock generation circuit and various decoders, but since it is the same as the conventional LPDDR4, Figure 1 Illustration of these structures is omitted.
[0023] The input-output circuit 10 controls the input and output of data with the computing device 200. More specifically, the input-output circuit 10 inputs and outputs data according to a clock signal supplied from the outside of the semiconductor memory device 100 or a clock signal generated by a clock generation circuit (not shown) of the semiconductor memory device 100. In the present embodiment, the input-output circuit 10 has a data bus inversion (DBI) function. When the data input from the computing device 200 is bit-inverted, the input-output circuit 10 restores the data to the original data by bit-inverting it again. In this way, by performing DBI processing based on the DBI function when transmitting data containing many "0"s that consume more power than "1", power consumption during data transmission can be suppressed. In addition, the semiconductor memory device 100 may not have the DBI function.
[0024] The memory banks B0 to B7 respectively include a storage area ST, a sense amplifier SA, a read register RR, a write register WR, a local read bus LRB, and a local write bus LWB. The storage area ST is formed by arranging memory cells as storage elements in a matrix. The storage area ST included in the memory banks B0 to B3 among the memory banks B0 to B7 functions as a data recording unit 30 for holding write data written from the computing device 200. The storage area ST included in the memory banks B4 to B7 among the memory banks B0 to B7 functions as an ECC code recording unit 40 for holding an ECC code generated by an ECC code generating unit 22 described later in correspondence with data written to the data recording unit 30.
[0025] The sense amplifier SA is connected to the storage area ST, and reads data from the storage area ST and writes data to the storage area ST. More specifically, when data is read from the storage area ST according to a command issued from the operation device 200, the sense amplifier SA reads data stored in a memory cell designated by a row address selected by a row decoder (not shown) according to an address designated by a received active command. On the other hand, when data is written to the storage area ST according to a command issued from the operation device 200, the sense amplifier SA writes data stored in a memory cell designated by a row address designated when the active command is issued according to a received precharge command.
[0026] The read register RR is connected to the sense amplifier SA via the local read bus LRB, and is connected to the ECC operation circuit 20 via the main read bus MRB. When the sense amplifier SA outputs data to the memory cell, the read register RR temporarily holds the data output from the sense amplifier SA via the local read bus LRB, and outputs the data to the ECC operation circuit 20 via the main read bus MRB.
[0027] The write register WR is connected to the sense amplifier SA via the local write bus LWB, and is connected to the ECC operation circuit 20 via the main write bus MWB. When inputting data from the memory cell to the sense amplifier SA, the write register WR temporarily holds the data input from the ECC operation circuit 20 via the main write bus MWB, and inputs the data to the sense amplifier SA via the local write bus LWB. The output of data from the sense amplifier SA to the read register RR via the local read bus LRB and the input of data from the write register WR to the sense amplifier SA via the local write bus LWB can be performed in parallel.
[0028] The ECC operation circuit 20 is connected to the input / output circuit 10 via the input / output bus 10B. The ECC operation circuit 20 includes an error correction unit 21 and an ECC code generation unit 22.
[0029] The error correction unit 21 is interconnected with each read register RR of each storage body via the main read bus MRB. In this way, in the semiconductor memory device 100, a data transmission route that connects the read amplifier SA and the error correction unit 21 is formed through each local read bus LRB of each storage body, each read register RR of each storage body, and the main read bus MRB. In the following description, this data transmission route is also referred to as the "first bus". When reading data from the data recording unit 30, the error correction unit 21 also reads the ECC code corresponding to the read data from the ECC code recording unit 40, and when an error occurs in the read data, the error is corrected using the ECC code. The error correction unit 21 selects the storage body that becomes the read source of the read data and the storage body that becomes the read source of the ECC code according to the storage body address specified by the received mask write command.
[0030] The ECC code generation unit 22 is interconnected with each write register WR of each storage body via the main write bus MWB. In this way, in the semiconductor memory device 100, a data transmission route that connects the sense amplifier SA and the ECC code generation unit 22 is formed through each local write bus LWB of each storage body, each write register WR of each storage body, and the main write bus MWB. In the following description, this data transmission route is also referred to as the "second bus". When writing the rewrite data to the data recording unit 30, the ECC code generation unit 22 generates an error correction code (ECC code) corresponding to the rewrite data. The ECC code generation unit 22 selects the storage body that becomes the write destination of the rewrite data and the storage body that becomes the write destination of the ECC code according to the storage body address specified by the received mask write command.
[0031] In the above-mentioned mask writing process, the ECC code generation unit 22 receives the rewrite target data and the mask data, and rewrites the rewrite target portion of the rewrite target data with the mask data. In the present embodiment, this process is executed by inputting the rewrite target data and the mask data to a multiplexer (not shown) provided in the ECC code generation unit 22.
[0032] When a mask write command is issued from the computing device 200, the semiconductor memory device 100 executes Figure 2 and Figure 3 In this embodiment, when the access target memory banks are different from each other, or when the access target memory banks are the same and the access target columns are different from each other, the semiconductor memory device 100 can execute a plurality of mask write processes in parallel.
[0033] exist Figure 2 In S10 shown in FIG. 1 , the semiconductor memory device 100 receives a mask write command from the computing device 200. Thereafter, the semiconductor memory device 100 performs the following steps: Figure 2 As shown, the processes of S20, S30, and S40 are executed in parallel with the processes of S22, S32, S42, S52, and S62.
[0034] In S20 , the semiconductor memory device 100 receives the mask data from the computing device 200 in the input / output circuit 10 .
[0035] In S30 , the semiconductor memory device 100 executes the above-described DBI process using the mask data as a target in the input / output circuit 10 .
[0036] In S40 , the semiconductor memory device 100 transmits the mask data from the input / output circuit 10 to the ECC code generation unit 22 .
[0037] In S22, the semiconductor memory device 100 reads the rewrite object data and the ECC code corresponding to the rewrite object data from the storage area ST to the read amplifier SA. More specifically, the semiconductor memory device 100 reads the rewrite object data from the data recording unit 30 of the storage body specified by the mask write command in the storage bodies B0 to B3 to the read amplifier SA connected to the data recording unit 30. In addition, the semiconductor memory device 100 reads the ECC code from the ECC code recording unit 40 that holds the ECC code generated corresponding to the rewrite object data in the storage bodies B4 to B7 to the read amplifier SA connected to the ECC code recording unit 40. In addition, since the storage body holding the rewrite object data and the storage body holding the ECC code are different from each other, the above-mentioned processing is performed independently in each storage body.
[0038] In S32, the semiconductor memory device 100 transfers the rewriting target data and the ECC code from the sense amplifier SA to the read register RR via the local read bus LRB. Similar to the above-mentioned S22, this process is executed independently in each bank.
[0039] In S42 , the semiconductor memory device 100 transfers the rewrite target data and the ECC code from the read register RR to the error correction unit 21 via the main read bus MRB.
[0040] In S52 , the semiconductor memory device 100 uses the ECC code in the error correction unit 21 to perform error correction on the rewrite target data.
[0041] In S62 , the semiconductor memory device 100 transfers the rewrite target data from the error correction unit 21 to the ECC code generation unit 22 .
[0042] After S40 and S62, Figure 3 In S70 shown, the semiconductor memory device 100 replaces the rewrite target portion of the rewrite target data with the mask data in the error correction unit 21 to generate rewrite data.
[0043] In S80 , the semiconductor memory device 100 generates an ECC code corresponding to the rewrite data in the ECC code generation unit 22 .
[0044] In S90 , the semiconductor memory device 100 transfers the rewrite data and the ECC code from the ECC code generation unit 22 to the write register WR via the master write bus MWB.
[0045] In S100 , the semiconductor memory device 100 transfers rewrite data and an ECC code from the write register WR to the sense amplifier SA via the local write bus LWB.
[0046] In S110, the semiconductor memory device 100 writes the rewrite data and the ECC code from the sense amplifier SA to the storage area ST, respectively. As described above, the semiconductor memory device 100 ends the mask write process.
[0047] Reference Figure 4 An example of a timing chart in which a plurality of mask write processes are executed in parallel in the semiconductor memory device 100 according to the present embodiment will be described in more detail. Figure 4 In FIG. 1 , the horizontal axis represents the elapsed time using the number of clocks CLK, and the rectangular area represented by hatching indicates that each element constituting the semiconductor memory device 100 shown on the vertical axis is used during the clock interval represented by the rectangular area.
[0048] Figure 4 , the case where mask write commands MWR1 to MWR4 are received at clock numbers CLK0, 8, 16, and 24, respectively. In other words, the semiconductor memory device 100 takes clock number 8 as one cycle and receives one mask write command per one cycle. Mask write commands MWR1 to MWR4 are commands requesting mask write processing in which the access target storage banks are the same and the access target columns are different.
[0049] As described above, the semiconductor memory device 100 of the present embodiment has the local read bus LRB and the local write bus LWB, so that data output from the sense amplifier SA to the read register RR via the local read bus LRB and data input from the write register WR to the sense amplifier SA via the local write bus LWB can be performed in parallel with each other. Figure 4 As shown by the number of clocks CLK28 to 32, the write operation and the read operation can be performed in parallel in the sense amplifier SA in the same bank. In addition, in the case of a mask write command requesting mask write processing for different banks, since the sense amplifier SA for performing the write operation and the sense amplifier SA for performing the read operation are different from each other, the write operation and the read operation can be performed in parallel in each sense amplifier SA.
[0050] In contrast, in a semiconductor memory device having a structure in which a bus extending from a sense amplifier branches and is connected to a read register and a write register respectively, in the same memory bank, regarding data output from the sense amplifier to the read register and data input from the write register to the sense amplifier, during the execution of one of the processes, the other process cannot be executed. Therefore, in the semiconductor memory device of this structure, it is necessary to delay the reception of the subsequent mask write command so that the write action and the read action of the sense amplifier are not performed in parallel, so the data processing performance when executing the mask write process is reduced. According to the semiconductor memory device 100 of this embodiment, such a problem can be avoided, so that the reduction of data processing performance when executing multiple mask write processes can be suppressed.
[0051] According to the semiconductor memory device 100 of the first embodiment described above, since the first bus and the second bus are provided, the output of data from the sense amplifier SA to the error correction unit 21 and the input of data from the ECC code generation unit 22 to the sense amplifier SA can be performed in parallel in the same memory bank. Therefore, even when a plurality of mask write processes of the same memory bank as the access target are successively performed, as long as the columns as the access target are different from each other, the next mask write process can be performed in parallel without waiting for the completion of the previous mask write process, and the reduction of data processing performance can be suppressed.
[0052] (Second embodiment)
[0053] The semiconductor memory device 100A of the second embodiment is as follows Figure 5 As shown in FIG. 1 , the semiconductor memory device 100A of the second embodiment is different from the semiconductor memory device 100 of the first embodiment in that the buffers BF1 to BF3 are provided. In addition, the semiconductor memory device 100A of the second embodiment is different from the semiconductor memory device 100 of the first embodiment in that, in the mask writing process, Figure 6 Execute as shown Figure 8 S12 and S14 shown in FIG. Figure 7 The device structure of the semiconductor memory device 100A of the second embodiment and other procedures in the mask writing process are the same as those of the semiconductor memory device 100 of the first embodiment, so the same structures and procedures are given the same reference numerals and their detailed description is omitted.
[0054] like Figure 5As shown, the semiconductor memory device 100A further includes buffers BF1 to BF3, a buffer write bus BWB, and a buffer read bus BRB. In addition, in the present embodiment, the number "3" of buffers BF1 to BF3 is equivalent to the number obtained by subtracting 1 from the number "4" of cycles required from the start to the end of the above-mentioned mask write process. In addition, the number of buffers is not limited to 3, and more than 4 may be provided.
[0055] The buffers BF1 to BF3 are connected to the ECC code generator 22 via the buffer write bus BWB and the buffer read bus BRB, respectively. The buffers BF1 to BF3 store buffer data input from the ECC code generator 22 via the buffer write bus BWB. "Buffer data" refers to information indicating the rewrite data and the write destination storage body address and the write destination column address of the rewrite data, which are output when the rewrite data is written from the ECC code generator 22 to the sense amplifier SA. By making the buffer store the buffer data, even before the rewrite data by the mask write process is written back to the data recording unit 30, the rewrite data related to the most recent mask write process can be used in the subsequent mask write process. The details of this effect will be described later.
[0056] The buffers BF1 to BF3 output the buffer data to the ECC code generation unit 22 via the buffer read bus BRB.
[0057] Buffers BF1 to BF3 store buffer data from the time the buffer data is stored until a preset number of clocks has passed, and delete the retained buffer data after the number of clocks has passed. In the present embodiment, buffers BF1 to BF3 delete the retained buffer data after three cycles have passed. This is because after three cycles have passed since the buffer data was stored, the write-back of the rewritten data to the data recording unit 30 by the mask write process is completed. Therefore, when the next mask write process is executed, the rewritten data related to the most recent mask write process retained in the data recording unit 30 can be used, and the data stored in the buffer no longer needs to be used. In addition, the preset number of cycles "3" from the time the buffer data is stored to the time it is deleted is equivalent to the number "3" of buffers BF1 to BF3.
[0058] exist Figure 6 to Figure 8 In the mask writing process of the second embodiment shown in FIG. Figure 6 As shown, after S10, in parallel with S20, S30, and S40, Figure 8In S12 shown, the semiconductor memory device 100A determines whether there is an address consistent buffer. An "address consistent buffer" refers to a buffer in which the write destination storage body address and the write destination column address held as buffer data in the buffers BF1 to BF3 are consistent with the write destination address of the object data of the received mask write command. In the case where there is no address consistent buffer ("No" in S12), the semiconductor memory device 100A sequentially executes the processing after S22 in the same manner as in the first embodiment, and reads the rewrite object data from the data recording unit 30 to the ECC code generation unit 22 in the same manner as in the first embodiment.
[0059] If the address coincidence buffer exists (Yes in S12), the semiconductor memory device 100A transfers the rewritten data held in the address coincidence buffer to the ECC code generator 22 (S14). Figure 7 In S70 shown, the data read from the address match buffer is regarded as rewrite target data, and rewrite data is newly generated in the ECC code generation unit 22.
[0060] exist Figure 7 After S80 shown in the figure, in parallel with S90 to S110, in S120, the semiconductor memory device 100A writes buffer data to any of the buffers BF1 to BF3. The semiconductor memory device 100A selects the buffer from which data was read in S14 above among the buffers BF1 to BF3, and rewrites the buffer data held in the buffer with buffer data containing new rewrite data. In addition, when the buffer data held in the buffer is deleted due to the passage of time as described above, the buffer data containing new rewrite data is newly written to the free buffer.
[0061] Reference Fig. 9 An example of a timing diagram for executing a plurality of mask write processes in parallel in the semiconductor memory device 100A of the second embodiment shown in FIG. 1 is described in more detail. The horizontal axis represents the elapsed time by the clock number CLK, and the rectangular area represented by hatching or cross-hatching represents that each element constituting the semiconductor memory device 100A shown on the vertical axis is used during the clock interval represented by the rectangular area. In addition, the rectangular area represented by hatching represents that it is used in the mask write process related to the mask write command MWR5, and the rectangular area represented by cross-hatching represents that it is used in the mask write process related to the mask write command MWR6.
[0062] exist Fig. 92 shows a case where mask write commands MWR5 and MWR6 are received at clock numbers CLK0 and CLK8, respectively. Mask write commands MWR5 and MWR6 are commands that request the same mask write process to be performed on the access target memory bank and column.
[0063] In the mask write process related to the mask write command MWR5, the rewrite target data is read from the storage area ST to the sense amplifier SA at CLK4 to 8. Then, after the transfer via the local read bus LRB, the transfer via the main read bus MRB, and the error correction in the error correction unit 21, the rewrite target data is transferred to the ECC code generation unit 22. Furthermore, after the processing in the ECC code generation unit 22 is completed, the buffer data is output from the ECC code generation unit 22 at CLK20 in parallel with the output of the rewrite data to the sense amplifier SA, and the buffer data is stored in the buffer BF1. Fig. 9 In FIG. 1 , the hatched rectangular area indicates that the buffer data stored in the buffer BF1 at CLK20 to 26 is buffer data related to the mask write command MWR5 .
[0064] In the mask write process related to the mask write command MWR6, buffer data related to the mask write command MWR6 having the same access target address as the mask write command MWR5 is stored in the buffer BF1. Fig. 9 The read operation in the sense amplifier SA, the transfer via the local read bus LRB, the transfer via the main read bus MRB, and the error correction in the error correction unit 21 are omitted as shown in the rectangular area surrounded by the thick solid line without hatching. In CLK22, the transfer of the rewrite target data from the buffer BF1 to the ECC code generation unit 22 is performed via the buffer read bus BRB. In this way, the semiconductor memory device 100A can perform the processing in the ECC code generation unit 22 using the buffer data stored in the buffer BF1 before the write back of the rewrite data related to the mask write command MWR5 to the data recording unit 30 is completed.
[0065] After the processing in the ECC code generation unit 22 is completed, the semiconductor memory device 100A rewrites the buffer BF1 with new buffer data at CLK28 in parallel with the output of the rewrite data to the sense amplifier SA. Fig. 9 In FIG. 1 , the cross-hatched rectangular area indicates that the buffer data stored in the buffer BF1 at CLK28 to 50 is the buffer data related to the mask write command MWR6. The buffer data stored in BF1 is deleted after three cycles at CLK52.
[0066] In the mask write process related to the mask write command MWR6, when the read process in the sense amplifier represented by the thick solid line is executed in CLK12, the mask write process is executed based on the old data before the mask write process related to the mask write command MWR5 is completed, and data mismatch occurs. Therefore, in a semiconductor memory device that does not have a buffer, when executing multiple mask write processes with the same storage bodies and columns as access objects, in order to avoid data mismatch, it is necessary to delay the reception of the subsequent mask write command so that the next mask write process is started after the rewrite data performed by the previous mask write process is written back to the data recording unit. Therefore, in a semiconductor memory device with such a structure, the data processing performance when the mask write process is executed is reduced. According to the semiconductor memory device 100A of this embodiment, such a problem can be avoided, so that the reduction of data processing performance when multiple mask write processes are executed can be further suppressed.
[0067] According to the semiconductor memory device 100A of the second embodiment described above, since the buffers BF1 to BF3 for storing buffer data are provided, when mask write processing is continuously performed for the same access target memory banks and columns, the next mask write processing can be performed using buffer data read from any of the buffers BF1 to BF3 even before the rewrite data is written back to the data recording unit 30 by the previous mask write processing. Therefore, even if the access target memory banks and columns are the same, the next mask write processing can be performed in parallel without waiting for the completion of the previous mask write processing, and the decline in data processing performance can be further suppressed.
[0068] (Other embodiments)
[0069] According to the above-mentioned embodiment, in the semiconductor memory device 100 and the semiconductor memory device 100A, the first bus is formed by the local read bus LRB, the read register RR and the main read bus MRB, and the second bus is formed by the local write bus LWB, the write register WR and the main write bus MWB, but the present disclosure is not limited to this. The read amplifier SA and the error correction unit 21 can also be directly connected through the main read bus MRB. In this embodiment, the main read bus MRB is equivalent to the "first bus" in the present disclosure. In addition, the read amplifier SA and the ECC code generation unit 22 can also be directly connected through the main write bus MWB. In this embodiment, the main write bus MWB is equivalent to the "second bus" in the present disclosure. The semiconductor memory device according to this embodiment can also achieve the same effect as the above-mentioned embodiment.
[0070] In the first embodiment described above, the effect achieved by the semiconductor memory device 100 is described by taking the case where a plurality of mask write processes are performed in which the memory banks to be accessed are the same and the columns to be accessed are different as an example, but the present disclosure is not limited thereto. In the case where the mask write process is performed in which the memory banks to be accessed in the write process are the same and the columns to be accessed are different, following the write process in which only data is written, the semiconductor memory device 100 also achieves the same effect as the above embodiment. This is because, in this case, the write operation of the write process and the read operation of the mask write process can be performed in parallel in the sense amplifier SA of the same memory bank.
[0071] In the above-mentioned second embodiment, the effect achieved by the semiconductor memory device 100A is described by taking the case where a plurality of mask write processes are executed in which the storage bodies and columns to be accessed are identical to each other as an example, but the present disclosure is not limited to this. In the case where a mask write process is executed in which the storage bodies and columns to be accessed in the write process are identical to each other following a write process in which only data is written, the semiconductor memory device 100A also achieves the same effect as the above-mentioned embodiment. This is because, in this case, after the processing related to the write process in the ECC code generation unit 22 is completed, the buffer data is stored in the buffer, and before the writing of the data of the write process is completed, the mask write process can be executed in parallel using the buffer data.
[0072] In the above embodiment, the data recording unit 30 and the ECC code recording unit 40 are implemented in the storage area ST of different storage bodies, but the present disclosure is not limited to this. The data recording unit 30 and the ECC code recording unit 40 can also be implemented in the storage area ST of the same storage body. For example, 128 bits of data and 8 bits of ECC code corresponding to the data can be maintained in the storage unit specified by the same row address in the storage area ST of the same storage body, which is specified by the row address and read to the sense amplifier SA. The semiconductor memory device according to this embodiment also achieves the same effect as the above embodiment. In addition, since the reading and writing of the corresponding data and ECC code to the storage area ST can be realized by reading and writing once in one storage body, the decline of data processing performance can be suppressed compared with the embodiment in which the data and the ECC code are read and written separately in different storage bodies.
[0073] The present disclosure is not limited to the above-mentioned embodiments, and can be implemented in various structures within the scope of the main purpose. For example, the technical features in each embodiment corresponding to the technical features in the embodiments recorded in the invention summary column can be appropriately replaced or combined in order to solve part or all of the above-mentioned problems or to achieve part or all of the above-mentioned effects. In addition, the technical features can be appropriately deleted as long as they are not described as necessary technical features in this specification.
Claims
1. A semiconductor memory device capable of executing a mask write process, wherein the mask write process is a process of rewriting data having a length smaller than a preset data access unit, wherein: have: A plurality of storage bodies having a data recording section for recording rewrite data and an ECC code recording section for recording an error correction code corresponding to the rewrite data; a sense amplifier provided in each of the plurality of memory banks and performing reading and writing of data for each of the plurality of memory banks; An ECC code generating unit, generating the above-mentioned error correction code; An error correction unit, which uses the error correction code to correct the errors in the data; a first bus connecting each of the sense amplifiers and the error correction unit to transmit data output from each of the sense amplifiers to the error correction unit; and The second bus connects the ECC code generation unit and the sense amplifiers to transmit data output from the ECC code generation unit to the sense amplifiers.
2. The semiconductor memory device according to claim 1, wherein: The invention also includes a plurality of buffers, the plurality of buffers storing buffer data representing the rewrite data, the write destination storage body address of the rewrite data, and the write destination column address of the rewrite data, wherein the plurality of buffers are provided with a number greater than a number obtained by subtracting 1 from the number of cycles required from the start to the end of the mask write process, After storing the buffer data, the plurality of buffers delete the buffer data when a number of cycles equal to the number of the plurality of buffers has passed. The semiconductor memory device performs the mask write process using the rewrite data read from the address consistent buffer when there is an address consistent buffer in which the write destination storage body address and the write destination column address stored in the buffer are consistent with the write destination address of the object data of the mask write process. When the address matching buffer does not exist, the mask writing process is performed using the rewrite data read from the sense amplifier included in the memory bank indicated by the write destination address.
