KR940002722A - Data transfer and synchronization method between CPUs in a system consisting of two CPUs - Google Patents

Data transfer and synchronization method between CPUs in a system consisting of two CPUs Download PDF

Info

Publication number
KR940002722A
KR940002722A KR1019920011887A KR920011887A KR940002722A KR 940002722 A KR940002722 A KR 940002722A KR 1019920011887 A KR1019920011887 A KR 1019920011887A KR 920011887 A KR920011887 A KR 920011887A KR 940002722 A KR940002722 A KR 940002722A
Authority
KR
South Korea
Prior art keywords
flag
cpu
data
steps
buffer
Prior art date
Application number
KR1019920011887A
Other languages
Korean (ko)
Other versions
KR950009763B1 (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 KR1019920011887A priority Critical patent/KR950009763B1/en
Publication of KR940002722A publication Critical patent/KR940002722A/en
Application granted granted Critical
Publication of KR950009763B1 publication Critical patent/KR950009763B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

본 발명은 여러개의 CPU로 구성된 시스템에서 듀얼 포트 램(DUAL PORT RAM)을 효율적으로 이용하여 전송할 테이타의 성질에 따라 데이타 송수신 버퍼의 구조를 소프트웨어적으로 변경하여 CPU간에 데이타 전송 및 동기화를 실현하기 위한 방법에 관한 것으로, G4 팩시밀리의 주제어부와 통신 제어부 사이의 명령/응답처리 및 송수신 문서 데이타의 통신 및 에러 상황시의 두 보드간의 통신에 이용되고, 여러개의 CPU로 구성된 시스템에서 두개의 CPU 또는, 보드간의 데이타 전송에 적용될 수 있는 효과가 있다.The present invention is to realize the data transfer and synchronization between the CPU by changing the structure of the data transmission and reception buffer in software according to the nature of the data to be transmitted by using the dual port RAM efficiently in a system composed of multiple CPUs Method, which is used for command / response processing between the main control part of the G4 facsimile and the communication control unit, communication of transmission / reception document data, and communication between two boards in an error situation, or two CPUs in a system composed of multiple CPUs; There is an effect that can be applied to data transfer between boards.

Description

2개의 CPU로 구성된 시스템에서의 CPU간 데이타 전송 및 동기화방법Data transfer and synchronization method between CPUs in a system consisting of two CPUs

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

제1도는 본 발명이 적용되는 시스팀의 블럭 구성도,1 is a block diagram of a system to which the present invention is applied;

제2도는 듀얼 포트 램 상의 버퍼 구조도,2 is a buffer structure diagram of a dual port RAM;

제3도는 제어 플래그를 이용한 데이타 전송시 상호 배제의 수행 흐름도.3 is a flow chart of mutual exclusion in data transmission using control flags.

Claims (1)

제1, 제2CPU(1,3)와, 듀얼 포트 램(2)으로 구성되는 시스팀의 데이타 전송 및 동기화 방법에 있어서, 송신측의 처리 수순은, 공통 버퍼 영역을 사용하기 위해서 액세스 플래그가 0인지 확인하여 0이 아니면 리턴하고(액세스 플래그가0이 아닌 경우는 공통 버퍼 영역을 상대방 CPU가 사용하고 있음을 나타낸다)액세스 플래그가 0이면 액세스 플래그를 송신측 CPU-ID로 하고 상기 듀열 포트 램의 사용권이 확보되었는지를 확인하기 위하여 다시 액세스 플래그를 읽어 자신의 CPU-ID와 같은가를 조사하는 제1단계(11 내지 13)와, 상기 제1단계(11 내지 13)수행후, 액세스 플래그가 자신의 CPU-ID와 다르면 공통 버퍼 영역이 상대방 CPU에 허용된 것을 의미하므로 리턴하고 같으면 공-플래그(EMPTY-FLAG)가 1인가 즉, 빈 버퍼인지를 조사하여 1이 아니면 리턴하고 1이면 공-플래그를 0으로 하고 데이타 영역에 데이타를 쓰는 제2단계(14 내지 16)와, 상기 제2단계(14 내지 16) 수행후, 리더(READER)를 수신축 CPU-ID로 하고 만-플래그(PULL-FLAG)를 1로하고 액에스 플래그를 0으로 한 후 종료하는 제3단계(17 내지 19)에 의해 수행되며, 수신측의 처리 수순은, 다음 버퍼 포인터를 이용하여 상기 듀얼 포트 램상의 버퍼중 수신용 버퍼(공통 버퍼의 리더 필드에 자신의 CPU-ID가 들어있는 버퍼)를 찾아내어 송신측의 데이타가 도착했는가 즉, 만-플래그가 1인가 조사하는 제4단계(20, 21), 상기 제4단계(20, 21) 수행후, 만-플래그가 1이 아니면 리턴하고 1이면 해당 버퍼의 사용권 확보를 위하여 액세스 플래그가 0인지를 조사하여 0이 아니면 반복해서 액세스 플래그가 0인지를 조사하고 0이면 액세스 플래그를 수신측 CPU-ID인가를 조사하는 제5단계(22 내지 24), 상기 제5단계(22 내지 24)수행후, 수신측 CPU-ID가 아니면 상기 과정 이하를 수행하고 수신측 CPU-ID이면 만-플래그를 0으로 하고 데이타 영역에서 읽어내는 제6단계(25,26) 및 상기 제6단계(25,26)수행후, 공-플래그를 1로 하여 빈 버퍼임이 확인되면 액세스 플래그를 0으로 하고 종료하는 제7단계(27,28)에 의해 수행되는 것을 특징으로 하는 방법.In the data transmission and synchronization method of a system composed of the first and second CPUs (1, 3) and the dual port RAM (2), the processing procedure on the transmitting side is that the access flag is 0 in order to use the common buffer area. If it is not 0, it returns (if the access flag is not 0, it indicates that the other CPU is using the common buffer area). If the access flag is 0, the access flag is set as the sending CPU-ID and the right of the duplex port RAM is used. In order to check whether the access flag is read again to check whether or not it is equal to its own CPU-ID, first steps 11 to 13 and after performing the first steps 11 to 13, the access flag is set to the own CPU. If it is different from -ID, it means that the common buffer area is allowed to the other CPU. If it is equal, it checks whether the empty flag (EMPTY-FLAG) is 1, that is, if it is not 1, and if it is 1, it returns 0. After the second steps (14 to 16) of writing data to the data area, and performing the second steps (14 to 16), the reader (READER) is set as the receiving axis CPU-ID. Is set to 1, and the AX flag is set to 0, and then terminated by the third step (17 to 19). The processing procedure of the receiving side is a receiving buffer among the buffers on the dual port RAM using the next buffer pointer. The fourth step (20, 21) of finding a buffer containing its CPU-ID in the leader field of the common buffer and checking whether the data of the transmitting party has arrived, i.e., if the man-flag is 1; After (20, 21), if Man-Flag is not 1, it returns and if it is 1 it checks to see if the access flag is 0 to license the buffer. If it is not 0, it repeatedly checks if the access flag is 0 and if it is 0 A fifth step (22 to 24) of checking whether a flag is applied to the receiving side CPU-ID; After performing steps 5 to 22, if the CPU side of the receiver is not the CPU-ID, the following steps are performed. If the CPU side of the receiver is the CPU ID, only the flag is set to 0 and the data is read from the data area. And after performing the sixth step (25, 26), if the empty flag is set to 1 and the empty buffer is found, the access flag is set to zero and the seventh step (27, 28) is completed. ※ 참고사항 : 최초출원 내용에 의하여 공개하는 것임.※ Note: The disclosure is based on the initial application.
KR1019920011887A 1992-07-03 1992-07-03 A method of data transmission and synchronization between two cpu's KR950009763B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019920011887A KR950009763B1 (en) 1992-07-03 1992-07-03 A method of data transmission and synchronization between two cpu's

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019920011887A KR950009763B1 (en) 1992-07-03 1992-07-03 A method of data transmission and synchronization between two cpu's

Publications (2)

Publication Number Publication Date
KR940002722A true KR940002722A (en) 1994-02-19
KR950009763B1 KR950009763B1 (en) 1995-08-28

Family

ID=19335860

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019920011887A KR950009763B1 (en) 1992-07-03 1992-07-03 A method of data transmission and synchronization between two cpu's

Country Status (1)

Country Link
KR (1) KR950009763B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970076279A (en) * 1996-05-10 1997-12-12 김주용 A processing method and apparatus for utilizing a single serial communication line in a versatile manner

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100728870B1 (en) * 2005-08-08 2007-06-15 경북대학교 산학협력단 Dual port ram and method of losslessly transmitting data using the dual port ram
KR100686304B1 (en) * 2005-09-26 2007-02-22 엠텍비젼 주식회사 Method for controlling access to public bank of dual port memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970076279A (en) * 1996-05-10 1997-12-12 김주용 A processing method and apparatus for utilizing a single serial communication line in a versatile manner

Also Published As

Publication number Publication date
KR950009763B1 (en) 1995-08-28

Similar Documents

Publication Publication Date Title
KR960006642A (en) Enhanced Peripherals for Use in Multimedia Conferencing Systems
KR930018395A (en) Protocol apparatus and method for communicating in a distributed system
JPH0468638A (en) Document processor
KR950704757A (en) IC card reader / writer and control method
KR940017436A (en) Communication method
KR940002722A (en) Data transfer and synchronization method between CPUs in a system consisting of two CPUs
US7039783B2 (en) Dual apparatus and method thereof using concurrent write function
KR970002687A (en) Communication method and communication device
JPH054040Y2 (en)
KR940027458A (en) Facsimile implementation circuit and control method for transmitting information of general purpose computer
KR100308146B1 (en) Method for processing message in speech recognition system
KR900013752A (en) Private Exchange System and Maintenance Virtual Terminal Connection Method
KR920008610A (en) Data communication system and communication method
KR960001269B1 (en) Buffer control method
KR910021057A (en) Serial communication method between terminals
KR100342504B1 (en) Message interface method
KR930014103A (en) Path Control Method of SDLC Network
KR970012181A (en) Data queue module and its control method
KR940017509A (en) Method and device for data communication between two processors using DMA in digital key phone
KR970019245A (en) Interprocessor communication method through common memory in multitask environment
KR910015160A (en) Fax Method of Transportation
KR830004628A (en) Communication system between calculator systems
JPH05143498A (en) Method for coping with communication fault in distributed system
KR920016958A (en) How to load subscriber mounting information
JPS5999841A (en) Code receiver

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20020716

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee