Semiconductor device and method of performing test mode operation
The semiconductor device addresses increased error probability in high-speed data transmission by implementing error correction circuits and methods to detect and correct errors in test mode, enhancing data reliability and defect detection.
Patent Information
- Application Number
- CN202311722779.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-05
- Filing Date
- 2023-12-14
- Publication Date
- 2024-12-06
AI Technical Summary
As data input/output speeds increase in semiconductor devices, the probability of errors during data transmission also rises, necessitating improved methods to ensure data reliability, particularly through error detection and correction.
A semiconductor device incorporating a read circuit, parity selection circuit, and write circuit to generate and correct error data in a test mode, utilizing error correction codes to detect and correct errors in both read and write operations.
Enhances data reliability by effectively detecting and correcting errors in test mode operations, ensuring accurate data transmission and enabling defect detection in error correction circuits.
Smart Images

Figure CN119091948A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Korean Patent Application No. 10-2023-0072363, filed on June 5, 2023, which is hereby incorporated by reference in its entirety. Technical Field
[0003] Embodiments of the present disclosure relate to a semiconductor device for detecting defects in an error correction circuit in a test mode and a method of performing a test mode operation. Background Art
[0004] Recently, in order to increase the operating speed of semiconductor devices, a method of inputting / outputting a plurality of bits of data per clock cycle has been used, such as DDR2, DDR3, DDR4, DDR5, etc. As the data input / output speed increases, the probability of an error occurring during data transmission increases, and thus a separate device and method are additionally required to ensure the reliability of data transmission.
[0005] One method of ensuring the reliability of data transmission is to generate an error check code that can check whether an error occurs each time data is transmitted and transmit the error check code together with the data. The error check code includes an error detection code (EDC) that can detect an error that has occurred and an error correction code (ECC) that can self-correct the error when an error occurs. Summary of the invention
[0006] According to the present disclosure, a semiconductor device includes: a read circuit, which is configured to latch a read parity including error information about read data output from a memory circuit to generate a latched parity when a test read control signal is enabled; a parity selection circuit, which is configured to output the latched parity as a parity when a test selection signal is enabled; and a write circuit, which is configured to receive a parity and write data generated from the data when a test write control signal is enabled, and correct an error of the write data based on the write parity including error information about the write data and the parity to generate correction data.
[0007] In addition, according to the present disclosure, a semiconductor device includes: a control circuit configured to generate a test selection signal for generating a test mode, generate a test read control signal and a test write control signal, and generate a read enable signal and a write enable signal; a parity selection circuit configured to output a latched parity and one of an external parity input from an external device as a parity based on the test selection signal; and a write circuit configured to receive a parity and write data generated from data when the test write control signal is enabled, and correct an error of the write data based on the write parity including error information about the write data and the parity to generate correction data.
[0008] In addition, according to the present disclosure, a method for performing a test mode operation includes: a first error correction circuit setting step: turning off a write error correction circuit for generating a write parity check including error information about write data generated by data input from an external device; and turning on a read error correction circuit for generating a read parity check including error information about read data output from a memory circuit; and a first write-read operation step: storing write data at a first selected location of a memory circuit based on an address in a test mode; and outputting the write data stored in the first selected location of the memory circuit as read data. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a block diagram showing a configuration of a semiconductor device according to an embodiment of the present disclosure.
[0010] Figure 2 It shows that according to Figure 1 A block diagram showing a configuration of an embodiment of a write error correction circuit included in a semiconductor device shown.
[0011] Figure 3 It shows that according to Figure 1 A circuit diagram showing a configuration of an embodiment of a write driver included in a semiconductor device shown.
[0012] Figure 4 It shows that according to Figure 1 A circuit diagram showing a configuration of an embodiment of a latch circuit included in a semiconductor device shown.
[0013] Figure 5 It shows that according to Figure 1 A circuit diagram showing a configuration of an embodiment of a parity selection circuit included in a semiconductor device shown.
[0014] Figure 6 is a flowchart illustrating a test mode operation of a semiconductor device according to an embodiment of the present disclosure.
[0015] Figures 7 to 9is a diagram illustrating a test mode operation of a semiconductor device according to an embodiment of the present disclosure.
[0016] Fig.10 is shown to be applied according to Figure 1 and Fig. 9 A diagram showing a configuration of an electronic system of a semiconductor device of one of the embodiments shown. DETAILED DESCRIPTION
[0017] In the following description of the embodiments, when a parameter is referred to as "predetermined", it may mean that the value of the parameter is predetermined when the parameter is used in a process or algorithm. The value of the parameter may be set at the beginning of the process or algorithm, or may be set during the execution of the process or algorithm.
[0018] It will be understood that although the terms "first", "second", "third", etc. are used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element and are not intended to imply the order or quantity of the elements. Therefore, without departing from the teachings of the present disclosure, the first element in some embodiments may be referred to as the second element in other embodiments.
[0019] In addition, it will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can be intervening elements. Conversely, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements.
[0020] A logic "high" level and a logic "low" level may be used to describe the logic level of an electrical signal. A signal having a logic "high" level may be distinguished from a signal having a logic "low" level. For example, when a signal having a first voltage corresponds to a signal having a logic "high" level, a signal having a second voltage corresponds to a signal having a logic "low" level. In an embodiment, the logic "high" level may be set to a voltage level higher than the voltage level of the logic "low" level. At the same time, depending on the embodiment, the logic level of the signal may be set to be different or opposite. For example, a signal having a logic "high" level in one embodiment may be set to have a logic "low" level in another embodiment.
[0021] Various embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. However, the embodiments described herein are only for illustrative purposes and are not intended to limit the scope of the present disclosure.
[0022] Figure 1 1 is a block diagram showing the configuration of a semiconductor device 1 according to an embodiment of the present disclosure. Figure 1As shown, the semiconductor device 1 may include a control circuit 10 , a write circuit 20 , a memory circuit (MEM) 30 , a read circuit 40 , a parity selection circuit (PRT SEL) 50 , and a comparison circuit (CMP) 60 .
[0023] The control circuit 10 may include a mode register set (MRS) 11 and a write / read control circuit (W / T CTR) 12 .
[0024] The mode register group 11 may generate a test selection signal TSEL and a test mode signal TM in a test mode. The mode register group 11 may generate a test selection signal TSEL enabled in a test mode. The mode register group 11 may generate a test mode signal TM enabled in a test mode to perform a compression test. The mode register group 11 may generate a test read control signal TR_CTR in a test mode, and then may generate a test write control signal TW_CTR. The mode register group 11 may generate a test read control signal TR_CTR enabled in a test mode to perform a read operation. The mode register group 11 may generate a test write control signal TW_CTR enabled in a test mode to perform a write operation. The mode register group 11 may be configured as a universal mode register group (MRS) including a plurality of registers and generating a plurality of signals for controlling the operation of the semiconductor device 10. The test mode may be set to a test for detecting defects in an error correction circuit based on an internally generated parity check without receiving a parity check from an external device in a wafer state before packaging the semiconductor device 1. The external device may be implemented as a test device for controlling the test mode of the semiconductor device 1.
[0025] The write / read control circuit 12 may generate a write select signal WSTP and a read select signal RSTP based on the first to "M"th commands CMD<1:M> in the test mode. The write / read control circuit 12 may generate a write select signal WSTP including a pulse generated when the first to "M"th commands CMD<1:M> have a logic level combination for performing a write operation in the test mode. The write / read control circuit 12 may generate a read select signal RSTP including a pulse generated when the first to "M"th commands CMD<1:M> have a logic level combination for performing a read operation in the test mode.
[0026] The control circuit 10 may generate a test selection signal TSEL enabled in a test mode. The control circuit 10 may generate a test mode signal TM enabled in a test mode to perform a compression test. The control circuit 10 may generate a test read control signal TR_CTR and a test write control signal TW_CTR that are sequentially enabled in a test mode. The control circuit 10 may generate a write select signal WSTP including a pulse generated during a write operation in a test mode. The control circuit 10 may generate a read select signal RSTP including a pulse generated during a read operation in a test mode.
[0027] The write circuit 20 may include a write alignment circuit (WT ALG) 21 , a write error correction circuit (WT ECC) 22 , and a write driver (WT DRV) 23 .
[0028] The write alignment circuit 21 may receive the first to 128th data DATA<1:128> through the first pad P1. The write alignment circuit 21 may sequentially latch the first to 128th data DATA<1:128> input in series. The write alignment circuit 21 may align the latched first to 128th data DATA<1:128> to generate the first to 128th write data WD<1:128>. The write alignment circuit 21 may output the first to 128th write data WD<1:128> in parallel.
[0029] When the test write control signal TW_CTR is enabled, the write error correction circuit 22 can receive the first to 128th write data WD<1:128> and the first to ninth parity checks PRT<1:9>. When the test write control signal TW_CTR is enabled, the write error correction circuit 22 can perform an ECC encoding operation on the first to 128th write data WD<1:128> to generate the first to eighth write parity checks ( Figure 2 When the test write control signal TW_CTR is enabled, the write error correction circuit 22 can compare the first to eighth write parities ( Figure 2The write error correction circuit 22 may prevent the generation of the first to 128th error correction signals CR<1:128> when the test write control signal TW_CTR is disabled. The ninth parity PRT<1:8> may be used to generate the first to 128th error correction signals CR<1:128>. <9> 2-bit error information for the first to 128th read data RD<1:128> or the first to 128th data DATA<1:128> may be included. <9> The fact that it is at a logic "high" level may mean that a 2-bit error has occurred in the first to 128th read data RD<1:128> or in the first to 128th data DATA<1:128>. The write error correction circuit 22 may be implemented as a general ECC circuit using a single error correction-double error detection (SEC-DED) code for correcting a 1-bit error and detecting a 2-bit error.
[0030] The write driver 23 may generate the first to 128th correction data CD<1:128> from the first to 128th write data WD<1:128> in synchronization with the write strobe signal WSTP. The write driver 23 may correct errors included in the first to 128th write data WD<1:128> in synchronization with the write strobe signal WSTP based on the first to 128th error correction signal CR<1:128> to generate the first to 128th correction data CD<1:128>. For example, when the first error correction signal CR<1:128> is generated at a logic "high" level, the error correction signal CR<1:128> may be generated at a logic "high" level. <1> When the write driver 23 inverts the first write data WD among the first to 128th write data WD<1:128>, <1> The first error correction signal CR is generated at a logic "high" level. <1> The fact that the first write data WD among the first to 128th write data WD<1:128> may mean that <1> An error occurred in .
[0031] The write circuit 20 may latch the first to 128th data DATA<1:128> input through the first pad P1. The write circuit 20 may align the latched first to 128th data DATA<1:128> to generate the first to 128th write data WD<1:128>. The write circuit 20 may latch and parallelize the first to 128th data DATA<1:128> serially input from the external device to generate the first to 128th write data WD<1:128> in the test mode. The write circuit 20 may compare the first to eighth write parities ( Figure 2The write circuit 20 may correct errors included in the first to 128th write data WD<1:128> based on the first to 128th error correction signals CR<1:128> in the test mode to generate the first to 128th correction data CD<1:128>.
[0032] During a write operation in the test mode, the memory circuit 30 may store the first to 128th correction data CD<1:128> in a first selected location (memory cell) based on a first combination of the first to "L"th addresses ADD<1:L>. During a read operation in the test mode, the memory circuit 30 may output the first to 128th correction data CD<1:128> stored in the first selected location (memory cell) as the first to 128th read data RD<1:128> based on a first combination of the first to "L"th addresses ADD<1:L>. During a write operation in the test mode, the memory circuit 30 may store the first to 128th correction data CD<1:128> in a second selected location (memory cell) based on a second combination of the first to "L"th addresses ADD<1:L>. During a read operation in the test mode, the memory circuit 30 may output the first to 128th correction data CD<1:128> stored in the second selected location (memory cell) as the first to 128th read data RD<1:128> based on the second combination of the first to "L"th addresses ADD<1:L>. The first selected location (memory cell) and the second selected location (memory cell) selected according to the combination of the first to "L"th addresses ADD<1:L> may refer to memory cells at different locations.
[0033] The read circuit 40 may include a read error correction circuit (RD ECC) 41 and a latch circuit (LTC) 42 .
[0034] When the test read control signal TR_CTR is enabled, the read error correction circuit 41 may generate first to ninth read parities RP<1:9> including error information about the first to 128th read data RD<1:128>. When the test read control signal TR_CTR is enabled, the read error correction circuit 41 may perform an ECC encoding operation on the first to 128th read data RD<1:128> to generate first to ninth read parities RP<1:9>. When the test read control signal TR_CTR is disabled, the read error correction circuit 41 may prevent generation of the first to ninth read parities RP<1:9> including error information about the first to 128th read data RD<1:128>. The first to eighth read parities RP<1:8> may be set to signals including error information about the first to 128th read data RD<1:128>. The ninth read parity RP <9> The 2-bit error information about the first to 128th read data RD<1:128> may be included. For example, the ninth read parity RP <9> The fact that it is at a logic "high" level may refer to a case where a 2-bit error occurs in the first to 128th read data RD<1:128>. The read error correction circuit 41 may be implemented as a general ECC circuit using a single error correction-double error detection (SEC-DED) code for correcting a 1-bit error and detecting a 2-bit error.
[0035] The latch circuit 42 may latch the first to ninth read parities RP<1:9> in synchronization with the read strobe signal RSTP. The latch circuit 42 may output the latched first to ninth read parities RP<1:9> as the first to ninth latch parities LP<1:9>. When the test mode signal TM is enabled, the latch circuit 42 may generate all of the first to ninth latch parities LP<1:9> at the same logic level. When the test mode signal TM is enabled, the latch circuit 42 may generate the first to ninth latch parities LP<1:9> with a logic "low" level.
[0036] When the test read control signal TR_CTR is enabled during the read operation in the test mode, the read circuit 40 may generate the first to ninth read parities RP<1:9> including error information about the first to 128th read data RD<1:128>. During the read operation in the test mode, the read circuit 40 may latch the generated first to ninth read parities RP<1:9> in synchronization with the read strobe signal RSTP to generate the first to ninth latched parities LP<1:9>. When the test mode signal TM is enabled during the read operation in the test mode, the read circuit 40 may generate all of the first to ninth latched parities LP<1:9> at the same logic level.
[0037] The parity selection circuit 50 may receive the first to ninth external parity EP<1:9> through the second pad P2. The parity selection circuit 50 may generate the first to ninth parity PRT<1:9> from one of the first to ninth external parity EP<1:9> and the first to ninth latched parity LP<1:9> based on the test selection signal TSEL. When the test selection signal TSEL is disabled at a logic "low" level, the parity selection circuit 50 may output the first to ninth external parity EP<1:9> as the first to ninth parity PRT<1:9>. When the test selection signal TSEL is enabled at a logic "high" level, the parity selection circuit 50 may output the first to ninth latched parity LP<1:9> as the first to ninth parity PRT<1:9>. During a write operation, the first to eighth external parity EP<1:8> may be set to a signal including error information about the first to 128th data DATA<1:128>. The ninth external parity EP<1:9> may be configured to include error information about the first to 128th data DATA<1:128>. <9> The 2-bit error information about the first to 128th data DATA<1:128> may be included. For example, the ninth outer parity EP <9> The fact that it is at a logic “high” level may mean a case where a 2-bit error occurs in the first to 128th data DATA<1:128>.
[0038] The comparison circuit 60 may compare the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> to generate a detection signal DET. When the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have the same logic level combination in the test mode, the comparison circuit 60 may generate the detection signal DET disabled at a logic "low" level. When the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have different logic level combinations in the test mode, the comparison circuit 60 may generate the detection signal DET enabled at a logic "high" level. The comparison circuit 60 may generate the detection signal DET in various ways according to the embodiment. For example, the comparison circuit 60 may be implemented to generate the detection signal DET enabled at a logic "high" level when at least one of the first to 128th error correction signals CR<1:128> is enabled. The detection signal DET may be output to an external device through the third pad P3. The detection signal DET may be output to the controller ( Fig.10 1300 in the example) or a test device (not shown). When the detection signal DET is disabled at a logic "low" level, the controller ( Fig.101300) or a test device (not shown) can detect that there is no defect in the write error correction circuit 22. When the detection signal DET is enabled at a logic "high" level, the controller ( Fig.10 1300 in the figure) or a test device (not shown) can detect that a defect has occurred in the write error correction circuit 22.
[0039] Figure 2 It shows that according to Figure 1 1 is a block diagram of a configuration of an embodiment of a write error correction circuit 22 included in the semiconductor device 1. The write error correction circuit 22 may include a write parity generation circuit (WP GEN) 221, a syndrome generation circuit (SYN GEN) 222, and an error correction signal generation circuit (CR GEN) 223.
[0040] When the test write control signal TW_CTR is enabled, the write parity generation circuit 221 can perform an ECC encoding operation on the first to 128th write data WD<1:128> to generate the first to eighth write parities WP<1:8>. When the test write control signal TW_CTR is disabled, the write parity generation circuit 221 can prevent the generation of the first to eighth write parities WP<1:8>. The first to eighth write parities WP<1:8> can be set to a signal including error information about the first to 128th write data WD<1:128>. The write parity generation circuit 221 can be implemented as a general ECC circuit using a single error correction (SEC) code that corrects a 1-bit error. Figure 2 In the embodiment, the write parity generation circuit 221 is implemented to generate the first to eighth write parities WP<1:8>, but can be implemented to detect 2-bit errors of the first to 128th write data WD<1:128> using a single error correction-double error detection (SEC-DED) code that corrects 1-bit errors and detects 2-bit errors.
[0041] The syndrome generation circuit 222 may compare the first to eighth write parities WP<1:8> and the first to eighth parities PRT<1:8> to generate first to eighth syndromes SYN<1:8>.
[0042] The error correction signal generation circuit 223 may perform an ECC decoding operation on the first to eighth syndromes SYN<1:8> to generate first to 128th error correction signals CR<1:128>. For example, when the first write data WD<1:128> among the first to 128th write data WD<1:128> <1> When an error occurs in the error correction signal generation circuit 223, the error correction signal generation circuit 223 may enable the first error correction signal CR <1> The first write data WD <1> Invert.
[0043] Figure 3 It shows that according to Figure 1 The circuit diagram of the configuration of an embodiment of the write driver 23 included in the write circuit 20 is shown. The write driver 23 may include a drive control signal generating circuit 231, an inverted write strobe signal generating circuit 232, and a data error correction circuit 233.
[0044] The drive control signal generating circuit 231 can use an inverter 231 <1> and 231 <2> To achieve this. Inverter 231 <1> The first to 128th error correction signals CR<1:128> may be inverted to generate the first to 128th inverted driving control signals DCB<1:128>. <2> The first to 128th inverted drive control signals DCB<1:128> may be inverted to generate the first to 128th drive control signals DC<1:128>. Although the drive control signal generating circuit 231 is shown as one circuit, the drive control signal generating circuit 231 may be implemented using 128 circuits for generating the first to 128th inverted drive control signals DCB<1:128> and the first to 128th drive control signals DC<1:128>.
[0045] The inverted write strobe signal generating circuit 232 can use an inverter 232 <1> To achieve this. Inverter 232 <1> The write strobe signal WSTP may be inverted to generate an inverted write strobe signal WSTPB.
[0046] The data error correction circuit 233 may include a transmission data generation circuit 233_1 , a latch data generation circuit 233_2 , and a data driving circuit 233_3 .
[0047] The transmission data generation circuit 233_1 can use the transmission gate 233 <1> and inverter 233 <2> to achieve.
[0048] When the first to 128th driving control signals DC<1:128> are at a logic “low” level and the first to 128th inverted driving control signals DCB<1:128> are at a logic “high” level, the transmission gate 233 <1> When the first to 128th driving control signals DC<1:128> are at a logic “low” level and the first to 128th inverted driving control signals DCB<1:128> are at a logic “high” level, the transmission gate 233 <1> The first to 128th write data WD<1:128> may be output as the first to 128th transmission data TD<1:128>. When the first to 128th drive control signal DC<1:128> is at a logic “high” level and the first to 128th inversion drive control signal DCB<1:128> is at a logic “low” level, the inverter 233 <2> When the first to 128th driving control signals DC<1:128> are at a logic “high” level and the first to 128th inverted driving control signals DCB<1:128> are at a logic “low” level, the inverter 233 <2> The first to 128th write data WD<1:128> may be inverted to be output as the first to 128th transmission data TD<1:128>. For example, when the first drive control signal DC <1> The first inverting driving control signal DCB is at a logic "high" level and <1> When the transmission data generation circuit 233_1 is at a logic “low” level, the first write data WD among the first to 128th write data WD<1:128> may be <1> Inverted to generate the first to 128th transmission data TD<1:128>. Although the transmission data generating circuit 233_1 is shown as one circuit, the transmission data generating circuit 233_1 may be implemented with 128 circuits for generating the first to 128th transmission data TD<1:128>.
[0049] The latch data generation circuit 233_2 can use the inverter 233 <3> , 233 <4> and 233 <5> to achieve.
[0050] Inverter 233 <3> and 233 <4> The first to 128th transmission data TD<1:128> may be buffered to generate the first to 128th latch data LD<1:128>. When the write strobe signal WSTP is enabled at a logic “high” level, the inverter 233 <4> and 233 <5> The first to 128th latch data LD<1:128> may be latched. Although the latch data generating circuit 233_2 is illustrated as one circuit, the latch data generating circuit 233_2 may be implemented with 128 circuits for generating the first to 128th latch data LD<1:128>.
[0051] The data driving circuit 233_3 may include a NAND gate 233 <6> , NOR gate 233 <7> 、PMOS transistor 233 <8> and NMOS transistor 233 <9> .
[0052] When the write strobe signal WSTP is generated at a logic "high" level, the NAND gate 233 <6> The first to 128th latch data LD<1:128> may be inverted to generate the first to 128th pull-up signals PU<1:128>. When the write strobe signal WSTP is generated at a logic “low” level, the NAND gate 233 <6> The first to 128th pull-up signals PU<1:128> may be generated with a logic “high” level. When the inverted write strobe signal WSTPB is generated with a logic “low” level, the NOR gate 233 <7> The first to 128th latch data LD<1:128> may be inverted to generate the first to 128th pull-down signals PD<1:128>. When the inverted write strobe signal WSTPB is generated at a logic "high" level, the NOR gate 233 <7> The first to 128th pull-down signals PD<1:128> may be generated to have a logic “low” level. <8> It can be located between the power supply voltage VDD and the node nd233, and when the first to 128th pull-up signal PU<1:128> is at a logic "low" level, the node nd233 can be driven to the power supply voltage VDD level to generate the first to 128th correction data CD<1:128> of a logic "high" level. For example, when the first pull-up signal PU<1:128> is at a logic "low" level, the node nd233 can be driven to the power supply voltage VDD level to generate the first to 128th correction data CD<1:128> of a logic "high" level. <1> When at logic "low" level, PMOS transistor 233 <8> The node nd233 may be driven to the power supply voltage VDD level to generate the first correction data CD of the logic “high” level <1> . NMOS transistor 233 <9> may be located between the node nd233 and the ground voltage VSS, and may drive the node nd233 to the ground voltage VSS level to generate the first to 128th correction data CD<1:128> of the logic “low” level. <1> When at logic "high" level, NMOS transistor 233 <9> The node nd233 may be driven to the ground voltage VSS level to generate the first correction data CD of the logic “low” level. <1> The data driving circuit 233_3 is shown as one circuit, but may be implemented with 128 circuits for generating the first to 128th correction data CD<1:128>.
[0053] Figure 4 It shows that according to Figure 1 2 is a circuit diagram of a configuration of an embodiment of a latch circuit 42 included in the read circuit 40 shown.
[0054] The latch circuit 42 can utilize an inverter 421 <1> and 421 <2> and NOR gate 421 <3> to achieve.
[0055] Inverter 421 <1> The first to ninth read parity checks RP<1:9> may be inverted to output inverted signals of the first to ninth read parity checks RP<1:9>. When the test mode signal TM is at a logic “low” level, the NOR gate 421 <3> The inverter 421 <1> The output signal of the NOR gate 421 is inverted to generate the first to ninth latch parity LP<1:9>. When the test mode signal TM is at a logic "high" level, the NOR gate 421 <3> The first to ninth latch parity bits LP<1:9> may be generated to have a logic “low” level. When the read strobe signal RSTP is at a logic “high” level, the inverter 421 <2> AND NOR gate 421 <3> The first to ninth latch parities LP<1:9> may be latched. The latch circuit 42 is shown as one circuit, but may be implemented with nine circuits for generating the first to ninth latch parities LP<1:9>.
[0056] Figure 5 It shows that according to Figure 1 2 is a circuit diagram showing a configuration of an embodiment of a parity selection circuit 50 included in the semiconductor device 1 shown.
[0057] The parity selection circuit 50 can use an inverter 501 <1> and NAND gate 501 <2> ,501 <3> and 501 <4> to achieve.
[0058] Inverter 501 <1> The test selection signal TSEL can be inverted to output an inverted signal of the test selection signal TSEL. When the test selection signal TSEL is at a logic "high" level, the NAND gate 501 <2> The first to ninth latch parity LP<1:9> may be inverted to output inverted signals of the first to ninth latch parity LP<1:9>. When the test selection signal TSEL is at a logic "low" level, the NAND gate 501 <2> A logic "high" level output signal can be generated. When the inverter 501 <1> When the output signal of NAND gate 501 is at a logic “high” level, <3> The first to ninth external parity checks EP<1:9> may be inverted to output inverted signals of the first to ninth external parity checks EP<1:9>. <1> When the output signal of NAND gate 501 is at a logic “low” level, <3> A logic "high" level output signal can be generated. When the NAND gate 501 <3> When the output signal of NAND gate 501 is at a logic “high” level, <4> The NAND gate 501 can <2> The output signal of NAND gate 501 is inverted to generate the first to ninth parity checks PRT<1:9>. <2> When the output signal of NAND gate 501 is at a logic “high” level, <4> The NAND gate 501 can <3> The output signal of is inverted to generate the first to ninth parity checks PRT<1:9>.
[0059] Figure 6 is a flowchart showing a test mode of the semiconductor device 1 according to an embodiment of the present disclosure. Figure 6 and Figure 1 An operation for performing the test mode operation in the semiconductor device 1 will be described.
[0060] The operation for executing the test mode may include a first error correction circuit setting step S1, a first write-read operation step S2, a second error correction circuit setting step S3, a second write-read operation step S4, and a defect detection step S5.
[0061] The first error correction circuit setting step S1 may be set as a step of turning off the write error correction circuit 22 and turning on the read error correction circuit 41 .
[0062] In the first error correction circuit setting step S1, the mode register set 11 may generate a test selection signal TSEL enabled at a logic "high" level. The mode register set 11 may generate a test read control signal TR_CTR enabled at a logic "high" level and a test write control signal TW_CTR disabled at a logic "low" level.
[0063] The write alignment circuit 21 may sequentially latch and align first to 128th data DATA<1:128> inputted in series to generate first to 128th write data WD<1:128>.
[0064] When the test write control signal TW_CTR is disabled at a logic “low” level, the write error correction circuit 22 may be turned off and the first to 128th error correction signals CR<1:128> may not be generated.
[0065] When the test read control signal TR_CTR is enabled at a logic “high” level, the read error correction circuit 41 may be turned on.
[0066] The first write-read operation step S2 may be set as a step of performing a write operation and a read operation on the first selected location Yi(m) in a test mode.
[0067] In the first write-read operation step S2 , the write / read control circuit 12 may generate a write strobe signal WSTP for performing a write operation based on the first to “M”th commands CMD<1:M>.
[0068] The write driver 23 may generate the first to 128th correction data CD<1:128> from the first to 128th write data WD<1:128> in synchronization with the write strobe signal WSTP. Since the first to 128th error correction signals CR<1:128> are not generated, the write driver 23 may not correct errors in the first to 128th write data WD<1:128>.
[0069] The memory circuit 30 may store the first to 128th correction data CD<1:128> in the first selected location Yi(m) based on the first combination of the first to “L”th addresses ADD<1:L> during a write operation.
[0070] The write / read control circuit 12 may generate a read strobe signal RSTP for performing a read operation based on the first to “M”th commands CMD<1:M>.
[0071] The memory circuit 30 may output the first to 128th correction data CD<1:128> stored in the first selected location Yi(m) as the first to 128th read data RD<1:128> based on the first combination of the first to “L”th addresses ADD<1:L> during a read operation.
[0072] When the test read control signal TR_CTR is enabled at a logic “high” level, the read error correction circuit 41 may generate first to ninth read parities RP<1:9> including error information about the first to 128th read data RD<1:128>.
[0073] The latch circuit 42 may latch the first to ninth read parities RP<1:9> in synchronization with the read strobe signal RSTP to generate first to ninth latch parities LP<1:9>.
[0074] When the test selection signal TSEL is enabled at a logic “high” level, the parity selection circuit 50 may output the first to ninth latched parities LP<1:9> as the first to ninth parities PRT<1:9>.
[0075] The second error correction circuit setting step S3 may be set as a step of turning on the write error correction circuit 22 and turning off the read error correction circuit 41 .
[0076] In the second error correction circuit setting step S3 , the mode register set 11 may generate a test read control signal TR_CTR disabled at a logic “low” level, and generate a test write control signal TW_CTR enabled at a logic “high” level.
[0077] The write alignment circuit 21 may sequentially latch and align the first to 128th data DATA<1:128> serially input to generate the first to 128th write data WD<1:128>. In this case, the first to 128th write data WD<1:128> may be generated to have the same logic level combination as the first to 128th read data RD<1:128> output from the memory circuit 30 in the first write read operation step S2.
[0078] When the test write control signal TW_CTR is enabled at a logic "high" level, the write error correction circuit 22 may perform an ECC encoding operation on the first to 128th write data WD<1:128> to generate the first to eighth write parities WP<1:8>. When the test write control signal TW_CTR is enabled at a logic "high" level, the write error correction circuit 22 may compare the first to eighth write parities WP<1:8> and the first to ninth parities PRT<1:9>, and perform an ECC decoding operation to generate the first to 128th error correction signals CR<1:128>.
[0079] When the test read control signal TR_CTR is disabled at a logic “low” level, the read error correction circuit 41 may be turned off and may not generate the first to eighth read parities RP<1:8>.
[0080] The second write-read operation step S4 may be set as a step of performing a write operation and a read operation on the second selected location Yi(n) in a test mode.
[0081] The write / read control circuit 12 may generate a write strobe signal WSTP for performing a write operation based on the first to “M”th commands CMD<1:M>.
[0082] The write driver 23 may correct errors included in the first to 128th write data WD<1:128> in synchronization with the write strobe signal WSTP based on the first to 128th error correction signals CR<1:128> to generate first to 128th correction data CD<1:128>.
[0083] In this case, when a defect occurs in the write error correction circuit 22, because one of the first to 128th error correction signals CR<1:128> is enabled, the write driver 23 can invert one bit in the first to 128th write data WD<1:128> to generate the first to 128th correction data CD<1:128>.
[0084] In addition, when no defect occurs in the write error correction circuit 22, because the first to 128th error correction signals CR<1:128> are all disabled, the write driver 23 can generate the first to 128th correction data CD<1:128> without inverting the bits of the first to 128th write data WD<1:128>.
[0085] During a write operation, the memory circuit 30 may store the first to 128th correction data CD<:128> in the second selected location Yi(n) based on a second combination of the first to 'L'th addresses ADD<1:L>.
[0086] The write / read control circuit 12 may generate a read strobe signal RSTP for performing a read operation based on the first to “M”th commands CMD<1:M>.
[0087] During a read operation, the memory circuit 30 may output the first to 128th correction data CD<:128> stored in the second selected location Yi(n) as the first to 128th read data RD<1:128> based on the second combination of the first to “L”th addresses ADD<1:L>.
[0088] The defect detection step S5 may be set as a step of comparing the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> to detect a defect of the write error correction circuit 22 .
[0089] In the defect detection step S5 , the comparison circuit 60 may compare the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> to generate a detection signal DET.
[0090] Here, when a defect occurs in the write error correction circuit 22, because the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have different logic level combinations, the comparison circuit 60 can generate a detection signal DET enabled at a logic "high" level. The detection signal DET can be output to the controller ( Fig.10 1300 in), and the controller ( Fig.10 1300 in FIG. 1300 ) can detect that a defect has occurred in the write error correction circuit 22 by receiving the detection signal DET of a logic “high” level.
[0091] In addition, when no defect occurs in the write error correction circuit 22, because the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have the same logic level combination, the comparison circuit 60 can generate a detection signal DET that is disabled at a logic "low" level. The detection signal DET can be output to the controller ( Fig.10 1300 in), and the controller ( Fig.10 1300) can detect that no defect occurs in the write error correction circuit 22 by receiving the detection signal DET of a logic “low” level.
[0092] Figures 7 to 9 FIG. 1 is a diagram showing a test mode of the semiconductor device 1 according to an embodiment of the present disclosure. Figure 7 and Figure 1 The operation of the semiconductor device 1 during the read operation in the test mode is described.
[0093] Reference Figure 7 , the mode register set 11 may generate a test selection signal TSEL enabled at a logic "high" level. During a read operation in the test mode, the mode register set 11 may generate a test read control signal TR_CTR enabled at a logic "high" level, and generate a test write control signal TW_CTR disabled at a logic "low" level.
[0094] The write / read control circuit 12 may generate a read strobe signal RSTP including a pulse of a logic “high” level generated when the first to “Mth” commands CMD<1:M> have a logic level combination for performing a read operation in a test mode.
[0095] During a read operation in the test mode, the memory circuit 30 may output the first to 128th correction data CD<1:128> stored in selected locations (memory cells) as the first to 128th read data RD<1:128> based on a combination of the first to “L”th addresses ADD<1:L>.
[0096] When the test read control signal TR_CTR is enabled at a logic “high” level, the read error correction circuit 41 may generate first to ninth read parities RP<1:9> including error information about the first to 128th read data RD<1:128>.
[0097] The latch circuit 42 may latch the first to ninth read parities RP<1:9> in synchronization with the read strobe signal RSTP of a logic “high” level and output the latched first to ninth read parities RP<1:9> as first to ninth latched parities LP<1:9>.
[0098] When the test selection signal TSEL is enabled at a logic “high” level, the parity selection circuit 50 may output the first to ninth latched parities LP<1:9> as the first to ninth parities PRT<1:9>.
[0099] Will refer to Figure 8 and Figure 1 The operation of the semiconductor device 1 during the write operation in the test mode is described.
[0100] Reference Figure 8 , the mode register group 11 can generate a test selection signal TSEL enabled at a logic "high" level in the test mode. During a write operation in the test mode, the mode register group 11 can generate a test read control signal TR_CTR disabled at a logic "low" level, and generate a test write control signal TW_CTR enabled at a logic "high" level.
[0101] The write / read control circuit 12 may generate a write strobe signal WSTP including a pulse of a logic “high” level generated when the first to “Mth” commands CMD<1:M> have a logic level combination for performing a write operation in the test mode.
[0102] The write alignment circuit 21 may sequentially latch first to 128th data DATA<1:128> serially input, and align the latched first to 128th data DATA<1:128> to generate first to 128th write data WD<1:128>.
[0103] When the test write control signal TW_CTR is enabled at a logic “high” level, the write error correction circuit 22 may perform an ECC encoding operation on the first to 128th write data WD<1:128> to generate first to eighth write parities ( Figure 2 When the test write control signal TW_CTR is enabled at a logic "high" level, the write error correction circuit 22 can compare the first to eighth write parities ( Figure 2 WP<1:8> in FIG. 128 ) and the first to eighth parities PRT<1:8> to generate the first to 128th error correction signals CR<1:128>.
[0104] The write driver 23 may correct errors included in the first to 128th write data WD<1:128> in synchronization with the write strobe signal WSTP of a logic “high” level based on the first to 128th error correction signals CR<1:128> to generate first to 128th correction data CD<1:128>.
[0105] The write driver 23 may correct errors included in the first to 128th write data WD<1:128> in synchronization with the write strobe signal WSTP of a logic “high” level based on the first to 128th error correction signals CR<1:128> to generate first to 128th correction data CD<1:128>.
[0106] During a write operation in the test mode, the memory circuit 30 may store first to 128th correction data CD<1:128> in selected locations (memory cells) based on a combination of first to “L”th addresses ADD<1:L>.
[0107] When the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have different logic level combinations in the test mode, the comparison circuit 60 may generate the detection signal DET enabled at a logic “high” level H.
[0108] When the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have the same logic level combination in the test mode, the comparison circuit 60 may generate the detection signal DET disabled at a logic “low” level L.
[0109] The detection signal DET may be output to an external device through the third pad P3 .
[0110] When the detection signal DET is enabled at a logic "high" level H, the controller ( Fig.10 1300 in the figure) or a test device (not shown) can detect that a defect has occurred in the write error correction circuit 22.
[0111] When the detection signal DET is disabled at the logic “low” level L, the controller ( Fig.10 1300 in the figure) or a test device (not shown) can detect that there is no defect in the write error correction circuit 22.
[0112] As described above, the semiconductor device 1 according to the embodiment of the present disclosure can generate a parity based on the read data stored in the memory circuit during the read operation in the test mode, and perform an error correction operation on the data based on the parity and the write parity generated from the input data during the write operation in the test mode. The semiconductor device 1 can generate a parity based on the read data stored in the memory circuit during the read operation in the test mode, and detect a defect in the error correction circuit according to whether the error correction operation is performed on the data based on the parity and the write parity generated from the input data during the write operation in the test mode. The semiconductor device 1 can output a detection signal generated according to whether the error correction operation is performed on the data to the controller ( Fig.10 1300 in) or a test device (not shown), thereby providing the controller ( Fig.10 1300) or a test device (not shown) provides information on whether a defect has occurred in the error correction circuit.
[0113] Will refer to Fig. 9 and Figure 1 The operation of the semiconductor device 1 according to the embodiment of the present disclosure during the compression test in the test mode is described.
[0114] Reference Fig. 9 , the mode register group 11 can generate a test selection signal TSEL enabled at a logic "high" level H in the test mode. The mode register group 11 can generate a test mode signal TM enabled at a logic "high" level H in the test mode to perform a compression test. During a write operation in the test mode, the mode register group 11 can generate a test read control signal TR_CTR disabled at a logic "low" level L, and generate a test write control signal TW_CTR enabled at a logic "high" level H.
[0115] When the test mode signal TM is enabled at a logic “high” level H, the latch circuit 42 may generate first to ninth latch parities LP<1:9> all having a logic “low” level (ALL=“L”).
[0116] When the test selection signal TSEL is enabled at a logic “high” level H, the parity selection circuit 50 may output the first to ninth latched parities LP<1:9> as the first to ninth parities PRT<1:9>.
[0117] The write / read control circuit 12 may generate a write strobe signal WSTP including a pulse of a logic “high” level H generated when the first to “Mth” commands CMD<1:M> have a logic level combination for performing a write operation in the test mode.
[0118] The write alignment circuit 21 may sequentially latch the first to 128th data DATA<1:128> input in series, and align the latched first to 128th data DATA<1:128> to generate the first to 128th write data WD<1:128>. In this case, in the compression test, all of the first to 128th data DATA<1:128> may be input at the same logic level. All of the first to 128th write data WD<1:128> may be generated at the same logic level.
[0119] When the test write control signal TW_CTR is enabled at a logic “high” level H, the write error correction circuit 22 may perform an ECC encoding operation on the first to 128th write data WD<1:128> to generate first to eighth write parities (all having a logic “low” level (ALL=“L”) Figure 2 When the test write control signal TW_CTR is enabled at a logic "high" level H, the write error correction circuit 22 can compare the first to eighth write parities ( Figure 2 WP<1:8> in the write error correction circuit 22) and the first to eighth parity checks PRT<1:8> to generate the first to 128th error correction signals CR<1:128>. In this case, when a defect occurs in the write error correction circuit 22, at least one of the first to 128th error correction signals CR<1:128> may be enabled. When no defect occurs in the write error correction circuit 22, all of the first to 128th error correction signals CR<1:128> may be generated at a logic "low" level.
[0120] When at least one of the first to 128th error correction signals CR<1:128> is enabled, the write driver 23 may correct errors included in the first to 128th write data WD<1:128> in synchronization with the write selection signal WSTP of a logic “high” level H to generate the first to 128th correction data CD<1:128>. When all of the first to 128th error correction signals CR<1:128> are generated at a logic “low” level, the write driver 23 may generate the first to 128th correction data CD<1:128> in synchronization with the write selection signal WSTP of a logic “high” level H without inverting the first to 128th write data WD<1:128>.
[0121] During a write operation in the test mode, the memory circuit 30 may store the first to 128th correction data CD<1:128> in selected locations (memory cells) based on a combination of the first to 'L'th addresses ADD<1:128>.
[0122] When the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have different logic level combinations in the test mode, the comparison circuit 60 may generate the detection signal DET enabled at a logic “high” level H.
[0123] When the first to 128th write data WD<1:128> and the first to 128th read data RD<1:128> have the same logic level combination in the test mode, the comparison circuit 60 may generate the detection signal DET disabled at a logic “low” level L.
[0124] The detection signal DET may be output to an external device through the third pad P3 .
[0125] When the detection signal DET is enabled at a logic "high" level H, the controller ( Fig.10 1300 in the figure) or a test device (not shown) can detect that a defect has occurred in the write error correction circuit 22.
[0126] When the detection signal DET is disabled at the logic “low” level L, the controller ( Fig.10 1300 in the figure) or a test device (not shown) can detect that no defect occurs in the write error correction circuit 22.
[0127] As described above, the semiconductor device 1 according to the embodiment of the present disclosure can generate all parities at the same logic level during the compression test in the test mode, and perform an error correction operation on the data based on the parity and the write parity generated from the data input at the same logic level. The semiconductor device 1 can generate all parities at the same logic level in the compression test in the test mode, and detect defects in the error correction circuit according to whether the error correction operation is performed on the data based on the parity and the write parity generated from the input data during the write operation in the test mode. The semiconductor device 1 can output a detection signal generated according to whether the error correction operation is performed on the data to the controller ( Fig.10 1300 in) or a test device (not shown), thereby providing the controller ( Fig.10 1300) or a test device (not shown) provides whether a defect occurs in the error correction circuit.
[0128] Fig.10 It is shown that according to the applied Figure 1 and Fig. 9FIG. 1 is a diagram showing a configuration of an electronic system 1000 of one embodiment of a semiconductor device. Fig.10 As shown, the electronic system 1000 may include a host 1100 and a semiconductor system 1200 .
[0129] The host 1100 and the semiconductor system 1200 may transmit signals to each other using an interface protocol. The interface protocol used between the host 1100 and the semiconductor system 1200 may include a multimedia card (MMC), an enhanced small disk interface (ESDI), an integrated drive electronics (IDE), a peripheral component interconnect express (PCI-E), an advanced technology attachment (ATA), a serial ATA (SATA), a parallel ATA (PATA), a serial attached SCSI (SAS), a universal serial bus (USB), etc.
[0130] The semiconductor system 1200 may include a controller 1300 and a semiconductor device 1400 (1:K). The controller 1300 may control the semiconductor device 1400 (1:K) to perform a test mode operation. Each semiconductor device 1400 (1:K) may generate a parity based on read data stored in a memory circuit during a read operation in the test mode, and perform an error correction operation on the data based on the parity and a write parity generated from input data during a write operation in the test mode. Each semiconductor device 1400 (1:K) may generate a parity at the same logic level during a compression test in the test mode, and perform an error correction operation on the data based on the parity and a write parity generated from data input at the same logic level during a write operation in the test mode. Each semiconductor device 1400 (1:K) may generate a parity based on read data stored in a memory circuit during a read operation in the test mode, and detect a defect in the error correction circuit based on whether an error correction operation is performed on the data based on the parity and a write parity generated from input data during a write operation in the test mode. Each semiconductor device 1400 (1:K) may output a detection signal generated according to whether an error correction operation is performed on data to the controller, thereby providing the controller 1300 with information on whether a defect has occurred in the error correction circuit.
[0131] The controller 1300 may be implemented as a general controller or a test device for controlling semiconductor devices. Each semiconductor device 1400 (1:K) may be implemented as Figure 2The semiconductor device 1 is shown. According to different embodiments, each semiconductor device 1400 (1:K) can be implemented using one of a dynamic random access memory (DRAM) device, a phase change random access memory (PRAM) device, a resistive random access memory (RRAM) device, a magnetic random access memory (MRAM) device, and a ferroelectric random access memory (FRAM) device.
[0132] Concepts have been disclosed in conjunction with some of the embodiments described above. Those skilled in the art will recognize that various modifications, additions and / or substitutions are possible without departing from the scope and spirit of the present disclosure. Therefore, the embodiments disclosed in this specification should not be considered restrictive, but exemplary. The scope of the concept is not limited to the above description, but is defined by the appended claims, and all distinguishing features within the scope of equivalents should be interpreted as being included in the concept.
Claims
1. A semiconductor device comprising: a read circuit that latches a read parity including error information about read data output from the memory circuit to generate a latched parity when a test read control signal is enabled; a parity check selection circuit that outputs the latched parity check as a parity check when a test selection signal is enabled; as well as A write circuit receives the parity and write data generated from data when a test write control signal is enabled, and corrects an error of the write data based on the write parity including error information about the write data and the parity to generate correction data.
2. The semiconductor device according to claim 1, wherein The memory circuit stores the correction data in a test mode, and outputs the stored correction data as the read data in the test mode.
3. The semiconductor device according to claim 1, wherein The bits included in the write data are generated with the same logic level combination as that of the bits included in the read data.
4. The semiconductor device according to claim 1, wherein The reading circuit comprises: a read error correction circuit that generates the read parity including error information about the read data when the test read control signal is enabled; and A latch circuit latches the read parity in synchronization with a read strobe signal and outputs the latched read parity as the latched parity.
5. The semiconductor device according to claim 4, wherein: The read error correction circuit prevents generation of the read parity when the test read control signal is disabled.
6. The semiconductor device according to claim 5, wherein: The latch circuit generates all bits included in the latch parity at the same logic level when a test mode signal is enabled.
7. The semiconductor device according to claim 1, wherein The parity selection circuit outputs an external parity input from an external device as the parity when the test selection signal is disabled.
8. The semiconductor device according to claim 1, wherein The writing circuit comprises: a write alignment circuit that aligns data input from an external device to generate the write data; a write error correction circuit which, when the test write control signal is enabled, generates the write parity including error information about the write data, and compares the write parity with the parity to generate an error correction signal for correcting the error of the write data; and A write driver corrects the error of the write data based on the error correction signal to generate the correction data.
9. The semiconductor device according to claim 8, wherein: The write error correction circuit comprises: a write parity generation circuit, which performs an ECC encoding operation on the write data to generate the write parity when the test write control signal is enabled; a syndrome generation circuit that compares the write parity with the parity to generate a syndrome; and An error correction signal generating circuit performs an ECC decoding operation on the syndrome to generate the error correction signal.
10. The semiconductor device according to claim 9, wherein The write parity generation circuit prevents generation of the write parity when the test write control signal is disabled.
11. The semiconductor device according to claim 8, wherein The write driver comprises: a transmission data generating circuit that inverts a bit where an error occurs among bits included in the write data based on the error correction signal to generate transmission data; a latch data generating circuit that latches the transmission data in synchronization with a write strobe signal to generate latch data; and A data error correction circuit generates the correction data according to a logic level combination of the latched data in synchronization with the write strobe signal.
12. A semiconductor device comprising: a control circuit that generates a test selection signal for generating a test pattern, generates a test read control signal and a test write control signal, and generates a read enable signal and a write enable signal; a parity selection circuit that outputs one of a latched parity and an external parity input from an external device as a parity based on the test selection signal; as well as A write circuit receives the parity and write data generated from data when the test write control signal is enabled, and corrects an error of the write data based on the write parity including error information about the write data and the parity to generate correction data.
13. The semiconductor device according to claim 12, wherein: The control circuit generates the test write control signal and the write strobe signal during a write operation in the test mode after generating the test read control signal and the read strobe signal during a read operation in the test mode.
14. The semiconductor device according to claim 12, in, The parity selection circuit outputs the latched parity as the parity when a test mode operation is performed and the test selection signal is enabled, and The parity selection circuit outputs the external parity as the parity when the test mode operation is terminated and the test selection signal is disabled.
15. The semiconductor device according to claim 12, wherein: The writing circuit comprises: a write alignment circuit that aligns the data input from the external device to generate the write data; a write error correction circuit that generates the write parity including error information about the write data and compares the write parity with the parity to generate an error correction signal for correcting the error of the write data when the test write control signal is enabled; and A write driver corrects the error of the write data based on the error correction signal to generate the correction data.
16. The semiconductor device according to claim 15, wherein: The write error correction circuit comprises: a write parity generation circuit, which performs an ECC encoding operation on the write data to generate the write parity when the test write control signal is enabled; a syndrome generation circuit that compares the write parity with the parity to generate a syndrome; and An error correction signal generating circuit performs an ECC decoding operation on the syndrome to generate the error correction signal.
17. The semiconductor device according to claim 16, wherein: The write parity generation circuit prevents generation of the write parity when the test write control signal is disabled.
18. The semiconductor device according to claim 15, wherein The write driver comprises: a transmission data generating circuit that inverts a bit where an error occurs among bits included in the write data based on the error correction signal to generate transmission data; a latch data generating circuit that latches the transmission data in synchronization with a write strobe signal to generate latch data; and A data error correction circuit generates the correction data according to a logic level combination of the latched data in synchronization with the write strobe signal.
19. The semiconductor device according to claim 12, further comprising: a memory circuit that stores the correction data in selected locations based on a combination of addresses during a write operation in the test mode, and outputs the correction data stored in the selected locations as read data based on the combination of addresses during a read operation in the test mode; as well as A read circuit latches a read parity including error information about the read data to generate the latched parity when the test read control signal is enabled.
20. The semiconductor device according to claim 19, wherein The reading circuit comprises: a read error correction circuit that generates the read parity including error information about the read data when the test read control signal is enabled; and A latch circuit latches the read parity in synchronization with a read strobe signal and outputs the latched read parity as the latched parity.
21. The semiconductor device according to claim 20, wherein: The read error correction circuit prevents generation of the read parity when the test read control signal is disabled.
22. The semiconductor device according to claim 19, further comprising a comparison circuit that compares a logic level combination of the write data generated from the data and the read data output from the memory circuit in the test mode to generate a detection signal. 23 . The semiconductor device according to claim 22 , further comprising a controller that receives the detection signal to detect a defect of a write error correction circuit included in the write circuit.
24. The semiconductor device according to claim 23, in, The controller detects that a defect has occurred in the write error correction circuit when the detection signal is enabled, and The controller detects that no defect occurs in the write error correction circuit when the detection signal is disabled.
25. A method of performing a test mode operation, comprising: a first error correction circuit setting step of: turning off a write error correction circuit for generating a write parity including error information of write data generated from data input from an external device; and turning on a read error correction circuit for generating a read parity including error information about read data output from the memory circuit; as well as A first write-read operation step: storing the write data in a first selected location of the memory circuit based on an address in a test mode; and outputting the write data stored in the first selected location of the memory circuit as the read data.
26. The method according to claim 25, wherein: In the first write-read operation step, the read error correction circuit is turned on to: generate the read parity including the error information of the read data; generating a latched parity from the read parity; and generating a parity check from the latched parity check.
27. The method of claim 25, further comprising: A second error correction circuit setting step of turning on the write error correction circuit and turning off the read error correction circuit; as well as A second write-read operation step: storing the write data in a second selected location of the memory circuit based on the address input in the test mode; and outputting the write data stored in the second selected location of the memory circuit as the read data.
28. The method according to claim 27, wherein: In the second write-read operation step, the write error correction circuit is turned on to: generate a syndrome by comparing the parity generated from the read parity with the write parity generated from the write data; generate an error correction signal for correcting an error of the write data based on the syndrome; and correcting the error included in the write data based on the error correction signal to store the error-corrected write data in the memory circuit.
29. The method according to claim 27, further comprising a defect detection step of: comparing the read data and the write data to generate a detection signal; and outputting the detection signal to a controller.
30. The method according to claim 29, in, When the detection signal is enabled, the controller detects that a defect occurs in the write error correction circuit, and Wherein, when the detection signal is disabled, the controller detects that there is no defect in the write error correction circuit.
Citation Information
Patent Citations
Storage device and mehtod of operating storage device
KR1020230072363A
