Claims (8)
마이크로콘트롤라의 응용 프로그램의 개발시에 프로그램의 오류를 검색하고 이를 교정하는데 사용되는 에뮬레이터 시스템에 있어서, 상기 마이크로콘트롤라와 동일한 기능을 가지면서 에뮬레이션기능을 실현하는 타겟칩으로부터 발생된 프로그램 실행 순서에 관한 정보를 저장하고, 상기 저장된 정보를 독출하여 호스트로 전송하기 위한 트레이스수단을 구비하는 에뮬레이터; 상기 에뮬레이터로 하여금 트레이스기능을 수행하도록 트레이스모드를 설정하고, 상기 에뮬레이터로부터 트레이스정보를 사용자에게 디스플레이하기 위한 호스트; 및 상기 호스트와 상기 에뮬레이터 간의 데이타 전송을 인터페이스하기 위한 인터페이스를 포함함을 특징으로 하는 에뮬레이터 시스템.An emulator system used to detect and correct errors in a program when developing an application program of a microcontroller, wherein the program execution sequence generated from a target chip having the same function as that of the microcontroller and emulating is provided. An emulator having trace means for storing and reading and transmitting the stored information to a host; A host for setting a trace mode to cause the emulator to perform a trace function, and displaying trace information from the emulator to a user; And an interface for interfacing data transfer between the host and the emulator.
제1항에 있어서, 상기 에뮬레이터에서 상기 호스트로 전송되는 프로그램 실행 순서에 관한 정보는 프로그램의 실행에 따라 발생되는 프로그램카운트에 관한 정보임을 특징으로 하는 에뮬레이터 시스템.The emulator system of claim 1, wherein the information about a program execution order transmitted from the emulator to the host is information about a program count generated according to execution of a program.
제1항에 있어서, 상기 인터페이스는 별도의 마이크로프로세서를 구비하여 직렬통신방식으로 상기 호스트와 상기 에뮬레이터 간의 데이타 전송을 인터페이스함을 특징으로 하는 에뮬레이터 시스템.The emulator system of claim 1, wherein the interface includes a separate microprocessor to interface data transfer between the host and the emulator in a serial communication mode.
마이크로콘트롤라의 응용 프로그램의 개발시에 프로그램의 오류를 검색하고 이를 교정하는데 사용되는 에뮬레이터 시스템에 있어서, 상기 마이크로콘트롤라와 동일한 기능을 가지면서 에뮬레이션기능을 실현하며, 프로그램 실행 순서에 관한 정보를 발생하는 타겟칩; 소정의 제어신호에 대응하여, 상기 타겟칩에서 발생된 프로그램 실행 순서에 관한 정보를 저장하거나 저장된 정보를 데이타버스를 통하여 독출하기 위한 저장 수단; 상기 저장수단을 억세스할 어드레스를 발생하기 위한 어드레스발생수단; 및 상기 저장수단의 리드/라이트모드를 설정하고, 설정된 모드에 따라 상기 타겟칩에서 발생된 정보를 상기 저장수단에 저장하거나 상기 저장수단에 저장된 정보를 독출하도록 제어하기 위한 제어수단을 포함함을 특징으로 하는 트레이스장치를 구비한 에뮬레이터 시스템.An emulator system used to detect and correct errors in a program when developing an application program of a microcontroller, the target chip having the same function as the microcontroller and realizing an emulation function and generating information on a program execution sequence. ; Storage means for storing information on a program execution sequence generated in the target chip or reading stored information through a data bus in response to a predetermined control signal; Address generating means for generating an address to access said storage means; And control means for setting a read / write mode of the storage means, and controlling to store the information generated in the target chip in the storage means or to read the information stored in the storage means according to the set mode. An emulator system having a trace device.
제4항에 있어서, 상기 저장수단에 저장되거나 독출되는 프로그램 실행 순서에 관한 정보는 프로그램의 실행에 따라 발생되는 프로그램카운트에 관한 정보임을 특징으로 하는 트레이스장치를 구비한 에뮬레이터 시스템.5. The emulator system according to claim 4, wherein the information about a program execution order stored or read in the storage means is information about a program count generated according to execution of a program.
제4항에 있어서, 상기 어드레스발생수단은 상기 타겟칩에서 발생된 프로그램 실행 순서에 관한 정보를 저장하기 위하여 상기 저장수단을 억세스할 제1어드레스신호를 발생하기 위한 제1어드레스발생수단; 상기 저장수단에 저장된 정보를 리드하기 위하여 상기 저장수단을 억세스할 제2어드레스신호를 발생하기 위한 제2어드레스발생수단; 및 상기 제1어드레스신호 및 상기 제2어드레스신호가 입력되고, 트레이스기능 수행시 상기 저장 수단의 리드/라이트모드에 따라, 상기 두 어드레스신호 중 하나의 어드레스신호를 선택하여 상기 저장수단을 억세스하기 위한 어드레스로 출력하는 제1먹스수단을 구비함을 특징으로 하는 트레이스장치를 구비한 에뮬레이터 시스템.5. The apparatus according to claim 4, wherein said address generating means comprises: first address generating means for generating a first address signal for accessing said storage means for storing information relating to a program execution order generated in said target chip; Second address generating means for generating a second address signal for accessing said storage means to read information stored in said storage means; And the first address signal and the second address signal are input, and when one of the two address signals is selected to access the storage means according to the read / write mode of the storage means when a trace function is performed. And a first mux means for outputting to an address.
제4항에 있어서, 트레이스기능 수행시 상기 저장수단의 리드/라이트모드에 따라, 상기 타겟칩에서 발생된 프로그램 실행 순서에 관한 정보를 상기 저장수단로 전송하기 위한 패스를 설정하거나, 또는 상기 저장수단에 저장된 정보를 데이타베스로 전송하기 위한 패스를 설정하는 제2먹스수단을 더 포함함을 특징으로 하는 트레이스장치를 구비한 에뮬레이터 시스템.The storage device of claim 4, further comprising: setting a path for transmitting information about a program execution order generated in the target chip to the storage means according to a read / write mode of the storage means when performing a trace function, or the storage means. And a second mux means for setting a path for transferring the information stored in the database to the database.
사용자가 호스트를 통하여 트레이스모드를 설정하는 과정; 호스트는 시스템 어드레스버스를 통하여 트레이스메모리를 억세스하고 시스템 데이타버스를 통하여 메모리 초기화 값을 전송하여 트레이스메모리를 초기화하는 과정; 사용자는 실행될 프로그램에 대해 트레이스할 구간을 호스트를 이용하여 설정하고, 호스트는 그에 관한 정보를 에뮬레이터로 전송하는 과정; 호스트에 의해 설정된 트레이스구간 동안, 에뮬레이터는 타겟칩에서 출력되는 정보를 저장하는 과정; 설정된 트레이스구간 동안의 트레이스가 완료되면, 호스트는 시스템 어드레스버스를 통하여 상기 저장된 정보를 시스템 데이타버스를 통하여 독출하는 과정; 및 호스트는 독출된 데이타를 소정의 양식에 의하여 디스플레이하는 과정을 포함함을 특징으로 하는 에뮬레이터시스템에서의 트레이스방법.Setting a trace mode through the host; The host accesses the trace memory through the system address bus and initializes the trace memory by transmitting a memory initialization value through the system data bus; A user sets a section to be traced for a program to be executed by using a host, and the host transmits information about the program to the emulator; During the trace interval set by the host, the emulator stores information output from the target chip; When the trace for the set trace period is completed, the host reads the stored information through the system data bus through the system address bus; And the host displaying the read data in a predetermined form.
※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.