Data processing circuit of memory and memory
By alternately sampling and writing data in the memory, the problem of write data errors caused by the difference between the write enable signal and the data delay under high-speed IO rates is solved, achieving higher writing accuracy and memory stability. sex.
Patent Information
- Application Number
- CN202410685783.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-06
AI Technical Summary
At high-speed IO rates, the delay difference between the write enable signal and data in the memory causes write data errors. Especially in the case of full bandwidth read and write, clock mismatch leads to write data errors.
The original write data is alternately sampled through the data expansion circuit to obtain the first write data and the second write data with lower frequency, and is written through different data lines of the same column of memory cells, extending each data line. The write window on the CPU reduces write data errors caused by clock mismatch.
It effectively reduces errors in writing data and improves the accuracy of writing data. It also reduces the occurrence of sampling errors by alternately writing data lines and improves the accuracy of memory writing.
Smart Images

Figure CN118609631A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of memory, and in particular to a data processing circuit of a memory and a memory. Background Art
[0002] The high-speed serial data received on the memory data transmission port (DQ, Data Queue) is finally written into the non-volatile storage medium through the internal serial-to-parallel conversion circuit. The serial-to-parallel conversion of the data signal is achieved by sampling the data through the port's clock signal and clock division signal to achieve deserialization. Finally, the serial data at the medium end will be converted into a set of parallel data buses. The clock division signal is further divided to obtain a write enable signal for writing data to the storage medium. This signal needs to maintain a certain phase relationship with the data, and the data is correctly sampled and written into the storage medium.
[0003] However, with the continuous increase in IO (Input Output) rates, under full bandwidth reading and writing conditions, the data writing time between different addresses is correspondingly shortened, and there is a difference in the delay between the write enable signal and the data, which can easily lead to write data errors. Summary of the invention
[0004] In view of this, an embodiment of the present application provides a data processing circuit of a memory and a memory.
[0005] On the one hand, an embodiment of the present application provides a data processing circuit of a memory, wherein the memory includes a memory cell array; the data processing circuit includes:
[0006] A data expansion circuit, comprising a data receiving end for receiving original write data, a first output end and a second output end; the first output end and the second output end are respectively used to output first write data and second write data obtained by alternately sampling the original write data;
[0007] The signal of the original write data has a first frequency; the signals of the first write data and the second write data have a second frequency; the second frequency is less than the first frequency;
[0008] The first output end is connected to a first data line; the second output end is connected to a second data line; the first data line and the second data line are respectively connected to the same column of storage units in the memory.
[0009] In some embodiments, the data expansion circuit further includes:
[0010] A delay unit, the input end of which is connected to the data receiving end, and the output end of which is used to output delayed write data obtained by delaying the original write data for a first time period;
[0011] a first sampling unit, whose input end is connected to the data receiving end, and whose output end is used to output the first written data after the original written data is sampled at the second frequency;
[0012] The second sampling unit has an input end connected to the output end of the delay unit, and an output end used to output the second write data after the delayed write data is sampled at the second frequency.
[0013] In some embodiments, the data expansion circuit further includes:
[0014] A clock frequency dividing unit, whose input end is used to receive the original clock signal, whose output end is respectively connected to the clock signal ends of the first sampling unit and the second sampling unit, and is used to output the frequency-divided clock signal;
[0015] Among them, the frequency of the original clock signal is the first frequency; the frequency of the divided clock signal is the second frequency; and the clock signal end of the delay unit is used to receive the original clock signal.
[0016] In some embodiments, the data processing circuit further includes:
[0017] A plurality of data selection circuits, each of which comprises a first data terminal, a second data terminal, a selection terminal and a data output terminal;
[0018] Among them, the first data end is connected to the first data line; the second data end is connected to the second data line; the data output end is connected to one of the storage units; the selection end is used to receive a data selection signal; the data selection signal is used to switch the data output end to output the first write data or the second write data.
[0019] In some embodiments, the data processing circuit further includes:
[0020] The selection signal generating unit is used to divide the frequency of the original clock signal and output the data selection signal with a third frequency; the third frequency is smaller than the second frequency.
[0021] In some embodiments, the data processing circuit further includes:
[0022] A write enable generation circuit is used to output a write enable signal based on an original clock signal and a write address signal; the write enable signal is used to turn on the storage unit indicated by the write address signal, so that the first write data or the second write data is written into the storage unit.
[0023] In some embodiments, the write enable generation circuit includes:
[0024] An AND gate unit, wherein the input end is used to receive the original clock signal and the write address signal respectively; the output end is used to output the write enable signal; the write enable signal includes a clock pulse when the write address signal is valid.
[0025] In some embodiments, the data processing circuit further includes:
[0026] The serial-to-parallel conversion circuit is respectively connected to a plurality of serial data terminals for receiving input data, and is used for converting the input data into parallel original write data.
[0027] On the other hand, an embodiment of the present application provides a memory, including:
[0028] A memory cell array;
[0029] Peripheral circuit; wherein the peripheral circuit includes a data processing circuit as described in any one of the above.
[0030] In some embodiments, the memory is a phase change memory.
[0031] The embodiment of the present application utilizes a data expansion circuit to alternately sample the original write data to obtain first write data and second write data with lower frequencies, and writes them through the first data line and the second data line connected to the same column of storage cells, respectively. In this way, since the data to be written to the same column of storage cells are alternately written through different data lines, the window for writing data on each data line is larger, thereby reducing write data errors caused by clock mismatch. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a transmission path for writing data to a memory in an embodiment of the present application;
[0033] Figure 2 A schematic diagram of a write data bus architecture of a memory in an embodiment of the present application;
[0034] Figure 3 A timing diagram of a memory write data related signal in an embodiment of the present application;
[0035] Figure 4 A schematic diagram of the structure of a data processing circuit of a memory provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of a data bus architecture of a storage array corresponding to a data processing circuit provided in an embodiment of the present application;
[0037] Figure 6 A comparison diagram of the signal timing of writing data implemented by the data processing circuit provided in the embodiment of the present application and the signal timing of writing data in the related art;
[0038] Figure 7 A schematic diagram of the structure of a data expansion circuit in a data processing circuit provided in an embodiment of the present application;
[0039] Figure 8 A schematic diagram of the structure of another data expansion circuit in the data processing circuit provided in an embodiment of the present application;
[0040] Fig. 9 A schematic diagram of the structure of a data selection circuit in a data processing circuit provided in an embodiment of the present application;
[0041] Fig.10 A structural schematic diagram of a selection signal generating unit in a data processing circuit provided in an embodiment of the present application;
[0042] Fig.11 A schematic diagram of the structure of a write enable signal generating circuit in a data processing circuit provided in an embodiment of the present application;
[0043] Fig.12 A schematic diagram of the circuit structure of a write enable signal generating circuit in a data processing circuit provided in an embodiment of the present application;
[0044] Fig.13 A schematic diagram of the structure of a serial-to-parallel conversion circuit in a data processing circuit provided in an embodiment of the present application;
[0045] Fig.14 A structural block diagram of a memory provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the embodiments of the present application and the accompanying drawings to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] In the following description, a large number of specific details are given to provide a more thorough understanding of the present application. However, it is obvious to those skilled in the art that the present application can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present application, some technical features known in the art are not described; that is, all features of the actual embodiments are not described here, and well-known functions and structures are not described in detail.
[0048] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present application. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0049] In order to thoroughly understand the present application, detailed steps and detailed structures will be presented in the following description to illustrate the technical solution of the present application. The preferred embodiments of the present application are described in detail below, but in addition to these detailed descriptions, the present application may also have other implementation methods.
[0050] The memory involved in the embodiments of the present application can be various types of memory. For example, it can be a volatile memory, including a random access memory (RAM), etc.; it can also be a non-volatile memory, such as a read-only memory (ROM), a flash memory (NAND Flash Memory), etc., in particular, it can also be a phase change memory (PCM), a selector only memory (SOM), etc.
[0051] Taking PCM as an example, the high-speed serial data received on its data transmission port (DQ) is finally written into the non-volatile storage medium through the internal serial-to-parallel conversion circuit. Figure 1 An exemplary memory write data transmission path is shown, as shown in FIG. Figure 1 As shown, the serial data dq <0> To dq <n-1>The first serial-to-parallel conversion unit 110 is input through the input buffer unit 100 (inbuf) and the clock signal (such as Figure 1 The dqs signal and ck signal shown in the figure, wherein dqs_c and dqs_t are complementary signals with opposite phases; ck_c and ck_t are complementary signals with opposite phases) are deserialized (the clock signal can also be input through the input buffer unit 100), and converted into parallel data (pdio<(8n-1):0>) of the first bit width (such as 8bit); then the clock division signal ckx4 (that is, the above-mentioned clock signal, such as the signal obtained after the ck signal is divided by four) is sampled through the second serial-to-parallel conversion unit 120 to obtain a group of parallel data buses (wtd<(32n-1):0>), and at the same time, the clock division signal ckx4 is further divided by four to obtain a write enable signal (write_clk) for writing data to the storage medium. This signal needs to maintain a certain phase relationship with the data, and the data is correctly sampled and written into the storage medium.
[0052] In PCM memory, there is a phenomenon that the written data is not synchronized with the write enable signal (write_clk). The reason is that as the IO rate continues to increase, the data writing time between different addresses is correspondingly shortened when reading and writing at full bandwidth. The inconsistency between the write enable signal and the data routing path written to different storage blocks (banks) leads to a difference in the delay between the two. Especially with the change of PVT (Process / Voltage / Temperature), when the IO rate reaches a certain value, the delay error will cause the write enable signal to sample the edge of the data (such as Figure 2 As shown), resulting in write data errors.
[0053] Figure 2 The bus architecture of writing data at the PCM storage array end is shown. Each data line 101 is connected to a column of storage cells 102, and under the action of the write enable signal 103 and the address signal, the data (wtd<(a-1):0>) is stored in the specified storage cell. Figure 2 The storage unit 00, storage unit 01, storage unit 02 and storage unit 03 are shown. Figure 3 As shown in the signal timing diagram, the address signal (bank_addr<3:0>) is used to indicate the address of the write data, and the write enable signal (write_clk) is used to open the storage unit specified by the address signal and store the corresponding data (wtd<(a-1):0>) in the storage unit. Figure 3 The write window (data_window) of each data signal is shown in FIG. 1 . It can be seen that in the case of full bandwidth reading and writing, the write window is small, and the sampling pulse of the write enable signal easily falls on the edge of the signal window, thereby causing sampling errors.
[0054] Taking the transmission rates of 1.6 Gbps and 3.2 Gbps as examples, the following Table 1 illustrates the intervals of storage array data writes under some different configurations. It can be seen that with the continuous increase in IO rate, the minimum interval of C2C (command to command) in the full bandwidth write condition continues to decrease. When the interval of writing data is as small as 5ns or less, the error between the routing of the written data and the write enable signal relative to the data interval time continues to increase, and the phenomenon of insufficient margin for writing data time will occur, and the difficulty of designing the interface circuit of the write data storage array increases.
[0055]
[0056]
[0057] Table 1
[0058] As can be seen from Table 1, when the IO rate increases from 1.6 Gbps to 3.2 Gbps, the C2C interval in various cases is shortened exponentially, especially when the amount of data written in a CMD (Command) is 8 Bytes, the C2C interval of 8-DQ is only 2.5 ns; the C2C interval of 16-DQ is only 1.25 ns.
[0059] In some embodiments, the data sampling accuracy can be improved by matching the write enable signal line with the data signal line through routing on the layout. This will not only greatly increase the area cost, but also when the C2C interval is small to a certain value, there will still be a situation where the sampling data margin is insufficient.
[0060] In view of this, an embodiment of the present application provides a data processing circuit of a memory, the memory comprising a memory cell array; Figure 4 The data processing circuit 200 shown comprises:
[0061] The data expansion circuit 300 comprises a data receiving terminal 301 for receiving original write data, a first output terminal 302 and a second output terminal 303; the first output terminal 302 and the second output terminal 303 are respectively used to output first write data data1 and second write data data2 obtained by alternately sampling the original write data data0;
[0062] The signal of the original written data data0 has a first frequency; the signals of the first written data data1 and the second written data data2 have a second frequency; the second frequency is less than the first frequency;
[0063] The first output end 302 is connected to the first data line 201 ; the second output end 303 is connected to the second data line 202 ; the first data line 201 and the second data line 202 are respectively connected to the same column of storage units in the memory.
[0064] Here, the original write data may be parallel data to be written into the storage unit. If the original write data is written directly, each write enable signal samples one data. In the embodiment of the present application, the original write data is alternately sampled by the data expansion circuit 300 to obtain two sets of write data with lower frequencies. In other words, the sampling window width of each data of the two sets of write data output after sampling is greater than the sampling window of the original write data. Exemplarily, the first frequency may be 2 times or 1.5 times the second frequency, etc.
[0065] Furthermore, since the two sets of write data are transmitted by two different data lines, the two sets of data are complementary to each other. The first data line and the second data line are both connected to the same column of storage cells of the memory, that is, each storage cell is connected to two write data lines. The data line connected to the storage cell can be switched according to the write data, so that the data on the corresponding data line is written into the storage cell.
[0066] Figure 5 The data bus architecture of the above structure provided by the present application on the storage array is shown as follows: Figure 5 As shown, each column of storage cells, such as storage cells 00 to 03 shown in the figure, are connected to two write data lines, including a first data line 201 and a second data line 202. The data on these two data lines can be written into the storage cells alternately. Figure 5 The data selection unit 203 shown in the figure switches the data line where data is written. Figure 6 The difference in the timing of writing data between the above scheme and the previous scheme is shown. In the figure, the address signal addr<3:0> represents four bits of address data, which is determined according to the write command (CMD) and can be as follows: Figure 6 The specific values shown in Figure 6 It can be seen that the write data write_data<(a-1):0> in the related art has a first frequency, and the embodiment of the present application can switch the write enable signal (write_clk) by adding a data selection signal (data_sel). The write enable signal alternately samples the first write data wtd<(a-1):0> and the second write data wtd<(2a-1):a>, so that the frequency of writing data is reduced by one half. In this way, the first data window (data_window2) of each write data is wider than the original second data window (data_window1), so that the sampling of the write enable signal is no longer easy to fall on the edge of the data window, so the accuracy of the write data can be effectively improved.
[0067] In some embodiments, Figure 7 As shown, the data expansion circuit 300 further includes:
[0068] A delay unit 310, whose input end is connected to the data receiving end 301, and whose output end is used to output delayed write data write_data<(a-1):0>_d obtained by delaying the original write data write_data<(a-1):0> for a first time period (where a represents the total amount of original write data corresponding to one write command);
[0069] A first sampling unit 320, an input end of which is connected to the data receiving end 301, and an output end of which is used to output the first write data wtd<(2a-1):a> after the original write data write_data<(a-1):0> is sampled at the second frequency;
[0070] The second sampling unit 330 has an input end connected to the output end of the delay unit 310, and an output end for outputting the second write data wtd<(a-1):0> after the delayed write data write_data<(a-1):0>_d is sampled at the second frequency.
[0071] Here, the original write data is delayed by the delay unit 310 to obtain delayed write data, that is, the original write data and the delayed write data are two groups of data waveforms with a certain phase difference. Then, the first sampling unit 320 and the second sampling unit 330 are used to sample the two groups of data at a second frequency. Since the second frequency is less than the first frequency, illustratively, the first frequency can be an integer multiple of the second frequency, such as 2 times. In this way, the data signals obtained by sampling the two groups of data signals will have a lower frequency than the original data signal, that is, the sampling of the original write data only obtains partial data, but the data frequency is lower, and the bit width of each data is wider. Correspondingly, the sampling of the delayed write data also obtains partial data with a lower frequency and a wider data bit width.
[0072] In this way, a group of original write data is divided into two groups of write data, each group of write data has a wider bit width, and when alternately writing to storage units, the sampling window of the write enable signal will also be wider, thereby reducing the occurrence of write data errors.
[0073] It can be understood that if the first frequency is twice the second frequency, then the sampling of the two groups of data is actually performed alternately, that is, a group of original write data is divided into two groups of write data, and the frequency of each group of write data is reduced by half, and the data bit width is twice the original. At this time, the first time length of the delay unit 310 for the original write data can be equal to the time length of one cycle of the original write data.
[0074] In other embodiments, the first frequency may be more times the second frequency, for example, 4 times, and the first time length of the delay unit 310 for the original write data may be equal to the time length of 2 times the period of the original write data. In addition, the first sampling unit 320 and the second sampling unit 330 may respectively sample and obtain data with a data period of 4 times the original write data, so that the sampling window of the write enable signal will be wider, but in this case the data write efficiency will be reduced.
[0075] In other embodiments, the original write data can also be divided into more groups of write data, and transmitted to the same column of storage units through multiple data lines. Exemplarily, the first frequency is 4 times the second frequency. Then, the delay unit 310 can delay the original write data by 1, 2 and 3 cycles in sequence to obtain 3 groups of delayed write data, and the original write data and the 3 groups of delayed write data are sampled by the first sampling unit 320, the second sampling unit 330 and the additional third sampling unit and the fourth sampling unit (not shown in the figure) respectively to obtain 4 groups of write data, each group of write data includes only 1 / 4 of the data in the original write data, but the bit width of each data is 4 times that of the original write data. In this way, a wider sampling window can be obtained, but multiple additional write data lines are required.
[0076] In other embodiments, the first frequency may not be an integer multiple of the second frequency. For example, the first frequency is 1.5 times the second frequency. In this way, the data bit width of the write data obtained after sampling by the above-mentioned sampling units is 1.5 times the original write data. However, this method also needs to consider the timing matching of the address signal, write enable signal, data line selection signal and original clock, and adjust the circuit structure accordingly.
[0077] In practical applications, the above situations can be selected and used according to actual needs and are not limited here.
[0078] In some embodiments, Figure 8 As shown, the data expansion circuit 300 further includes:
[0079] A clock frequency dividing unit 340, whose input end is used to receive the original clock signal clk, whose output end is respectively connected to the clock signal ends of the first sampling unit 320 and the second sampling unit 330, and is used to output the frequency-divided clock signal ckx2;
[0080] The frequency of the original clock signal clk is the first frequency; the frequency of the divided clock signal ckx2 is the second frequency; and the clock signal terminal of the delay unit 310 is used to receive the original clock signal clk.
[0081] The delay unit 310, the first sampling unit 320, the second sampling unit 330 and the clock frequency dividing unit 340 can be implemented by devices such as latches or flip-flops, such as DFF (D flip-flop).
[0082] To achieve frequency division, an inverter 341 may be connected between the output and input of the clock frequency division unit 340, so that the clock frequency division unit 340 achieves frequency division by 2. In some embodiments, the clock frequency division unit may further include multiple D flip-flops to achieve frequency division of other multiples.
[0083] In some embodiments, Fig. 9 As shown, the data processing circuit 200 further includes:
[0084] A plurality of data selection circuits 210, each of the data selection circuits 210 comprises a first data terminal 211, a second data terminal 212, a selection terminal 213 and a data output terminal 214;
[0085] The first data terminal 211 is connected to the first data line; the second data terminal 212 is connected to the second data line; the data output terminal 214 is connected to one of the storage units; the selection terminal 213 is used to receive a data selection signal data_sel; the data selection signal is used to switch the data output terminal 214 to output the data wt_data_sel that needs to be written to the storage unit i connected to the data selection circuit 210 (wherein, i is the i-th storage unit), the data can be the first write data wtd<(2a-1):a> or the second write data wtd<(a-1):0>, and which data is specifically output is determined by the data selection signal data_sel of the selection terminal 213.
[0086] like Fig. 9 As shown, the data selection circuit 210 is distributed inside the memory cell array (Array), and the data selection circuit 210 connected to a memory cell (i=0) receives the first write data wtd And the second write data wtd <0> Then the data selection signal data_sel is used to select the data wt_data_sel to be written to the storage unit. <0> The first written data wtd Or the second write data wtd <0> .
[0087] Thus, by adding the data selection circuit 210 to the storage array, the selective output of the above-mentioned multiple write data can be realized by using the data selection signal, so as to conveniently switch the write data on different data lines.
[0088] In some embodiments, Fig.10 As shown, the data processing circuit 200 further includes:
[0089] The selection signal generating unit 220 is used to divide the original clock signal clk and output the data selection signal data_sel with a third frequency; the third frequency is smaller than the second frequency.
[0090] For example, if the first frequency is twice the second frequency, and the original write data is divided into two groups of write data, then the data selection signal data_sel only needs to alternately switch between the two groups of write data. Therefore, the data selection signal data_sel can be a digital signal that alternately switches between 0 and 1. That is, the second frequency is twice the third frequency.
[0091] Therefore, the selection signal generating unit 220 can be implemented by a frequency dividing circuit, and the data selection signal is obtained by dividing the frequency divided clock signal ckx2 by 2. The selection signal generating unit 220 can be implemented by a trigger or a latch, such as Fig.10 As shown, the selection signal generating unit 220 is realized by connecting a DFF with an inverter 221. The input signal of its clock input terminal is the divided clock signal ckx2, and the output signal is the data selection signal data_sel. In addition, the data selection signal can also be obtained by dividing the original clock signal clk by four.
[0092] In other embodiments, if the original write data is divided into multiple write data (such as 4 write data), the above-mentioned selection signal generating unit 220 may also have other circuits to input a periodic signal composed of four numerical values to select different write data in turn, or two selection signal generating units 220 may respectively generate two data selection signals with a phase difference, which are used together to select different write data.
[0093] In some embodiments, Fig.11 As shown, the data processing circuit 200 further includes:
[0094] The write enable generating circuit 230 is used to generate a write enable signal based on the original clock signal clk and the write address signal addr <n:0>(where n is the number of address bits), output write enable signal write_clk<2 (n+1) -1:0>; the write enable signal is used to turn on the write address signal addr <n:0>The indicated storage unit causes the first write data wtd<(2a-1):a> or the second write data wtd<(a-1):0> to be written into the storage unit.
[0095] Here, the write enable signal generated by the write enable generation circuit 230 can be used to determine whether to open the storage unit to be written. The corresponding write enable signal pulse is output when a write address signal is received under each write command to turn on the storage unit corresponding to the write address signal, and then the write data selected by the data selection circuit 210 is written to the storage unit.
[0096] That is, the write enable generation circuit 230 needs to output a clock pulse of the current original clock signal clk when receiving a write address signal under each write command, and can output a low level when no write address signal is received, thereby maintaining the closed state of the storage unit.
[0097] In some embodiments, Fig.12 As shown, the write enable generation circuit 230 includes:
[0098] AND gate unit 231, the input end is used to receive the original clock signal clk and the write address signal addr <n:0>; The output terminal is used to output the write enable signal write_clk<2 (n+1) -1:0>; The write enable signal includes a clock pulse when the write address signal is valid.
[0099] That is to say, when the write address signal at the designated address is valid, the pulse corresponding to the original clock signal clk is output as the above-mentioned write enable signal, so as to write into the corresponding storage unit.
[0100] In some embodiments, Fig.13 As shown, the data processing circuit 200 further includes:
[0101] The serial-to-parallel conversion circuit 240 is connected to a plurality of serial data terminals 241 (dq <0> -dq <n-1>) is used to convert the input data into parallel original write data write_data<(a-1):0>.
[0102] Here, the serial-to-parallel conversion circuit 240 may include one or more serial-to-parallel conversion units, and each serial-to-parallel conversion unit may implement one serial-to-parallel conversion. Exemplarily, if the memory writes 32 bits of data per record, the serial-to-parallel conversion circuit 240 may include two serial-to-parallel conversion units, the first serial-to-parallel conversion unit converts the serial data into 8-bit parallel data, and the second serial-to-parallel conversion unit further deserializes the 8-bit data per record to obtain 32-bit parallel data. If the memory writes 8 bits of data per record, the first serial-to-parallel conversion unit may be used.
[0103] The serial data terminals 241 for receiving input data are connected to the serial data port DQ of the memory. In addition, the serial-to-parallel conversion circuit 240 can sample the serial data based on the original clock signal clk and the divided clock signal ckx2 (or the four-divided clock signal ckx4), thereby realizing serial-to-parallel conversion.
[0104] Through the data processing circuit in the above embodiment, the data expansion circuit therein is used to alternately sample the original write data to obtain the first write data and the second write data with lower frequency, and write them through the first data line and the second data line connected to the same column of storage units respectively. In this way, since the data to be written to the same column of storage units are alternately written through different data lines, the window for writing data on each data line is larger, which can effectively reduce the write data errors caused by clock mismatch and improve the accuracy of write data.
[0105] The present application also provides the following examples based on the above solution:
[0106] The solution proposed in the embodiment of the present application includes a data bus architecture that increases the time margin for writing data to the storage array. For a case where the amount of data written by a CMD is a bit, that is, (a / 8) Byte, the data on the IO passes through the internal serial-to-parallel conversion circuit and reaches the data bus width of the storage array end is [(a-1):0]. However, the embodiment of the present application adopts a doubled bit width bus [(2a-1):0] (as mentioned above). Figure 5 As shown), [(2a-1):a] can be called the high bus group, and [(a-1):0] can be called the low bus group. The data to be written into the storage array is stored alternately on the high and low bus groups, and a single-bit indication signal data_sel is used to determine whether the current data is stored on the high bus group or the low bus group, thereby achieving a doubling of the data retention time on the bus in a time-division multiplexing manner, and doubling the time window for the write enable signal to sample the write data, thereby avoiding the situation where the data edge is sampled.
[0107] In the technical solution provided by the embodiment of the present application, a data bus architecture that increases the time margin for writing data to the storage array is used to solve the problem that the memory is prone to error when writing data to the storage medium. Under the same IO rate, the time that the data written to the storage array is on the bus can be doubled, the sampling window time of the write enable signal for the written data is increased, and the time margin for sampling the written data is increased.
[0108] Compared with the existing design scheme of matching wiring on the layout, a large amount of chip area resources of the storage array area are saved, the wiring is made more compact, thereby improving the quality of signal lines between storage arrays and reducing interference between signals in the storage array area.
[0109] Above Figure 6 The advantages of the data bus architecture of this design in sampling time are intuitively demonstrated from the timing relationship.
[0110] In the existing design, the write enable signal write_clk samples the write data signal write data[(a-1):0], and the sampling margin is the data window (data_window1) identifier in the figure.
[0111] In the architecture proposed in the embodiment of the present application, the original write enable signal write_clk is matched with the data indication signal data_sel, and the data signal appears alternately on the high and low bus groups (wtd[(a-1):0] is the low bus group, and wtd[(2a-1):a] is the high bus group), so the sampling margin is extended to the second data window (data_window2) in the figure. By adjusting the phase relationship between write_clk and write data, the accuracy of sampling write data is greatly improved.
[0112] In the circuit design provided in the embodiment of the present application, it is necessary to expand the number of original data buses to two times. The specific circuit structure can refer to the above Figure 8 In the related art, the write data bus is write_data<(a-1):0>. In the embodiment of the present application, the original bus data write_data<(a-1):0> is sampled once by the clock of the original clock signal clk to obtain write_data<(a-1):0>_d. Then the clk clock is passed through a two-frequency division circuit to obtain the ckx2 clock, and the ckx2 clock is used to sample write_data<(a-1):0> and write_data<(a-1):0>_d respectively to obtain wtd<(2a-1):a> and wtd<(a-1):0>.
[0113] The specific circuit for generating the data selection signal data_sel can refer to the above Fig.11 .
[0114] The storage array end adds a data selection circuit to select each bit of write data through the data indication signal data_sel, as mentioned above Fig. 9 shown.
[0115] Based on the same inventive concept, the embodiment of the present application also provides a memory, such as Fig.14 As shown, the memory 400 includes:
[0116] Memory cell array 410;
[0117] Peripheral circuit 420; wherein the peripheral circuit 420 includes any of the data processing circuits 200 described above.
[0118] The various embodiments / implementations provided in this application can be combined with each other without causing any contradiction.
[0119] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A data processing circuit for a memory, characterized in that: The memory includes a storage cell array; the data processing circuit includes: A data expansion circuit, comprising a data receiving end for receiving original write data, a first output end and a second output end; the first output end and the second output end are respectively used to output first write data and second write data obtained by alternately sampling the original write data; The signal of the original write data has a first frequency; the signals of the first write data and the second write data have a second frequency; the second frequency is less than the first frequency; The first output end is connected to a first data line; the second output end is connected to a second data line; the first data line and the second data line are respectively connected to the same column of storage units in the memory.
2. The data processing circuit according to claim 1, characterized in that: The data expansion circuit also includes: A delay unit, the input end of which is connected to the data receiving end, and the output end of which is used to output delayed write data obtained by delaying the original write data for a first time period; a first sampling unit, whose input end is connected to the data receiving end, and whose output end is used to output the first written data after the original written data is sampled at the second frequency; The second sampling unit has an input end connected to the output end of the delay unit, and an output end used to output the second write data after the delayed write data is sampled at the second frequency.
3. The data processing circuit according to claim 2, characterized in that: The data expansion circuit also includes: A clock frequency dividing unit, whose input end is used to receive the original clock signal, whose output end is respectively connected to the clock signal ends of the first sampling unit and the second sampling unit, and is used to output the frequency-divided clock signal; Among them, the frequency of the original clock signal is the first frequency; the frequency of the divided clock signal is the second frequency; and the clock signal end of the delay unit is used to receive the original clock signal.
4. The data processing circuit according to claim 1, characterized in that: The data processing circuit further includes: A plurality of data selection circuits, each of which comprises a first data terminal, a second data terminal, a selection terminal and a data output terminal; Among them, the first data end is connected to the first data line; the second data end is connected to the second data line; the data output end is connected to one of the storage units; the selection end is used to receive a data selection signal; the data selection signal is used to switch the data output end to output the first write data or the second write data.
5. The data processing circuit according to claim 4, characterized in that: The data processing circuit further includes: The selection signal generating unit is used to divide the frequency of the original clock signal and output the data selection signal with a third frequency; the third frequency is smaller than the second frequency.
6. The data processing circuit according to claim 1, characterized in that: The data processing circuit further comprises: A write enable generation circuit is used to output a write enable signal based on an original clock signal and a write address signal; the write enable signal is used to turn on the storage unit indicated by the write address signal, so that the first write data or the second write data is written into the storage unit.
7. The data processing circuit according to claim 6, characterized in that: The write enable generation circuit comprises: An AND gate unit, wherein the input end is used to receive the original clock signal and the write address signal respectively; the output end is used to output the write enable signal; the write enable signal includes a clock pulse when the write address signal is valid.
8. The data processing circuit according to any one of claims 1 to 7, characterized in that: The data processing circuit further includes: The serial-to-parallel conversion circuit is respectively connected to a plurality of serial data terminals for receiving input data, and is used for converting the input data into parallel original write data.
9. A memory, characterized in that: The memory comprises: A memory cell array; Peripheral circuit; wherein the peripheral circuit includes a data processing circuit as described in any one of claims 1 to 8.
10. The memory according to claim 9, characterized in that: The memory is a phase change memory.
