KR100720663B1 - Device for synchronizing with dual port ram and microprocessor using the device - Google Patents

Device for synchronizing with dual port ram and microprocessor using the device Download PDF

Info

Publication number
KR100720663B1
KR100720663B1 KR1020050070945A KR20050070945A KR100720663B1 KR 100720663 B1 KR100720663 B1 KR 100720663B1 KR 1020050070945 A KR1020050070945 A KR 1020050070945A KR 20050070945 A KR20050070945 A KR 20050070945A KR 100720663 B1 KR100720663 B1 KR 100720663B1
Authority
KR
South Korea
Prior art keywords
dpram
signal
microprocessor
synchronizer
read
Prior art date
Application number
KR1020050070945A
Other languages
Korean (ko)
Other versions
KR20070016349A (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 KR1020050070945A priority Critical patent/KR100720663B1/en
Publication of KR20070016349A publication Critical patent/KR20070016349A/en
Application granted granted Critical
Publication of KR100720663B1 publication Critical patent/KR100720663B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system

Abstract

본 발명은 듀얼포트램 동기화 장치 및 상기 듀얼포트램 동기화 장치를 사용하는 마이크로 프로세서에 관한 것이다. 상기 마이크로 프로세서는 DPRAM 동기화 장치와 연결되어 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 DPRAM 동기화 장치로 전송하고, 상기 마이크로 프로세서의 IRQ 단자는 DPRAM의 BUSY 신호선과 연결되는 것을 특징으로 한다. 상기 DPRAM 동기화 장치는, DPRAM으로부터의 BUSY 신호를 입력받는 제1 신호 입력부와, 상기 마이크로 프로세서로부터 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 입력받는 제2 신호 입력부와, 상기 제2 신호 입력부로 입력된 신호들을 DPRAM의 해당 단자로 출력하는 신호 출력부와, 만약 상기 제1 신호 입력부로 BUSY 신호가 입력되면, 상기 신호 출력부로 신호가 출력되는 것을 차단시키는 신호 차단부를 구비한다. The present invention relates to a dual port RAM synchronizing apparatus and a microprocessor using the dual port RAM synchronizing apparatus. The microprocessor is connected to the DPRAM synchronizer to transmit / CS (Chip Select), / RD (Read) and / WR (Write) signals to the DPRAM synchronizer, and the IRQ terminal of the microprocessor is connected to the BUSY signal line of the DPRAM . The DPRAM synchronizing apparatus includes a first signal input unit receiving a BUSY signal from a DPRAM and a second signal input unit receiving a / CS (Chip Select), / RD (Read), and / A signal output unit for outputting signals input to the second signal input unit to a corresponding terminal of the DPRAM and a signal output unit for interrupting output of a signal to the signal output unit when the BUSY signal is input to the first signal input unit, .

만약 상기 DPRAM으로부터 BUSY 신호가 출력되면, 상기 마이크로 프로세서의 /CS(Chip Select), /RD(Read), /WR(Write) 신호는 상기 DPRAM 동기화 장치의 신호 차단부에 의해 DPRAM으로의 출력이 차단되고, IRQ 단자로의 신호 입력에 응답하여상기 마이크로 프로세서는 소프트웨어적으로 DPRAM으로의 재접속을 시도하게 된다. If a BUSY signal is output from the DPRAM, / CS (Chip Select), / RD (Read) and / WR (Write) signals of the microprocessor are blocked by the signal interrupter of the DPRAM synchronizer And in response to a signal input to the IRQ terminal, the microprocessor attempts to reconnect to the DPRAM in software.

DPRAM, BUSY 신호선, 인터럽트 서비스 루틴 DPRAM, BUSY signal line, interrupt service routine

Description

듀얼포트램 동기화 장치 및 상기 장치를 사용하는 마이크로 프로세서{DEVICE FOR SYNCHRONIZING WITH DUAL PORT RAM AND MICROPROCESSOR USING THE DEVICE}BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a dual-port RAM synchronizing apparatus and a microprocessor using the same,

도 1은 본 발명의 바람직한 실시예에 따른 DPRAM 동기화 장치 및 마이크로 프로세서가 DPRAM에 접속되어 있는 상태를 예시적으로 도시한 구성도이다. FIG. 1 is a configuration diagram illustrating a DPRAM synchronizing apparatus and a microprocessor according to a preferred embodiment of the present invention connected to a DPRAM. Referring to FIG.

도 2는 본 발명의 바람직한 실시예에 따른 DPRAM 동기화 장치의 내부 구성을 개략적으로 도시한 블록도이다. 2 is a block diagram schematically illustrating an internal configuration of a DPRAM synchronizing apparatus according to a preferred embodiment of the present invention.

<도면의 주요 부분에 대한 부호의 설명>Description of the Related Art

10 : DPRAM 동기화 장치10: DPRAM synchronizer

20 : DPRAM20: DPRAM

30 : 제1 마이크로 프로세서30: a first microprocessor

40 : 제2 마이크로 프로세서40: a second microprocessor

100 : 제1 신호 입력부100: first signal input section

110 : 제2 신호 입력부110: second signal input section

120 : 신호 출력부120: Signal output section

130 : 신호 차단부130:

200 : 제1 데이터 영역200: first data area

210 : 제2 데이터 영역210: second data area

220 : 신호 입력부220: Signal input section

230 : 제어부230:

본 발명은 DPRAM 사용을 가능케하는 DPRAM 동기화 장치 및 상기 DPRAM 동기화 장치를 연결하여 DPRAM을 사용할 수 있게 하는 마이크로 프로세서에 관한 것으로서, 더욱 구체적으로는 DPRAM의 사용을 지원하지 않는 마이크로 프로세서와 연결되어 DPRAM으로부터의 BUSY 신호를 처리할 수 있도록 하여 데이터 충돌을 방지하는 DPRAM 동기화 장치 및 상기 DPRAM 동기화 장치와 연결되어 DPRAM을 사용할 수 있도록 하는 마이크로 프로세서에 관한 것이다. [0001] The present invention relates to a DPRAM synchronizing apparatus enabling use of a DPRAM and a microprocessor connecting the DPRAM synchronizing apparatus to use the DPRAM. More particularly, the present invention relates to a microprocessor connected to a microprocessor which does not support the use of a DPRAM, A DPRAM synchronizer for preventing a data collision by allowing a BUSY signal to be processed, and a microprocessor connected to the DPRAM synchronizer to use the DPRAM.

듀얼포트램(Dual Port RAM;이하 'DPRAM'이라 한다)이란 두 개의 주소 라인을 구비하여 두 개의 마이크로 프로세서가 동시에 접근할 수 있는 RAM이다. 전술한 DPRAM은 BUSY 라인을 구동하는 것을 제외하면 마이크로프로세서에게는 일반 RAM에 접근하는 것과 동일하며, 이러한 DPRAM은 두 개의 프로세서가 강결합(tightly coupled)되어 있는 환경에 적합하다. Dual Port RAM (hereinafter referred to as 'DPRAM') is a RAM that has two address lines and can be accessed by two microprocessors simultaneously. The DPRAM described above is equivalent to accessing a general RAM for a microprocessor, except for driving the BUSY line, which is suitable for an environment where the two processors are tightly coupled.

전술한 바와 같은 DPRAM을 이용하여 두 개의 마이크로 프로세서 간에 데이터를 전송하기 위하여, 상기 프로세서들은 하드웨어적으로 버스 wait 신호를 처리할 수 있어야 하거나, 상기 프로세서들이 DPRAM으로부터의 인터럽트 신호를 처리할 수 있어야 한다. In order to transfer data between the two microprocessors using the DPRAM as described above, the processors must be able to handle the bus wait signal in hardware, or the processors must be able to process the interrupt signal from the DPRAM.

하지만, 상기 프로세서들은 버스 wait 신호를 지원하지 않는 경우도 많으며, 시간적으로 정밀한 제어를 필요로 하는 시스템에 적용되어 인터럽트 신호를 처리할 수 없는 경우도 종종 발생한다. 이와 같은 경우, 두 프로세서들간의 데이터 전송은 오로지 소프트웨어만으로 충돌을 회피하도록 구현하여야 된다. However, the processors often do not support a bus wait signal, and sometimes the interrupt signal can not be processed due to application to a system requiring precise control in terms of time. In such a case, data transmission between the two processors should be implemented so as to avoid collision solely with software.

또한, DPRAM은 두 개의 마이크로 프로세서가 동시에 동일한 주소에 접근하는 경우에는 하나의 마이크로 프로세서로 Busy 신호를 인가함으로써, 두 개의 마이크로 프로세서가 동시에 동일한 주소로 접근하여 데이터가 충돌되는 것을 방지한다. 그런데, DPRAM을 지원하는 프로세서는 Busy 라인을 구비하므로 DPRAM은 Busy라인을 통해 동기화 신호를 전송할 수 있으나, DPRAM을 지원하지 않는 프로세서는 별도의 Busy라인을 구비하고 있지 아니하므로 DPRAM은 해당 프로세서로 동기화 신호를 전송할 수 없게 된다. In addition, when two microprocessors access the same address simultaneously, the DPRAM applies a busy signal to one microprocessor so that two microprocessors access the same address at the same time to prevent data collision. However, since the DPRAM-supporting processor has a busy line, the DPRAM can transmit the synchronization signal through the busy line. However, since the processor that does not support the DPRAM does not have a separate busy line, the DPRAM transmits the synchronization signal Can not be transmitted.

이에, 본 출원인은 DPRAM을 지원하지 않는 프로세서라 할지라도 DPRAM을 이용하여 데이터를 전송할 수 있는 방안을 제안하고자 한다.Accordingly, the present applicant proposes a method of transferring data using a DPRAM even if the processor does not support DPRAM.

전술한 문제점을 해결하기 위한 본 발명의 목적은 DPRAM의 사용을 지원하지 않는 마이크로 프로세서에 대하여 DPRAM에서의 데이터 충돌을 방지할 수 있도록 하는 DPRAM 동기화 장치를 제공하는 것이다. SUMMARY OF THE INVENTION An object of the present invention is to provide a DPRAM synchronizing apparatus which can prevent a data conflict in a DPRAM from occurring in a microprocessor that does not support the use of the DPRAM.

본 발명의 다른 목적은 DPRAM의 사용을 지원하기 위한 신호선을 구비하지 않더라도 DPRAM으로부터의 BUSY 신호를 인터럽트로 처리할 수 있도록 하는 마이크로 프로세서를 제공하는 것이다. It is another object of the present invention to provide a microprocessor capable of processing a BUSY signal from a DPRAM as an interrupt even if it does not have a signal line for supporting use of the DPRAM.

전술한 기술적 과제를 달성하기 위한 본 발명의 특징은 DPRAM의 사용을 지원하지 않는 마이크로 프로세서에 대하여 DPRAM의 사용을 가능케 하는 DPRAM 동기화 장치에 관한 것으로서, 상기 DPRAM 동기화 장치는,According to an aspect of the present invention, there is provided a DPRAM synchronization apparatus for enabling a DPRAM to be used for a microprocessor that does not support the use of a DPRAM,

DPRAM으로부터의 BUSY 신호를 입력받는 제1 신호 입력부와, A first signal input unit for receiving a BUSY signal from the DPRAM,

DPRAM의 사용을 지원하지 않는 마이크로 프로세서로부터 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 입력받는 제2 신호 입력부와,A second signal input unit for receiving a / CS (Chip Select), / RD (Read), and / WR (Write) signals from a microprocessor that does not support the use of the DPRAM,

상기 제2 신호 입력부로 입력된 신호들을 DPRAM의 해당 단자로 출력하는 신호 출력부와,A signal output unit for outputting the signals input to the second signal input unit to corresponding terminals of the DPRAM,

만약 상기 제1 신호 입력부로 BUSY 신호가 입력되면, 상기 신호 출력부로 신호가 출력되는 것을 차단시키는 신호 차단부를 구비하여, And a signal blocking unit for blocking a signal from being output to the signal output unit when the BUSY signal is input to the first signal input unit,

DPRAM으로부터 BUSY 신호가 입력되면 DPRAM으로의 /CS, /RD, /WR 신호 출력을 차단시킴으로써, 상기 마이크로 프로세서의 DPRAM 사용을 가능케 한다. When the BUSY signal is input from the DPRAM, the output of the / CS, / RD, and / WR signals to the DPRAM is blocked, thereby enabling the use of the DPRAM of the microprocessor.

본 발명의 다른 특징은 DPRAM의 사용을 지원하지 않는 마이크로 프로세서에 관한 것으로서, 상기 마이크로 프로세서는 DPRAM 동기화 장치와 연결되어 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 DPRAM 동기화 장치로 전송하고, 상기 마이크로 프로세서의 IRQ 단자는 DPRAM의 BUSY 신호선과 연결되는 것을 특징으로 하며,Another aspect of the present invention relates to a microprocessor which does not support the use of a DPRAM, wherein the microprocessor is connected to a DPRAM synchronizer and outputs a / CS (Chip Select) / RD (Read) And the IRQ terminal of the microprocessor is connected to the BUSY signal line of the DPRAM,

상기 DPRAM 동기화 장치는, The DPRAM synchronizer comprises:

DPRAM으로부터의 BUSY 신호를 입력받는 제1 신호 입력부와,A first signal input unit for receiving a BUSY signal from the DPRAM,

상기 마이크로 프로세서로부터 /CS(Chip Select), /RD(Read), /WR(Write) 신 호를 입력받는 제2 신호 입력부와,A second signal input unit receiving a / CS (Chip Select), / RD (Read), and / WR (Write) signals from the microprocessor;

상기 제2 신호 입력부로 입력된 신호들을 DPRAM의 해당 단자로 출력하는 신호 출력부와,A signal output unit for outputting the signals input to the second signal input unit to corresponding terminals of the DPRAM,

만약 상기 제1 신호 입력부로 BUSY 신호가 입력되면, 상기 신호 출력부로 신호가 출력되는 것을 차단시키는 신호 차단부를 구비하며, And a signal blocking unit for blocking a signal from being output to the signal output unit when a BUSY signal is input to the first signal input unit,

만약 상기 DPRAM으로부터 BUSY 신호가 출력되어 상기 DPRAM 동기화 장치 및 상기 마이크로 프로세서의 IRQ 단자로 입력되면, 상기 마이크로 프로세서의 /CS(Chip Select), /RD(Read), /WR(Write) 신호는 상기 DPRAM 동기화 장치의 신호 차단부에 의해 DPRAM으로의 출력이 차단되고, IRQ 단자로의 신호 입력에 응답하여상기 마이크로 프로세서는 소프트웨어적으로 DPRAM으로의 재접속을 시도하게 된다. If a BUSY signal is output from the DPRAM and is input to the IRQ terminal of the DPRAM synchronizer and the microprocessor, the / CS (Chip Select) / RD (Read) / WR The output to the DPRAM is interrupted by the signal interrupter of the synchronizing device and the microprocessor attempts to reconnect to the DPRAM in response to the signal input to the IRQ terminal.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 따른 DPRAM의 사용을 지원하지 않는 마이크로 프로세서에 연결되어 DPRAM의 사용을 가능케하는 DPRAM 동기화 장치(10) 및 상기 DPRAM 동기화 장치를 이용하여 DPRAM(20)을 사용하는 마이크로 프로세서(30)의 구성 및 동작에 대하여 구체적으로 설명한다. Hereinafter, a DPRAM synchronizer 10 connected to a microprocessor that does not support the use of a DPRAM according to a preferred embodiment of the present invention will be described with reference to the accompanying drawings, and a DPRAM synchronizer 10 using the DPRAM synchronizer 20 will be described in detail.

도 1은 본 발명의 바람직한 실시예에 따른 DPRAM 동기화 장치(10)와 DRPAM(20)에 연결된 제1 마이크로 프로세서(30) 및 제2 마이크로 프로세서(40)를 예시적으로 도시한 구성도이다. 도 1에 도시된 바와 같이, 제1 마이크로 프로세서(30)와 제2 마이크로 프로세서(40)는 DPRAM(20)을 통해 데이터를 전송하게 되는데, 제1 마이크로 프로세서(30)는 DPRAM의 사용을 지원하지 않는 것이며, 제2 마이크로 프로세서(40)는 DPRAM의 사용을 지원하는 것이다. 1 is a block diagram illustrating a DPRAM synchronizer 10 and a first microprocessor 30 and a second microprocessor 40 connected to a DRPAM 20 according to a preferred embodiment of the present invention. As shown in FIG. 1, the first microprocessor 30 and the second microprocessor 40 transmit data through the DPRAM 20. The first microprocessor 30 does not support the use of the DPRAM And the second microprocessor 40 supports the use of the DPRAM.

DPRAM(20)은 제1 마이크로 프로세서의 쓰기 전용과 제2 마이크로 프로세서의 읽기 전용 영역인 제1 데이터 영역(200), 제1 마이크로 프로세서의 읽기 전용과 제2 마이크로 프로세서의 쓰기 전용 영역인 제2 데이터 영역(210), /CS(Chip Select), /RD(Read), /WR(Write) 신호 등의 제어 신호가 입력되는 신호 입력부(220), 및 특정 데이터 영역에 두 개의 마이크로 프로세서가 동시에 접속하여 충돌되는 것을 방지하기 위하여 제1 또는 제2 마이크로 프로세서로 BUSY 신호를 출력하는 제어부(230)를 포함한다. The DPRAM 20 includes a first data area 200, which is a write-only area of the first microprocessor and a read-only area of the second microprocessor, a second data area 200, which is a read-only area of the first microprocessor and a write- A signal input unit 220 to which a control signal such as an area 210, / CS (Chip Select), / RD (Read) or / WR (Write) signal is inputted, and two microprocessors And a control unit 230 for outputting a BUSY signal to the first or second microprocessor in order to prevent a collision.

상기 제2 마이크로 프로세서(40)는 DPRAM의 사용을 지원하는 마이크로 프로세서로서, DPRAM의 제어부로부터 출력되는 BUSY 신호가 제2 마이크로 프로세서의 해당 단자로 입력되어 처리되므로, 별도의 DPRAM 동기화 장치와 연결될 필요가 없다. The second microprocessor 40 is a microprocessor that supports the use of the DPRAM. Since the BUSY signal output from the control unit of the DPRAM is input to the corresponding terminal of the second microprocessor, the second microprocessor 40 needs to be connected to a separate DPRAM synchronizer none.

상기 제1 마이크로 프로세서(30)는 DPRAM의 사용을 지원하지 않는 마이크로 프로세서로서, DPRAM의 제어부로부터 출력되는 BUSY 신호를 입력받아 처리하지 못한다. 따라서, 상기 제1 마이크로 프로세서(30)는 DPRAM으로부터 출력되는 BUSY 신호를 처리하기 위하여, DPRAM 동기화 장치(10)를 경유하여 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 DPRAM으로 전송하고, 제1 마이크로 프로세서(30)의 IRQ 단자로 DPRAM(20)으로부터의 BUSY 신호를 입력받는다. The first microprocessor 30 is a microprocessor that does not support the use of the DPRAM and can not process the BUSY signal output from the control unit of the DPRAM. Therefore, the first microprocessor 30 can control / CS (Chip Select), / RD (Read), and / WR (Write) signals via the DPRAM synchronizer 10 to process the BUSY signal output from the DPRAM And receives the BUSY signal from the DPRAM 20 at the IRQ terminal of the first microprocessor 30. [

만약, 상기 DPRAM(20)의 제어부로부터 충돌을 방지하기 위한 BUSY 신호가 출력되어 상기 DPRAM 동기화 장치(10)와 제1 마이크로 프로세서(30)의 IRQ 단자로 입력되면, 상기 DPRAM 동기화 장치(10)는 상기 제1 마이크로 프로세서로부터 입력된 /CS(Chip Select), /RD(Read), /WR(Write) 신호의 DPRAM으로의 출력을 차단시킴으로써 제1 마이크로 프로세서가 DPRAM으로 데이터를 쓰거나 읽는 것을 방지한다. 또한, 제1 마이크로 프로세서(30)의 IRQ 단자로 BUSY 신호가 입력되어 인터럽트 서비스 루틴(Interrupt Service Routine)을 동작시킴으로써, 소프트웨어적으로 DPRAM에 접속하기 위한 시도를 다시 하게 된다. 전술한 인터럽트 서비스 루틴에 대한 자세한 설명은 후술한다. If a BUSY signal for preventing collision is output from the control unit of the DPRAM 20 and input to the IRQ terminal of the DPRAM synchronizer 10 and the first microprocessor 30, The output of the / CS (Chip Select), / RD (Read), and / WR (Write) signals input from the first microprocessor is blocked to prevent the first microprocessor from writing or reading data to or from the DPRAM. In addition, a BUSY signal is input to the IRQ terminal of the first microprocessor 30 to operate an interrupt service routine (Interrupt Service Routine), thereby attempting to connect to the DPRAM in software again. A detailed description of the above-described interrupt service routine will be described later.

따라서, 본 발명에 의하여 DPRAM의 사용을 지원하지 않는 마이크로 프로세서인 경우에도, 다른 마이크로 프로세서와의 충돌을 방지할 수 있게 됨으로써, DPRAM의 사용을 가능하게 한다.Therefore, even in the case of a microprocessor which does not support the use of the DPRAM according to the present invention, it is possible to prevent collision with another microprocessor, thereby making it possible to use the DPRAM.

이하, 도 2를 참조하여 본 발명의 바람직한 실시예에 따른 DPRAM 동기화 장치(20)의 구성 및 동작에 대하여 구체적으로 설명한다. Hereinafter, the configuration and operation of the DPRAM synchronizer 20 according to the preferred embodiment of the present invention will be described in detail with reference to FIG.

도 2를 참조하면, 본 발명의 바람직한 실시예에 따른 DPRAM 동기화 장치(10)는 제1 신호 입력부(100), 제2 신호 입력부(110), 신호 출력부(120) 및 신호 차단부(130)를 포함한다. 2, the DPRAM synchronizer 10 according to the preferred embodiment of the present invention includes a first signal input unit 100, a second signal input unit 110, a signal output unit 120, and a signal blocking unit 130, .

상기 제1 신호 입력부(100)는 DPRAM으로부터의 BUSY 신호를 입력받는다. The first signal input unit 100 receives a BUSY signal from the DPRAM.

상기 제2 신호 입력부(110)는 DPRAM의 사용을 지원하지 않는 마이크로 프로세서로부터 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 입력받는다. The second signal input unit 110 receives a / CS (Chip Select), / RD (Read), and / WR (Write) signals from a microprocessor that does not support the use of the DPRAM.

상기 신호 출력부(120)는 상기 제2 신호 입력부(110)로 입력된 신호들을 DPRAM의 해당 단자로 출력한다. The signal output unit 120 outputs signals input to the second signal input unit 110 to corresponding terminals of the DPRAM.

상기 신호 차단부(130)는 상기 제1 신호 입력부(100)로 BUSY신호가 입력되는 지 여부를 확인하고, 만약 상기 제1 신호 입력부로 BUSY 신호가 입력되는 경우에는 상기 신호 출력부로 신호가 출력되는 것을 차단시킨다. The signal blocking unit 130 determines whether a BUSY signal is input to the first signal input unit 100 and outputs a signal to the signal output unit when a BUSY signal is input to the first signal input unit .

따라서, 본 발명의 바람직한 실시예에 따른 DPRAM 동기화 장치(10)는, DPRAM으로부터 BUSY 신호가 입력되지 않는 경우에는 마이크로 프로세서로부터의 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 DPRAM으로 전송하며, DPRAM으로부터 BUSY 신호가 입력되는 경우에는 마이크로 프로세서로부터의 /CS(Chip Select), /RD(Read), /WR(Write) 신호가 DPRAM으로 전송되는 것을 차단시킴으로써, 상기 마이크로 프로세서가 DPRAM에 데이터를 쓰거나 읽는 것을 방지하게 된다. 그 결과, 두 개의 마이크로 프로세서가 동시에 DPRAM에 접속하여 충돌하는 것을 방지한다. Therefore, when the BUSY signal is not input from the DPRAM, the DPRAM synchronizing apparatus 10 according to the preferred embodiment of the present invention performs a / CS (Chip Select), RD (Read), / WR (Read / Write) signal from the microprocessor is prevented from being transferred to the DPRAM when the BUSY signal is input from the DPRAM, Thereby preventing the processor from writing or reading data to the DPRAM. As a result, two microprocessors can prevent the DPRAM from colliding at the same time.

이하, 전술한 제1 마이크로 프로세서의 IRQ 단자로 DPRAM으로부터의 BUSY 신호가 입력되는 경우에 동작되는 제1 마이크로 프로세서의 인터럽트 서비스 루틴에 대하여 구체적으로 설명한다. 상기 제1 마이크로 프로세서가 인터럽트 서비스 루틴을 이용하여 DPRAM에 접근하여 데이터를 쓰거나 읽기 위하여는 데이터의 읽기 또는 쓰기 동작 이후에 "No Operation"이라는 코드를 추가함으로써, 소프트웨어의 오동작을 확인할 수 있도록 한다. 본 발명의 바람직한 실시예에 따라 작성된 데이터 읽기 함수(DPRAM_READ) 및 데이터 쓰기 함수(DPRAM_WRITE)에 대한 프로그램 코드의 일실시 형태를 아래에 예시적으로 기재한다.Hereinafter, the interrupt service routine of the first microprocessor operated when the BUSY signal from the DPRAM is input to the IRQ terminal of the first microprocessor will be described in detail. The first microprocessor accesses the DPRAM using the interrupt service routine and writes or reads the data. After the data read or write operation, a code "No Operation" is added to check the malfunction of the software. One embodiment of the program code for the data read function (DPRAM_READ) and the data write function (DPRAM_WRITE) created in accordance with the preferred embodiment of the present invention will be described below as an example.

char DPRAM_READ(dpram_address)char DPRAM_READ (dpram_address)

{{

data ← [dpram_address];data ← [dpram_address];

No Operation;No Operation;

return data;return data;

}}

void DPRAM_WRITE(dpram_address, data)void DPRAM_WRITE (dpram_address, data)

{{

[dpram_address] ← data;[dpram_address] ← data;

No Operation;No Operation;

}}

전술한 바와 같이 데이터의 읽기 및 쓰기 함수에 추가된 "No Operation"이라는 코드를 이용하여, 인터럽트 서비스 루틴에서 현재 발생한 인트럽트가 DPRAM과 관련된 인터럽트인지 여부를 확인할 수 있게 된다. As described above, by using the code "No Operation" added to the data reading and writing function, it is possible to check whether or not the interruption currently occurring in the interrupt service routine is an interrupt related to the DPRAM.

아래의 프로그램 코드는 본 발명의 바람직한 실시예에 따른 인터럽트 서비스 루틴에 대한 프로그램 코드의 일실시형태를 예시적으로 기재한 것이다.The following program code is an exemplary illustration of one embodiment of the program code for the interrupt service routine according to the preferred embodiment of the present invention.

interrupt service routineinterrupt service routine

{{

disable interrupt;disable interrupt;

preserve flag register;preserve flag register;

get PREVIOUS_PC from stack;get PREVIOUS_PC from stack;

while([PREVIOS_PC] is "No Operation")while ([PREVIOS_PC] is "No Operation")

PREVIOUS_PC ← PREVIOUS_PC - 1 ;PREVIOUS_PC ← PREVIOUS_PC - 1;

restore flag register;restore flag register;

enable interrupt;enable interrupt;

return to PREVIOUS_PC;return to PREVIOUS_PC;

}}

전술한 바와 같은 인터럽트 서비스 루틴을 실행하여, 인터럽트가 발생한 시점의 PC 값을 얻은 위 그 PC 위치의 명령어가 "No Operation"인 경우에는 이전 명령의 위치로 되돌림으로써, IRQ 신호 입력에 의한 인터럽트 발생과 함께 DPRAM 접근을 다시 시도할 수 있게 된다. When the instruction of the PC position at which the PC value at the time of interruption is obtained by executing the interrupt service routine as described above is "No Operation ", it returns to the position of the previous instruction so that interruption by IRQ signal input Together they will be able to retry DPRAM access.

이상에서 본 발명에 대하여 그 바람직한 실시예를 중심으로 설명하였으나, 이는 단지 예시일 뿐 본 발명을 한정하는 것이 아니며, 본 발명이 속하는 분야의 통상의 지식을 가진 자라면 본 발명의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 그리고, 이러한 변형과 응용에 관계된 차이점들은 첨부된 청구 범위에서 규정하는 본 발명의 범위에 포함되는 것으로 해석되어야 할 것이다. While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, It will be understood that various changes and modifications may be made without departing from the spirit and scope of the invention. It is to be understood that the present invention may be embodied in many other specific forms without departing from the spirit or essential characteristics thereof.

본 발명에 의하여, DPRAM이 지원되지 않는 마이크로 프로세서라 할지라도, 데이터의 충돌 방지를 위하여 DPRAM으로부터 전송되는 BUSY 신호를 처리할 수 있게 되고, 그 결과 상기 마이크로 프로세서도 DPRAM을 사용하여 다른 마이크로 프로세서와 데이터를 전송할 수 있게 된다. According to the present invention, even if the microprocessor does not support the DPRAM, it is possible to process the BUSY signal transmitted from the DPRAM in order to prevent data collision. As a result, the microprocessor can also use the DPRAM . &Lt; / RTI &gt;

Claims (2)

삭제delete DPRAM의 사용을 지원하지 않는 마이크로 프로세서에 있어서, For microprocessors that do not support the use of DPRAM, 상기 마이크로 프로세서는 DPRAM 동기화 장치와 연결되어 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 DPRAM 동기화 장치로 전송하고, The microprocessor is connected to the DPRAM synchronizer to transmit / CS (Chip Select), / RD (Read), and / WR (Write) signals to the DPRAM synchronizer, 상기 마이크로 프로세서의 IRQ 단자는 DPRAM의 BUSY 신호선과 연결되는 것을 특징으로 하며,The IRQ terminal of the microprocessor is connected to the BUSY signal line of the DPRAM, 상기 DPRAM 동기화 장치는, The DPRAM synchronizer comprises: DPRAM으로부터의 BUSY 신호를 입력받는 제1 신호 입력부와,A first signal input unit for receiving a BUSY signal from the DPRAM, 상기 마이크로 프로세서로부터 /CS(Chip Select), /RD(Read), /WR(Write) 신호를 입력받는 제2 신호 입력부와,A second signal input unit receiving a / CS (Chip Select), / RD (Read), and / WR (Write) 상기 제2 신호 입력부로 입력된 신호들을 DPRAM의 해당 단자로 출력하는 신호 출력부와,A signal output unit for outputting the signals input to the second signal input unit to corresponding terminals of the DPRAM, 만약 상기 제1 신호 입력부로 BUSY 신호가 입력되면, 상기 신호 출력부로 신호가 출력되는 것을 차단시키는 신호 차단부를 구비하며, And a signal blocking unit for blocking a signal from being output to the signal output unit when a BUSY signal is input to the first signal input unit, 만약 상기 DPRAM으로부터 BUSY 신호가 출력되어 상기 DPRAM 동기화 장치 및 상기 마이크로 프로세서의 IRQ 단자로 입력되면, 상기 마이크로 프로세서의 /CS(Chip Select), /RD(Read), /WR(Write) 신호는 상기 DPRAM 동기화 장치의 신호 차단부에 의해 DPRAM으로의 출력이 차단되고, IRQ 단자로의 신호 입력에 응답하여상기 마이크로 프로세서는 인터럽트 루틴을 이용한 소프트웨어적으로 DPRAM으로의 재접속을 시도하는 것을 특징으로 하는 마이크로 프로세서.If a BUSY signal is output from the DPRAM and is input to the IRQ terminal of the DPRAM synchronizer and the microprocessor, the / CS (Chip Select) / RD (Read) / WR The output to the DPRAM is interrupted by the signal interrupter of the synchronizing device, and in response to the signal input to the IRQ terminal, the microprocessor attempts to reconnect to the DPRAM in a software manner using an interrupt routine.
KR1020050070945A 2005-08-03 2005-08-03 Device for synchronizing with dual port ram and microprocessor using the device KR100720663B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050070945A KR100720663B1 (en) 2005-08-03 2005-08-03 Device for synchronizing with dual port ram and microprocessor using the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050070945A KR100720663B1 (en) 2005-08-03 2005-08-03 Device for synchronizing with dual port ram and microprocessor using the device

Publications (2)

Publication Number Publication Date
KR20070016349A KR20070016349A (en) 2007-02-08
KR100720663B1 true KR100720663B1 (en) 2007-05-21

Family

ID=41634361

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050070945A KR100720663B1 (en) 2005-08-03 2005-08-03 Device for synchronizing with dual port ram and microprocessor using the device

Country Status (1)

Country Link
KR (1) KR100720663B1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0520212A (en) * 1991-07-11 1993-01-29 Shinko Seisakusho Co Ltd Control circuit using dual port ram
JPH0841557A (en) * 1994-07-29 1996-02-13 Mitsubishi Materials Corp Device for concentrate injection in converter for smelting non-ferrous metal
JPH09231122A (en) * 1996-02-28 1997-09-05 Hitachi Ltd Processor system
KR19980029434A (en) * 1996-10-25 1998-07-25 정장호 Data interface device between PC main processor and PC card
KR20000045489A (en) * 1998-12-30 2000-07-15 이계철 Device and method for communication between multiple sub systems
KR20030009812A (en) * 2001-07-24 2003-02-05 엘지전자 주식회사 Apparatus and method for controlling DPRAM

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0520212A (en) * 1991-07-11 1993-01-29 Shinko Seisakusho Co Ltd Control circuit using dual port ram
JPH0841557A (en) * 1994-07-29 1996-02-13 Mitsubishi Materials Corp Device for concentrate injection in converter for smelting non-ferrous metal
JPH09231122A (en) * 1996-02-28 1997-09-05 Hitachi Ltd Processor system
KR19980029434A (en) * 1996-10-25 1998-07-25 정장호 Data interface device between PC main processor and PC card
KR20000045489A (en) * 1998-12-30 2000-07-15 이계철 Device and method for communication between multiple sub systems
KR20030009812A (en) * 2001-07-24 2003-02-05 엘지전자 주식회사 Apparatus and method for controlling DPRAM

Also Published As

Publication number Publication date
KR20070016349A (en) 2007-02-08

Similar Documents

Publication Publication Date Title
JP4589384B2 (en) High speed memory module
JP4322451B2 (en) Data transfer method between DSP memories or between DSP memory and CPU memory (DPRAM)
EP2062147B1 (en) Method and apparatus for conditional broadcast of barrier operations
KR900015008A (en) Data processor
US20070245043A1 (en) FIFO system and operating method thereof
JPH11272603A (en) Bus bridge device and transaction forwarding method
KR100720663B1 (en) Device for synchronizing with dual port ram and microprocessor using the device
US7472212B2 (en) Multi CPU system
JP5061504B2 (en) Dual port memory access right arbitration method
KR20030044373A (en) Universal serial bus device for using direct memory access interface
KR100728870B1 (en) Dual port ram and method of losslessly transmitting data using the dual port ram
CA2282166C (en) Method and apparatus for bridging a digital signal processor to a pci bus
KR100290092B1 (en) Device for interfacing input/output bus for processing defer reply signal
KR101371506B1 (en) Method for dead-lock avoidance for 2-processor data communication system
KR20020049331A (en) Matching Apparatus between Peripheral Processor and Device Controller
JP6535516B2 (en) Multi-programmable device system and control method thereof
KR200210744Y1 (en) Apparatus for data communication between processors
KR100278805B1 (en) Data Mediation Device and Method in Multi-Processing System
KR100210813B1 (en) Apparatus for resetting packet handler in full electronic switching system
KR100604569B1 (en) Apparatus for transceiving data between the processors and mobile terminal including the apparatus
KR20030009812A (en) Apparatus and method for controlling DPRAM
JP2734992B2 (en) Information processing device
KR890002468B1 (en) Main storage fallure address control system in a data processing system
KR19990038069U (en) Memory-variable DM controller
JPH04330541A (en) Common data transfer system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
G170 Publication of correction
FPAY Annual fee payment

Payment date: 20130425

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20140428

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee