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.