KR930020277A - Data transfer method using shared memory - Google Patents

Data transfer method using shared memory Download PDF

Info

Publication number
KR930020277A
KR930020277A KR1019920003636A KR920003636A KR930020277A KR 930020277 A KR930020277 A KR 930020277A KR 1019920003636 A KR1019920003636 A KR 1019920003636A KR 920003636 A KR920003636 A KR 920003636A KR 930020277 A KR930020277 A KR 930020277A
Authority
KR
South Korea
Prior art keywords
data
register
cpu
shared memory
block
Prior art date
Application number
KR1019920003636A
Other languages
Korean (ko)
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 KR1019920003636A priority Critical patent/KR930020277A/en
Publication of KR930020277A publication Critical patent/KR930020277A/en

Links

Landscapes

  • Multi Processors (AREA)

Abstract

본 발명은 2개의 CPU사이에 공유메모리와 레지스터를 이용한 데이타 전송방법에 관한 것이다.The present invention relates to a data transfer method using a shared memory and a register between two CPUs.

본 발명은 송신측CPU(1)가 레지스터(42)의 값을 읽어 데이타를 기록할 공유메모리(3)의 블럭 유무를 검사하는 제1단계(51)와, 상기 제1단계(51) 수행후, 데이타를 기록할 블럭이 없으면 수신측 CPU(2)가 데이타를 읽어 가기를 기다리고, 여분의 블럭이 있으면 데이타를 써넣기 전에 제리스터(4)에 상태를 표시하여 수신측 CPU(2)에 공유메모리(3)가 현재 사용중임을 알리고 나서 데이타를 써넣는 제2단계(52내지53)와, 상기 제2단계(52내지53) 수행후, 데이타를 써넣은 블럭번호를 테일 레지스터(41)에 써넣고 처음으로 리턴하는 제3단계(54)와, 수신측 CPU(2)가 레지스터(41)를 검사하면서 공유메모리(3)의 블럭전체에 대한 데이타를 읽어오면서 레지스터(4)에 데이타를 읽는 중심을 기록하여 송신측 CPU(1)가 감지할 수 있도록 하는 제4단계(61내지 64)에 의해 수행된다.According to the present invention, the first CPU 51 checks the presence or absence of a block of the shared memory 3 in which the transmitting CPU 1 reads the value of the register 42 to write data, and after the first step 51 is performed. If there is no block to write data, it waits for the receiving CPU 2 to read the data. If there is an extra block, the status is displayed on the Jerryster 4 before the data is written. In the second register (52 to 53) for writing data after informing that (3) is currently in use, and after performing the second step (52 to 53), the block number in which the data is written is written into the tail register 41. The third step 54 to return for the first time, and the center of reading data to the register 4 while reading the data for the entire block of the shared memory 3 while the receiving CPU 2 checks the register 41. The recording is performed by the fourth steps 61 to 64 so that the transmitting side CPU 1 can sense it.

Description

공유메모리를 이용한 데이타 전송 방법Data transfer method using shared memory

본 내용은 요부공개 건이므로 전문내용을 수록하지 않았음Since this is an open matter, no full text was included.

제1도는 본 발명이 적용되는데 데이타 전송회로의 구성도.1 is a block diagram of a data transmission circuit to which the present invention is applied.

제4도는 데이타를 송신하는 방법의 흐름도.4 is a flowchart of a method of transmitting data.

제5도는 데이타를 수신하는 방법의 흐름도.5 is a flowchart of a method of receiving data.

Claims (2)

2개의 CPU(1,2)와, 상기 2개의 CPU(1,2)간에 데이타를 전송하기 위해 상기 CPU(1,2)와 시스템(어드레스, 데이타, 제어)버스로 연결된 공유메모리(3)와, 상기 CPU(1,2)와 공유메모리(3)을 연결하는 시스템 버스중 데이타 버스와 제어버스에 연결되어 인터페이스 기능을 하는 레지스터(4)로 구성된 데이타 전송회로에 적용되는 데이타 전송방법에 있어서, 송신측 CPU(1)가 레지스터(42)의 값을 읽어 데이타를 기록할 공유메모리(3)의 블럭유무를 검사하는 제1단계(51)와, 상기 제1단계(51) 수행후, 데이타를 기록할 블럭이 없으면 수신측 CPU(2)가 데이타를 읽어 가기를 기다리고, 여분의 블럭이 있으며 데이타를 써넣기 전에 레지스터(4)에 상태를 표시하여 수신측 CPU(2)에 공유메모리(3)가 현재 사용중임을 알리고 나서 데이타를 써넣는 제2단계(52 내지 53)와, 상기 제2단계(52 내지 53)수행후, 데이타를 써넣은 블럭번호를 테일 레지스터(41)에 써넣고 처음으로 리턴하는 제3단계(54)와, 수신측 CPU(2)가 레지스터(41)를 검사하면서 공유메모리(3)의 블럭전체에 대한 데이타를 읽어오면서 레지스터(4)에 데이타를 읽는중임을 기록하여 송신측 CPU(1)가 감지할 수 있도록 하는 제4단계(61내지 64)에 의해 수행되는 것을 특징으로 하는 데이타 전송방법.Two CPUs (1, 2) and a shared memory (3) connected to the CPU (1, 2) and a system (address, data, control) bus to transfer data between the two CPUs (1, 2). In the data transfer method applied to a data transfer circuit comprising a register (4) connected to the data bus and the control bus of the system bus connecting the CPU (1, 2) and the shared memory (3) to function as an interface, A first step 51 in which the sending CPU 1 reads the value of the register 42 and checks whether there is a block in the shared memory 3 to write data, and after the first step 51 performs the data, If there is no block to be written, the receiving CPU 2 waits to read the data, and there is an extra block, and the state is displayed in the register 4 before the data is written, so that the shared memory 3 is stored in the receiving CPU 2. A second step (52 to 53) for writing data after notifying that it is currently in use, and the second step (52 to 53) 53) After execution, the third step 54 of writing the block number into which the data is written into the tail register 41 and returning for the first time, and the shared CPU 3 while the receiving side CPU 2 examines the register 41; Is performed by a fourth step (61 to 64) for recording the data in the register 4 while reading the data for the entire block of " Data transfer method. 제1항이 있어서, 상기 송신측 CPU(1)가, 공유메모리(3)의 블럭에 데이타를 써넣을 때는 써넣는 데이타의 크기표시를 함께 써넣는 것을 특징으로 하는 데이타 전송방법.2. The data transfer method according to claim 1, wherein said sending side CPU (1) writes together an indication of the size of data to be written when writing data to a block of a shared memory (3). ※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.
KR1019920003636A 1992-03-05 1992-03-05 Data transfer method using shared memory KR930020277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920003636A KR930020277A (en) 1992-03-05 1992-03-05 Data transfer method using shared memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920003636A KR930020277A (en) 1992-03-05 1992-03-05 Data transfer method using shared memory

Publications (1)

Publication Number Publication Date
KR930020277A true KR930020277A (en) 1993-10-19

Family

ID=67257274

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920003636A KR930020277A (en) 1992-03-05 1992-03-05 Data transfer method using shared memory

Country Status (1)

Country Link
KR (1) KR930020277A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100310298B1 (en) * 1999-07-09 2001-11-03 오길록 Data transmission control circuit
CN115048047A (en) * 2022-05-30 2022-09-13 蚂蚁区块链科技(上海)有限公司 Data processing system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100310298B1 (en) * 1999-07-09 2001-11-03 오길록 Data transmission control circuit
CN115048047A (en) * 2022-05-30 2022-09-13 蚂蚁区块链科技(上海)有限公司 Data processing system and method

Similar Documents

Publication Publication Date Title
KR960032232A (en) Card read / write unit compatible with memory cards and smart cards
KR900015008A (en) Data processor
KR960025077A (en) PCM IC card connection device in X terminal
KR930020277A (en) Data transfer method using shared memory
EP1271543A3 (en) Method and system for fast memory access
KR880701046A (en) Selection module for telephone line interface and its interface method
KR19990055450A (en) Interface Units for Processors Using Dual-Port Memory
KR970066899A (en) Data processor, data processing system, and access method to external device using data processor
CN100440123C (en) Read-write equipment and controlling means therefor
KR860004359A (en) Improved performance memory bus architecture
KR100818837B1 (en) Using pci bridge of duplex apparatus
KR0150068B1 (en) Data que module and its control method
KR890015139A (en) Pseudo-scramble system of computer
KR19990066122A (en) Shared memory implementer
JPS5886623A (en) Memory control system
KR100308146B1 (en) Method for processing message in speech recognition system
KR970049389A (en) Processing method for message printing in multiprocess system
KR910001566A (en) Common Memory Access
JPH01236389A (en) Memory card
JPS5659339A (en) Input/output control unit
KR930016890A (en) How to perform cache access with a pipelined bus
JPH023853A (en) Interface method for cpu
JPH04130917A (en) Electronic disk device
KR950030531A (en) Data transfer method of semiconductor device and its device
KR920013128A (en) How to control access to shared cache memory path

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application