Memory system, operating method thereof, debugging device and debugging method
By replacing data values in the memory system and using scan chains to generate replacement data values, the problem of traditional debugging methods being time-consuming and difficult to reconstruct multiple flip-flops is solved, a method of quickly detecting memory system errors is realized, and detection efficiency is improved.
Patent Information
- Application Number
- CN202410259532.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional memory system debugging methods are time-consuming and difficult to reconstruct multiple flip-flops at once, resulting in low error detection efficiency.
Detect errors in the memory system by replacing data values in the memory device and utilizing scan chains to generate replacement data values, reducing the time required to detect errors.
A method for quickly detecting errors in the memory system is implemented, which reduces detection time and improves efficiency.
Smart Images

Figure CN118629481A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] The application claims priority from Korean Patent Application No. 10-2023-0031364 filed on March 9, 2023 in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to a memory system, a debugging device, a debugging method of a memory system, and a method of operating a memory system, and more particularly, to a debugging device and method for detecting an error in data by replacing a data value with another data value based on an error present in at least one data item among a plurality of data items. Background Art
[0004] In a conventional scan-dump method of a memory system, when the same scenario is tested after the value loaded into the scan chain is shifted out, the same sequence as the previous sequence can be reused for debugging. In addition, in a conventional debugging method of a memory system, an error can be detected by extracting a data item loaded into the scan chain to the outside, or a flip-flop included in the scan chain can be reconstructed by providing the output of the scan chain to the input of the scan chain.
[0005] However, the conventional scan dump method and the conventional debugging method may take a lot of time and have a problem that it is impossible to reconstruct a plurality of triggers at a time. Summary of the invention
[0006] A method and a memory system are provided for performing a debug operation by replacing a data value stored in a memory device and inputting the replaced data value to a scan chain based on an error existing in data having the data value.
[0007] Provided is a method and a memory system capable of detecting errors in data by replacing only portions or data values in the data suspected of having errors, thereby reducing the time required to detect the errors.
[0008] According to one aspect of the present disclosure, a memory system includes: a memory device configured to store a plurality of data items; a scan chain configured to receive the plurality of data items and configured to generate scan output data of the plurality of data items; and a controller configured to replace the scan output data with replacement data. The scan chain is also configured to receive the replacement data from the controller.
[0009] According to another aspect of the present disclosure, a debugging method for a memory system for detecting an error in at least one data item among multiple data items includes: receiving multiple data items; generating scan output data of the multiple data items; and replacing the scan output data with replacement data, wherein the generation of the scan output data includes: generating a replacement command for a data value of at least one data item among the multiple data items; based on the replacement command, replacing a data value of the at least one data item with a replacement data value; scanning the replaced data value; and detecting an error in at least one data item among the multiple data items based on the replaced data value.
[0010] According to another aspect of the present disclosure, a debugging device includes: a scan chain configured to receive multiple data items from a memory device and configured to generate scan output data of the multiple data items; and a controller configured to replace the scan output data with replacement data, wherein the scan chain is configured to receive the replacement data from the controller.
[0011] According to another aspect of the present disclosure, a method of operating a memory system for detecting an error in at least one data item among a plurality of data items includes: receiving a plurality of data items and generating scan output data of the plurality of data items; and replacing the scan output data with replacement data, wherein the generation of the scan output data includes: generating a replacement command for a data value of at least one data item among the plurality of data items; based on the replacement command, replacing a data value of the at least one data item with another data value; scanning the replaced another data value; and detecting an error in at least one data item among the plurality of data items based on the replaced another data value. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Embodiments will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0013] Figure 1 shows a block diagram of a memory system according to an embodiment;
[0014] Figure 2 A debugging device according to an embodiment is shown;
[0015] Figure 3 A memory controller of a memory system according to an embodiment is shown;
[0016] Figure 4 shows a scan chain of a memory system according to an embodiment;
[0017] Figure 5 shows the generation of clock control signals in a memory system according to an embodiment;
[0018] Figure 6 and Figure 7 An embodiment of replacing data is shown;
[0019] Figure 8 shows a clock timing diagram according to a debugging method according to an embodiment;
[0020] Fig. 9 A debugging method according to an embodiment is shown;
[0021] Fig.10 A process of generating a replacement command in a debugging method according to an embodiment is shown;
[0022] Fig.11 The operation of the scan chain in the debugging method according to the embodiment is shown; and
[0023] Fig.12 A process of reading data through a Joint Test Action Group (JTAG) interface circuit in a debugging method according to an embodiment is shown. DETAILED DESCRIPTION
[0024] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0025] Figure 1 is a block diagram of a memory system 10 according to an embodiment.
[0026] Reference Figure 1 , a memory system 10 according to an embodiment may include a debugging device 100 and a memory device 200 .
[0027] The debugging device 100 according to the embodiment may generate a read command CMD_Read or a write command CMD_Write to perform a control operation on a plurality of data items. For example, the debugging device 100 according to the embodiment may generate a read command CMD_Read, may provide the generated read command CMD_Read to the memory device 200, and may receive read data Read Data from the memory device 200. In addition, the debugging device 100 according to the embodiment may generate a write command CMD_Write, and may send write data Write Data to the memory device 200. For example, based on determining that there is an error in at least one data item in the Read Data read from the memory device 200, the debugging device 100 may generate a write command CMD_Write with a replacement command CMD_Replace, and may send write data Write Data that replaces the read data Read Data including at least one data item determined to have an error. In addition, the debugging device 100 according to the embodiment may receive data through the read command CMD_Read, i.e., the write data WriteData that has replaced the read data Read Data.
[0028] The debugging device 100 according to the embodiment may detect an error in at least one of the plurality of data items stored in the memory device 200. The debugging device 100 according to the embodiment may generate a replacement command CMD_Replace for the plurality of data items to detect an error in at least one of the plurality of data items stored in the memory device 200. The replacement command according to the embodiment may include a command for inverting a data value of at least one of the plurality of data items. For example, when at least one of the plurality of data items has a logic value of "1", the data replaced by the replacement command may have a logic value of "0".
[0029] The debugging device 100 according to the embodiment may replace at least one of the plurality of data items stored in the memory device 200 with another data item based on the generated replacement command. The debugging device 100 according to the embodiment may receive the replaced data from the memory device 200 and may detect errors of the plurality of data items stored in the memory device 200. Figure 2 A detailed configuration of the debugging device 100 is described in detail.
[0030] The memory device 200 according to the embodiment can store a plurality of data items. The memory device 200 according to the embodiment can receive a plurality of commands from the debugging device 100, and can perform a write or read operation on at least one of the plurality of data items. For example, the memory device 200 can receive a write command CMD_write and write data Write Data from the debugging device 100 and can store the data. In addition, the memory device 200 according to the embodiment can receive a read command CMD_Read from the debugging device 100, and can replace at least one of the plurality of data items with the read data Read Data to send the read data Read Data to the debugging device 100.
[0031] The memory device 200 according to the embodiment may include a storage device according to the disclosed embodiment. Hereinafter, the memory device 200 used in this specification may refer to the term of the storage device. For example, the memory device 200 may include a solid-state drive (SSD) device or a universal flash storage (UFS) device. The memory device 200 may include a plurality of memory cells, for example, a plurality of flash memory cells. For example, the memory device 200 may include a volatile memory (such as a dynamic random access memory (DRAM) or a static RAM (SRAM)) and a non-volatile memory (such as an electrically erasable programmable read-only memory (EEPROM), a ferroelectric RAM (FRAM), a phase change RAM (PRAM), a magnetic RAM (MRAM) or a flash memory).
[0032] Figure 2 is a block diagram illustrating a debugging apparatus 100 of a memory system 10 according to an embodiment.
[0033] refer to Figure 2 The debugging device 100 of the memory system 10 according to the embodiment may include a controller 110, a scan chain 120, a processor 130, a system bus 140, and an interface circuit 150. In addition, the debugging device 100 according to the embodiment may further include a multiplexer 121, a read direct memory engine Read DMA 131, and a write direct memory engine Write DMA 132.
[0034] The controller 110 according to the embodiment may receive a plurality of commands from the processor 130, and may perform a control operation on at least one of the plurality of data items of the memory device 200. For example, the controller 110 may receive a replacement command from the processor 130, and may replace the data value of at least one of the plurality of data items of the memory device 200 with another data value based on the received replacement command. When the data value of at least one of the plurality of data items stored in the memory device 200 is "0", the controller 110 according to the embodiment may replace the data value of at least one of the plurality of data items with another data value "1". In addition, when the data value of at least one of the plurality of data items stored in the memory device 200 is "1", the controller 110 according to the embodiment may replace the data value of at least one of the plurality of data items with another data value "0".
[0035] The controller 110 according to the embodiment may convert at least one of the plurality of data items stored in the memory device 200 into serial data. The serial data may include data sequentially output in units of single bits. For example, the controller 110 may convert at least one replaced data into serial data. The controller 110 according to the embodiment may convert at least one replaced data into serial data, and may use the serial data as an input signal Scan_in of the scan chain 120.
[0036] The controller 110 according to the embodiment may convert the scan output data Scan_out of the scan chain 120 into parallel data to be received in units of multiple bits to receive the scan output data Scan_out. For example, the controller 110 may receive the scan output data Scan_out having serial data characteristics from the scan chain 120, may perform an operation of converting the scan output data Scan_out into parallel data, and may parallelize the scan output data Scan_out to transmit the parallelized scan output data Scan_out to the memory device 200. The controller 110 according to the embodiment may receive the parallelized scan output data Scan_out, and may transmit the received scan output data Scan_out to the processor 130. As described later, the processor 130 may analyze the received scan output data Scan_out, and may determine whether there is an error in at least one of a plurality of data items stored in the memory device 200.
[0037] The scan chain 120 according to the embodiment may receive a replaced data value. The scan chain 120 according to the embodiment may include a plurality of triggers. The scan chain 120 according to the embodiment may be activated by a clock control signal CLK_Ctrl and a "scan chain enable signal" Scan_en. For example, when the clock control signal CLK_Ctrl and the scan chain enable signal Scan_en are input, the scan chain 120 may be activated to output the scan output data Scan_out.
[0038] When the replaced data value is input from the controller 110, the scan chain 120 according to the embodiment may receive the scan chain enable signal Scan_en. When the input of the replaced data value is terminated, the scan chain 120 according to the embodiment may stop receiving the scan chain enable signal Scan_en. For example, the controller 110 may input the scan chain enable signal Scan_en to the scan chain 120 while sending the replaced data value to the scan chain 120. In addition, the controller 110 may stop inputting the scan chain enable signal Scan_en to the scan chain 120 while stopping sending the replaced data value to the scan chain 120.
[0039] The multiplexer 121 according to an embodiment may adjust the input of the scan chain 120 based on the mode control signal. For example, when the scan mode control signal Scan Mode is input to the multiplexer 121, the scan chain 120 may receive the input signal Scan_in and may operate in the scan mode.
[0040] When the replaced data is input from the controller 110, the multiplexer 121 may activate the scan chain 120 so that the debug device 100 operates in the scan mode, and may input the clock signal to the scan chain 120. Figure 5A method of controlling a clock signal is described in detail.
[0041] The processor 130 according to an embodiment may generate a replacement command for a plurality of data items. For example, based on the presence of an error in at least one of the plurality of data items stored in the memory device 200, the processor 130 may generate a replacement command. The replacement command according to an embodiment may include reversing the data value of at least one of the plurality of data items. For example, when the data value of at least one of the plurality of data items stored in the memory device 200 is "0", the data value of at least one of the plurality of data items may be replaced with "1" based on the replacement command. When the data value of at least one of the plurality of data items stored in the memory device 200 is "1", the data value of at least one of the plurality of data items may be replaced with "0" based on the replacement command.
[0042] The processor 130 according to an embodiment may include a processor such as a central processing unit (CPU). For example, the processor 130 may analyze whether there is an error in at least one of the plurality of data items stored in the memory device 200, and may control the debug device 100 to activate the scan chain 120 based on the analysis result. The debug device 100 according to an embodiment may include a read direct memory engine Read DMA 131 or a write direct memory engine Write DMA 132 to accelerate the read or write operation of the plurality of data items stored in the memory device 200. For example, based on the presence of an error in at least one of the plurality of data items stored in the memory device 200, the debug device 100 may send a pre-stored read command CMD_Read to the controller 110 through the read direct memory engine Read DMA 131 without passing through the processor 130. In addition, based on the presence of an error in at least one of the plurality of data items stored in the memory device 200, the debug device 100 according to an embodiment may send a pre-stored write command CMD_Write to the controller 110 through the write direct memory engine Write DMA 132 without passing through the processor 130.
[0043] The system bus 140 according to the embodiment may be operated as an interface connecting the controller 110 to the processor 130. In addition, the system bus 140 according to the embodiment may be operated as an interface connecting the read direct memory engine Read DMA 131 or the write direct memory engine Write DMA 132 to the controller 110, through which a plurality of commands or data items may be received or sent. The system bus 140 according to the embodiment may be connected to the interface circuit 150. For example, the interface circuit 150 according to the embodiment may include a Joint Test Action Group (JTAG) interface circuit. The interface circuit 150 according to the embodiment may read at least one of the plurality of data items to determine whether there is an error in at least one of the plurality of data items through an external configuration (not shown).
[0044] Figure 3 is a block diagram illustrating a controller 110 of a memory system 10 according to an embodiment.
[0045] refer to Figure 3 , the controller 110 according to an embodiment may include a read controller 111 , a write controller 112 , a read data control engine 113 , a serializer 114 , a write data control engine 115 , and a deserializer 116 .
[0046] The read controller 111 according to an embodiment may read at least one of a plurality of data items stored in the memory device 200, and may generate replacement data Data_Replace for the read data. For example, the read controller 111 may send a read command CMD_Read or a replacement command CMD_Replace to the memory device 200, and may receive at least one of a plurality of data items from the memory device 200. The read controller 111 according to an embodiment may determine a data value of the received at least one data, and may send the received at least one data to the read data control engine 113 to replace the data value with another data value.
[0047] The write controller 112 according to the embodiment may generate a write command CMD_Write and may send write data Write Data to the memory device 200. For example, the write controller 112 according to the embodiment may receive scan output data Scan_out in units of multiple bits. The write controller 112 according to the embodiment may receive data analyzed by the processor 130 and may write the data into the memory device 200. In addition, based on the presence of an error in at least one of the data items read from the memory device 200, the write controller 112 according to the embodiment may generate a write command CMD_Write and may send write data Write Data to replace the erroneous read data Read Data of the memory device 200.
[0048] The read data control engine 113 according to an embodiment may receive a scan mode control signal Scan Mode and may cause the debug device 100 to operate in a scan mode. The scan mode according to an embodiment may include a process of extracting data by replacing at least one of the read data items and inputting the replaced data to a scan chain.
[0049] For example, the read data control engine 113 may receive the read data Read Data in the scan mode, may replace the received read data Read Data, and may send replacement data Data_Replace of the read data Read Data to the serializer 114. When the read data Read Data is "0", the read data control engine 113 according to the embodiment may generate replacement data Data_Replace having a logic value of "1". When the read data Read Data is "1", the read data control engine 113 according to the embodiment may generate replacement data Data_Replace having a logic value of "0".
[0050] The serializer 114 according to the embodiment may receive replacement data Data_Replace of the read data Read Data and may convert the replacement data Data_Replace into serial data. The serializer 114 according to the embodiment may convert at least one data item among a plurality of data items stored in the memory device 200 into serial data sequentially output in units of single bits. The serializer 114 according to the embodiment may convert at least one replacement data Data_Replace into serial data and may use the serial data as an input signal Scan_in of the scan chain 120.
[0051] The write data control engine 115 according to an embodiment may receive a test mode control signal Test Mode and may cause the debug device 100 to operate in a scan mode. The test mode according to an embodiment may refer to a mode for determining errors existing in data by writing replacement data into at least one of a plurality of memory cells of the memory device 200.
[0052] For example, the read data control engine 113 may convert the scan output data Scan_out into parallel data so that the scan output data Scan_out is received in parallel in units of multiple bits in the test mode. The scan output data Scan_out according to an embodiment may be a set of data items including a single bit, and may be input together with the data "Data" analyzed for errors. For example, when the scan output data Scan_out and the analyzed data "Data" are input at the same time or have the same data value, the write data control engine 115 according to an embodiment may receive the analyzed data "Data". However, when the scan output data Scan_out according to an embodiment and the analyzed data "Data" are not input at the same time or do not have the same data value, the write data control engine 115 according to an embodiment may receive the scan output data Scan_out.
[0053] The deserializer 116 according to an embodiment may convert the scan output data Scan_out having serial data characteristics into parallel data. For example, the deserializer 116 may receive the scan output data Scan_out having serial data characteristics, may convert the scan output data Scan_out into parallel data, and may parallelize the scan output data Scan_out to send the parallelized scan output data Scan_out to the write data control engine 115. The write data control engine 115 according to an embodiment may receive the parallelized scan output data Scan_out, and may send the received scan output data Scan_out to the write controller 112.
[0054] Figure 4 is a block diagram illustrating a scan chain 120 of a memory system 10 according to an embodiment.
[0055] The scan chain 120 according to the embodiment may include a plurality of flip-flops FF. Each of the plurality of flip-flops FF may receive an input signal Scan_in of the scan chain 120, and may store data values in units of single bits. The plurality of flip-flops FF according to the embodiment may be activated by a clock control signal CLK_Ctrl and a scan chain enable signal Scan_en. For example, when a clock control signal CLK_Ctrl having a logic value of "1" is input and a scan chain enable signal Scan_en is input, data items stored in the plurality of flip-flops FF may be output. However, when a clock control signal CLK_Ctrl having a logic value of "0" is input, data items stored in the plurality of flip-flops FF may not be output despite the input scan chain enable signal Scan_en. The data items to be output stored in the plurality of flip-flops FF may constitute scan output data Scan_out. The scan chain 120 according to the embodiment may sequentially output data items stored in the plurality of flip-flops FF in the form of serial data.
[0056] Figure 5 is a diagram showing generation of a clock control signal CLK_Ctrl in the memory system 10 according to the embodiment.
[0057] refer to Figure 5 , the clock control signal CLK_Ctrl according to an embodiment may be transmitted by the multiplexer 121 and may be generated based on the clock controller 122 .
[0058] The multiplexer 121 according to the embodiment may receive the basic clock FL or the clock shift signal SSC from the clock controller 122, and may generate the clock control signal CLK_Ctrl. Based on an error existing in at least one of the plurality of data items read from the memory device 200, the clock controller 122 according to the embodiment may generate the clock shift signal SSC and the clock control signal CLK_Ctrl having a logic value of "1" so as to detect the error in the at least one data. The clock control signal CLK_Ctrl according to the embodiment may be input to Figure 4 The plurality of flip-flops FF of the scan chain 120 described in the embodiment can output data items stored in the plurality of flip-flops FF.
[0059] When it is determined that there is no error in at least one of the plurality of read data items, the clock controller 122 according to the embodiment may generate a basic clock FL signal. The basic clock FL signal according to the embodiment may have a logic value of "0". In the basic clock FL portion according to the embodiment, the clock control signal CLK_Ctrl may not be input to Figure 4 The plurality of flip-flops FF of the scan chain 120 described in the embodiment of the present invention can hold data items stored in the plurality of flip-flops FF.
[0060] Figure 6 and Figure 7 It is shown that data in the memory system 10 according to the embodiment is replaced.
[0061] refer to Figure 6 , the data "Data" according to the embodiment may include a plurality of bits. The replacement data Data_Replace according to the embodiment may be configured so that all the plurality of bits are replaced in the data "Data" stored in the memory device 200. For example, when the data "Data" has a logic value of "01100011", the replacement data Data_Replace may have a logic value of "10011100".
[0062] refer to Figure 7 , the data "Data" according to the embodiment may include a plurality of bits, and a portion in which an error (defect) (error (bug)) occurs may be a data value. The replacement data Data_Replace according to the embodiment may be configured so that at least one bit among the plurality of bits is replaced in the data "Data" stored in the memory device 200. For example, when the data "Data" has a logic value "01100011" and one data having a logic value "0" is determined to be an error, the replacement data Data_Replace may have a logic value "01110011" in which only a portion having an error is replaced. The debugging device 100 according to the embodiment may detect an error existing in the data "Data" by analyzing the replacement data Data_Replace.
[0063] Figure 8 is a clock timing diagram according to a debugging method according to an embodiment.
[0064] In the debugging device 100 according to the embodiment, the clock control signal CLK_Ctrl having regular intervals may be input to the scan chain 120. The debugging device 100 according to the embodiment may operate in a normal mode or a scan mode. In the normal mode according to the embodiment, since it is determined that there is no error in the plurality of data items, the input signal Scan_in is not input to the scan chain 120. In the scan mode Scan Mode according to the embodiment, since it is determined that there is an error in at least one of the plurality of data items, the input signal Scan_in is not input to the scan chain 120.
[0065] In the debugging device 100 according to the embodiment, the scan chain enable signal Scan_en can be used for the target trigger Target FF to determine whether there is an error in at least one data item among the multiple data items. When the scan chain enable signal Scan_en and the clock control signal CLK_Ctrl are input, the debugging device 100 according to the embodiment can output the scan output data Scan_out. However, when the scan chain enable signal Scan_en is input and the clock control signal CLK_Ctrl is not input, the debugging device 100 according to the embodiment may not output the scan output data Scan_out.
[0066] When outputting the scan output data Scan_out, the debugging device 100 according to the embodiment may generate a memory control signal “Memory Control”, and may perform a data write operation “Write to memory” on the memory device 200. When the data write operation “Write to memory” is completed, the debugging device 100 according to the embodiment may perform a data read operation “Read from memory” to read data from the memory device 200. When reading data, the debugging device 100 according to the embodiment may perform a data replacement operation “Replace data” to replace the read data.
[0067] When the read data is replaced, the debugging device 100 according to the embodiment may enter the scan mode "ScanMode". The replaced data according to the embodiment may be the input signal Scan_in of the scan chain 120. The input signal Scan_in of the scan chain 120 according to the embodiment may be a changed signal in which the data of the portion determined to have an error is replaced. For example, the input signal Scan_in of the scan chain 120 may be a changed (1 to 0) signal in which the data having the logic value "1" is replaced with the logic value "0", such as Figure 8 shown.
[0068] Fig. 9 is a flowchart of a debugging method of the memory system 10 according to an embodiment.
[0069] The debugging method of the memory system 10 according to the embodiment may include receiving a plurality of data items, generating scan output data Scan_out of the plurality of data items, and replacing the scan output data Scan_out.
[0070] In order to generate scan-out data Scan_out, the memory system 10 according to an embodiment may generate a replacement command for a data value of at least one data item among a plurality of data items in operation S910 .
[0071] The memory system 10 according to the embodiment may detect an error in at least one of the plurality of data items stored in the memory device 200 through the debugging device 100. The debugging device 100 according to the embodiment may generate a replacement command CMD_Replace for the plurality of data items to detect an error in at least one of the plurality of data items stored in the memory device 200. The replacement command according to the embodiment may include a command for inverting at least one of the plurality of data items. For example, when at least one of the plurality of data items has a logic value of "1", the data replaced by the replacement command may have a logic value of "0".
[0072] When the replacement command is generated, in operation S920 , the memory system 10 according to the embodiment may receive the replacement command, and may replace a data value of at least one data item among the plurality of data items based on the replacement command.
[0073] The memory system 10 according to the embodiment may perform a control operation on at least one data item among the plurality of data items. For example, the memory system 10 may replace the data value of at least one data item among the plurality of data items of the memory device 200 based on the replacement command. When the data value of at least one data item among the plurality of data items stored in the memory device 200 is "0", the memory system 10 according to the embodiment may replace the data value of at least one data item among the plurality of data items with another data value "1". In addition, when the data value of at least one data item among the plurality of data items stored in the memory device 200 is "1", the memory system 10 according to the embodiment may replace the data value of at least one data item among the plurality of data items with another data value "0".
[0074] When a data value of at least one of the plurality of data items is replaced, the memory system 10 according to the embodiment may convert the at least one replaced data of the plurality of data items into serial data in a single-bit form in operation S930 .
[0075] The memory system 10 according to the embodiment may convert at least one of the plurality of data items stored in the memory device 200 into serial data sequentially output in single bit units. For example, the memory system 10 may convert at least one replacement data into serial data sequentially output in single bit units.
[0076] When at least one replaced data of the plurality of data items is converted into serial data in a single-bit form, in operation S940 , the scan chain 120 of the memory system 10 according to an embodiment may receive the replaced data value and may scan the replaced data value.
[0077] The controller 110 according to the embodiment may convert at least one replaced data into serial data in a single-bit form, and may use the serial data as an input signal Scan_in of the scan chain 120. The memory system 10 according to the embodiment may store a data value in a single-bit form in each of a plurality of flip-flops by receiving the serial data in a single-bit form. When performing a scan operation, the memory system 10 according to the embodiment may sequentially read data items stored in a plurality of flip-flops.
[0078] When the scan operation on the replaced data is completed, the memory system 10 according to the embodiment may convert the output of the scan chain 120 into parallel data in a multi-bit form in operation S950 .
[0079] The output of the scan chain 120 according to the embodiment may be referred to as scan output data Scan_out. The memory system 10 according to the embodiment may convert the scan output data Scan_out into parallel data to be received in parallel in units of multiple bits to receive the scan output data Scan_out.
[0080] For example, the memory system 10 may perform an operation of converting the scan output data Scan_out into parallel data and may parallelize the scan output data Scan_out. The controller 110 according to an embodiment may receive the parallelized scan output data Scan_out and may analyze the received scan output data Scan_out.
[0081] When the output of the scan chain 120 is converted into parallel data in a multi-bit form, the memory system 10 according to the embodiment may detect an error in at least one of the plurality of data items based on the replaced data value in operation S960 .
[0082] For example, according to an embodiment, when the memory device 200 is operated by the replaced data, the memory system 10 may determine that there is an error in the basic data of the replaced data. However, according to an embodiment, when the memory device 200 is not operated by the replaced data, the memory system 10 may determine that there is no error in the basic data of the replaced data, and may perform a replacement operation on another data item.
[0083] Fig.10 is a flowchart illustrating a process of generating a replacement command in a debugging method according to an embodiment.
[0084] In operation S1010 , the memory system 10 according to an embodiment may determine that an error occurs in any logic. The memory system 10 according to an embodiment may determine that an error occurs in any logic when a preset result is not derived from data read from the memory device 200 .
[0085] When it is determined that an error occurs in any logic, in operation S1020, the memory system 10 according to the embodiment may determine whether an error exists in at least one of the plurality of data items. The memory system 10 according to the embodiment may read the data items stored in the plurality of flip-flops of the scan chain 120 to determine whether an error exists in at least one of the plurality of data items. For example, the memory system 10 may input the scan chain enable signal Scan_en to the target flip-flop Target FF to determine whether an error exists in at least one of the plurality of data items. When the scan chain enable signal Scan_en is input, the memory system 10 according to the embodiment may output the scan output data Scan_out stored in the target flip-flop Target FF.
[0086] Based on the presence of an error in at least one of the plurality of data items, in operation S1030, the memory system 10 according to an embodiment may generate a replacement command. The replacement command according to an embodiment may include a command for reversing at least one of the plurality of data items. For example, when at least one of the plurality of data items has a logic value of "1", the data replaced by the replacement command may have a logic value of "0". However, when it is determined that there is no error in at least one of the plurality of data items, the debug operation may be terminated without performing the replacement operation.
[0087] Fig.11 is a flowchart illustrating the operation of the scan chain 120 in the debugging method according to the embodiment.
[0088] In operation S1110, the memory system 10 according to the embodiment may read data from the memory device 200. For example, in the memory system 10 according to the embodiment, the debugging device 100 may generate a read command CMD_Read, may provide the generated read command CMD_Read to the memory device 200, and may receive read data Read Data from the memory device 200.
[0089] When reading data from the memory device 200, in operation S1120, the memory system 10 according to the embodiment may determine whether the replaced data is input to the scan chain 120. The memory system 10 according to the embodiment may convert at least one of the plurality of data items stored in the memory device 200 into serial data sequentially output in units of single bits. For example, the memory system 10 may convert at least one replaced data into serial data sequentially output in units of single bits. The memory system 10 according to the embodiment may convert at least one replaced data into serial data, and may use the serial data as an input signal Scan_in of the scan chain 120.
[0090] When it is determined that the replaced data is input to the scan chain 120, the scan chain 120 of the memory system 10 according to the embodiment may receive the scan chain enable signal Scan_en in operation S1130. For example, the memory system 10 may input the scan chain enable signal Scan_en to the scan chain 120 while sending the replaced data value to the scan chain 120.
[0091] When the scan chain enable signal Scan_en is input, the memory system 10 according to the embodiment may determine whether the input of the replaced data is terminated in operation S1140. When it is determined that the input of the replaced data is terminated, the memory system 10 according to the embodiment may deactivate the scan chain 120 in operation S1150.
[0092] When the input of the replaced data is terminated, the scan chain 120 according to the embodiment may stop receiving the scan chain enable signal Scan_en. For example, the memory system 10 may input the scan chain enable signal Scan_en to the scan chain 120 while sending the replaced data value to the scan chain 120. In addition, the memory system 10 may stop inputting the scan chain enable signal Scan_en to the scan chain 120 while stopping sending the replaced data value to the scan chain 120.
[0093] Fig.12 is a flowchart illustrating a process of reading data through a JTAG interface circuit in a debugging method according to an embodiment.
[0094] refer to Fig.12 In operation S1210, the memory system 10 according to the embodiment may determine whether an error occurs in any logic. The memory system 10 according to the embodiment may determine that an error occurs in any logic when a preset result is not derived from data read from the memory device 200.
[0095] When it is determined that an error occurs in any logic, in operation S1220, the memory system 10 according to the embodiment may determine whether an error exists in at least one of the plurality of data items. The memory system 10 according to the embodiment may read the data items stored in the plurality of flip-flops of the scan chain 120 to determine whether an error exists in at least one of the plurality of data items. For example, the memory system 10 may input the scan chain enable signal Scan_en to the target flip-flop Target FF to determine whether an error exists in at least one of the plurality of data items. When the scan chain enable signal Scan_en is input, the memory system 10 according to the embodiment may output the scan output data Scan_out stored in the target flip-flop Target FF.
[0096] Based on the presence of an error in at least one of the plurality of data items, in operation S1230, the memory system 10 according to the embodiment may read at least one of the plurality of data items through a JTAG interface circuit. When the JTAG interface circuit reads at least one of the plurality of data items, the JTAG interface circuit according to the embodiment may analyze the read data through an external configuration (not shown). The external configuration according to the embodiment may include a JTAG port. However, the present disclosure is not limited thereto.
[0097] While the present disclosure has been particularly shown and described with reference to embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the appended claims.
Claims
1. A memory system, include: a memory device configured to store a plurality of data items; a scan chain configured to receive the plurality of data items and configured to generate scan output data of the plurality of data items; as well as a controller configured to replace the scan output data with replacement data, The scan chain is further configured to receive the replacement data from the controller.
2. The memory system according to claim 1, in, The controller includes a serializer configured to convert at least one replaced data of the plurality of data items into serial data that is sequentially output in bit units.
3. The memory system according to claim 2, in, The scan chain is configured to receive the serial data.
4. The memory system according to claim 1, in, The controller further includes a deserializer configured to convert the scan output data into parallel data to be received in parallel in units of multiple bits. 5 . The memory system of claim 1 , further comprising a processor configured to generate a replacement command based on determining that an error exists in at least one of the plurality of data items.
6. The memory system according to claim 5, in, The data value of the at least one data item comprises a bit value, and The processor is further configured to generate a replacement command for inverting a bit value of the at least one data item.
7. The memory system according to claim 1, in, The scan chain is configured to receive a scan chain enable signal based on the scan chain receiving the replaced data.
8. The memory system according to claim 7, in, The scan chain is configured to stop receiving the scan chain enable signal based on the scan chain terminating receiving the replaced data.
9. The memory system according to claim 1, further comprising a Joint Test Action Group (JTAG) interface circuit, in, Based on the presence of an error in at least one of the plurality of data items, at least one of the plurality of data items is read through the JTAG interface circuit.
10. A debugging method of a memory system for detecting an error in at least one data item among a plurality of data items, the debugging method include: receiving the plurality of data items; generating scan output data of the plurality of data items; as well as replacing the scanned output data with replacement data, Wherein, generating the scan output data comprises: generating a replacement command for a data value of at least one data item of the plurality of data items; replacing a data value of the at least one data item with a replacement data value based on the replace command; scanning the replaced data value; and An error in at least one of the plurality of data items is detected based on the replaced data value.
11. The debugging method according to claim 10, further comprising converting at least one replaced data of the plurality of data items into data in a single-bit form.
12. The debugging method according to claim 11, in, When scanning the replaced data value, the converted data is received in the form of a single bit.
13. The debugging method according to claim 10, further comprising converting the output of the scan chain into another data in a multi-bit form.
14. The debugging method according to claim 10, in, Generating a replacement command further includes generating a replacement command based on the presence of an error in at least one data item of the plurality of data items.
15. The debugging method according to claim 10, in, Generating a replace command also includes generating a replace command for inverting a data value of the at least one data item.
16. The debugging method according to claim 10, further comprising: include: The replacement-based data is input to the scan chain, receiving a scan chain enable signal.
17. The debugging method according to claim 16, in, A scan chain disable signal is received based on the input being terminated while receiving and scanning the alternate data value.
18. The debugging method according to claim 10, further comprising: include: Based on the presence of an error in at least one of the plurality of data items, at least one of the plurality of data items is read through a joint test action group (JTAG) interface circuit.
19. A debugging device, include: a scan chain configured to receive a plurality of data items from a memory device and generate scan-out data for the plurality of data items; as well as a controller configured to replace the scan output data with replacement data, The scan chain is configured to receive the replacement data from the controller.
20. The debugging device according to claim 19, in, The controller includes a serializer configured to convert at least one replaced data of the plurality of data items into serial data that is sequentially output in units of single bits.
