Central processing unit for easily testing and debugging programs
원문보기
IPC분류정보
국가/구분
United States(US) Patent
등록
국제특허분류(IPC7판)
G06F-009/445
G06F-011/36
출원번호
US-0841875
(2001-04-26)
우선권정보
KR-0038161 (2000-07-05)
발명자
/ 주소
Cho, Kyung Y
Lim, Jong Y
Lee, Geun T
Han, Sang S
Min, Byung G
Lee, Heui
출원인 / 주소
Advanced Digital Chips Inc.
대리인 / 주소
Park & Sutton LLP
인용정보
피인용 횟수 :
12인용 특허 :
3
초록▼
A central processing unit (CPU) for easily testing and debugging an application program, which includes a data communications unit for performing data communications with a host computer, a status register having a flag representing whether an operational mode of the CPU is a general operational mod
A central processing unit (CPU) for easily testing and debugging an application program, which includes a data communications unit for performing data communications with a host computer, a status register having a flag representing whether an operational mode of the CPU is a general operational mode representing a general operational state or a debugging mode representing a debugging state, a debugging stack pointer register which is used as a stack pointer designating a stack memory storing data of a debugging program, and a comparator for comparing a value stored in a break register with break data, wherein the CPU is converted into the debugging mode if the break register value is same as the break data, the flag of the status register has a value representing a debugging mode, a start address for performing a debugging program is loaded in a program counter, and the debugging program is executed to perform a debugging according to a command from the host computer via the data communications unit.
대표청구항▼
1. A central processing unit (CPU) for easily testing and debugging an application program, including a universal register file for temporarily storing data necessary for operation of data and address, a program counter storing addresses at which programs are stored, a special register file having a
1. A central processing unit (CPU) for easily testing and debugging an application program, including a universal register file for temporarily storing data necessary for operation of data and address, a program counter storing addresses at which programs are stored, a special register file having a status register indicating a status of the CPU and a break register, an internal bus connecting the universal register file and the special register file, and a control unit connected to the internal bus, for outputting various control signals necessary for internal and external components of the CPU, the CPU comprising:a data communications unit for performing data communications with a host computer;a status register having a flag representing whether an operational mode of the CPU is a general operational mode representing a general operational state or a debugging mode representing a debugging state;a debugging stack pointer register which is used as a stack pointer designating a stack memory storing data of a debugging program;a comparator for comparing a value stored in a break register with break data;a reset data storage unit storing reset data; anda reset data comparator for comparing the data input via the data communications unit with the reset data stored in the reset data storage unit, and instructing the control unit to initialize the CPU if the data input via the data communications is same as the reset data,wherein the CPU is converted into he debugging mode if the break register value is same as the break data, the flag of the status register has a value representing a debugging mode, a start address for performing a debugging program is loaded in a program counter, and the debugging program is executed to perform a debugging according to a command from the host computer via the data communications unit. 2. The CPU of claim 1, wherein said break data is a program address stored in the program counter. 3. The CPU of claim 1, further comprising a mask register, wherein the break data is a result of operation of the values stored in the program counter and the mask register. 4. The CPU of claim 1, wherein the break data is a memory address at which data is stored. 5. The CPU of claim 1, further comprising a mask register, wherein the break data is a result of operation of a memory address at which data is stored and the value stored in the mask register. 6. The CPU of claim 1, wherein said break data is data input to and output from the CPU. 7. The CPU of claim 1, further comprising a mask register, wherein the break data is a result of operation of data input to and output from the CPU and the value stored in the mask register. 8. The CPU of claim 1, wherein said break data is an address input to and output from the CPU. 9. The CPU of claim 1, further comprising a mask register, wherein the break data is a result of operation of an address input to and output from the CPU and the value stored in the mask register. 10. The CPU of claim 1, wherein said control unit receives a debugging memory select signal and loads a respectively different address for performing a debugging program in the program counter according to the debugging memory select signal when the value stored in the break register is same as the break data. 11. The CPU of claim 1, further comprising a data storage memory storing data values used for a debugging program, which is separated from a data storage memory storing data values used for a general program. 12. The CPU of claim 1, further comprising a memory storing a debugging program, which is separated from a memory storing a general program. 13. The CPU of claim 1, wherein an application program to be tested and debugged is downloaded from the host computer via the data communications unit. 14. The CPU of claim 1, wherein the value stored in the program counter and the data stored in the status register are stored in a memory designated by the debugging stack pointer register, when the CPU has been converted into a debugging mode. 15. The CPU of claim 1, further comprising a temporary storage register, wherein the value stored in the program counter and the data stored in the status register are stored in a temporary storage memory when the CPU has been converted into a debugging made. 16. The CPU of claim 1, further comprising:a reference data storage unit storing reference data; anda reference data comparator for comparing the data input via the data communications unit with the reference data,wherein the control unit controls the CPU to be converted into a debugging mode, and loads a start address for performing a debugging program in the program counter, if the data input via the data communications is same as the reference data, to thereby control the CPU to perform a debugging according to a command from the host computer via the data communications unit. 17. A central processing unit (CPU) for easily testing and debugging a program, including a universal register file for temporarily storing data necessary for operation of data and address, a program counter storing addresses at which programs are stored, a special register file having a status register indicating a status of the CPU and a break register, and an internal bus connecting the universal register file and the special register file, the CPU comprising:a data communications unit for performing data communications with a host computer;a status register having a flag representing whether an operational mode of the CPU is a general operational mode representing a general operational state or a debugging mode representing a debugging state;a debugging stack pointer register designating a stack memory storing data of a debugging initialization program and data of a debugging service program;a control unit for initializing the CPU by a rest signal, checking a debugging mode proceeding signal, loading a start address for performing a debugging initializing program in a program counter if the debugging mode proceeding signal has been activated, to thereby converting the CPU into the debugging initialization mode, and setting the flag of the status register into a value representing the debugging mode, and outputting various control signals necessary for internal and external components of the CPU connected to an internal bus; anda comparator for comparing a value stored in a break register with break data;a reset data storage unit storing reset data; anda reset data comparator for comparing the data input via the data communications unit with the reset data stored in the reset data storage unit, and instructing the control unit to initialize the CPU if the data input via the data communications is same as the reset data,wherein the CPU is converted into the debugging mode if the break register value is same as the break data, the flag of the status register has a value representing a debugging service mode, a start address for performing a debugging service program is loaded in a program counter, and the debugging service program is executed to perform a debugging according to a command from the host computer via the data communications unit. 18. The CPU of claim 17, wherein said break data is a program address stored in the program counter. 19. The CPU of claim 17, further comprising a mask register, wherein the break data is a result of operation of the values stored in the program counter and the mask register. 20. The CPU of claim 17, wherein the break data is a memory address at which data is stored. 21. The CPU of claim 17, further comprising a mask register, wherein the break data is a result of operation of a memory address at which data is stored and the value stored in the mask register. 22. The CPU of claim 17, wherein said break data is data input to and output from the CPU. 23. The CPU of claim 17, further comprising a mask register, wherein the break data is a result of operation of data input to and output from the CPU and the value stored in the mask register. 24. The CPU of claim 17, wherein said break data is an address input to and output from the CPU. 25. The CPU of claim 17, further comprising a mask register, wherein the break data is a result of operation of an address input to and output from the CPU and the value stored in the mask register. 26. The CPU of claim 17, wherein said control unit receives a debugging memory select signal and loads a respectively different address for performing a debugging program in the program counter according to the debugging memory select signal when the value stored in the break register is same as the break data. 27. The CPU of claim 17, further comprising a data storage memory storing data values used for a debugging program, which is separated from a data storage memory storing data values used for a general program. 28. The CPU of claim 17, further comprising a memory storing a debugging program, which is separated from a memory storing a general program. 29. The CPU of claim 17, wherein an application program to be tested and debugged is downloaded from the host computer via the data communications unit. 30. The CPU of claim 17, further comprising a temporary storage register, wherein the value stored in the program counter and the data stored in the status register are stored in a temporary storage memory when the CPU has been converted into a debugging mode. 31. The CPU of claim 17, further comprising:a reference data storage unit storing reference data; anda reference data comparator for comparing the data input via the data communications unit with the reference data,wherein the control unit controls the CPU to be converted into a debugging mode, and loads a start address for performing a debugging program in the program counter, if the data input via the data communications is same as the reference data, to thereby control the CPU to perform a debugging according to a command from the host computer via the data communications unit.
연구과제 타임라인
LOADING...
LOADING...
LOADING...
LOADING...
LOADING...
이 특허에 인용된 특허 (3)
Tessarolo, Alexander; Ehlig, Peter N.; Hopkins, Glenn Harland; Natarajan, Venkatesh, Digital signal processing unit with emulation circuitry and debug interrupt enable register indicating serviceable time-critical interrupts during real-time emulation mode.
Goto Masaru,JPX ; Miyachi Hiroaki,JPX ; Sakamoto Yukihiro,JPX, Microprocessor with reduced instruction set limiting the address space to upper 2 Mbytes and executing a long type register branch instruction in three intermediate instructions.
Klug, Franz; Wenzel, Andreas, Processing unit that detects manipulations thereof, device comprising two processing units, method for testing a processing unit and a device comprising two processing units.
Yamakawa, Naoya; Nagata, Yasunori; Watanabe, Tomofumi, Program processing device and program processing method which is able to control writing into an internal memory.
※ AI-Helper는 부적절한 답변을 할 수 있습니다.