KR20040084510A - Mode start circuit and method using code matching method - Google Patents

Mode start circuit and method using code matching method Download PDF

Info

Publication number
KR20040084510A
KR20040084510A KR1020030019642A KR20030019642A KR20040084510A KR 20040084510 A KR20040084510 A KR 20040084510A KR 1020030019642 A KR1020030019642 A KR 1020030019642A KR 20030019642 A KR20030019642 A KR 20030019642A KR 20040084510 A KR20040084510 A KR 20040084510A
Authority
KR
South Korea
Prior art keywords
signal
mode
bit data
matching
internal clock
Prior art date
Application number
KR1020030019642A
Other languages
Korean (ko)
Inventor
조병선
Original Assignee
주식회사 하이닉스반도체
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 하이닉스반도체 filed Critical 주식회사 하이닉스반도체
Priority to KR1020030019642A priority Critical patent/KR20040084510A/en
Publication of KR20040084510A publication Critical patent/KR20040084510A/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning
    • G01R31/318533Reconfiguring for testing, e.g. LSSD, partitioning using scanning techniques, e.g. LSSD, Boundary Scan, JTAG
    • G01R31/318552Clock circuits details
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/153Arrangements in which a pulse is delivered at the instant when a predetermined characteristic of an input signal is present or at a fixed time interval after this instant
    • H03K5/1534Transition or edge detectors

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE: A mode access circuit using a code matching method and a method for the same are provided to reduce the number of mode access pins by using a serial interface. CONSTITUTION: An internal clock signal generator(10) is used for receiving an external clock signal and a reset signal and generating an internal clock signal. An edge detector(20) is used for detecting an edge of the reset signal. A clear signal generator(30) is used for receiving a matching signal of N-bit data and an output signal of the edge detector and generating a clear signal. An N-bit data storage unit(40) receives and stores data from the outside in response to the internal clock signal and is reset by the clear signal. A matching decision unit(50) compares the N-bit data with a stored code value and generates a data matching signal. A mode signal generator(60) is used for generating a mode signal by an output signal of the matching decision unit and an output signal of the clear signal generator.

Description

코드매칭법을 이용한 모드진입회로 및 방법{MODE START CIRCUIT AND METHOD USING CODE MATCHING METHOD}Mode entry circuit and method using code matching {MODE START CIRCUIT AND METHOD USING CODE MATCHING METHOD}

본 발명은 테스트모드와 같은 특정모드로 진입하는 방법에 관한 것으로서, 보다 구체적으로는 코드매칭을 이용하여 모드진입시의 오류발생을 방지하여 회로동작의 안정성을 확보할 수 있는 코드매칭을 이용한 모드진입회로 및 방법에 관한 것이다.The present invention relates to a method of entering a specific mode, such as a test mode, and more specifically, a mode entry circuit using code matching that can secure the stability of circuit operation by preventing the occurrence of errors during mode entry using code matching. And to a method.

회로의 테스트모드 등과 같은 각종 모드의 동작 안정성을 확보하기 위해서는 해당동작 모드로의 전환방법이 매우 중요하다. 이러한 모드들은 입력신호의 노이즈나 글리치(glitch)와 같은 오류신호들과 해칭으로부터 보호되어야 한다.In order to ensure the operational stability of various modes such as the test mode of the circuit, the switching method to the corresponding operation mode is very important. These modes must be protected from error signals and hatching, such as noise or glitches in the input signal.

종래의 각종회로에서 가장 많이 응용되는 특정모드로의 진입방법은 리세트구간에서 다수의 핀들의 상태를 디코딩하고, 디코딩결과에 따라 원하는 모드로 결정하는 방법이다. 이러한 모드진입방법은 회로구성이 간단하여 많이 사용되고 있는데, 외부 노이즈나 글리치와 같은 오류신호 등에 취약하고 해킹이 용이한 문제점이 있었다.A method of entering a specific mode which is most applied in various conventional circuits is a method of decoding a state of a plurality of pins in a reset section and determining a desired mode according to the decoding result. Such a mode entry method has been widely used because of its simple circuit configuration, which is vulnerable to error signals such as external noise and glitches, and is easily hacked.

예를 들어, 종래의 특정모드로의 진입방법을 설명하면, 칩의 리세트신호(reset signal)가 디스에이블되는 순간, 모드선택핀(mode selection pin) A, B, C, D의 상태조건이 각각 로우상태(L), 로우상태, 로우상태 및 하이상태(H)를 만족하면, 모드 A로 판정하여 모드 A의 동작을 수행한다. 한편, 칩의 리세트신호가 디스에이블되는 순간, 모드선택핀 A, B, C, D 의 상태조건이 각각 로우상태, 로우상태, 하이상태 및 로우상태를 만족하면, 모드 B로 판정하여 모드 B의 동작을 수행한다.For example, in the conventional method of entering a specific mode, when the reset signal of the chip is disabled, the state conditions of the mode selection pins A, B, C, and D are When the low state L, the low state, the low state and the high state H are satisfied, the mode A is determined and the operation of the mode A is performed. On the other hand, if the state of the mode selection pins A, B, C, and D satisfies the low state, low state, high state and low state, respectively, at the moment when the reset signal of the chip is disabled, the mode B is determined to be mode B. Performs the operation of.

그러나 종래의 모드진입방법은 정상적인 칩의 리세트동작시 모드선택핀들의 상태조건이 우연히 특정모드를 판정하는 조건과 일치하는 경우가 발생하게 되면, 칩이 원하지 않는 동작모드로 천이하여 시스템이 오동작을 하게 되는 문제점이 있었다.However, in the conventional mode entry method, if the state condition of the mode selection pins coincides with the condition for determining the specific mode by chance during normal chip reset operation, the chip transitions to an undesired operation mode and the system malfunctions. There was a problem.

따라서, 본 발명은 상기한 바와같은 종래기술의 문제점을 해결하기 위한 것으로서, 노이즈 등에 의한 회로의 보안성을 유지할 수 있는 코드매칭법을 이용한 동작진입회로 및 방법을 제공하는 데 그 목적이 있다.Accordingly, an object of the present invention is to provide an operation entry circuit and a method using a code matching method which can maintain the security of a circuit due to noise and the like.

본 발명의 다른 목적은 코드매칭법을 이용하여 특정 동작모드로의 진입을 허용하므로써, 시스템의 오동작을 방지할 수 있는 동작진입회로 및 방법을 제공하는 데 있다.Another object of the present invention is to provide an operation entry circuit and a method capable of preventing a malfunction of a system by allowing entry into a specific operation mode using a code matching method.

본 발명의 다른 목적은 각종 모드로의 진입을 위해 사용되는 핀의 개수를 줄여 다양하게 칩의 테스트모드 및 프로그램모드를 설정할 수 있는 코드매칭법을 이요한 동작진입회로 및 방법을 제공하는 데 있다.Another object of the present invention is to provide an operation entry circuit and a method using a code matching method for setting a test mode and a program mode of a chip in various ways by reducing the number of pins used to enter various modes.

도 1은 본 발명의 실시예에 따른 코드매칭법을 이용한 모드진입회로의 구성도,1 is a block diagram of a mode entry circuit using a code matching method according to an embodiment of the present invention;

도 2는 본 발명의 코드매칭법을 이용한 모드진입방법을 설명하기 위한 동작파형도,2 is an operation waveform diagram for explaining a mode entry method using the code matching method of the present invention;

*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

10 : 내부클럭신호 발생수단 20 : 에지검출수단10: internal clock signal generation means 20: edge detection means

30 : 클리어신호 발생수단 40 : N-비트 데이터 저장수단30: clear signal generating means 40: N-bit data storage means

50 : N-비트 데이터의 매칭판별수단 60 : 모드신호 발생수단50: matching discrimination means for N-bit data 60: mode signal generating means

상기한 바와 같은 목적을 달성하기 위하여, 본 발명은 외부로부터 인가되는 클럭신호와 리세트신호를 입력하여 내부클럭신호를 발생하는 내부클럭신호 발생수단과; 리세트신호의 에지를 검출하는 에지검출수단과; N-비트 데이터의 매칭신호와 상기 에지검출수단의 출력신호를 입력하여 클리어신호를 발생하기 위한 클리어신호 발생수단과; 상기 내부클럭신호 발생수단으로부터 발생된 내부클럭신호에 응답하여 외부로부터의 데이터를 입력하여 저장하고, 상기 클리어신호 발생수단으로부터 발생된 클리어신호에 의해 리세트되는 N-비트 데이터 저장수단과; 상기 N-비트 데이터 저장수단으로부터 제공되는 N-비트 데이터와 미리 저장되어 있는 특정모드에 대한 코드값을 비교하여 데이터 매칭신호를 발생하는 N-비트 데이터의 매칭판별수단과; 상기 N-비트 데이터의 매칭판별수단의 출력신호와 클리어신호 발생수단의 출력신호에 의해 모드신호를 발생하는 모드신호 발생수단으로 이루어지는 코드매칭법을 이용한 모드진입회로를 제공하는 것을 특징으로 한다.In order to achieve the above object, the present invention comprises: an internal clock signal generation means for generating an internal clock signal by inputting a clock signal and a reset signal applied from the outside; Edge detecting means for detecting an edge of the reset signal; Clear signal generation means for inputting a matching signal of N-bit data and an output signal of the edge detection means to generate a clear signal; N-bit data storage means for inputting and storing data from the outside in response to the internal clock signal generated by the internal clock signal generation means, and being reset by the clear signal generated from the clear signal generation means; Matching discrimination means for N-bit data for generating a data matching signal by comparing the N-bit data provided from said N-bit data storage means with a code value for a specific mode previously stored; A mode entry circuit using a code matching method comprising a mode signal generating means for generating a mode signal by the output signal of the matching discriminating means of the N-bit data and the output signal of the clear signal generating means is provided.

상기 내부클럭신호 발생수단은 외부로부터 인가되는 클럭신호와 리세트신호를 두 입력으로 하여 내부클럭신호를 발생하는 앤드 게이트로 이루어지고, 상기 에지검출수단은 상기 리세트신호의 상승에지를 검출하기 위한 상승에지 검출기와; 상기 리세트신호의 하강에지를 검출하기 위한 하강에지 검출기로 이루어진다. 상기 클리어신호 발생수단은 데이터 매칭신호와 상기 에지검출수단의 하강에지 검출기의 출력신호를 두 입력으로 하는 앤드 게이트와; 상기 앤드 게이트의 출력신호와 상기 에지검출수단의 상승에지 검출기의 출력신호를 두 입력으로 하는 노아 게이트로 이루어진다.The internal clock signal generating means comprises an AND gate for generating an internal clock signal by using a clock signal and a reset signal applied from the outside, and the edge detecting means is configured to detect rising edges of the reset signal. A rising edge detector; And a falling edge detector for detecting a falling edge of the reset signal. The clear signal generating means includes an AND gate having two inputs, a data matching signal and an output signal of a falling edge detector of the edge detection means; The output signal of the AND gate and the output signal of the rising edge detector of the edge detection means are NOR gates having two inputs.

또한, 상기 N-비트 데이터 저장수단은 내부클럭신호 발생수단으로부터 발생되는 내부클럭신호에 응답하여 외부로부터 인가되는 데이터를 시프트시켜 상기 N-비트 데이터의 매칭판별수단으로 제공하며, 상기 클리어신호 발생수단에 의해 발생된 클리어신호에 의해 리세트되는 N-비트 시프트 레지스터로 이루어진다. 상기 N-비트 데이터의 매칭판별수단은 특정모드에 대한 코드값을 저장하기 위한 N-비트 데이터 레지스터와; 상기 데이터 레지스터에 저장된 특정모드에 대한 코드값과 상기N-비트 데이타저장수단으로부터 제공되는 N-비트 데이터를 비교하여 데이터 매칭신호를 출력하는 비교기로 이루어진다. 상기 모드신호 발생수단은 상기 N-비트 데이터의 매칭판별수단의 출력신호와 클리어신호 발생수단의 출력신호에 의해 각각 세트 및 리세트되어 모드신호를 발생하는 RS 플립플롭으로 이루어진다.In addition, the N-bit data storing means shifts the data applied from the outside in response to the internal clock signal generated from the internal clock signal generating means and provides the N-bit data to the matching discriminating means of the N-bit data. It consists of an N-bit shift register reset by a clear signal generated by. The matching means for discriminating the N-bit data includes an N-bit data register for storing a code value for a specific mode; And a comparator for outputting a data matching signal by comparing the code value for the specific mode stored in the data register with the N-bit data provided from the N-bit data storage means. The mode signal generating means comprises an RS flip-flop which is set and reset respectively by an output signal of the matching discriminating means of the N-bit data and an output signal of the clear signal generating means to generate a mode signal.

또한, 본 발명은 외부로부터 인가되는 클럭신호와 리세트신호를 입력하여 내부클럭신호를 발생하는 단계와; 내부클럭신호에 응답하여 외부로부터의 데이터를 입력하여 저장하는 단계와; 상기 N-비트 데이터와 미리 저장되어 있는 특정모드에 대한 코드값을 비교하는 단계와; 상기 비교결과 일치하면 모드신호를 발생하는 단계와; 상기 비교결과 일치하지 않으면, 모드신호를 디스에이블시키는 단계로 이루어지는 코드매칭법을 이용한 모드진입방법을 제공하는 것을 특징으로 한다.In addition, the present invention comprises the steps of generating an internal clock signal by inputting a clock signal and a reset signal applied from the outside; Inputting and storing data from the outside in response to the internal clock signal; Comparing the N-bit data with a code value for a specific mode previously stored; Generating a mode signal when the comparison result is matched; If the result of the comparison does not match, a mode entry method using a code matching method comprising the step of disabling the mode signal is provided.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 설명하면 다음과 같다.Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

도 1은 본 발명의 실시예에 따른 코드매칭법을 이용한 모드진입회로의 구성도를 도시한 것이다.1 is a block diagram of a mode entry circuit using a code matching method according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 코드매칭법을 이용한 모드진입회로는 내부클럭신호 발생수단(10), 에지검출수단(20), 클리어신호 발생수단(30), N-비트 데이터 저장수단(40), N-비트 데이터의 매칭판별수단(50) 및 모드신호 발생수단(60)을 구비한다.Referring to FIG. 1, the mode entry circuit using the code matching method of the present invention includes an internal clock signal generating means 10, an edge detecting means 20, a clear signal generating means 30, and an N-bit data storing means 40. ), Matching means for discriminating N-bit data 50 and mode signal generating means 60.

상기 내부클럭신호 발생수단(10)은 외부로부터 인가되는 클럭신호(CEXT)와 리세트신호(RST)를 입력하여 내부클럭신호(CIN)를 발생하는 앤드 게이트로 이루어지고, 상기 에지검출수단(20)은 상기 리세트신호(RST)의 상승에지(rising egde)를검출하기 위한 상승에지 검출기(21)와, 상기 리세트신호(RST)의 하강에지(falling edge)를 검출하기 위한 하강에지 검출기(22)로 이루어진다.The internal clock signal generating means 10 includes an end gate for generating an internal clock signal CIN by inputting a clock signal CEXT and a reset signal RST applied from the outside, and the edge detecting means 20. ) Is a rising edge detector 21 for detecting a rising edge of the reset signal RST, and a falling edge detector for detecting a falling edge of the reset signal RST. 22).

상기 클리어신호 발생수단(30)은 N-비트 데이터의 매칭신호(MTCB)와 상기 에지검출수단(20)의 하강에지 검출기(22)의 출력신호를 두 입력으로 하는 앤드 게이트(31)와, 상기 앤드 게이트(31)의 출력신호와 상기 에지검출수단(20)의 상승에지 검출기(22)의 출력신호를 두 입력으로 하는 노아 게이트(32)로 이루어진다.The clear signal generating means 30 includes an AND gate 31 having two input signals of a matching signal MTCB of N-bit data and an output signal of the falling edge detector 22 of the edge detecting means 20, The output signal of the AND gate 31 and the output signal of the rising edge detector 22 of the edge detecting means 20 are composed of a NOR gate 32 having two inputs.

상기 N-비트 데이터 저장수단(40)은 내부클럭신호 발생수단(10)으로부터 발생되는 내부클럭신호(CIN)에 응답하여 입력데이타(DIN)로서 제공되는 N-비트의 특정 데이터값을 시프트시키고, 상기 클리어신호 발생수단(30)으로부터 발생된 클리어신호(CLRB)에 의해 리세트되는 시프트 레지스터로 이루어진다.The N-bit data storage means 40 shifts a specific data value of the N-bit provided as input data DIN in response to the internal clock signal CIN generated from the internal clock signal generation means 10, The shift register is reset by the clear signal CLRB generated from the clear signal generating means 30.

상기 N-비트 데이터의 매칭판별수단(50)은 특정모드에 대한 코드값을 저장하기 위한 데이터 레지스터와, 상기 데이터 레지스터에 저장된 특정모드에 대한 코드값과 상기 N-비트 데이타저장수단(40)으로부터 제공되는 N-비트 데이터를 비교하여 데이터의 매칭여부를 판별하는 비교기로 이루어진다.The matching means for discriminating the N-bit data 50 includes a data register for storing a code value for a specific mode, a code value for a specific mode stored in the data register and the N-bit data storage means 40. Comparing the provided N-bit data to determine whether the data match.

상기 모드신호 발생수단(60)은 인버터(61)를 통해 반전된 상기 N-비트 데이터의 매칭판별수단(50)의 출력신호(MTCB)와 클리어신호 발생수단(30)의 출력신호(CLRB)에 의해 각각 세트 및 리세트되어 모드신호(MODE)를 발생하는 RS 플립플롭으로 이루어진다.The mode signal generating means 60 is connected to the output signal MCCB of the matching discriminating means 50 of the N-bit data and the output signal CLRB of the clear signal generating means 30 inverted through the inverter 61. RS flip-flops that are set and reset respectively to generate a mode signal MODE.

상기한 바와같은 구성을 갖는 본 발명의 코드 매칭법을 이용한 모드진입회로의 동작을 도 2의 파형도를 참조하여 설명하면 다음과 같다.The operation of the mode entry circuit using the code matching method of the present invention having the configuration as described above will be described with reference to the waveform diagram of FIG.

먼저, 초기화구간인 리세트구간에서 리세트신호(RST)가 로우상태에서 하이상태로 천이하게 되면, 에지검출수단(20)의 상승에지 검출기(21)는 리세트신호(RST)의 상승에지를 검출하여 하이상태의 신호를 출력한다. 클리어신호 검출수단(30)은 상기 에지검출수단(20)의 상승에지 검출기(210)로부터의 하이상태 출력신호를 입력하여 노아 게이트(32)를 통해 로우상태의 클리어신호(CLRB)를 발생한다. 이에 따라, N-비트 데이터 저장수단(40)인 시프트 레지스터와 N-비트 데이터의 매칭판별수단(60)인 RS 플립플롭을 초기화시킨다.First, when the reset signal RST transitions from the low state to the high state in the reset period, which is the initialization period, the rising edge detector 21 of the edge detecting means 20 raises the rising edge of the reset signal RST. It detects and outputs high signal. The clear signal detecting means 30 inputs a high state output signal from the rising edge detector 210 of the edge detecting means 20 to generate a low clear signal CLRB through the NOR gate 32. Accordingly, the RS flip-flop, which is the matching discrimination means 60 of the shift register and the N-bit data, which is the N-bit data storage means 40, is initialized.

초기화된 후, 내부클럭신호 발생수단(10)의 앤드 게이트가 외부 클럭신호(CEXT)를 입력하여 내부클럭신호(CIN)를 발생하고, 상기 N-비트 시프트 레지스터(40)는 상기 앤드 게이트(10)로부터 출력되는 내부클럭신호(CIN)에 응답하여 외부로부터 입력되는 N-비트의 데이터(DIN)를 저장한다.After initialization, the AND gate of the internal clock signal generation means 10 inputs an external clock signal CEXT to generate an internal clock signal CIN, and the N-bit shift register 40 generates the AND gate 10. N-bit data DIN input from the outside is stored in response to the internal clock signal CIN.

도 2의 파형도에 도시된 바와같이, 상기 시프트 레지스터(40)는 리세트신호(RST)가 하이상태인 구간에서만 상기 내부클럭신호(CIN)에 응답하여 외부 데이터(DIN)를 입력하고 시프트시켜 상기 N-비트 데이터의 매칭판별수단(50)으로 제공한다.As shown in the waveform diagram of FIG. 2, the shift register 40 inputs and shifts external data DIN in response to the internal clock signal CIN only in a section in which a reset signal RST is in a high state. The matching discrimination means 50 of the N-bit data is provided.

상기 N-비트 데이터의 매칭판별수단(50)은 특정모드에 대한 코드값을 미리 N-비트 데이터 레지스터에 저장하고 있으며, 상기 시프트 레지스터(40)로부터 N-비트 데이터가 제공되면 데이터 레지스터에 저장되어 있는 특정모드에 대한 코드값과 상기 시프트 레지스터(40)로부터 제공되는 N-비트 데이타를 비교기를 통해 비교한다.The matching means for discriminating the N-bit data 50 stores a code value for a specific mode in an N-bit data register in advance, and when N-bit data is provided from the shift register 40, it is stored in a data register. The code value for a particular mode is compared with the N-bit data provided from the shift register 40 through a comparator.

그러므로, 내부 클럭신호(CIN)가 인가될 때마다, 상기 시프트 레지스터(40)는 데이터(DIN)를 입력하고 시프트시켜 상기 N-비트 데이터의 매칭판별수단(50)으로 제공하고, 상기 N-비트 데이터의 매칭판별수단(50)은 상기 시프트 레지스터(40)로부터 제공되는 N-비트 데이터와 미리 저장되어 있는 특정모드에 대한 코드값을 비교하는 동작을 반복하여 수행한다.Therefore, each time the internal clock signal CIN is applied, the shift register 40 inputs and shifts the data DIN to provide the matching discrimination means 50 of the N-bit data, and the N-bit. The data matching and discriminating means 50 repeats the operation of comparing the N-bit data provided from the shift register 40 with a code value for a specific mode stored in advance.

상기 데이터 비교결과, 시프트 레지스터(40)로부터 제공되는 N-비트 데이터와 미리 저장되어있는 특정모드에 대한 코드값이 일치하면, N-비트 데이터의 매칭판별수단(50)은 하이상태의 신호를 발생한다. 상기 매칭판별수단(50)의 출력신호는 인버터(65)를 통해 반전되어 데이터 매칭신호(MTCB)로서 모드신호 발생수단(60)의 세트단자(SETB)에 인가됨과 동시에 클리어신호 발생수단(30)으로 제공된다.As a result of the data comparison, when the N-bit data provided from the shift register 40 and the code value for the specific mode stored in advance match, the matching discrimination means 50 of the N-bit data generates a high state signal. do. The output signal of the matching discrimination means 50 is inverted through the inverter 65 and applied to the set terminal SETB of the mode signal generating means 60 as the data matching signal MTCB, and at the same time, the clear signal generating means 30 is provided. Is provided.

따라서, 모드신호 발생수단(60)의 RS 플립플롭은 세트되어 하이상태의 모드신호(MODE)를 발생한다. 한편, 클리어신호 발생수단(30)의 앤드 게이트(31)는 로우상태의 데이터 매칭신호(MTCB)를 입력하여 로우상태의 신호를 노아 게이트(32)로 출력하므로, 클리어신호 발생수단(30)은 계속하여 하이상태의 클리어신호(CLRB)를 발생한다. 이에 따라 N-비트 시프트 레지스터(40) 및 RS 플립플롭(60)으로 제공되는 클리어신호(CLRB)를 차단하여 하이상태의 모드신호(MODE)가 유지되도록 한다. 한다.Therefore, the RS flip-flop of the mode signal generating means 60 is set to generate the mode signal MODE in the high state. On the other hand, the AND gate 31 of the clear signal generating means 30 inputs the data matching signal MTCB in the low state and outputs the low state signal to the NOR gate 32, so that the clear signal generating means 30 Subsequently, a high clear signal CLRB is generated. Accordingly, the clear signal CLRB provided to the N-bit shift register 40 and the RS flip-flop 60 is blocked to maintain the high mode signal MODE. do.

이와 같이 코드매칭되어 로우상태의 데이터 매칭신호(MTCB)가 매칭판별수단(50)을 통해 발생되어 모드신호 발생수단(60)가 모드신호(MODE)를 발생한 상태에서 리세트구간이 종료되어 리세트신호(RST)가 하이상태에서 로우상태로천이되면, 에지검출수단(20)의 하강에지 검출기(22)가 하강에지를 검출한다.As such, the data matching signal MTCB in the low state is generated through the matching discrimination means 50, and the reset section is terminated when the mode signal generating means 60 generates the mode signal MODE. When the signal RST transitions from the high state to the low state, the falling edge detector 22 of the edge detecting means 20 detects the falling edge.

한편, 상기 매칭판별수단(50)을 통해 데이터를 비교한 결과, N-비트 시프트 레지스터(40)의 출력데이타와 미리 저장된 특정모드에 대한 코드값이 일치하지 않는 경우에는 데이터 매칭신호(MTCB)는 하이상태로 된다. 이때, 리세트신호(RST)가 하이상태에서 로우상태로 천이하는 순간, 에지 검출수단(20)의 하강에지 검출기(22)로부터 출력되는 하이상태의 하강에지 검출신호가 클리어신호 발생수단(30)의 앤드 게이트(31)로 제공된다. 따라서, 앤드 게이트(31)는 하이상태의 데이터 매칭신호(MTCB)와 하이상태의 하강에지 검출신호을 입력하여 하이상태의 출력신호를 노아 게이트(32)로 제공하므로, 클리어신호 발생수단(30)은 로우상태의 클리어신호(CLRB)를 출력하여 상기 N-비트 시프트 레지스터(40)와 RS 플립플롭(60)을 클리어시켜 준다. 이에 따라 RS 플립플롭(60)은 로우상태의 모드신호(MODE)를 발생하므로 모드진입은 디스에이블된다.On the other hand, as a result of comparing the data through the matching determination means 50, when the output data of the N-bit shift register 40 and the code value for the specific mode stored in advance do not match, the data matching signal (MTCB) is It goes high. At this time, when the reset signal RST transitions from the high state to the low state, the high falling edge detection signal output from the falling edge detector 22 of the edge detecting means 20 is clear signal generating means 30. And gate 31 is provided. Therefore, the AND gate 31 inputs the data matching signal MTCB of the high state and the falling edge detection signal of the high state to provide the output signal of the high state to the NOR gate 32, so that the clear signal generating means 30 The N-bit shift register 40 and the RS flip-flop 60 are cleared by outputting a low clear signal CLRB. Accordingly, since the RS flip-flop 60 generates the mode signal MODE in the low state, mode entry is disabled.

상기에서 설명한 바와같이, 본 발명의 모드진입회로는 외부로부터 특정 데이터를 입력하는 1비트 데이터핀(DIN), 외부로부터 클럭신호를 입력하기 위한 클럭핀(CEXT), 코드매칭 검출판정구간으로 사용되는 리세트신호를 입력하기 위한 리세트핀(RST)의 3비트 입력핀과, 모드진입여부를 나타내는 모드신호를 발생하는 모드핀(MODE PIN)의 1비트의 출력핀으로 이루어지며, 칩의 초기화구간인 리세트구간에서 칩의 동작모드를 결정하여 줌으로써, 칩의 각종 모드의 동작을 최대한으로 보장하여 준다.As described above, the mode entry circuit of the present invention is used as a 1-bit data pin (DIN) for inputting specific data from the outside, a clock pin (CEXT) for inputting a clock signal from the outside, and a code matching detection determination section. It consists of a 3-bit input pin of the reset pin (RST) for inputting the reset signal, and an output pin of 1 bit of the mode pin (MODE PIN) that generates a mode signal indicating whether the mode has been entered. By determining the operation mode of the chip in the reset period, the operation of various modes of the chip is assured to the maximum.

상기한 바와같은 본 발명의 실시예에 따르면, 칩의 구동에 필요한 각종 모드의 진입을 위하여 시리얼 인터페이스를 사용하므로써 모드 진입에 소요되는 핀의 수를 2개로 감소시킬 수 있으며, 이에 따라 각종 모드의 구성이 가능하므로, 종래보다 다양하게 칩의 테스트모드 및 프로그램 모드의 설정이 가능한 이점이 있다. 또한, 미리 지정된 코드값과 일치하는 데이터가 입력되었을 때에만 특정 모드로의 진입이 가능하므로, 노이즈나 해킹과 같은 외부요인에 의해 칩의 특정 모드가 공개되는 것을 방지할 수 있으며, 이에 따라 칩의 보안성 유지에 매우 효과적이다.According to the embodiment of the present invention as described above, the number of pins required to enter the mode can be reduced to two by using the serial interface to enter the various modes required for driving the chip, and thus the configuration of the various modes. Since this is possible, there is an advantage that the test mode and the program mode of the chip can be set in various ways. In addition, it is possible to enter a specific mode only when data that matches a predetermined code value is input, thereby preventing the specific mode of the chip from being disclosed due to external factors such as noise or hacking. It is very effective in maintaining security.

상기에서는 본 발명의 바람직한 실시예를 참조하여 설명하였지만, 해당 기술 분야의 숙련된 당업자는 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.Although described above with reference to a preferred embodiment of the present invention, those skilled in the art will be variously modified and changed within the scope of the invention without departing from the spirit and scope of the invention described in the claims below I can understand that you can.

Claims (8)

외부로부터 인가되는 클럭신호와 리세트신호를 입력하여 내부클럭신호를 발생하는 내부클럭신호 발생수단;Internal clock signal generation means for inputting a clock signal and a reset signal applied from the outside to generate an internal clock signal; 리세트신호의 에지를 검출하는 에지검출수단;Edge detection means for detecting an edge of the reset signal; N-비트 데이터의 매칭신호와 상기 에지검출수단의 출력신호를 입력하여 클리어신호를 발생하기 위한 클리어신호 발생수단;Clear signal generating means for inputting a matching signal of N-bit data and an output signal of the edge detection means to generate a clear signal; 상기 내부클럭신호 발생수단으로부터 발생된 내부클럭신호에 응답하여 외부로부터의 데이터를 입력하여 저장하고, 상기 클리어신호 발생수단으로부터 발생된 클리어신호에 의해 리세트되는 N-비트 데이터 저장수단;N-bit data storage means for inputting and storing data from the outside in response to the internal clock signal generated from the internal clock signal generation means, and being reset by the clear signal generated from the clear signal generation means; 상기 N-비트 데이터 저장수단으로부터 제공되는 N-비트 데이터와 미리 저장되어 있는 특정모드에 대한 코드값을 비교하여 데이터 매칭신호를 발생하는 N-비트 데이터의 매칭판별수단; 및Matching means for discriminating N-bit data which generates a data matching signal by comparing the N-bit data provided from said N-bit data storage means with a code value for a specific mode previously stored; And 상기 N-비트 데이터의 매칭판별수단의 출력신호와 클리어신호 발생수단의 출력신호에 의해 모드신호를 발생하는 모드신호 발생수단Mode signal generating means for generating a mode signal by the output signal of the matching discriminating means of the N-bit data and the output signal of the clear signal generating means. 을 구비하는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.Mode entry circuit using a code matching method characterized in that it comprises a. 제 1 항에 있어서,The method of claim 1, 상기 내부클럭신호 발생수단은 외부로부터 인가되는 클럭신호와 리세트신호를 두 입력으로 하여 내부클럭신호를 발생하는 앤드 게이트로 이루어지는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.And the internal clock signal generating means comprises an AND gate for generating an internal clock signal using two clock signals and a reset signal applied from the outside. 제 1 항에 있어서,The method of claim 1, 상기 에지검출수단은The edge detection means 상기 리세트신호의 상승에지를 검출하기 위한 상승에지 검출기; 및A rising edge detector for detecting a rising edge of the reset signal; And 상기 리세트신호의 하강에지를 검출하기 위한 하강에지 검출기로 이루어지는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.And a falling edge detector for detecting a falling edge of the reset signal. 제 3 항에 있어서,The method of claim 3, wherein 상기 클리어신호 발생수단은The clear signal generating means 데이터 매칭신호와 상기 에지검출수단의 하강에지 검출기의 출력신호를 두 입력으로 하는 앤드 게이트;An AND gate having two inputs, a data matching signal and an output signal of a falling edge detector of the edge detection means; 상기 앤드 게이트의 출력신호와 상기 에지검출수단의 상승에지 검출기의 출력신호를 두 입력으로 하는 노아 게이트로 이루어지는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.And a Noah gate having two inputs, an output signal of the AND gate and an output signal of the rising edge detector of the edge detection means. 제1항에 있어서,The method of claim 1, 상기 N-비트 데이터 저장수단은 내부클럭신호 발생수단으로부터 발생되는 내부클럭신호에 응답하여 외부로부터 인가되는 데이터를 시프트시켜 상기 N-비트 데이터의 매칭판별수단으로 제공하며, 상기 클리어신호 발생수단에 의해 발생된 클리어신호에 의해 리세트되는 N-비트 시프트 레지스터로 이루어지는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.The N-bit data storing means shifts the data applied from the outside in response to the internal clock signal generated from the internal clock signal generating means, and provides the N-bit data to the matching discriminating means of the N-bit data. A mode entry circuit using a code matching method, comprising: an N-bit shift register reset by a generated clear signal. 제 1 항에 있어서,The method of claim 1, 상기 N-비트 데이터의 매칭판별수단은The matching discrimination means of the N-bit data 특정모드에 대한 코드값을 저장하기 위한 N-비트 데이터 레지스터; 및An N-bit data register for storing code values for specific modes; And 상기 데이터 레지스터에 저장된 특정모드에 대한 코드값과 상기 N-비트 데이타저장수단으로부터 제공되는 N-비트 데이터를 비교하여 데이터 매칭신호를 출력하는 비교기로 이루어지는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.A mode entry circuit using a code matching method, comprising: a comparator for comparing a code value for a specific mode stored in the data register with N-bit data provided from the N-bit data storage means and outputting a data matching signal; . 제 1 항에 있어서,The method of claim 1, 상기 모드신호 발생수단은 상기 N-비트 데이터의 매칭판별수단의 출력신호와 클리어신호 발생수단의 출력신호에 의해 각각 세트 및 리세트되어 모드신호를 발생하는 RS 플립플롭으로 이루어지는 것을 특징으로 하는 코드매칭법을 이용한 모드진입회로.And the mode signal generating means comprises an RS flip-flop which is set and reset by an output signal of the matching discriminating means of the N-bit data and an output signal of the clear signal generating means, respectively, to generate a mode signal. Mode entry circuit using 외부로부터 인가되는 클럭신호와 리세트신호를 입력하여 내부클럭신호를 발생하는 단계;Generating an internal clock signal by inputting a clock signal and a reset signal applied from the outside; 내부클럭신호에 응답하여 외부로부터의 데이터를 입력하여 저장하는 단계;Inputting and storing data from the outside in response to the internal clock signal; 상기 N-비트 데이터와 미리 저장되어 있는 특정모드에 대한 코드값을 비교하는 단계;Comparing the N-bit data with a code value for a specific mode previously stored; 상기 비교결과 일치하면 모드신호를 발생하는 단계; 및Generating a mode signal if the comparison result is matched; And 상기 비교결과 일치하지 않으면, 모드신호를 디스에이블시키는 단계Disabling the mode signal if the comparison result does not match 를 구비하는 것을 특징으로 하는 코드매칭법을 이용한 모드진입방법.Mode entry method using a code matching method characterized in that it comprises a.
KR1020030019642A 2003-03-28 2003-03-28 Mode start circuit and method using code matching method KR20040084510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030019642A KR20040084510A (en) 2003-03-28 2003-03-28 Mode start circuit and method using code matching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030019642A KR20040084510A (en) 2003-03-28 2003-03-28 Mode start circuit and method using code matching method

Publications (1)

Publication Number Publication Date
KR20040084510A true KR20040084510A (en) 2004-10-06

Family

ID=37368067

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030019642A KR20040084510A (en) 2003-03-28 2003-03-28 Mode start circuit and method using code matching method

Country Status (1)

Country Link
KR (1) KR20040084510A (en)

Similar Documents

Publication Publication Date Title
US20200257798A1 (en) Interference detection device and detection sensitivity adjusting method thereof
US20070047687A1 (en) Phase detector and related phase detecting method thereof
US20090108878A1 (en) High-frequency clock detection circuit
JP6968234B2 (en) Electronic devices and methods for performing data sampling integrity checks using flip-flops with relative delay
US20100026357A1 (en) Reset signal filter
US11244046B2 (en) Data-sampling integrity check using gated clock
US8319533B2 (en) System for detecting a reset condition in an electronic circuit
US11941133B2 (en) FPGA chip with protected JTAG interface
JP3080341B2 (en) Data match detection circuit
US6545508B2 (en) Detection of clock signal period abnormalities
US20090315582A1 (en) Test mode enable circuit
US8161366B2 (en) Finite state machine error recovery
US20080114582A1 (en) Detecting tampering of a signal
KR100309233B1 (en) Single-end-zero receiver circiut
US20060020864A1 (en) Method and system for blocking data in scan registers from being shifted out of a device
US11609600B2 (en) Glitch detector
KR20040084510A (en) Mode start circuit and method using code matching method
KR19980065071U (en) Devices to prevent integrated circuits from entering test mode operation by error
US11829227B2 (en) Storage circuit with hardware read access
KR101087225B1 (en) Enabling special modes within a digital device
JP2010216998A (en) Test mode setting circuit and semiconductor integrated circuit comprising the same
CN112507400B (en) Electronic device and method for protecting electronic device
KR101192902B1 (en) Method and apparatus for detecting a clock signal in mobile communication system
KR100844485B1 (en) Test mode entry/decision circuit for semiconductor device, semiconductor device having the same, and method of entering test mode and determining test mode of semiconductor
KR19990026431A (en) Reset circuit

Legal Events

Date Code Title Description
N231 Notification of change of applicant
SUBM Surrender of laid-open application requested