KR100425692B1 - External memory access apparatus for processor - Google Patents
External memory access apparatus for processor Download PDFInfo
- Publication number
- KR100425692B1 KR100425692B1 KR10-2002-0003938A KR20020003938A KR100425692B1 KR 100425692 B1 KR100425692 B1 KR 100425692B1 KR 20020003938 A KR20020003938 A KR 20020003938A KR 100425692 B1 KR100425692 B1 KR 100425692B1
- Authority
- KR
- South Korea
- Prior art keywords
- external memory
- data
- signal
- register
- processor
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
- G06F12/0815—Cache consistency protocols
- G06F12/0831—Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means
- G06F12/0835—Cache consistency protocols using a bus scheme, e.g. with bus monitoring or watching means for main memory peripheral accesses (e.g. I/O or DMA)
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/007—Digital input from or digital output to memories of the shift register type
Abstract
본 발명은 프로세서의 외부 메모리 억세스 장치에 관한 것으로, 종래 프로세서의 외부 메모리 억세스 장치는 디버깅 모드에서 프로세서가 외부 메모리의 특정 어드레스를 지정하여 데이터를 읽거나 쓰는 것이 불가능하여 디버깅이 용이하지 않은 문제점과 아울러 다른 부가장비를 필요로 하여 그 사용효율이 저하되는 문제점이 있었다. 이와 같은 문제점을 감안한 본 발명은 디버깅 모드를 결정하며, 그 디버깅 모드에서 외부 메모리의 특정 번지를 지정하여 억세스할 수 있는 레지스터를 출력함과 아울러 외부 메모리의 상태를 추출하여 사용자에게 표시하는 호스트 컴퓨터와; 상기 호스트 컴퓨터의 제어에 따라 디버깅 모드에서 내부 레지스터를 세팅하고, 그 세팅된 레지스터를 사용하여 외부 메모리의 특정 번지를 억세스하는 프로세서와; 상기 디버깅 모드에서 상기 프로세서에 세팅된 레지스터에 따라 해당 번지의 데이터를 출력하거나, 기록 데이터를 해당 번지에 저장하는 외부 메모리로 구성되어, 호스트 컴퓨터를 이용하여 사용자가 디버깅 모드에서 외부 메모리의 특정 번지를 지정하여 그 번지에 데이터를 기록하거나, 기록된 데이터를 읽어 올 수 있어, 그 디버깅을 보다 용이하게 수행할 수 있도록 하여 장치의 사용효율을 증대시키는 효과가 있으며, 별도의 장치를 연결하지 않고 디버깅을 자체 내에서 수행할 수 있어 디버깅 속도를 향상시키고 그 신뢰성을 보다 향상시킬 수 있는 효과가 있다.The present invention relates to an external memory access device of a processor, and an external memory access device of a conventional processor is not easy to debug because it is impossible for the processor to read or write data by designating a specific address of the external memory in a debugging mode. There is a problem in that the use efficiency is lowered because other additional equipment is required. In view of the above problems, the present invention determines a debugging mode, and outputs a register accessible by designating a specific address of the external memory in the debugging mode, and extracts and displays the state of the external memory to the user. ; A processor which sets an internal register in a debugging mode under the control of the host computer, and accesses a specific address of the external memory using the set register; It is composed of an external memory that outputs the data of the corresponding address or stores the recording data in the corresponding address according to the register set in the processor in the debugging mode, and the user uses a host computer to designate a specific address of the external memory in the debugging mode. By designating the data at the address or reading the recorded data, the debugging can be performed more easily, which increases the efficiency of the device. Debugging without connecting a separate device is possible. This can be done in-house, which speeds up debugging and improves reliability.
Description
본 발명은 프로세서의 외부 메모리 억세스 장치에 관한 것으로, 특히 프로세서가 정상동작을 수행하던 중에 디버깅모드로 전환하여 외부메모리를 억세스하여 디버깅을 수행할 수 있는 프로세서의 외부 메모리 억세스 장치에 관한 것이다.The present invention relates to an external memory access device of a processor, and more particularly, to an external memory access device of a processor capable of performing debugging by accessing an external memory by switching to a debugging mode while the processor is performing normal operation.
일반적으로, 프로세서는 내부 메모리외에 외부 메모리를 두고, 프로세서가 필요한 데이터를 그 외부 메모리에서 억세스 하여 데이터 패치(FETCH)를 수행한다.In general, the processor has an external memory in addition to the internal memory, and the processor accesses necessary data from the external memory to perform a data patch (FETCH).
그러나, 프로세서 자체에서는 외부 메모리에 데이터를 저장하거나 읽어 들일때 특정한 주소를 지정할 수 없게 되어 있어, 프로세서의 디버깅이 용이하지 않았으며, 이와 같은 종래 프로세서의 외부 메모리 억세스 장치를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.However, since the processor itself cannot designate a specific address when storing or reading data in the external memory, debugging of the processor is not easy, and the external memory access device of the conventional processor is described in detail with reference to the accompanying drawings. The explanation is as follows.
도1은 종래 프로세서와 외부 메모리의 연결관계를 보인 블록도로서, 이에 도시한 바와 같이 프로세서(1)는 데이터의 읽기 또는 쓰기를 결정하는 읽기/쓰기 신호(EXTRWB)와, 외부 메모리(2)를 인에이블시키는 칩인에이블신호(EXTDSB)와, 스트로브신호(EXTMSTRB) 및 어드레스신호(EXTA)를 외부 메모리(2)로 정상동작모드에서 전송하며, 이에 따라 데이터를 외부 메모리(2)에 기록하거나, 기록된 데이터(D)를 읽어 올 수 있게 된다.FIG. 1 is a block diagram illustrating a connection relationship between a conventional processor and an external memory. As shown in FIG. 1, the processor 1 may include a read / write signal EXTRWB for determining reading or writing of data and an external memory 2. The chip enable signal EXTDSB, the strobe signal EXTMSTRB, and the address signal EXTA which are enabled are transmitted to the external memory 2 in the normal operation mode, and thus data is written to or written to the external memory 2. The read data (D) can be read.
상기 프로세서(1)가 정상모드로 동작하는 경우에 그 프로세서의 리드/라이트신호(EXTRWB), 칩인에이블신호(EXTDSB), 스트로브신호(EXTMSTRB) 및 어드레스신호(EXTA)를 발생시켜, 외부 메모리(2)에 인가하여 데이터를 기록할 것인지, 읽어올 것인지를 결정한다.When the processor 1 operates in the normal mode, the read / write signal EXTRWB, the chip enable signal EXTDSB, the strobe signal EXTMSTRB, and the address signal EXTA of the processor 1 are generated. ) To decide whether to record or read the data.
그러나, 프로세서(1)의 디버깅 시에는 사용자가 그 외부 메모리(2)에 저장된 값을 알기 위해서는 추가적인 장비를 동원하여 상기 외부 메모리(2)에 저장된 데이터를 읽어 검증하는 과정을 거치게 된다.However, during debugging of the processor 1, the user goes through a process of reading and verifying data stored in the external memory 2 by using additional equipment in order to know a value stored in the external memory 2.
이때, 프로세서(1)는 외부 메모리(2)의 특정 어드레스를 지정 할 수 없기 때문에 외부 메모리(2)의 특정 어드레스의 데이터만을 읽어 오거나 그 어드레스에 데이터를 기록할 수는 없다.At this time, since the processor 1 cannot designate a specific address of the external memory 2, only the data of the specific address of the external memory 2 cannot be read or written to the address.
즉, 프로세서(1)가 정상적인 동작을 수행하던 중, 그 동작을 정지시키고 하드웨어 상에서 프로세서(1)의 오류를 검사하고 오류가 있는 경우 수정을 하는 디버깅 동작시에는 외부 메모리(2)의 특정 어드레스에 대한 읽기와 쓰기가 되지 않아 원활한 디버깅 동작을 수행할 수 없으며, 이에 따라 외부 메모리를 제어할 수 있는 별도의 수단을 사용하여 그 외부 메모리(2)를 제어하게 된다.That is, while the processor 1 is performing a normal operation, it stops the operation, checks the error of the processor 1 on hardware, and if there is an error, during a debugging operation to correct the error, a specific address of the external memory 2 is provided. Since it is impossible to read and write the data, it is impossible to perform a smooth debugging operation. Accordingly, the external memory 2 is controlled using a separate means capable of controlling the external memory.
상기한 바와 같이 종래 프로세서의 외부 메모리 억세스 장치는 디버깅 모드에서 프로세서가 외부 메모리의 특정 어드레스를 지정하여 데이터를 읽거나 쓰는 것이 불가능하여 디버깅이 용이하지 않은 문제점과 아울러 다른 부가장비를 필요로 하여 그 사용효율이 저하되는 문제점이 있었다.As described above, the external memory access device of the conventional processor is not easy to debug because the processor is unable to read or write data by designating a specific address of the external memory in the debugging mode, and also requires other additional equipment. There was a problem that the efficiency is lowered.
이와 같은 문제점을 감안한 본 발명은 프로세서가 자체적으로 디버깅시 외부메모리의 특정 어드레스를 지정하여 데이터의 기록 및 읽기가 가능하게 하는 프로세서의 외부 메모리 억세스 장치를 제공함에 그 목적이 있다.It is an object of the present invention to provide an external memory access device of a processor which enables a processor to write and read data by designating a specific address of the external memory when debugging itself.
도1은 종래 프로세서의 외부 메모리 억세스 장치의 블록도.1 is a block diagram of an external memory access device of a conventional processor.
도2는 본 발명 프로세서의 외부 메모리 억세스 장치의 블록도.Figure 2 is a block diagram of an external memory access device of the processor of the present invention.
도3은 도2에 있어서, 프로세서의 상세 블록도.3 is a detailed block diagram of the processor of FIG.
도4는 본 발명 프로세서의 외부 메모리 억세스 장치의 정상 모드 동작에서의 주요 신호파형도.Figure 4 is a main signal waveform diagram in normal mode operation of the external memory access device of the processor of the present invention.
도5는 도3에 있어서, 스캔셀(CELL2~CELL7)의 상세회로도.FIG. 5 is a detailed circuit diagram of scan cells CELL2 to CELL7 in FIG.
도6은 도3에 있어서, 스캔셀(CELL1)의 상세회로도.FIG. 6 is a detailed circuit diagram of the scan cell CELL1 in FIG.
도7은 본 발명의 디버깅 모드에서의 주요 부분 신호 파형도.Fig. 7 is a diagram of the major partial signal waveforms in the debugging mode of the present invention.
도8은 본 발명에서 적용되는 호스트 컴퓨터의 시프트인신호의 일실시예도.Figure 8 is an embodiment of a shift-in signal of the host computer to which the present invention is applied.
도9는 본 발명 프로세서의 외부 메모리 억세스 장치의 디버깅 읽기 모드에서 외부 메모리를 제어하는 신호의 파형도.Figure 9 is a waveform diagram of a signal for controlling the external memory in the debugging read mode of the external memory access device of the processor of the present invention.
도10은 본 발명 프로세서의 외부 메모리 억세스 장치의 디버깅 쓰기 모드에서 외부 메모리를 제어하는 신호의 파형도.Figure 10 is a waveform diagram of a signal for controlling the external memory in the debug write mode of the external memory access device of the processor of the present invention.
*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *
1:프로세서 2:외부 메모리1: processor 2: external memory
3:호스트 컴퓨터 4:코어부3: Host computer 4: Core part
5:클럭 제어부 6:외부 메모리 인터페이스부5: Clock control section 6: External memory interface section
상기와 같은 목적은 사용자의 설정에 따라 외부 메모리의 특정 번지를 억세스하는 주소를 포함하며, 그 외부 메모리의 동작에 필요한 제어신호를 출력하는 호스트 컴퓨터와; 디버깅 모드에서 상기 호스트 컴퓨터의 레지스터를 인가받아 그 레지스터 중 설정된 레지스터만을 선택하여 저장하고, 그 저장된 레지스터를 일시적으로 외부 메모리에 전송하여 외부 메모리의 특정 번지에 데이터를 기록하거나, 기록된 데이터를 읽어 올수 있는 프로세서 내에 구비되는 다수의 스캔셀을 구비함으로써 달성되는 것으로, 이와 같은 본 발명을 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.The above object includes a host computer including an address for accessing a specific address of an external memory according to a user's setting, and outputting a control signal necessary for the operation of the external memory; In the debugging mode, the register of the host computer is received and only the set register among the registers is selected and stored, and the stored register is temporarily transferred to the external memory to write data to a specific address of the external memory or read the recorded data. It is achieved by having a plurality of scan cells provided in the processor, which will be described in detail with reference to the accompanying drawings, the present invention as follows.
도2는 본 발명 프로세서의 외부 메모리 억세스 장치의 블록도로서, 이에 도시한 바와 같이 프로세서(1)의 동작모드를 결정함과 아울러 디버깅 모드에서 억세스할 외부 메모리(2)의 어드레스와 외부 메모리(2)동작을 제어하는 제어신호를 출력함과 아울러 디버깅 모드에서 억세스된 외부 메모리(2)의 데이터를 표시하는 호스트 컴퓨터(3)와; 상기 호스트 컴퓨터(3)의 제어에 따라 디버깅 모드에서 외부 메모리(2)의 특정 어드레스를 억세스하여 데이터를 읽거나 쓰고, 그 정보를 상기 호스트 컴퓨터(3)로 출력하는 프로세서(1)로 구성된다.FIG. 2 is a block diagram of an external memory access device of a processor of the present invention. As shown therein, an operation mode of the processor 1 is determined and an address and an external memory 2 of the external memory 2 to be accessed in the debugging mode. A host computer 3 outputting a control signal for controlling the operation and displaying data of the external memory 2 accessed in the debugging mode; The processor 1 is configured to access a specific address of the external memory 2 in a debugging mode under the control of the host computer 3 to read or write data, and output the information to the host computer 3.
도3은 본 발명에 적용되는 프로세서(1) 내에 구비된 외부 메모리 억세스 장치의 구성도로서, 이에 도시한 바와 같이 상기 프로세서(1)는 내부 처리에 의하여 외부 메모리(2)의 데이터를 입력받거나, 외부 메모리(2)에 저장할 데이터를 출력하며, 쓰기 데이터 인에이블신호(DOUTEN), 읽기/쓰기 신호(EXTRWB), 칩인에이블신호(EXTDSB), 스트로브신호(EXTMSTRB)를 발생시킴과 아울러 어드레스신호(EXTA)를 출력하는 코어부(4)와; 상기 코어부(4)에 디버깅 모드에서 디버그 클럭을 공급하는 클럭제어부(5)와; 정상모드에서 상기 외부 메모리(2)에 기록할 데이터(DOUT), 쓰기 데이터 인에이블신호(DOUTEN), 읽기/쓰기 신호(EXTRWB), 칩인에이블신호(EXTDSB), 스트로브신호(EXTMSRTB)와 어드레스신호(EXTA)를 각각 외부 메모리(2)로 인가함과 아울러 디버깅 모드에서 그 데이터를 추출하여 상기 호스트 컴퓨터(3)로 전송하는 스캔 셀(CELL2~CELL7)과; 상기 외부 메모리(2)로 부터 독출된 데이터를 상기 코어부(4)로 인가함과 아울러 디버깅 모드에서 그 추출한 외부 메모리(2)의 데이터를 상기 호스트 컴퓨터(3)로 전송하는 스캔셀(CELL1)과; 상기 스캔셀(CELL3)에서 출력되는 쓰기 인에이블신호(EXTDOUTEN)에 따라 스캔셀(CELL2)의 데이터를 외부 메모리(2)로 출력하거나, 외부 메모리(2)의 데이터를 스캔셀(CELL1)로 인가하는 외부 메모리 인터페이스부(6)로 구성된다.3 is a configuration diagram of an external memory access device provided in the processor 1 according to the present invention. As shown in FIG. 3, the processor 1 receives data from the external memory 2 by internal processing, Outputs data to be stored in the external memory 2 and generates a write data enable signal DOUTEN, a read / write signal EXTRWB, a chip enable signal EXTDSB, a strobe signal EXTMSTRB, and an address signal EXTA. A core portion 4 for outputting a); A clock control unit (5) for supplying a debug clock to the core unit (4) in a debugging mode; In the normal mode, the data DOUT, the write data enable signal DOUTEN, the read / write signal EXTRWB, the chip enable signal EXTDSB, the strobe signal EXTMSRTB, and the address signal Scan cells CELL2 to CELL7 that apply EXTA to the external memory 2 and extract the data in the debugging mode and transmit the data to the host computer 3; Scan cell CELL1 that applies data read from the external memory 2 to the core unit 4 and transmits the data of the extracted external memory 2 to the host computer 3 in the debugging mode. and; The data of the scan cell CELL2 is output to the external memory 2 or the data of the external memory 2 is applied to the scan cell CELL1 according to the write enable signal EXTDOUTEN output from the scan cell CELL3. It consists of an external memory interface unit (6).
이하, 상기와 같이 구성된 본 발명의 구성 및 그 구성의 동작과 작용을 보다 상세히 설명한다.Hereinafter, the configuration of the present invention configured as described above and the operation and action of the configuration in more detail.
먼저, 정상모드의 동작에서는 상기 호스트 컴퓨터(3)로 부터 인가되는 디버깅 모드신호(DEBUG_MODE)가 저전위로 인가된다.First, in the normal mode of operation, the debugging mode signal DEBUG_MODE applied from the host computer 3 is applied at a low potential.
이와 같이 디버깅 모드신호(DEBUG_MODE)가 저전위 일때는 상기 프로세서(1)의 스캔셀(CELL2~CELL7)에서는 코어부(4)에서 인가되는 읽기/쓰기 신호(EXTRWB)를 그대로 전송한다.As described above, when the debugging mode signal DEBUG_MODE is low, the scan cells CELL2 to CELL7 of the processor 1 transmit the read / write signal EXTRWB applied from the core unit 4 as it is.
또한, 칩인에이블신호(EXTDSB)와 어드레스신호(EXTA)를 그대로 전송한다.In addition, the chip enable signal EXTDSB and the address signal EXTA are transmitted as they are.
그리고, 읽기 모드에서는 저전위의 쓰기 인에이블신호(DOUTEN)를 인가받은 스캔셀(CELL3)에서 저전위의 쓰기 인에이블신호(EXTDOUTEN)을 출력하여 버퍼(BUFF)의 동작을 차단하여 상기 각 신호의 인가에 따라 동작되는 외부 메모리(2)의 특정 어드레스에서 독출한 데이터를 상기 스캔셀(CELL1)을 통해 상기 코어부(4)로 인가한다.In the read mode, the low-potential write enable signal EXTDOUTEN is output from the scan cell CELL3 to which the low potential write enable signal DOUTEN is applied to block the operation of the buffer BUFF. Data read from a specific address of the external memory 2 operated in accordance with the application is applied to the core unit 4 through the scan cell CELL1.
이때 쓰기 모드인 경우에는 상기 외부 메모리 인터페이스부(6)의 버퍼(BUFF)를 통해 코어부(4)의 쓰기데이터(EXTDOUT)를 버퍼링하여 데이터(D)로서 외부 메모리(2)에 인가하여 원하는 데이터를 외부 메모리(2)의 특정 어드레스에 기록한다.At this time, in the write mode, the write data EXTDOUT of the core unit 4 is buffered through the buffer BUFF of the external memory interface unit 6 and applied to the external memory 2 as the data D to desired data. Is written to a specific address of the external memory 2.
이때의 각 신호의 파형도를 도4에 도시하였다.The waveform diagram of each signal at this time is shown in FIG.
즉, 상기 호스트 컴퓨터(3)에서 전송되는 디버깅 모드신호(DEBUG_MODE)가 저전위 일때 각 스캔셀(CELL2~CELL7)은 코어부(4)의 출력을 그대로 외부 메모리 인터페이스부(6)를 통해 외부 메모리(2)에 인가하여 외부 메모리(2)를 억세스하고, 읽기 또는 쓰기 동작을 수행한다. 또한, 스캔셀(CELL1)은 외부 메모리(2)에서 독출한 데이터를 그대로 코어부(4)로 인가한다.That is, when the debugging mode signal DEBUG_MODE transmitted from the host computer 3 is at low potential, each scan cell CELL2 to CELL7 retains the output of the core unit 4 as it is through the external memory interface unit 6. Applied to (2), the external memory 2 is accessed, and a read or write operation is performed. In addition, the scan cell CELL1 applies the data read from the external memory 2 to the core unit 4 as it is.
상기 도4에서 디버깅 모드신호(DEBUG_MODE)가 고전위로 천이 되는 구간 부터는 디버깅 모드의 동작이 수행되며, 이는 이후에 설명한다.In FIG. 4, the operation of the debugging mode is performed from the section where the debugging mode signal DEBUG_MODE transitions to the high potential, which will be described later.
상기 스캔셀(CELL1~CELL7)은 두가지 형태를 가지며, 이를 보다 상세히 설명한다.The scan cells CELL1 to CELL7 have two forms, which will be described in more detail.
도5는 본 발명에 있어서, 스캔셀(CELL2~CELL7)의 내부 회로도로서, 이에 도시한 바와 같이 다수의 멀티플랙서(MUX1~MUX4)를 구비하고, 그 사이에 디버그 클럭신호(DEBUGCLK)에 의해 동작하는 플립플롭(FF1, FF2)를 구비하여, 디버깅 모드에서는 코어부(4)에서 출력하는 신호를 차단하고, 상기 호스트 컴퓨터(3)에서 출력하는레지스터를 각각 시프팅하여 설정된 레지스터가 위치할때 그 시프팅동작을 홀딩하여 각각 설정된 레지스터를 저장하고, 일정한 순간에 각 레지스터를 외부 메모리(2)로 전달하여 외부 메모리(2)의 특정한 번지를 억세스하며, 그 때의 외부 메모리(2)의 억세스 된 번지에 데이터를 기록할 수 있도록 구성된다.FIG. 5 is an internal circuit diagram of the scan cells CELL2 to CELL7 according to the present invention, and includes a plurality of multiplexers MUX1 to MUX4 as shown in the figure, with debug clock signals DEBUGCLK interposed therebetween. With the flip-flops FF1 and FF2 operating, in the debugging mode, the signal output from the core unit 4 is blocked, and the registers set by shifting the registers output from the host computer 3 are located. Holding the shifting operation to store each set register, and transfer each register to the external memory 2 at a given moment to access a specific address of the external memory 2, and access of the external memory 2 at that time It is configured to record data at the designated address.
또한, 도6은 상기 스캔셀(CELL1)의 내부 구성도로서, 이에 도시한 바와 같이 외부 메모리(2)의 데이터를 코어부(4)로 전달하는 스캔셀(CELL1)은 두 멀티플랙서(MUX5, MUX6)와 플립플롭(FF3)를 구비하여 디버깅시 읽어 들이는 외부 메모리(2)의 데이터(DIN)를 상기 호스트 컴퓨터(3) 측으로 전송하여 사용자가 외부 메모리의 특정 번지에 저장된 데이터를 확인 할 수 있도록 구성된다.FIG. 6 is an internal configuration diagram of the scan cell CELL1. As shown in FIG. 6, the scan cell CELL1 transferring data from the external memory 2 to the core unit 4 has two multiplexers MUX5. , MUX6) and a flip-flop (FF3) to transmit the data (DIN) of the external memory (2) read during debugging to the host computer (3) to check the data stored in a specific address of the external memory It is configured to be.
이때 상기 멀티플랙서(MUX4)는 디버깅 모드신호(DEBUG_MODE)에 의해 동작하여, 코어부(4)의 출력신호를 외부 메모리(2)로 출력하거나, 호스트 컴퓨터(3)가 지정하는 어드레스를 억세스하는 출력신호를 선택적으로 출력할 수 있도록 하며, 나머지 호스트 컴퓨터(3)의 제어신호인 클럭신호(CLOCKDR)와 업데이트신호(UPDATEDR), 시프트신호(SHIFTDR)는 디버깅 모드에서 외부 메모리(2)를 제어하는 각 신호를 호스트 컴퓨터(3)로 인가하기 위한 신호의 선택시점을 결정한다.At this time, the multiplexer MUX4 operates by the debugging mode signal DEBUG_MODE to output the output signal of the core unit 4 to the external memory 2 or to access an address designated by the host computer 3. The output signal can be selectively outputted, and the clock signal CLOCKDR, the update signal UPDATEDR, and the shift signal SHIFTDR, which are the control signals of the remaining host computer 3, control the external memory 2 in the debugging mode. The selection point of the signal for applying each signal to the host computer 3 is determined.
이하, 상기와 같은 신호들의 인가에 의해 이루어지는 본 발명의 디버깅 모드동작을 좀 더 상세히 설명한다.Hereinafter, the debugging mode operation of the present invention by applying the above signals will be described in more detail.
먼저, 디버깅 모드시 호스트 컴퓨터(3)와 프로세서(1)의 사이에 전송되는 신호와 호스트 컴퓨터(1)와 외부 메모리(2)의 사이에 전송되는 외부적인 신호의 파형도를 도7에 도시하였다.First, a waveform diagram of a signal transmitted between the host computer 3 and the processor 1 and an external signal transmitted between the host computer 1 and the external memory 2 in the debugging mode is shown in FIG. 7. .
디버깅 모드에서는 상기 클럭제어부(5)에서 디버깅 모드신호(DEBUG_MODE)가 고전위로 인가됨에 따라 디버그 클럭신호(DEBUG_CLK)를 출력한다.In the debugging mode, the clock control unit 5 outputs the debug clock signal DEBUG_CLK as the debugging mode signal DEBUG_MODE is applied at a high potential.
이와 같은 상태에서 클럭신호(CLOCKDR)가 고전위로 인가된다.In this state, the clock signal CLOCKDR is applied at high potential.
이 시점에서는 각 스캔셀(CELL2~CELL7)에 구비된 멀티플랙서(MUX4)의 동작에 의해 상기 코어부(4)에서 출력되는 각 신호를 차단한다. 상기 멀티플랙서(MUX1~MUX4)의 입력단에 표시된 0과 1은 각각 선택신호가 저전위일때와 고전위일때 선택됨을 표시한다.At this point, each signal output from the core unit 4 is blocked by the operation of the multiplexer MUX4 included in each of the scan cells CELL2 to CELL7. 0 and 1 displayed at the input terminals of the multiplexers MUX1 to MUX4 indicate that the selection signal is selected when the low potential and the high potential are respectively.
또한, 상기 디버그_클럭신호(DEBUG_CLK)가 발생하면서, 프로세서(1)의 코어에 입력되는 주 클럭신호는 인가되지 않아 프로세서(1)는 그 동작을 정지하게 된다.In addition, while the debug_clock signal DEBUG_CLK is generated, the main clock signal input to the core of the processor 1 is not applied, and the processor 1 stops its operation.
이와 같은 상태에서 클럭신호(CLOCKDR)가 고전위로 인가되고, 다음 디버그 클럭신호(DEBUG_CLK)의 주기에서 시프트신호(SHIFTDR)가 고전위로 인가되어, 상기 각 스캔셀(CELL2~CELL7)에 구비된 멀티플랙서(MUX1, MUX2)가 그 입력단자(SI)로 입력되는 레지스터를 선택하여 출력하도록 함으로써, 플립플롭(FF1)에 저장되도록 한다.In such a state, the clock signal CLOCKDR is applied at high potential, and the shift signal SHIFTDR is applied at high potential in the period of the next debug clock signal DEBUG_CLK, and the multiplexes included in each of the scan cells CELL2 to CELL7 are provided. The registers MUX1 and MUX2 select and output the registers input to the input terminal SI, thereby storing them in the flip-flop FF1.
상기 레지스터는 상기 호스트 컴퓨터(3)로 부터 인가되는 시프트 인신호(SHIFTIN)이다.The register is a shift in signal (SHIFTIN) applied from the host computer (3).
도8은 상기 호스트 컴퓨터(3)로 부터 입력되는 시프트 인 신호(SHIFTIN)의 일실시예도로서, 이에 도시한 바와 같이 외부 메모리의 동작 제어에 요구되는 각 신호를 포함하고 있다.FIG. 8 is an exemplary diagram of a shift-in signal SHIFTIN input from the host computer 3, and includes each signal required for operation control of an external memory as shown.
즉, 외부 메모리(2)의 억세스할 어드레스신호(A), 스트로브신호(MSTRB), 칩인에이블신호(DSB), 읽기/쓰기신호(RWB), 외부 메모리(2)에 데이터를 기록하기 위한 데이터 쓰기 인에이블신호(DOUTEN)와, 기록할 데이터(DOUT) 및 외부 메모리(2)로 부터 읽어들인 데이터가 저장되는 리드 데이터(DIN) 영역을 해당하는 비트만큼의 공간을 할당하여 입력한다.That is, writing data for writing data to the address signal A, the strobe signal MSTRB, the chip enable signal DSB, the read / write signal RWB, and the external memory 2 to be accessed in the external memory 2. A space corresponding to the corresponding bit is inputted into the enable signal DOUTEN, the read data DIN area in which the data DOUT to be written and the data read from the external memory 2 are stored.
이처럼 상기 스캔셀(CELL2~CELL7)의 멀티플랙서(MUX1, MUX2)에 고전위의 선택신호가 인가되는 상태에서 상기와 같은 구성인 시프트 인 신호(SHIFTIN)가 인가되면, 그 정보는 플립플롭(FF1)을 통해 순차적으로 레지스터 출력단(SO)을 통해 출력된다.As such, when the shift-in signal SHIFTIN having the above configuration is applied to the multiplexers MUX1 and MUX2 of the scan cells CELL2 to CELL7, the information is flip-flop ( FF1) is sequentially output through the register output stage SO.
이와 같은 상태로 진행하여 상기 스캔셀(CELL2)에 상기 호스트 컴퓨터(3)에서 전송된 시프트 인 신호(SHIFTIN)에 포함된 기록할 데이터(DOUT)가 위치하고, 스캔셀(CELL3)에 쓰기 인에이블신호(DOUTEN), 스캔셀(CELL4)에 읽기/쓰기신호(RWB), 스캔셀(CELL5)에 칩인에이블신호(DSB), 스캔셀(CELL6)에 스트로브신호(MSTRB), 스캔셀(CELL7)에 어드레스신호(A)가 각각 위치하도록 한다.In this state, the data to be written DOUT included in the shift-in signal SHIFTIN transmitted from the host computer 3 is located in the scan cell CELL2, and the write enable signal is written in the scan cell CELL3. (DOUTEN), read / write signal RWB to scan cell CELL4, chip enable signal DSB to scan cell CELL5, strobe signal MSTRB to scan cell CELL6, address to scan cell CELL7 Let signals A be located respectively.
이때, 스캔셀(CELL1)에는 시프트 인 신호(SHIFTIN)의 저장공간인 리드 데이터(DIN)영역이 위치하며, 상기와 같이 스캔셀(CELL1~CELL7)의 레지스터를 셋팅한후에 상기 클럭신호(CLOCKDR)와 시프트신호(SHIFTDR)는 저전위로 인가되어, 상기 스캔셀(CELL2~CELL7)에 구비된 멀티플랙서(MUX1, MUX2)의 선택상태를 변경하여 상기 플립플롭(FF1)에 저장된 레지스터를 홀딩한다.In this case, the read data DIN area, which is a storage space for the shift-in signal SHIFTIN, is located in the scan cell CELL1, and the clock signal CLOCKDR and the clock signal are set after setting the registers of the scan cells CELL1 to CELL7 as described above. The shift signal SHIFTDR is applied at a low potential to change the selection state of the multiplexers MUX1 and MUX2 included in the scan cells CELL2 to CELL7 to hold the registers stored in the flip-flop FF1.
또한, 상기 스캔셀(CELL1)의 멀티플랙서(MUX5, MUX6)는 외부 메모리(2)에서 출력되는 데이터(DIN)를 받아 들일 준비를 하게 된다.In addition, the multiplexers MUX5 and MUX6 of the scan cell CELL1 are prepared to accept the data DIN output from the external memory 2.
이와 같은 상태에서 업데이트신호(UPDATEDR)가 고전위로 인가되면, 상기 각 스캔셀(CELL2~CELL7)의 멀티플랙서(MUX3)가 플립플롭(FF1)에 각각 저장된 레지스터를 외부 메모리 인터페이스부(6)를 통해 외부 메모리(2)로 전달하게 된다.In this state, when the update signal UPDATEDR is applied at high potential, the multiplexer MUX3 of each of the scan cells CELL2 to CELL7 stores the registers stored in the flip-flop FF1, respectively. Transfer to the external memory (2) through.
이때, 읽기 모드라면, 상기 외부 메모리 인터페이스부(6)의 버퍼(BUFF)의 동작은 차단되고, 외부 메모리(2)에 읽기/쓰기신호(RWB)가 인가되고, 칩인에이블신호(DSB), 스트로브신호(MSTRB) 및 어드레스 신호(A)가 인가된다.At this time, in the read mode, the operation of the buffer BUFF of the external memory interface unit 6 is interrupted, the read / write signal RWB is applied to the external memory 2, the chip enable signal DSB, and the strobe. A signal MSTRB and an address signal A are applied.
이에 따라 상기 외부 메모리(2)의 어드레스 신호(A)에 해당하는 주소의 데이터(DIN)가 억세스 되어 상기 스캔셀(CELL1)의 플립플롭(FF3)을 통해 호스트 컴퓨터(3)로 인가된다.Accordingly, the data DIN of the address corresponding to the address signal A of the external memory 2 is accessed and applied to the host computer 3 through the flip-flop FF3 of the scan cell CELL1.
이때의 메모리 억세스 상태를 도9에 도시하였다.The memory access state at this time is shown in FIG.
즉, 쓰기 인에이블신호(DOUTEN)는 읽기 모드이므로 저전위로 출력되어, 상기 외부 메모리 인터페이스부(6)의 버퍼(BUFF)의 동작을 정지시켜, 외부 메모리(2)의 데이터(DIN)가 상기 스캔셀(CELL1) 내로 유입될 수 있도록 한다.That is, since the write enable signal DOUTEN is in the read mode, the write enable signal DOUTEN is output at a low potential to stop the operation of the buffer BUFF of the external memory interface unit 6 so that the data DIN of the external memory 2 is scanned. It can be introduced into the cell (CELL1).
또한, 읽기/쓰기신호(RWB)는 외부 메모리(2)에 읽기 모드로 동작하라는 신호인 고전위로 인가된다.In addition, the read / write signal RWB is applied to the external memory 2 at a high potential which is a signal for operating in a read mode.
또한 칩인에이블신호(DSB)와 스트로브신호(MSTRB)는 저전위로 인가되어, 외부 메모리(2)를 인에이블시키고, 그 어드레스신호(A)에 해당하는 번지를 억세스하여 데이터(DIN)를 읽게 된다.In addition, the chip enable signal DSB and the strobe signal MSTRB are applied at low potential to enable the external memory 2, and access the address corresponding to the address signal A to read the data DIN.
이와 같은 과정을 통해 디버깅 모드에서 외부 메모리(2)의 특정 주소를 억세스하여 그 데이터를 읽어 들임으로써, 외부 메모리(2)의 특정 번지에 저장된 데이터의 이상유무를 판단할 수 있다.Through this process, by accessing a specific address of the external memory 2 in the debugging mode and reading the data, it is possible to determine whether there is an abnormality of data stored at a specific address of the external memory 2.
또한, 쓰기 모드에서는 디버깅할 데이터를 상기 시프트 인 신호(SHIFTIN)의 쓰기 데이터 영역(DOUT)에 저장하여 외부 메모리(2)의 특정 번지에 기록할 수 있다.In the write mode, the data to be debugged may be stored in the write data area DOUT of the shift-in signal SHIFTIN and written to a specific address of the external memory 2.
즉, 상기와 같은 동작과정을 통해 각 스캔셀(CELL1~CELL7)에 레지스터를 셋팅한 후, 상기 업데이트 신호(UPDATEDR)를 고전위로 인가하여 각 스캔셀(CELL2~CELL7)에 세팅된 레지스터를 외부 메모리(2)로 인가한다.That is, after setting the registers to the scan cells CELL1 to CELL7 through the operation described above, the registers set to the scan cells CELL2 to CELL7 are applied to the external memory by applying the update signal UPDATEDR at high potential. (2).
이와 같이 디버깅 모드에서 쓰기 동작을 수행하는 과정의 동작 파형도를 도 10에 도시하였다.As such, an operation waveform diagram of a process of performing a write operation in the debugging mode is illustrated in FIG. 10.
쓰기 인에이블신호(DOUTEN)는 고전위로 인가되어 상기 외부 메모리 인터페이스부(6)의 버퍼(BUFF)를 동작시켜, 상기 기록할 데이터(DOUT)가 외부 메모리(2)에 인가되록하며, 이때의 읽기/쓰기신호(RWB)는 쓰기 모드를 나타내는 저전위로 외부 메모리(2)에 인가되어 외부 메모리(2)가 쓰기 모드로 동작할 수 있도록 한다.The write enable signal DOUTEN is applied at a high potential to operate the buffer BUFF of the external memory interface 6 so that the data DOUT to be written is applied to the external memory 2, and the read at this time. The write signal RWB is applied to the external memory 2 at a low potential indicating the write mode so that the external memory 2 can operate in the write mode.
상기 칩인에이블신호(DSB)와 스트로브신호(MSTRB)를 저전위로 인가하여 외부 메모리(2)를 인에이블 시켜, 해당 어드레스(A)에 데이터(DOUT)를 기록하게 된다.The chip enable signal DSB and the strobe signal MSTRB are applied at a low potential to enable the external memory 2 to write the data DOUT at the corresponding address A. FIG.
이처럼, 본 발명은 프로세서(1)의 내부에 외부의 호스트 컴퓨터(3)의 제어에 따라 디버깅 모드에서 외부 메모리(2)의 특정 번지의 데이터를 읽어 오거나, 기록할 수 있어 그 디버깅의 효율을 높이며, 다른 외부장치의 접속없이 디버깅을 용이하게 수행할 수 있다.As described above, the present invention can read or write data of a specific address of the external memory 2 in the debugging mode under the control of the external host computer 3 inside the processor 1, thereby improving the efficiency of debugging. Therefore, debugging can be easily performed without connecting other external devices.
상기한 바와 같이 본 발명 마이크로 프로세서의 외부 메모리 억세스 장치는 호스트 컴퓨터를 이용하여 사용자가 디버깅 모드에서 외부 메모리의 특정 번지를 지정하여 그 번지에 데이터를 기록하거나, 기록된 데이터를 읽어 올 수 있어, 그 디버깅을 보다 용이하게 수행할 수 있도록 하여 장치의 사용효율을 증대시키는 효과가 있으며, 별도의 장치를 연결하지 않고 디버깅을 자체 내에서 수행할 수 있어 디버깅 속도를 향상시키고 그 신뢰성을 보다 향상시킬 수 있는 효과가 있다.As described above, in the external memory access device of the microprocessor of the present invention, a user may designate a specific address of the external memory in the debugging mode and write data to or read data from the address in the debugging mode. It is effective to increase the use efficiency of the device by making debugging easier, and debugging can be done within itself without connecting a separate device, so that debugging speed can be improved and reliability thereof can be improved. It works.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR10-2002-0003938A KR100425692B1 (en) | 2002-01-23 | 2002-01-23 | External memory access apparatus for processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR10-2002-0003938A KR100425692B1 (en) | 2002-01-23 | 2002-01-23 | External memory access apparatus for processor |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20030063689A KR20030063689A (en) | 2003-07-31 |
KR100425692B1 true KR100425692B1 (en) | 2004-04-01 |
Family
ID=32219048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR10-2002-0003938A KR100425692B1 (en) | 2002-01-23 | 2002-01-23 | External memory access apparatus for processor |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100425692B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9411537B2 (en) | 2012-09-14 | 2016-08-09 | Samsung Electronics Co., Ltd. | Embedded multimedia card (EMMC), EMMC system including the EMMC, and method of operating the EMMC |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05151020A (en) * | 1991-11-28 | 1993-06-18 | Toshiba Corp | Digital signal processor |
KR0168656B1 (en) * | 1989-04-03 | 1999-01-15 | 빈센트 죠셉 로너 | Data processing system |
KR20000013896A (en) * | 1998-08-14 | 2000-03-06 | 김영환 | Debugging circuit of microprocessor |
KR20000032851A (en) * | 1998-11-18 | 2000-06-15 | 윤종용 | Memory connection device and method for microprocessor |
-
2002
- 2002-01-23 KR KR10-2002-0003938A patent/KR100425692B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR0168656B1 (en) * | 1989-04-03 | 1999-01-15 | 빈센트 죠셉 로너 | Data processing system |
JPH05151020A (en) * | 1991-11-28 | 1993-06-18 | Toshiba Corp | Digital signal processor |
KR20000013896A (en) * | 1998-08-14 | 2000-03-06 | 김영환 | Debugging circuit of microprocessor |
KR20000032851A (en) * | 1998-11-18 | 2000-06-15 | 윤종용 | Memory connection device and method for microprocessor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9411537B2 (en) | 2012-09-14 | 2016-08-09 | Samsung Electronics Co., Ltd. | Embedded multimedia card (EMMC), EMMC system including the EMMC, and method of operating the EMMC |
Also Published As
Publication number | Publication date |
---|---|
KR20030063689A (en) | 2003-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112331253B (en) | Chip testing method, terminal and storage medium | |
KR100698860B1 (en) | Divice and method for jtag test | |
KR100319733B1 (en) | Non-volatile semiconductor memory ic and method of burn-in test of the same | |
US7596730B2 (en) | Test method, test system and assist board | |
CN101432699A (en) | Apparatus and method for controlling power, clock, and reset during test and debug procedures for a plurality of processor/cores | |
KR100813533B1 (en) | Semiconductor memory apparatus and data mask method of the same | |
US4312067A (en) | Function test evaluation apparatus for evaluating a function test of a logic circuit | |
US6311303B1 (en) | Monitor port with selectable trace support | |
KR100425692B1 (en) | External memory access apparatus for processor | |
US4819166A (en) | Multimode scan apparatus | |
KR20050055167A (en) | Semiconductor memory having a single buffer selecting input terminal and method of testing the same | |
JP3384272B2 (en) | Fail memory | |
US20080316846A1 (en) | Semiconductor memory device capable of storing data of various patterns and method of electrically testing the semiconductor memory device | |
CN114691520A (en) | Instruction programmable buffer area design system based on processor debugging framework | |
KR100830959B1 (en) | Apparatus for test of nand flash memory device | |
EP0158774B1 (en) | Data processing system with an improved storage testing device | |
TW200915330A (en) | Method for performing memory diagnostics using a programmable diagnostic memory module | |
JP2583056B2 (en) | IC test system | |
US20230314513A1 (en) | In-circuit emulator device | |
JP2738112B2 (en) | Failure information collection method for information processing equipment | |
KR100532104B1 (en) | Method and device for managing memory embedded in processor and SoC equipped with the device thereof | |
JP2002050193A (en) | Memory testing method, memory testing device | |
EP0143516A2 (en) | Multimode scan apparatus | |
JP2877505B2 (en) | LSI mounting board and data processing device | |
JPS6258025B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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 | ||
FPAY | Annual fee payment |
Payment date: 20070221 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |