A test mode control circuit for a chip

By designing a chip test mode control circuit and using a delay unit to filter glitches, the problem of false triggering of chip test pins was solved, thus achieving accurate reception of test signals and reliable logic.

CN115425951BActive Publication Date: 2026-11-24SG MICRO CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210945702.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-08
Publication Date
2026-11-24
Estimated Expiration
2042-08-08

AI Technical Summary

Technical Problem

Chip test pins are susceptible to noise or interference, which can generate momentary glitches that may trigger test modes incorrectly and cause logic failures.

Method used

Design a chip test mode control circuit, including a test signal receiving unit, a clock generation unit, and a delay unit. The circuit filters out invalid transient glitches by delaying the signal and generates an accurate test mode control signal.

Benefits of technology

Effectively filters out noise glitches, ensuring the chip accurately receives test signals, preventing false triggering, and ensuring the accuracy and reliability of test logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115425951B_ABST
    Figure CN115425951B_ABST
Patent Text Reader

Abstract

A test mode control circuit for a chip is characterized by comprising a test signal receiving unit, a clock generating unit, and a delay unit. The test signal receiving unit receives test signals from the chip's test pins and filters noise. The clock generating unit, connected to the test signal receiving unit, generates a clock signal based on the test signals. The delay unit, connected to the clock generating unit, generates a test mode control signal based on a delay of the clock signal. This invention is simple and ingenious, enabling the circuit to accurately enter the test function on the clock edge under the control of the clock signal, while simultaneously filtering out one or more noise glitches, ensuring the accurate logic of the test circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuits, and more specifically, to a test mode control circuit for a chip. Background Technology

[0002] Currently, some chips, in order to increase their testability during the design process, typically incorporate internal test circuitry, which is activated and controlled via a single pin. Through the input signal to the chip's test pin, the internal test circuitry can enter test mode and accurately measure and output important electrical parameters of the chip.

[0003] However, some problems still exist in the actual testing process using these chips. For example, the chip's test pins may generate momentary glitches due to noise or interference even when no test signal is input. These momentary glitches may falsely trigger the chip, causing it to enter test mode and leading to logic failures in other circuit modules of the chip.

[0004] To address the aforementioned problems, this invention provides a chip test mode control circuit. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the present invention aims to provide a test mode control circuit for a chip. This circuit can receive and preprocess test signals, and filter out invalid transient glitches through delay, thereby enabling the chip to accurately receive valid test signals and correctly enter the test function.

[0006] The present invention adopts the following technical solution.

[0007] The first aspect of the present invention relates to a test mode control circuit for a chip, the circuit comprising a test signal receiving unit, a clock generating unit, and a delay unit; wherein, the test signal receiving unit is used to receive test signals from the test pins of the chip and filter noise; the clock generating unit is connected to the test signal receiving unit and generates a clock signal based on the test signals; the delay unit is connected to the clock generating unit and generates a test mode control signal based on the delay of the clock signal.

[0008] Preferably, the test signal receiving unit includes a first current source, a pin switch transistor Mn1, a first inverter, a NAND gate, a second current source, and a control transistor Mn2; wherein, one end of the first current source is connected to the power supply voltage, and the other end is connected to the drain of the pin switch transistor Mn1 and the input of the first inverter respectively; the source of the pin switch transistor serves as the chip test pin, and the gate is connected to the first reference voltage Vcm; the output of the first inverter is connected to the first input of the NAND gate, the second input of the NAND gate is connected to the delayed signal output from the inverted end of the delay unit Q, and the output of the NAND gate is connected to the gate of the control transistor Mn2; one end of the second current source is connected to the power supply voltage, and the other end is connected to the drain of the control transistor Mn2, and the source of the control transistor Mn2 is grounded.

[0009] Preferably, the clock generation unit includes a delay capacitor, a clock control transistor Mn3, a comparator, a third current source, a comparator control transistor Mn4, and a second inverter; the drain and source of the delay capacitor and the clock control transistor Mn3 are connected in parallel across the drain and source of the control transistor Mn2; the gate of the clock control transistor Mn3 is connected to the clock signal CLK; the positive input terminal of the comparator is connected to the drain of the clock control transistor Mn3, the negative input terminal is connected to the second reference voltage Vref, and the output terminal is connected to the gate of the comparator control transistor Mn4; one end of the third current source is connected to the power supply voltage, and the other end is connected to the drain of the comparator control transistor Mn4 and the input terminal of the second inverter respectively; the source of the comparator control transistor Mn4 is grounded, and the output terminal of the second inverter outputs the clock signal CLK.

[0010] Preferably, the delay unit includes a frequency divider circuit composed of N D flip-flops, a third inverter, an RS flip-flop, and a fourth inverter, where N is a positive integer. The N D flip-flops in the frequency divider circuit are cascaded, with the CP terminal of the frequency divider circuit connected to the clock signal CLK, the reset terminal connected to the first input terminal of a NAND gate, the Q terminal of the Nth D flip-flop connected to the R terminal of the RS flip-flop after passing through the third inverter, and the inverted Q terminal of the Nth D flip-flop connected to the second input terminal of the NAND gate. The S terminal of the RS flip-flop is connected to the power-on signal POK, and the inverted Q terminal V1 of the RS flip-flop serves as the first test mode control signal. The inverted Q terminal of the RS flip-flop is connected to the input terminal of the fourth inverter, and the output terminal V2 of the fourth inverter serves as the second test mode control signal.

[0011] Preferably, the delay is controlled based on the chip's test mode, and the number of delay capacitors and D flip-flops is adjusted.

[0012] The beneficial effects of this invention are that, compared with the prior art, the chip test mode control circuit of this invention can receive and preprocess test signals, and filter out invalid transient glitches through delay, thereby enabling the chip to accurately receive valid test signals and correctly enter the test function. This invention is simple in method and ingenious in concept, enabling the circuit to accurately enter the test function on the clock edge under the control of the clock signal, while filtering out one or more noise glitches to ensure the accurate logic of the test circuit.

[0013] The beneficial effects of the present invention also include:

[0014] 1. In this invention, the test signal output is not actually based on the real-time level of the test signal. Instead, it accurately generates the test mode control signal based on the combined delay effect of the clock generation unit and the delay unit, and on the total energy of the input signal that the chip pins can receive over a period of time. This method accurately filters out instantaneous noise or glitches, ensuring the accuracy of the chip's test logic and preventing false triggering and entry into incorrect test modes.

[0015] 2. Since the delay capacitor C1 and the number of D flip-flops can be adjusted according to actual needs, the delay time of the D flip-flops and the charging and discharging time of capacitor C1 in this invention are easily adjusted or controlled according to actual requirements. Therefore, the circuit of this invention can be applied to various chips and adaptively provide delayed output based on the characteristics of noise or glitches.

[0016] 3. Considering that some chips may receive test signals before power-on is complete and require performance testing, this invention adds an RS flip-flop to receive the POK (Power Good) signal. The flip-flop controls the latching of signals V1 and V2 based on the high or low state of the POK signal, ensuring the chip enters the test state at the appropriate time. This method ensures the chip is tested after a proper power-on reset, guaranteeing accurate test results when the chip is in the correct state. Attached Figure Description

[0017] Figure 1 This is a schematic diagram of the test mode control circuit of a chip in this invention;

[0018] Figure 2 This is a timing diagram of the relevant node signals in the test mode control circuit of a chip in this invention when generating test signals;

[0019] Figure 3 This is a timing diagram of the relevant node signals in the test mode control circuit of a chip in this invention when noise interference occurs. Detailed Implementation

[0020] The present application will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention, and should not be construed as limiting the scope of protection of the present application.

[0021] Figure 1 This is a schematic diagram of the test mode control circuit for a chip according to the present invention. Figure 1 As shown, the present invention relates to a test mode control circuit for a chip. The circuit includes a test signal receiving unit, a clock generating unit, and a delay unit. The test signal receiving unit is used to receive test signals from the test pins of the chip and filter noise. The clock generating unit is connected to the test signal receiving unit and generates a clock signal based on the test signals. The delay unit is connected to the clock generating unit and generates a test mode control signal based on the delay of the clock signal.

[0022] Understandably, in this invention, to filter out noise and glitches carried in the input signals of the chip's test pins, a test signal receiving unit is provided. This unit can receive all test signals, including noise and glitches, into the chip's internal circuitry and trigger the clock generation unit to enter the working state based on the signal. Since the glitches and noise in this invention can be understood as brief, instantaneous signals, these signals cannot maintain a constant level over a long period like a true test signal. Therefore, when these signals are received simultaneously with the test signal by the test signal receiving unit, the test signal receiving unit compares the delayed signal fed back by the delay unit with its own undelayed signal, thereby accurately filtering out the instantaneous noise occurring within the delay time, mainly manifested as glitches in the signal.

[0023] The clock generation unit outputs an accurate clock signal based on the received test signal. The delay unit then implements a reasonable delay based on the length of this clock signal and feeds the delayed signal back to the test signal receiving unit. During normal operation, even if glitches or interference occur for a certain period, as long as the duration is less than the delay time of the delay module, the chip will not mistakenly enter test mode. This means that invalid noise or interference has been filtered out.

[0024] Preferably, the test signal receiving unit includes a first current source, a pin switch transistor Mn1, a first inverter, a NAND gate, a second current source, and a control transistor Mn2; wherein, one end of the first current source is connected to the power supply voltage, and the other end is connected to the drain of the pin switch transistor Mn1 and the input of the first inverter respectively; the source of the pin switch transistor serves as the chip test pin, and the gate is connected to the first reference voltage Vcm; the output of the first inverter is connected to the first input of the NAND gate, the second input of the NAND gate is connected to the delayed signal output from the inverted end of the delay unit Q, and the output of the NAND gate is connected to the gate of the control transistor Mn2; one end of the second current source is connected to the power supply voltage, and the other end is connected to the drain of the control transistor Mn2, and the source of the control transistor Mn2 is grounded.

[0025] It is understood that the Vtest signal in this invention can be a pin voltage input from outside the chip to inside the chip. When this voltage is high, it indicates that the chip does not need to enter the test state, while when the voltage is adjusted to a low level, it is the moment when the external signal indicates that the chip has entered the test state. At this time, if the test signal remains at a lower level for a longer period of time compared to noise and glitches, the continuous activation of Mn1 will cause the NAND gate to receive feedback from the delay unit, and the output of the NAND gate will switch, thereby realizing further control of the clock generation unit and the delay unit. This part will be described in detail later.

[0026] Therefore, the value of the first reference voltage Vcm and the turn-on threshold voltage of transistor Mn1 can be reasonably designed so that the difference between the two lies between the high and low levels of Vtest. When chip testing is not required, the Vtest signal can be set to a high level, so its value is greater than Vcm minus the threshold voltage, thus keeping Mn1 in the off state. When the chip is in test mode, Vtest is less than Vcm to a certain extent, thus turning on Mn1. Furthermore, when Mn1 is off, point A in the circuit is at a high level, and the Vrs signal is low after passing through the first inverter. If transistor Mn1 is on, point A is low, and Vrs is high.

[0027] Understandable Figure 1 Q in B <n>That is, the inverse Q input of the D flip-flop in the delay unit will provide a corresponding delay output based on the clock signal time and the Vrs signal.

[0028] Figure 2 This is a timing diagram of important signals in the test mode control circuit of a chip in this invention. For example... Figure 2 As shown, the output state of the Qb signal will be delayed by a certain time compared to Vrs, and the specific generation method will be described later.

[0029] Here, if the signal at the test pin does not indicate that the chip has entered the test state, Vrs will be low, and the output of the NAND gate will remain high. At this time, the control transistor Mn2 is turned on, keeping the voltage at point B in the circuit low. When the voltage at point B is low, the subsequent clock generation unit will not enter the operating state.

[0030] On the other hand, if the signal indicator signal of the test pin enters the test state, Vrs goes high, and the delay signal fed back by the delay unit remains at a high level under the action of the D flip-flop. Therefore, the output of the NAND gate is at a low level, Mn2 is turned off, which leads to an increase in the voltage at point B. At this time, point B can charge the delay capacitor C1 and activate the subsequent clock generation unit.

[0031] Figure 3 This is a timing diagram of relevant node signals in the test mode control circuit of a chip according to the present invention when noise interference occurs. It should be noted that the present invention... Figure 3 The number of D flip-flops is greater than four. Therefore, a signal delay of more than four clock cycles can be achieved. For example... Figure 3 As shown, it can be understood that if Vtest only provides a very brief low-level signal under the influence of noise or glitches, then Vrs only briefly rises under the influence of Vtest before falling back to a low level. Therefore, if the glitch time is shorter than the delay of the D flip-flop, the output delay of the D flip-flop spans the time of the glitch, thus causing Q... <n>The state cannot be changed within the time of the glitch. Furthermore, since the Vrs signal switches low again after the glitch ends, the D flip-flop is successfully reset. During the time the glitch occurs, Q... <n>The circuit remains at a low level, while node R remains at a high level. Therefore, the overall circuit output does not change with short-term glitches, thus successfully achieving noise filtering.

[0032] In this way, the NAND gate isolates the influence of noise on point B in the circuit, or on the output signal of the last cascaded D flip-flop in the delay unit, thereby maximizing the accuracy of the test signal and preventing the test circuit from being turned on erroneously.

[0033] Preferably, the clock generation unit includes a delay capacitor, a clock control transistor Mn3, a comparator, a third current source, a comparator control transistor Mn4, and a second inverter; the drain and source of the delay capacitor and the clock control transistor Mn3 are connected in parallel across the drain and source of the control transistor Mn2; the gate of the clock control transistor Mn3 is connected to the clock signal CLK; the positive input terminal of the comparator is connected to the drain of the clock control transistor Mn3, the negative input terminal is connected to the second reference voltage Vref, and the output terminal is connected to the gate of the comparator control transistor Mn4; one end of the third current source is connected to the power supply voltage, and the other end is connected to the drain of the comparator control transistor Mn4 and the input terminal of the second inverter respectively; the source of the comparator control transistor Mn4 is grounded, and the output terminal of the second inverter outputs the clock signal CLK.

[0034] Understandably, the clock generator can adjust accordingly based on the state of point B in the circuit. If the signal at point B is low, the clock generator will not be activated and will enter the working state. However, if the signal at point B rises, C1 will respond promptly to the high voltage at point B and begin charging.

[0035] When C1 charges to a certain level, the voltage at the non-inverting input of the comparator will be higher than the second reference voltage Vref at the negative input, causing the comparator's output to flip. When the comparator's output is high, transistor Mn4 is turned on, and the voltage at point C is reduced to approximately 0. At this point, after passing through the inverter, the CLK signal switches to a high level.

[0036] It is important to note that the CLK signal in the circuit is fed back to the gate of transistor Mn3 at this time. Therefore, when CLK goes high, Mn3 turns on, quickly lowering the voltage at point B to ground, and simultaneously discharging the charge stored in C1. Consequently, the CLK signal also quickly flips back to a low level as the voltage at point B decreases. Thus, the CLK signal completes one cycle of level change. In this invention, the repeated charging and discharging of C1 generates a precisely periodic clock signal CLK.

[0037] And such Figure 2 As shown, with the input of a test signal maintaining a constant level, the clock of Mn1 is turned on, the Vrs signal remains high, and the delay signal also remains high due to the action of the D flip-flop until the delay ends. At this time, Mn2 is turned off, point B can always receive the charge of the second current source, and ensures effective charging of C1 when CLK does not turn on Mn3. Specifically, the duration of the test signal remaining at a constant low level should be at least longer than the delay time of the delay unit in this application to ensure that the test signal actually sends an effective test mode control signal.

[0038] Preferably, the delay unit includes a frequency divider circuit composed of N D flip-flops, a third inverter, an RS flip-flop, and a fourth inverter, where N is a positive integer. The N D flip-flops in the frequency divider circuit are cascaded, with the CP terminal of the frequency divider circuit connected to the clock signal CLK, the reset terminal connected to the first input terminal of a NAND gate, the Q terminal of the Nth D flip-flop connected to the R terminal of the RS flip-flop after passing through the third inverter, and the inverted Q terminal of the Nth D flip-flop connected to the second input terminal of the NAND gate. The S terminal of the RS flip-flop is connected to the power-on signal POK, and the inverted Q terminal V1 of the RS flip-flop serves as the first test mode control signal. The inverted Q terminal of the RS flip-flop is connected to the input terminal of the fourth inverter, and the output terminal V2 of the fourth inverter serves as the second test mode control signal.

[0039] Understandably, Q B <n>The signal state changes with the state of the Vrs signal connected to the reset terminal, but the D flip-flop will produce a certain time delay, so when Vrs switches to a high level, Q... B <n>After a delay of N D flip-flops, the signal switches to a low level. If multiple D flip-flops are cascaded, the delay length can be adjusted according to the number of D flip-flops. Therefore, the delayed signal fed back to the NAND gate will have a more accurate and time-controllable delay relative to Vrs. Consequently, if Vrs is not continuous, the NAND gate will not continuously output a low level, and therefore, the clock generation unit cannot be continuously activated.

[0040] In addition, this invention adds a POK signal to indicate whether the chip power-on is complete. If power-on is complete, the POK signal is high; otherwise, it remains low. Furthermore, when the POK signal is low, the RS flip-flop indicates that the V1 signal is high, preventing output logic corruption. When the POK signal receives the indication that power-on is complete and toggles high, the V1 signal remains high while the R terminal of the RS flip-flop is still delayed and has not yet toggled. In this way, the POK signal ensures that the V1 signal will not enter test mode if the chip is not fully powered on, guaranteeing user mode even when the chip is not fully powered on.

[0041] In this invention, the first and second test mode control signals can be provided to subsequent circuits to indicate whether the chip is in normal user mode or whether the chip is currently undergoing testing. Specifically, when V1 is high and V2 is low, the chip enters user mode, and vice versa.

[0042] Preferably, the delay is controlled based on the chip's test mode, adjusting the number of delay capacitors and D flip-flops.

[0043] As mentioned earlier, the capacitance value of the delay capacitor C1 and the size of the second current source can be determined based on the required clock cycle, thereby controlling the charging and discharging time of capacitor C1 and ensuring that its total charging and discharging time is equal to the designed clock cycle length. Furthermore, the number of D flip-flops can be designed so that the total delay of the D flip-flops—that is, the product of one clock cycle and the number of D flip-flops—exceeds the possible delay time of glitches or noise, thus effectively filtering them out.

[0044] The beneficial effects of this invention are that, compared with the prior art, the chip test mode control circuit of this invention can receive and preprocess test signals, and filter out invalid transient glitches through delay, thereby enabling the chip to accurately receive valid test signals and correctly enter the test function. This invention is simple in method and ingenious in concept, enabling the circuit to accurately enter the test function on the clock edge under the control of the clock signal, while filtering out one or more noise glitches to ensure the accurate logic of the test circuit.

[0045] The applicant of this invention has provided a detailed description of the embodiments of the invention in conjunction with the accompanying drawings. However, those skilled in the art should understand that the above embodiments are merely preferred embodiments of the invention. The detailed description is only intended to help readers better understand the spirit of the invention and is not intended to limit the scope of protection of the invention. On the contrary, any improvements or modifications made based on the inventive spirit of the invention should fall within the scope of protection of the invention.< / n> < / n> < / n> < / n> < / n>

Claims

1. A test mode control circuit for a chip, characterized in that: The circuit includes a test signal receiving unit, a clock generating unit, and a delay unit; The test signal receiving unit is used to receive the test signals from the test pins of the chip and filter noise. The test signal receiving unit includes a first current source, a pin switch transistor Mn1, a first inverter, a NAND gate, a second current source, and a control transistor Mn2; Wherein, one end of the first current source is connected to the power supply voltage, and the other end is connected to the drain of the pin switch transistor Mn1 and the input terminal of the first inverter, respectively; The source of the pin switch is used as the chip test pin, and the gate is connected to the first reference voltage Vcm. The output terminal of the first inverter is connected to the first input terminal of the NAND gate, the second input terminal of the NAND gate is connected to the delayed signal output from the inverted terminal of the delay unit Q, and the output terminal of the NAND gate is connected to the gate of the control transistor Mn2. One end of the second current source is connected to the power supply voltage, and the other end is connected to the drain of the control transistor Mn2. The source of the control transistor Mn2 is grounded. The design determines the value of the first reference voltage Vcm and the threshold voltage of transistor Mn1, ensuring that the difference between the two lies between the high and low levels of Vtest. When chip testing is not required, the Vtest signal is set to a high level, with a value greater than Vcm minus the threshold voltage, thus keeping Mn1 in the off state. When the chip is instructing to enter test mode, Vtest is less than Vcm minus the threshold voltage, turning on Mn1. The clock generating unit is connected to the test signal receiving unit and generates a clock signal based on the test signal. The delay unit is connected to the clock generation unit and generates a test mode control signal based on the delay of the clock signal.

2. The chip test mode control circuit according to claim 1, characterized in that: The clock generation unit includes a delay capacitor, a clock control transistor Mn3, a comparator, a third current source, a comparator control transistor Mn4, and a second inverter. The delay capacitor and the drain and source of the clock control transistor Mn3 are connected in parallel across the drain and source of the control transistor Mn2. The gate of the clock control transistor Mn3 is connected to the clock signal CLK; The comparator's positive input terminal is connected to the drain of the clock control transistor Mn3, its negative input terminal is connected to the second reference voltage Vref, and its output terminal is connected to the gate of the comparator control transistor Mn4. One end of the third current source is connected to the power supply voltage, and the other end is connected to the drain of the comparator control transistor Mn4 and the input terminal of the second inverter, respectively. The source of the comparator control transistor Mn4 is grounded, and the clock signal CLK is output from the output terminal of the second inverter.

3. The chip test mode control circuit according to claim 2, characterized in that: The delay unit includes a frequency divider circuit composed of N D flip-flops, a third inverter, an RS flip-flop, and a fourth inverter, where N is a positive integer; where, The frequency divider circuit contains N cascaded D flip-flops, with the CP terminal of the frequency divider circuit connected to the clock signal CLK, the reset terminal connected to the first input terminal of the NAND gate, the Q terminal of the Nth D flip-flop connected to the R terminal of the RS flip-flop after passing through the third inverter, and the inverted Q terminal of the Nth D flip-flop connected to the second input terminal of the NAND gate. The S terminal of the RS flip-flop is connected to the power-on signal POK, and the Q inverse terminal V1 of the RS flip-flop is used as the first test mode control signal. The inverted Q terminal of the RS flip-flop is connected to the input terminal of the fourth inverter, and the output terminal V2 of the fourth inverter serves as the control signal for the second test mode.

4. The chip test mode control circuit according to claim 3, characterized in that: Based on the test mode control delay of the chip, the number of delay capacitors and D flip-flops is adjusted.

Citation Information

Patent Citations

  • Method for multiplexing existing logic pin to enter test mode

    CN111157872A