KR100557918B1 - Error Correction Device Using Joint Test Access Group - Google Patents

Error Correction Device Using Joint Test Access Group Download PDF

Info

Publication number
KR100557918B1
KR100557918B1 KR1019980052209A KR19980052209A KR100557918B1 KR 100557918 B1 KR100557918 B1 KR 100557918B1 KR 1019980052209 A KR1019980052209 A KR 1019980052209A KR 19980052209 A KR19980052209 A KR 19980052209A KR 100557918 B1 KR100557918 B1 KR 100557918B1
Authority
KR
South Korea
Prior art keywords
error correction
register
signal
jtag
data
Prior art date
Application number
KR1019980052209A
Other languages
Korean (ko)
Other versions
KR20000037584A (en
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 KR1019980052209A priority Critical patent/KR100557918B1/en
Publication of KR20000037584A publication Critical patent/KR20000037584A/en
Application granted granted Critical
Publication of KR100557918B1 publication Critical patent/KR100557918B1/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
    • 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/31705Debugging aspects, e.g. using test circuits for debugging, using dedicated debugging test circuits
    • 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/319Tester hardware, i.e. output processing circuits
    • G01R31/31903Tester hardware, i.e. output processing circuits tester configuration
    • G01R31/31905Interface with the device under test [DUT], e.g. arrangements between the test head and the DUT, mechanical aspects, fixture

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

본 발명은 JTAG를 이용한 오류수정장치에 관한 것으로, 종래의 기술에 있어서는 외부 메모리에 접근을 위해서는 별도의 장치가 필요하고, 이에 따른 비용의 증가와 시스템의 크기가 커지며, 메모리의 내용을 실시간으로 볼 수 있는 방법이 없다는 문제점이 있었다. 따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 오류수정을 하는 사용자들이 실제로 프로그램을 다운로드 시키고 오류수정을 실행시키는 호스트와; 사용자의 입력을 JTAG 인터페이스 신호로 바꾸어 주는 인터페이스부와; JTAG 신호를 받아서 오류수정이나 테스트를 할 때 실제로 데이터를 입력시키고 실행시켜서, 검증을 하고자 하는 기판이나 칩의 상태 값을 출력시키는 TAP 제어기와; 직렬자리이동 및 JTAG 레지스터가 가해진 개발/검증하고자 하는(실제 개발/검증 대상인) 테스트장치와; 외부 메모리와 상기 테스트장치간의 연결을 위한 버스 인터페이스부와; 상기 테스트장치를 제어하여 외부 메모리에 직접 접근하고, 실시간으로 기능검증 및 오류수정이 가능하도록 제어하는 오류수정 로직으로 구성한 장치를 제공하여, 외부 메모리로의 접근을 롬-라이터와 같은 별도의 장비가 필요 없어 비용의 절감과 장비의 효율성이 증가하며, 외부 이벤트에 의한 오류수정도 한 클럭씩 관찰할 수 있게 함으로써, 실제적인 실행에 의한 하드웨어의 동작 상태를 관찰할 수 있게 하여 재발 시간을 단축시키는 효과가 있다.The present invention relates to an error correction device using a JTAG, in the prior art, a separate device is required to access the external memory, the cost increases and the size of the system is increased, and the contents of the memory can be viewed in real time. There was a problem that there is no way. Accordingly, the present invention has been made to solve the above-mentioned conventional problems, the host and the error correction users actually download the program and execute the error correction; An interface unit for converting a user input into a JTAG interface signal; A TAP controller which receives data of a JTAG signal and actually inputs and executes data when performing error correction or testing, and outputs a state value of a board or a chip to be verified; A test apparatus to be developed / verified (subject to actual development / verification) to which serial shifting and JTAG registers are applied; A bus interface unit for connecting an external memory to the test apparatus; By providing a device configured with error correction logic that controls the test device to directly access the external memory and enables function verification and error correction in real time, separate equipment such as ROM-writer can be accessed. Reduces recurrence time by reducing the cost and increasing the efficiency of equipment, and the ability to observe the number of errors caused by external events by one clock. There is.

Description

조인트 테스트 액세스 그룹을 이용한 오류수정장치Error Correction Device Using Joint Test Access Group

본 발명은 JTAG를 이용한 오류수정장치에 관한 것으로, 특히 칩의 설계단계에서부터 오류수정작업(Debugging)을 고려하여 조인트 테스트 액세스 그룹(Joint Test Access Group)(이하 "JTAG"이라 함)을 이용하는 오류수정 로직을 사용하여 외부의 롬-에뮬레이터(ROM-Emulator) 기능을 하도록 칩 내부에 부가함으로써, 롬-라이터(ROM-Writer) 등의 별도의 장비 없이 오류수정 로직을 구현하여 완벽한 오류수정 환경을 제공하는 조인트 테스트 액세스 그룹을 이용한 오류수정장치에 관한 것이다.The present invention relates to an error correction apparatus using JTAG, in particular error correction using a Joint Test Access Group (hereinafter referred to as "JTAG") in consideration of the error correction (Debugging) from the design stage of the chip. By using logic to add an external ROM-emulator function inside the chip, it provides a complete error correction environment by implementing error correction logic without additional equipment such as ROM-Writer. An error correcting apparatus using a joint test access group.

도 1은 종래 JTAG을 이용한 오류수정장치의 구성을 보인 블록도로서, 이에 도시된 바와 같이 오류수정을 하는 사용자들이 실제로 프로그램을 다운로드 시키고 오류수정을 실행시키는 호스트(10)와; 사용자의 입력을 JTAG 인터페이스 신호로 바꾸어 주는 인터페이스부(11)와; 오류수정이나 테스트를 할 때 실제로 데이터를 입력시키고 실행시켜서 테스트를 하고자 하는 기판이나 칩의 상태 값(검증하고자 하는 블록의 레지스터 값)을 출력시키는 TAP 제어기(12)와; JTAG 레지스터(미도시) 및 직렬자리이동 레지스터(미도시)가 가해져서 실제 개발/검증 하고자 하는 테스트장치(20)와; 외부 메모리(15)와 상기 테스트장치(20)간의 연결을 위한 버스 인터페이스부(14)와; 외부 메모리(15)로의 빠른 접근을 위해 호스트(10)와 외부 메모리(15)를 연결하여 주는 롬-라이터(13)로 구성되며, 상기 테스트장치(20)는 도 2에 도시된 바와 같이 JTAG 명령을 저장하고, 오류수정 모드를 결정하여 그에 따른 신호를 출력하는 JTAG 명령 레지스터(21)와, 상기 JTAG 명령 레지스터(21)의 제어신호에 의해 구동되어 테스트를 위한 입력데이터를 저장하는 JTAG 데이터 레지스터(22)와, 직렬적으로 자리를 이동하면서 테스트를 위한 입력데이터 및 테스트 결과데이터를 입출력하는 직렬자리이동 레지스터(23)와, 상기 직렬자리이동 레지스터(23)로부터 입력되는 명령데이터를 디코딩하는 디코딩부(24)로 구성된 것으로, 이와 같이 구성된 종래 장치의 동작을 설명하면 다음과 같다. 1 is a block diagram showing the configuration of an error correction apparatus using a conventional JTAG, as shown in the host 10, the user actually corrects the program to download and execute the error correction; An interface unit 11 for converting a user input into a JTAG interface signal; A TAP controller 12 which actually inputs and executes data when correcting or testing an error, and outputs a state value (a register value of a block to be verified) of a substrate or a chip to be tested; A test apparatus 20 to which JTAG registers (not shown) and serial position shift registers (not shown) are to be actually developed / verified; A bus interface unit 14 for connecting the external memory 15 and the test apparatus 20; It consists of a ROM-writer 13 connecting the host 10 and the external memory 15 for quick access to the external memory 15, and the test apparatus 20 is a JTAG command as shown in FIG. 2. A JTAG command register 21 for storing an error correction mode and outputting a signal, and a JTAG data register driven by a control signal of the JTAG command register 21 to store input data for a test. 22), a serial position shift register 23 for inputting and outputting input data and test result data for a test while shifting the position serially, and a decoding unit for decoding command data input from the serial position shift register 23. The operation of the conventional apparatus configured as described above, which is constituted by (24), is as follows.

호스트(10)에서 사용자의 입력(오류수정작업을 위한 실제 프로그램)을 다운로드(down-load)받아 기 설정된 프로토콜(JTAG 인터페이스 신호로 바꾸기 위한)에 맞게 인터페이스부(11)로 출력하며, 이 인터페이스부(11)는 호스트로부터 입력되는 사용자 입력(어드레스 신호와 데이터 신호 및 제어신호)을 JTAG 인터페이스 프로토콜을 통해 JTAG 명령신호와 테스트 모드 선택신호(Test Mode Select)(이하 "TMS"라 함) 및 테스트 클럭(Test Clock)(이하 "TCK"라 함)으로 바꾸어 TAP 제어기(12)로 출력한 후, 상기 TMS, TCK에 따라 오류수정을 위한 입력데이터(Test Deta Input)(이하 "TDI"라 함)를 테스트장치(20)의 직렬자리이동 레지스터(23)로 인가하여 테스트장치(20)를 실행시키고, 그 실행 결과를 상기 직렬자리이동 레지스터(23)를 통해 받아들여 개발자가 볼 수 있도록 상기 호스트(10)로 출력한다.The host 10 downloads (down-loads) a user's input (actual program for error correction) and outputs it to the interface unit 11 in accordance with a predetermined protocol (to change to a JTAG interface signal). The 11 inputs a user input (address signal, data signal, and control signal) input from the host to a JTAG command signal, a test mode select signal (hereinafter referred to as "TMS") and a test clock through the JTAG interface protocol. After changing to (Test Clock) (hereinafter referred to as "TCK") and outputting to the TAP controller 12, input data (Test Deta Input) (hereinafter referred to as "TDI") for error correction in accordance with the TMS, TCK. The test apparatus 20 is executed by applying it to the serial shift register 23 of the test apparatus 20, and the result of the execution is received through the serial shift register 23 to allow the developer to view the host 10. Output to) The.

상기 직렬자리이동 레지스터(23)는 칩 내부의 모든 블록(레지스터)의 플립플롭(미도시)에 직접 연결되어 있어서 상기 TAP 제어기(12)의 제어에 따라 직렬자리이동 레지스터(23)가 가해진 칩 내부의 플립플롭에 오류수정을 위한 데이터를 TDI를 통하여 임의로 집어넣을 수 있고, 칩을 한 클럭만 실행시킨 뒤 플립플롭의 결과값을 TDO를 통하여 읽어 들일 수 있어 임의의 입력에 따른 출력을 관찰함으로써, 칩의 기능 검증을 수행할 수 있다.The serial shift register 23 is directly connected to a flip-flop (not shown) of all blocks (registers) in the chip, so that the serial shift register 23 is applied under the control of the TAP controller 12. By using TDI, data for error correction can be arbitrarily inserted into the flip-flop of the chip, and the result of the flip-flop can be read through the TDO by observing the output according to any input. Functional verification of the chip can be performed.

따라서, 칩의 응용 개발자가 시스템 프로그램을 개발하기 위해 메모리 상에 실행시키면서 칩의 상태를 관찰하기 위해서는 외부 메모리(15)에 프로그램을 직접 다운로드 하거나, 외부 메모리의 값을 읽기 위해서는 롬-라이터(13) 또는 메모리제어기(미도시)를 따로 FPGA로 제작하여 외부 메모리(15)에 접근한다. 즉 외부 메모리와의 인터페이스를 위하여 다른 장치를 사용하여 접근을 하며, 칩 내부의 상태를 알기 위해서는 JTAG를 이용하여 내부를 감시한다. Therefore, while the application developer of the chip is running on the memory to develop a system program, the program is downloaded directly to the external memory 15 to observe the state of the chip, or the ROM-writer 13 to read the value of the external memory. Alternatively, a memory controller (not shown) may be manufactured separately to access the external memory 15. In other words, it accesses by using other device to interface with external memory, and monitors the inside by using JTAG to know the state inside the chip.

상기에서와 같이 종래의 기술에 있어서는 외부 메모리에 접근을 위해서는 별도의 장치가 필요하고, 이에 따른 비용의 증가와 시스템의 크기가 커지며, 메모리의 내용을 실시간으로 볼 수 있는 방법이 없는 문제점이 있었다.As described above, in the related art, a separate device is required to access an external memory, and thus, an increase in cost and a size of a system are increased, and there is no problem in that the contents of the memory can be viewed in real time.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 창안한 것으로, 조인트 테스트 액세스 그룹(JTAG)을 이용하는 오류수정 로직을 사용하여 외부의 롬-에뮬레이터(ROM-Emulator) 기능을 하도록 칩 내부에 부가함으로써, 롬-라이터(ROM-Writer)나 별도의 장비 없이 오류수정 로직을 구현하여 완벽한 오류수정 환경을 제공하는 장치를 제공함에 그 목적이 있다.Accordingly, the present invention was devised to solve the above-mentioned conventional problems, and uses an error correction logic using a joint test access group (JTAG) to function as an external ROM-emulator. In addition, the object of the present invention is to provide a device that provides a complete error correction environment by implementing error correction logic without a ROM-Writer or a separate device.

이와 같은 목적을 달성하기 위한 본 발명 조인트 테스트 액세스 그룹을 이용한 오류수정장치의 구성은, 오류수정을 하는 사용자들이 실제로 프로그램을 다운로드 시키고 오류수정을 실행시키는 호스트와; 사용자의 입력을 JTAG 인터페이스 신호로 바꾸어 주는 인터페이스부와; 오류수정이나 테스트를 할 때 실제로 데이터를 입력시키고 실행시켜서 테스트를 하고자 하는 기판이나 칩의 상태 값을 출력시키는 TAP 제어기와; 직렬자리이동 및 JTAG 레지스터가 가해진 개발/검증하고자 하는(실제 개발/검증 대상인) 테스트장치와; 외부 메모리와 상기 테스트장치간의 연결을 위한 버스 인터페이스부(이하 "BIU"라 함)와; 상기 테스트장치를 제어하여 외부 메모리에 직접 접근하고, 실시간으로 기능검증 및 오류수정이 가능하도록 제어하는 오류수정 로직으로 구성한 것을 특징으로 한다.The configuration of the error correction apparatus using the joint test access group of the present invention for achieving the above object comprises: a host for the user to perform the error correction actually download the program and execute the error correction; An interface unit for converting a user input into a JTAG interface signal; A TAP controller that actually inputs and executes data when performing error correction or testing to output a state value of a substrate or a chip to be tested; A test apparatus to be developed / verified (subject to actual development / verification) to which serial shifting and JTAG registers are applied; A bus interface unit (hereinafter referred to as "BIU") for connecting between an external memory and the test apparatus; It is characterized in that the configuration of the error correction logic to control the test device to directly access the external memory, and to enable the function verification and error correction in real time.

상기 테스트장치는 JTAG 명령을 저장하고, 오류수정 모드를 결정하여 그에 따른 신호를 출력하는 JTAG 명령 레지스터와; 상기 JTAG 명령 레지스터의 제어신호에 의해 구동되어 테스트를 위한 입력데이터를 저장하는 JTAG 데이터 레지스터와; 직렬적으로 자리를 이동하면서 테스트를 위한 입력데이터 및 테스트 결과데이터를 입출력하는 직렬자리이동 레지스터부와; 외부 메모리와의 접근을 위한 명령데이터를 저장하고, 이를 출력하는 명령어 레지스터와; 상기 명령어 레지스터로부터 입력되는 명령데이터를 디코딩하는 디코딩부와; 상기 디코딩부로부터 입력되는 접근할 외부 메모리의 주소를 저장하는 주소저장 레지스터와; 상기 디코딩부로부터 입력되는 접근할 외부 메모리의 데이터를 저장하는 데이터 레지스터와; BIU로 출력되는 신호(외부 메모리의 주소 및 데이터)를 제어하는 상태제어 레지스터로 구성한 것을 특징으로 한다.The test apparatus includes: a JTAG command register for storing a JTAG command, determining an error correction mode, and outputting a signal accordingly; A JTAG data register driven by a control signal of the JTAG command register to store input data for a test; A serial digit shift register unit for inputting and outputting input data and test result data for a test while shifting a digit in series; An instruction register for storing instruction data for access to an external memory and outputting the instruction data; A decoding unit for decoding the command data input from the command register; An address storage register for storing an address of an external memory to be input from the decoding unit; A data register for storing data of an external memory to be input from the decoding unit; And a status control register for controlling signals (address and data of external memory) output to the BIU.

상기 오류수정 로직은 외부로로부터 입력되는 이벤트에 관한 신호(하드웨어 인터럽트 신호 등)만을 따로 저장하는 이벤트저장부와; 상기 이벤트저장부로부터 출력되는 이벤트신호를 입력받아 기 설정되어 있는 이전 상태의 이벤트와 비교하여 그에 따른 신호를 출력하는 이벤트 모니터부와; 상기 이벤트 모니터부로부터 출력되는 신호에 의해 칩의 동작을 정지시키고, 오류수정 모드로 전환함을 알리는 신호를 오류수정 레지스터로 출력하는 오류수정 제어부와; 상기 오류수정 제어부의 제어신호에 의해 오류수정을 위한 클럭을 생성하여 출력하는 클럭 생성부와; JTAG 인터페이스 프로토콜에 따라 호스트 및 오류수정 제어부의 동작을 제어하고, 그 결과를 저장하는 오류수정 레지스터와; 상기 오류수정 레지스터에 저장되어 있는 데이터를 읽어들여 그에 따라 상태제어 레지스터 값을 인가하는 BIU 제어부로 구성한 것을 특징으로 한다.The error correction logic includes an event storage unit for separately storing only a signal (a hardware interrupt signal, etc.) related to an event input from the outside; An event monitor unit which receives the event signal output from the event storage unit and compares the event signal with a preset state and outputs a corresponding signal; An error correction control unit which stops the operation of the chip by the signal output from the event monitor unit and outputs a signal informing of an error correction mode to the error correction register; A clock generator for generating and outputting a clock for error correction by a control signal of the error correction controller; An error correction register for controlling operations of the host and error correction control unit according to the JTAG interface protocol, and storing the result; And a BIU control unit for reading data stored in the error correction register and applying a state control register value accordingly.

이하, 본 발명에 따른 일실시예를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, an embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

도 3은 본 발명 조인트 테스트 액세스 그룹을 이용한 오류수정장치의 일실시예의 구성을 보인 블록도로서, 이에 도시한 바와 같이 오류수정을 하는 사용자들이 실제로 프로그램을 다운로드 시키고 오류수정을 실행시키는 호스트(30)와; 사용자의 입력을 JTAG 인터페이스 신호로 바꾸어 주는 인터페이스부(31)와; 오류수정이나 테스트를 할 때 실제로 데이터를 입력시키고 실행시켜서 테스트를 하고자 하는 기판이나 칩의 상태 데이터를 출력시키는 TAP 제어기(32)와; 직렬자리이동 및 JTAG 레지스터(미도시)가 가해진 개발/검증하고자 하는(실제 개발/검증 대상인) 테스트장치(50)와; 외부 메모리(34)와 상기 테스트장치(50)간의 연결을 위한 버스 인터페이스부(BIU, 33)와; 상기 테스트장치(50)를 제어하여 외부 메모리(34)에 직접 접근하고, 실시간으로 기능검증 및 오류수정이 가능하도록 제어하는 오류수정 로직(40)으로 구성한다.FIG. 3 is a block diagram showing an embodiment of an error correction apparatus using the joint test access group of the present invention. As shown in FIG. 3, a host 30 which actually downloads a program and executes error correction by the user who corrects the error is shown. Wow; An interface unit 31 for converting a user input into a JTAG interface signal; A TAP controller 32 for actually inputting and executing data when correcting an error or performing a test to output state data of a substrate or a chip to be tested; A test apparatus 50 to be developed / verified (subject to actual development / verification) to which a serial digit shift and a JTAG register (not shown) are applied; A bus interface unit (BIU) 33 for connection between an external memory 34 and the test apparatus 50; By controlling the test device 50 is configured to directly access the external memory 34, the error correction logic 40 for controlling the function verification and error correction in real time.

도 4는 도 3에서 직렬자리이동 레지스터와 JTAG 레지스터가 가해진 테스트장치의 구성을 보인 블록도로서, 이에 도시한 바와 같이 JTAG 명령을 저장하고, 오류수정 모드를 결정하여 그에 따른 신호를 출력하는 JTAG 명령 레지스터(51)와; 상기 JTAG 명령 레지스터(51)의 제어신호에 의해 구동되어 테스트를 위한 입력데이터를 저장하는 JTAG 데이터 레지스터(52)와; 직렬적으로 자리를 이동하면서 테스트를 위한 입력데이터 및 테스트 결과데이터를 입출력하는 직렬자리이동 레지스터부(53)와; 외부 메모리(34)와의 접근을 위한 명령데이터를 저장하고, 이를 출력하는 명령어 레지스터(54)와; 상기 명령어 레지스터(54)로부터 입력되는 명령데이터를 디코딩하는 디코딩부(55)와; 상기 디코딩부(55)로부터 입력되는 접근할 외부 메모리(34)의 주소를 저장하는 주소저장 레지스터(56)와; 상기 디코딩부(55)로부터 입력되는 접근할 외부 메모리(34)의 데이터를 저장하는 데이터 레지스터(57)와; 버스 인터페이스 장치(BIU, 33)로 출력되는 신호(외부 메모리의 주소 및 데이터)를 제어하는 상태제어 레지스터(58)로 구성한다.FIG. 4 is a block diagram showing a configuration of a test apparatus to which a serial digit shift register and a JTAG register are applied in FIG. 3. The JTAG instruction stores a JTAG instruction, determines an error correction mode, and outputs a signal according to the configuration. A register 51; A JTAG data register 52 driven by a control signal of the JTAG command register 51 to store input data for a test; A serial digit shift register unit 53 for inputting and outputting input data and test result data for a test while moving a digit in series; An instruction register 54 for storing instruction data for access to the external memory 34 and outputting the instruction data; A decoding unit (55) for decoding command data input from the command register (54); An address storing register (56) for storing an address of an external memory (34) to be input from the decoding unit (55); A data register (57) for storing data of an external memory (34) to be input from the decoding unit (55); It consists of a status control register 58 for controlling signals (address and data of external memory) output to the bus interface device (BIU) 33.

도 5는 도 3에서 오류수정 로직의 구성을 보인 블록도로서, 이에 도시한 바와 같이 직렬자리이동 레지스터(53)로부터 입력되는 이벤트에 관한 신호만을 따로 저장하는 이벤트저장부(41)와; 상기 이벤트저장부(41)로부터 출력되는 이벤트신호를 입력받아 기 설정되어 있는 이전 상태의 이벤트와 비교하여 그에 따른 신호를 출력하는 이벤트 모니터부(42)와; 상기 이벤트 모니터부(42)로부터 출력되는 신호에 의해 칩의 동작을 정지시키고, 오류수정 모드로 전환함을 알리는 신호를 호스트(30)로 출력하는 오류수정 제어부(43)와; 상기 오류수정 제어부(43)의 제어신호에 의해 오류수정을 위한 클럭을 생성하여 출력하는 클럭 생성부(44)와; JTAG 인터페이스 프로토콜에 따라 호스트(30) 및 오류수정 제어부(43)의 동작을 제어하고, 그 결과를 저장하는 오류수정 레지스터(45)와; 상기 오류수정 레지스터(45)에 저장되어 있는 데이터를 읽어들여 그에 따라 도 4의 상태제어 레지스터(58) 값을 인가하는 BIU 제어부(46)로 구성한다.FIG. 5 is a block diagram showing the configuration of error correction logic in FIG. 3, and as shown therein, an event storage unit 41 for separately storing only a signal relating to an event input from the serial digit shift register 53; An event monitor unit 42 which receives an event signal output from the event storage unit 41 and compares it with an event of a previously set state and outputs a signal according to the event; An error correction control unit 43 which stops the operation of the chip by the signal output from the event monitor unit 42 and outputs a signal to the host 30 informing that the switch is in the error correction mode; A clock generator 44 which generates and outputs a clock for error correction according to the control signal of the error correction controller 43; An error correction register 45 for controlling operations of the host 30 and the error correction control section 43 according to the JTAG interface protocol, and storing the result; The BIU control section 46 reads the data stored in the error correction register 45 and applies the state control register 58 value of FIG. 4 accordingly.

이와 같이 구성한 본 발명에 따른 일실시예의 동작 과정 및 작용 효과를 설명하면 다음과 같다.Referring to the operation process and effect of the embodiment according to the present invention configured as described above are as follows.

호스트(30)에서 사용자의 입력(오류수정작업을 위한 실제 프로그램)을 다운로드(down-load)받아 기 설정된 프로토콜(JTAG 인터페이스 신호로 바꾸기 위한)에 맞게 인터페이스부(31)로 출력하며, 이 인터페이스부(31)는 호스트(30)로부터 입력되는 사용자 입력(어드레스 신호와 데이터 신호 및 제어신호)을 JTAG 인터페이스 프로토콜을 통해 JTAG 명령신호와 테스트 모드 선택신호(TMS) 및 테스트 클럭(TCK)으로 바꾸어 TAP 제어기(32)로 출력한 후, 오류수정을 위한 입력데이터(TDI)를 테스트장치(50)의 직렬자리이동 레지스터(53)로 출력하던지 아니면 상기 직렬자리이동 레지스터(53)로부터 오류수정 결과값을 입력받아 상기 호스트(30)로 출력한다.The host 30 downloads (down-loads) a user's input (actual program for error correction) and outputs it to the interface unit 31 according to a preset protocol (to change to a JTAG interface signal). The T31 controller converts a user input (address signal, data signal, and control signal) input from the host 30 into a JTAG command signal, a test mode selection signal (TMS), and a test clock (TCK) through a JTAG interface protocol. After outputting to 32, input data TDI for error correction is output to the serial shift register 53 of the test apparatus 50, or the error correction result value is input from the serial shift register 53. It receives and outputs to the host (30).

또한, 상기 TAP 제어기(32)는 입력받은 TCK와 TMS를 오류수정 로직(40)으로 출력하며, 이를 입력받은 오류수정 로직(40)은 오류수정 레지스터(45)를 통해 칩을 실행시키면서 실시간으로 상태제어 레지스터(58)를 통해 칩의 상태를 밖으로 나타낸다. 즉, 오류수정 레지스터(45)는 오류수정 제어부(43)를 제어하여 클럭 생성부(44)에서 칩을 정지시키도록 하는 신호(이하 "Halt신호"라 함)를 출력하게 하여 칩의 동작을 정지시킨 후, 명령어 레지스터(54)에 외부 메모리(34) 접근방식을 명령하는데, 이를테면 읽을 것인지 쓸 것인지 또는 벌크 모드(Bulk Mode)인지 아닌지를 결정하는 것으로, 이 명령은 JTAG를 통하여 이루어진다. 상기 명령은 디코딩부(55)에서 디코딩되어 출력되며, 주소저장 레지스터(56)에는 외부 메모리에 접근할 주소가, 데이터 레지스터(57)에는 데이터가 각각 저장되고, 다 저장이 되고 나면 자동적으로 결정된 외부 메모리 접근방식에 따라 실행시키며, 실행이 끝나면 끝난 상태를 오류수정 레지스터(45)에 나타내어 JTAG를 통하여 외부 메모리의 값을 읽거나 외부 메모리에 써 줄 수 있다. 만일 벌크 모드로 명령을 주었다면 자동적으로 주소를 증가하면서 데이터를 읽어 내고 쓴다. 따라서 칩의 실행 중에 외부 메모리 상의 데이터나 명령을 수정하면서 시스템을 개발할 수 있게 한다.In addition, the TAP controller 32 outputs the received TCK and TMS to the error correction logic 40, the error correction logic 40 received the state in real time while executing the chip through the error correction register 45 The control register 58 indicates the state of the chip out. That is, the error correction register 45 controls the error correction control unit 43 to output a signal (hereinafter referred to as a "Halt signal") that causes the clock generation unit 44 to stop the chip to stop the operation of the chip. Afterwards, the instruction register 54 instructs the external memory 34 approach, such as determining whether to read or write or in bulk mode, which is done via JTAG. The command is decoded and output by the decoding unit 55. The address storing register 56 stores an address for accessing an external memory, and the data register 57 stores data. It executes according to the memory approach, and when the execution is finished, the error correction register 45 can indicate the value of the external memory through the JTAG or write the value to the external memory. If you give a command in bulk mode, it automatically reads and writes data, incrementing the address. This allows the system to be developed while modifying data or instructions on external memory during chip execution.

또한, 외부 회로와의 신호 전달을 일일이 감시하고, 시스템 클럭까지 제어하면서 어느 칩을 사용하여 시스템을 개발하고자 할 때, 예를 들면 외부 인터럽트 신호가 들어온다든지 칩에서 외부 입출력의 특정 영역을 접근하고자 하는 경우 도 5에 도시한 바와 같이 이벤트저장부(41)로부터 출력되는 이벤트에 관한 신호들을 이벤트 모니터부(42)에서 항상 감시하는데, 기 설정되어 있는 이전 상태의 이벤트와 비교하여 입력된 신호들의 상태가 변한 것이 감지되면 감지신호를 출력하며, 이를 오류수정 제어부(43)에서 입력받아 클럭 생성부(44)를 제어하여 Halt신호를 출력하고, 이 Halt신호에 의해 테스트장치(50)는 정지모드에 들어가 사용자로부터의 명령을 기다리기 시작한다. 이후, 상기 오류수정 제어부(43)는 오류수정 레지스터(45)에 이를 알리면(오류수정 레지스터에 한 비트를 셋팅(setting)한다) 이 신호는 인터럽트신호로 호스트(30)를 통해 사용자에게 알리게 되고, 사용자가 명령을 내리게 되면 이 명령은 인터페이스부(31)에 의하여 오류수정 레지스터(45)를 한 비트 셋팅하게 되며, 이 비트는 상기 오류수정 제어부(43)를 제어하는 신호가 되어 다시 오류수정에 필요한 작업을 수행하게 된다. 즉 클럭 생성부(44)에서 오류수정 시작을 알리는 클럭신호(Debug_clk)를 생성하도록 하고, 이때 정지모드에 있던 테스트장치(50)는 상기 클럭신호(Debug_clk)에 따라 동작하면서 한 클럭마다 칩을 정지시켜 오류수정 작업을 하도록 한다. 또한 사용자가 싱글-스테핑(Single-stepping)을 하도록 명령을 내릴 수 있도록 함으로써, 한 명령어씩 내부 상태를 관찰할 수 있다.In addition, when developing a system using a chip while monitoring signal transmission with an external circuit and controlling the system clock, for example, when an external interrupt signal comes in, a chip is required to access a specific area of external input / output. In this case, as shown in FIG. 5, the event monitor 42 always monitors signals related to events output from the event storage unit 41, and the state of the input signals is compared with an event of a previously set state. When a change is detected, a detection signal is output. The detection signal is inputted by the error correction controller 43 to control the clock generator 44 to output a Halt signal. The test device 50 enters the stop mode by the Halt signal. Start waiting for commands from the user. Thereafter, when the error correction control unit 43 notifies the error correction register 45 (setting a bit in the error correction register), this signal is notified to the user through the host 30 as an interrupt signal. When the user issues a command, the command sets one bit of the error correction register 45 by the interface unit 31, and this bit becomes a signal for controlling the error correction control unit 43, which is necessary for error correction again. Will do the work. That is, the clock generator 44 generates the clock signal Debug_clk informing the start of error correction, and the test device 50 in the stop mode operates according to the clock signal Debug_clk and stops the chip every clock. Make error corrections. It also allows the user to command single-stepping so that the internal state can be observed one by one.

이상에서 설명한 바와 같이 본 발명 조인트 테스트 액세스 그룹을 이용한 오류수정장치는 외부 메모리로의 접근을 롬-라이터와 같은 별도의 장비가 필요 없어 비용의 절감과 장비의 효율성이 증가하며, 외부 이벤트에 의한 오류수정도 한 클럭씩 관찰할 수 있게 함으로써, 실제적인 실행에 의한 하드웨어의 동작 상태를 관찰할 수 있게 하여 재발 시간을 단축시키는 효과가 있다.As described above, the error correction apparatus using the joint test access group of the present invention does not need an additional device such as a ROM-writer to access the external memory, thereby reducing the cost and increasing the efficiency of the device. By allowing the correction to be observed by one clock, it is possible to observe the operating state of the hardware by actual execution, thereby reducing the recurrence time.

도 1은 종래 JTAG을 이용한 오류수정장치의 구성을 보인 블록도.1 is a block diagram showing the configuration of an error correction apparatus using a conventional JTAG.

도 2는 도 1에서 직렬자리이동 레지스터와 JTAG 레지스터가 가해진 테스트장치의 구성을 보인 블록도.FIG. 2 is a block diagram showing the configuration of a test apparatus to which a serial digit shift register and a JTAG register are applied in FIG. 1; FIG.

도 3은 본 발명 조인트 테스트 액세스 그룹을 이용한 오류수정장치의 일실시예의 구성을 보인 블록도.Figure 3 is a block diagram showing the configuration of one embodiment of an error correction apparatus using the joint test access group of the present invention.

도 4는 도 3에서 직렬자리이동 레지스터와 JTAG 레지스터가 가해진 테스트장치의 구성을 보인 블록도.FIG. 4 is a block diagram showing the configuration of a test apparatus to which a serial digit shift register and a JTAG register are applied in FIG. 3; FIG.

도 5는 도 3에서 오류수정 로직의 구성을 보인 블록도.5 is a block diagram showing the configuration of error correction logic in FIG.

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

30 : 호스트 31 : 인터페이스부30 host 31 interface

32 : TAP 제어기 33 : BIU32: TAP controller 33: BIU

34 : 외부 메모리 40 : 오류수정 로직34: external memory 40: error correction logic

41 : 이벤트저장부 42 : 이벤트 모니터부41: event storage unit 42: event monitor unit

43 : 오류수정 제어부 44 : 클럭 생성부43: error correction controller 44: clock generator

45 : 오류수정 레지스터 46 : BIU 제어부45: error correction register 46: BIU control unit

50 : 테스트장치 51 : JTAG 명령 레지스터50: test device 51: JTAG instruction register

52 : JTAG 데이터 레지스터 53 : 직렬자리이동 레지스터52: JTAG Data Register 53: Serial Shift Register

54 : 명령어 레지스터 55 : 디코딩부 54: instruction register 55: decoding unit

56 : 주소저장 레지스터 57 : 데이터 레지스터56: address storage register 57: data register

58 : 상태제어 레지스터58: status control register

Claims (3)

오류수정을 하는 사용자들이 실제로 프로그램을 다운로드 시키고 오류수정을 실행시키는 호스트와; 사용자의 입력을 JTAG 인터페이스 신호로 바꾸어 주는 인터페이스부와; 오류수정이나 테스트를 할 때 실제로 데이터를 입력시키고 실행시켜서 테스트를 하고자 하는 기판이나 칩의 상태 값을 출력시키는 TAP 제어기와; 직렬자리이동 및 JTAG 레지스터가 가해진 개발/검증하고자 하는 테스트장치와; 외부 메모리와 상기 테스트장치간의 연결을 위한 버스 인터페이스부와; 상기 테스트장치를 제어하여 외부 메모리에 직접 접근하고, 실시간으로 기능검증 및 오류수정이 가능하도록 제어하는 오류수정 로직으로 구성한 것을 특징으로 하는 조인트 테스트 액세스 그룹을 이용한 오류수정장치.A host where error correcting users actually download the program and execute the error correction; An interface unit for converting a user input into a JTAG interface signal; A TAP controller that actually inputs and executes data when performing error correction or testing to output a state value of a substrate or a chip to be tested; A test apparatus to be developed / verified with serial shifting and a JTAG register; A bus interface unit for connecting an external memory to the test apparatus; The error correction device using the joint test access group, characterized in that the control device for controlling the test device to directly access the external memory, and to enable the function verification and error correction in real time. 제1항에 있어서, 상기 테스트장치는 JTAG 명령을 저장하고, 오류수정 모드를 결정하여 그에 따른 신호를 출력하는 JTAG 명령 레지스터와; 상기 JTAG 명령 레지스터의 제어신호에 의해 구동되어 테스트를 위한 입력데이터를 저장하는 JTAG 데이터 레지스터와; 직렬적으로 자리를 이동하면서 테스트를 위한 입력데이터 및 테스트 결과데이터를 입출력하는 직렬자리이동 레지스터부와; 외부 메모리와의 접근을 위한 명령데이터를 저장하고, 이를 출력하는 명령어 레지스터와; 상기 명령어 레지스터로부터 입력되는 명령데이터를 디코딩하는 디코딩부와; 상기 디코딩부로부터 입력되는 접근할 외부 메모리의 주소를 저장하는 주소저장 레지스터와; 상기 디코딩부로부터 입력되는 접근할 외부 메모리의 데이터를 저장하는 데이터 레지스터와; 버스 인터페이스 장치(BIU)로 출력되는 신호(외부 메모리의 주소 및 데이터)를 제어하는 상태제어 레지스터로 구성한 것을 특징으로 하는 조인트 테스트 액세스 그룹을 이용한 오류수정장치.2. The apparatus of claim 1, wherein the test apparatus comprises: a JTAG command register for storing a JTAG command, determining an error correction mode, and outputting a signal accordingly; A JTAG data register driven by a control signal of the JTAG command register to store input data for a test; A serial digit shift register unit for inputting and outputting input data and test result data for a test while shifting a digit in series; An instruction register for storing instruction data for access to an external memory and outputting the instruction data; A decoding unit for decoding the command data input from the command register; An address storage register for storing an address of an external memory to be input from the decoding unit; A data register for storing data of an external memory to be input from the decoding unit; An error correction apparatus using a joint test access group, characterized in that it comprises a status control register for controlling signals (external memory addresses and data) output to a bus interface device (BIU). 제1항에 있어서, 상기 오류수정 로직은 직렬자리이동 레지스터로부터 입력되는 이벤트에 관한 신호만을 따로 저장하는 이벤트저장부와; 상기 이벤트저장부로부터 출력되는 이벤트신호를 입력받아 기 설정되어 있는 이전 상태의 이벤트와 비교하여 그에 따른 신호를 출력하는 이벤트 모니터부와; 상기 이벤트 모니터부로부터 출력되는 신호에 의해 칩의 동작을 정지시키고, 오류수정 모드로 전환함을 알리는 신호를 호스트로 출력하는 오류수정 제어부와, 상기 오류수정 제어부의 제어신호에 의해 오류수정을 위한 클럭을 생성하여 출력하는 클럭 생성부와; JTAG 인터페이스 프로토콜에 따라 호스트 및 오류수정 제어부의 동작을 제어하고, 그 결과를 저장하는 오류수정 레지스터와; 상기 오류수정 레지스터에 저장되어 있는 데이터를 읽어들여 그에 따라 상태제어 레지스터 값을 인가하는 BIU 제어부로 구성한 것을 특징으로 하는 조인트 테스트 액세스 그룹을 이용한 오류수정장치.2. The apparatus of claim 1, wherein the error correction logic comprises: an event storage unit for separately storing a signal relating to an event input from a serial digit shift register; An event monitor unit which receives the event signal output from the event storage unit and compares the event signal with a preset state and outputs a corresponding signal; An error correction control unit which stops the operation of the chip by a signal output from the event monitor unit and outputs a signal informing that the switch is to an error correction mode, and a clock for error correction by a control signal of the error correction control unit; A clock generator for generating and outputting a signal; An error correction register for controlling operations of the host and error correction control unit according to the JTAG interface protocol, and storing the result; And a BIU controller configured to read data stored in the error correction register and apply a state control register value accordingly.
KR1019980052209A 1998-12-01 1998-12-01 Error Correction Device Using Joint Test Access Group KR100557918B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980052209A KR100557918B1 (en) 1998-12-01 1998-12-01 Error Correction Device Using Joint Test Access Group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980052209A KR100557918B1 (en) 1998-12-01 1998-12-01 Error Correction Device Using Joint Test Access Group

Publications (2)

Publication Number Publication Date
KR20000037584A KR20000037584A (en) 2000-07-05
KR100557918B1 true KR100557918B1 (en) 2006-05-22

Family

ID=19560720

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980052209A KR100557918B1 (en) 1998-12-01 1998-12-01 Error Correction Device Using Joint Test Access Group

Country Status (1)

Country Link
KR (1) KR100557918B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040042731A (en) * 2002-11-15 2004-05-20 엘지엔시스(주) File and registry monitoring method for host system

Also Published As

Publication number Publication date
KR20000037584A (en) 2000-07-05

Similar Documents

Publication Publication Date Title
US6668339B1 (en) Microprocessor having a debug interruption function
US6094730A (en) Hardware-assisted firmware tracing method and apparatus
US4633417A (en) Emulator for non-fixed instruction set VLSI devices
US5157781A (en) Data processor test architecture
US5884023A (en) Method for testing an integrated circuit with user definable trace function
US6473727B1 (en) Processor development systems
US4782461A (en) Logical grouping of facilities within a computer development system
US6996747B2 (en) Program counter trace stack, access port, and serial scan path
US6704895B1 (en) Integrated circuit with emulation register in JTAG JAP
US5479652A (en) Microprocessor with an external command mode for diagnosis and debugging
US5841670A (en) Emulation devices, systems and methods with distributed control of clock domains
US5621651A (en) Emulation devices, systems and methods with distributed control of test interfaces in clock domains
US6564347B1 (en) Method and apparatus for testing an integrated circuit using an on-chip logic analyzer unit
US5850512A (en) Bus analyzer and method for testing internal data paths thereof
US20150253387A1 (en) Programmable interface-based validation and debug
JP2006127553A (en) Central processing unit for easily testing and debugging programs
JPH0434110B2 (en)
JP2003076578A (en) Microcomputer, debugging system and trace information collecting method
US20040193957A1 (en) Emulation devices, systems and methods utilizing state machines
JP2006507586A (en) Apparatus and method for analyzing embedded system
EP0411904A2 (en) Processor condition sensing circuits, systems and methods
US6647511B1 (en) Reconfigurable datapath for processor debug functions
US10970191B2 (en) Semiconductor device and debug method
KR100557918B1 (en) Error Correction Device Using Joint Test Access Group
EP1016969B1 (en) Microcontroller provided with support for debugging

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee