KR950013116B1 - Locking apparatus and its control method in ticom system - Google Patents

Locking apparatus and its control method in ticom system Download PDF

Info

Publication number
KR950013116B1
KR950013116B1 KR1019930013034A KR930013034A KR950013116B1 KR 950013116 B1 KR950013116 B1 KR 950013116B1 KR 1019930013034 A KR1019930013034 A KR 1019930013034A KR 930013034 A KR930013034 A KR 930013034A KR 950013116 B1 KR950013116 B1 KR 950013116B1
Authority
KR
South Korea
Prior art keywords
buffer
locking
processor
lock
address
Prior art date
Application number
KR1019930013034A
Other languages
Korean (ko)
Other versions
KR950003981A (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 KR1019930013034A priority Critical patent/KR950013116B1/en
Publication of KR950003981A publication Critical patent/KR950003981A/en
Application granted granted Critical
Publication of KR950013116B1 publication Critical patent/KR950013116B1/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
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox

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)

Abstract

a processor portion having a plurality of processors and sharing with a system bus; a system control module for the control of a system; an input/output board provided with an input/output processor; and a sharing memory board comprising first to fifth buffers for storing locking addresses, first to fifth AT(address tag) buffers/comparators for storing slot addresses of a request processor executing the locking and having the number of components corresponding to the number of the first to fifth buffers; a loader for detecting other conditions of each of the AT buffers/comparators to record the detected result in the first to fifth buffers or to execute a clear operation control, and a standard interface with the request processor.

Description

타이콤(TICOM) 시스템의 록킹 장치와 록킹 제어 방법Locking device and locking control method of TICOM system

제 1 도의 (a)는 일반적인 타이콤 시스템의 블록 구성도, (b)는 록킹 버퍼 메모리의 구조도.Fig. 1 (a) is a block diagram of a general tycom system, and (b) is a structure diagram of a locking buffer memory.

제 2 도는 종래의 타이콤 시스템의 록킹 제어 방법의 플로우차트.2 is a flowchart of a locking control method of a conventional Tycom system.

제 3 도는 본 발명의 타이콤 시스템의 록킹 장치에 의한 버퍼 메모리의 구조도.3 is a structural diagram of a buffer memory by the locking device of the Tycom system of the present invention.

제 4 도는 본 발명에서 멀티 록킹을 위한 제어 방법의 플로우차트.4 is a flowchart of a control method for multi-locking in the present invention.

제 5 도는 본 발명에서 싱글 프로세서/더블 버퍼 적용시의 록킹 제어 방법의 플로우차트.5 is a flowchart of a locking control method when applying a single processor / double buffer in the present invention.

제 6 도는 본 발명에서 다이나믹 록킹 버퍼 선택 제어 방법의 플로우차트.6 is a flowchart of a method for controlling dynamic locking buffer selection in the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

5,6,7,8,9 : 버퍼 10,11,12,13,14 : AT버퍼/비교기5,6,7,8,9: Buffer 10,11,12,13,14: AT buffer / comparator

15 : 로더 16 : 인터페이스15: Loader 16: Interface

본 발명은 행정 전산망용 주전산기II(타이콤 : TICOM)에서 록킹(LOCKING) 알고리즘을 멀티 리퀘스트(REQUEST)가 가능하게 한 타이콤(TICOM) 시스템의 록킹 장치와 록킹 제어 방법에 관한 것이다.The present invention relates to a locking device and a locking control method of a TICOM system in which a multi-request can be performed by a locking algorithm in a main computer II for a computing computer network (Tycom: TICOM).

타이콤의 기본적인 구성은 도면 제 1 도의 (a)에 도시된 바와같이 시스템 버스(SYSTEM BUS)를 공유하며, 다수의 프로세서로 구성되는 프로세서부(1)와, 시스템 제어를 위한 시스템 제어모듈(2)과, 입출력 프로세서가 구비된 입출력 보드(3)와, 공유 메모리 보드(4)로 구성되고, 하나의 시스템에 여러개의 프로세서들이 탑재되어 공유 메모리(4)를 사용하는 밀결합(TIGHTLY COUPLED)구조의 멀티 프로세서 시스템을 구성하게 된다.The basic configuration of Tycom shares a system bus (SYSTEM BUS), as shown in (a) of FIG. 1, a processor unit 1 composed of a plurality of processors, and a system control module 2 for system control. ), An input / output board (3) equipped with an input / output processor, and a shared memory board (4), and a tightly coupled (TIGHTLY COUPLED) structure in which a plurality of processors are mounted in one system and using a shared memory (4). The multiprocessor system is configured.

특히, 타이콤의 경우는 어드레스와 데이타 라인이 NON-MULTIPLEXED되어 있고 메인 버스 클록에 동기화되어 작동하는 펜디드 버스(PENDED BUS)를 채용하므로서 다수의 프로세서(1)가 탑재되어 있는 구조의 시스템에서 높은 성능을 발휘할 수 있게 한다.In particular, in the case of Tycom, the system has a high structure in a system having a large number of processors 1 by adopting a PENDED BUS which has an NON-MULTIPLEXED address and data lines and operates in synchronization with the main bus clock. Enable performance.

예를들면, 프로세서부(1)의 어느 한 프로세서가 시스템 버스의 기득권을 잡고 메인 메모리를 액세스할 경우 일단 어드레스와 관련된 정보를 버스상에 드라이브하고, 버스를 놓으면 다음 사이클에서는 또 다른 프로세서가 버스를 잡을 수 있는 기득권을 주게되어, 전체적으로 PILE LINE형태로 동작하게 되는 것이다.For example, when one processor of the processor unit 1 acquires a vested interest in the system bus and accesses the main memory, it drives the information related to the address on the bus. It gives the vested right to catch and operates as a PILE LINE overall.

즉, 특정 프로세서가 메모리 영역의 정보를 얻기 위하여 어드레스 관련 정보를 1버스 클록에 드라이브하고 버스를 놓게되며, 메인 메모리에서는 데이타가 유효한 시점에서 데이타 버스를 통해 요구한 프로세서에게 데이타를 제공하게 되는 것이다.In other words, a specific processor drives address-related information on one bus clock and releases a bus in order to obtain information of a memory area. In main memory, data is provided to a requesting processor through a data bus when data is valid.

이와같은 밀결합 구조의 프로세서 시스템에서 여러개의 프로세서(1)들이 공유 메모리(4)를 사용하고자 할때 어떤 임계 영역(CRITICAL SECTION)이 존재함으로 인하여 하드웨어적으로 특정 프로세서가 그 영역에 다른 프로세서로 인한 침해를 받지 않을 필요성이 발생한다.In such a tightly coupled processor system, when a plurality of processors 1 want to use the shared memory 4, a certain CRITICAL SECTION exists so that a hardware may cause a specific processor to be caused by another processor. The need arises not to be infringed.

예를들면 68***계열의 프로세서인 경우는 TAS(TEST AND SET), CAS, CAS2(COMPARE AND SWAP) INSTRUCTION이다.For example, the 68 *** family of processors is TAS (TEST AND SET), CAS, and CAS2 (COMPARE AND SWAP) INSTRUCTION.

TAS INSTRUCTION은 어떤 특정 비트(BIT)를 바이트 단위로 리드(READ)한 후 라이트(WRITE)하게 되는데, 이때 리드한 후 라이트할 때까지 다른 프로세서들에게 침해받지 않아야 하므로 메모리 영역에 록킹 장치를 필요로 하게 되는 것이다.TAS INSTRUCTION reads a certain bit in bytes and then writes it, which requires a locking device in the memory area because it must not be intruded by other processors until it reads and writes. Will be done.

CAS, CAS2 INSTRUCTION은 임계 영역에서 인터록 리드(IR; INTERLOCK READ-보통의 리드와 구분하여 타이콤 시스템에서 명명하는 리드의 일종, 메모리 영역에서 판별하여 인식한다)를 하고 나서 인터 록 라이트(IW; INTERLOCK WRITE-보통의 라이트와 구분하여 타이콤 시스템에서 명명하는 라이트의 일종, 메모리 영역에서 판별하여 인식한다)가 발생할 수도 있고 그렇지 않을 수도 있는 경우이다.CAS and CAS2 INSTRUCTION performs an interlock read (IR), which is distinguished from an INTERLOCK READ-normal lead, in the critical area and recognized by the memory area. WRITE-A type of light named by the Tycom system, distinguished from a normal light, and recognized by the memory area) may or may not occur.

이와같은 조건을 만족시키기 위하여 하드웨어적으로 메모리 영역에 록킹(LOCKING) 장치를 구현하게 된다.In order to satisfy such a condition, a locking device is implemented in the memory area in hardware.

제 1 도의 (b)는 상기 록킹 제어기를 구현하는 록킹 버퍼 메모리(메모리 보드(4)에 구성된다)의 구조를 보이고 있다.FIG. 1B shows the structure of a locking buffer memory (configured in the memory board 4) implementing the locking controller.

즉, 메모리 보드(4)에는 록킹 어드레스를 저장하는 32비트의 제 1 내지 제 5 버퍼(4A-4E) 5개를 구비하고, 록킹을 수행한 리퀘스트(프로세서)의 슬롯 어드레스(AT; ADDRESS TAG)를 저장하는 AT버퍼/비교기(4F), 이들의 상태를 검색하여 제어를 담당하는 로더(LOADER)(4G), 리퀘스트 프로세서와의 스탠다드 인터페이스(4H)로 구성된다.That is, the memory board 4 includes five 32-bit first through fifth buffers 4A-4E for storing a locking address, and the slot address (AT) of the request (processor) for which the locking has been performed. An AT buffer / comparator 4F for storing the data, a loader 4G for retrieving and controlling their status, and a standard interface 4H with the request processor.

따라서, 인터페이스(4H)를 통해 리퀘스트(또는 프로세서)가 록킹을 수행하면 그 어드레스를 해당 버퍼(4A-4E)에 저장하고 록킹을 수행한 리퀘스트(또는 프로세서)의 슬롯 어드레스를 AT버퍼/비교기(4F)에 저장하며, 상기 버퍼(4A-4E) 및 AT버퍼/비교기(4F)의 상태를 로더(4G)에서 검색하여 록킹 제어를 수행하게 된다.Therefore, when the request (or processor) performs locking through the interface 4H, the address is stored in the corresponding buffers 4A-4E, and the slot address of the request (or processor) that performs the locking is stored in the AT buffer / comparator 4F. ), And the loader 4G retrieves the states of the buffers 4A-4E and the AT buffer / comparator 4F to perform locking control.

즉, MC68***계열의 메모리 매니지먼트 유닛(MMU)은 페이지 테이블을 찾아갈 때 리드-모디파이드-라이트(READ-MODIFIED-WIRTE) 버스 동작(록킹 관련 INSTRUCTION)을 수행하기 때문에 테이블의 깊이와 크기에 따라 연속한 록킹 동작(CAS OR CAS2 INSTRUCTION)을 수행할 수 있다.That is, the MC68 *** series of memory management units (MMUs) perform a READ-MODIFIED-WIRTE bus operation (locking-related INSTRUCTION) when visiting a page table, so the table's depth and size As a result, a continuous locking operation (CAS OR CAS2 INSTRUCTION) can be performed.

예를들면, MC68030의 경우 3레벨의 구조를 갖는 경우에 페이지 테이블 포맷에 따라 3회에서 6회의 록킹 동작을 수행할 수 있으며, 그 이상의 레벨을 갖는다면 더 많은 록킹 동작을 수행한다.For example, when the MC68030 has a three-level structure, three to six locking operations can be performed according to the page table format. If the MC68030 has a higher level, more locking operations are performed.

현재 타이콤에 구현된 페이지 테이블(3레벨, LONG PAGE DESCRIPTOR, SHORT DESCRIPTOR)은 5회의 록킹 동작을 시도할 수 있도록 구현되어 있으므로 정상적인 상황에서 버스 동작을 거부하는 경우는 발생하지 않는다.Currently, the page table implemented in Tycom (3 levels, LONG PAGE DESCRIPTOR, SHORT DESCRIPTOR) is implemented to attempt 5 locking operations. Therefore, it does not occur when the bus operation is rejected under normal circumstances.

제 2 도는 상기한 종래의 록킹 제어 방법을 설명하는 플로우차트이다.2 is a flowchart for explaining the above-described conventional locking control method.

먼저, 버스상의 어드레스 관련 정보를 해독하여 록킹 관련 동작인가의 여부를 판단하고 록킹 관련 동작이 아닌 경우에는 현재 록킹이 걸려 있는지의 여부를 판별하여 걸려 있는 경우에는 임계 영역에 록킹이 걸려있는가의 여부를 판별한다.First, it is necessary to decode the address-related information on the bus to determine whether it is a lock-related operation. If it is not a lock-related operation, it is determined whether or not it is currently locked. Determine.

임계 영역에 록킹이 걸려있으면 임계 영역과의 중첩 여부를 AT버퍼/비교부(4F)에서 비교하여 중첩되어 있으면 비지(BUSY) 신호를 생성하고, 중첩되어 있지 않으면 정상 동작을 수행한다.If the critical area is locked, the AT buffer / comparator 4F compares the overlap with the critical area to generate a BUSY signal, and if not, performs a normal operation.

상기 록킹 관련 동작을 판별한 결과 록킹 관련 동작중이면 버퍼(4A-4E)에 저장되어 있는 정보가 있는가에 판별하여 버퍼에 정보가 없는 경우는 실제로 어드레스 관련 정보를 버퍼(4A-4E)에 기록하여 임계 영역의 록킹을 수행한다.As a result of determining the locking related operation, if it is during the locking related operation, it is determined whether there is information stored in the buffers 4A-4E. If there is no information in the buffer, the address related information is actually recorded in the buffer 4A-4E. Lock the critical area.

그러나, 이미 버퍼(4A-4E)에 정보가 저장되어 있는 경우에는 록킹이 되어 있는 경우이므로 수행중인 INSTRUCTION이 리드/라이트 동작인가를 AT버퍼/비교부(4F)의 AT정보를 검색하여 판별하고 리드 동작인 경우에는 CAS, CAS2를 수행하고 상위 버퍼에 어드레스 관련 정보를 기록하며, 라이트 동작인 경우에는 해당 버퍼를 클리어시킨다.However, if the information is already stored in the buffers 4A-4E, it is locked. Therefore, it is determined by searching AT information of the AT buffer / comparator 4F to determine whether the INSTRUCTION being executed is a read / write operation. In case of the operation, CAS and CAS2 are executed, and address related information is written to the upper buffer. In the case of a write operation, the corresponding buffer is cleared.

그리고, 라이트중에 BE*(BYTE ENABLE)이 '0'인 경우는 특별히 DUMMY IW라고 하여 모든 버퍼의 내용을 클리어시켜 준다.If BE * (BYTE ENABLE) is '0' during writing, the contents of all buffers are specifically cleared as DUMMY IW.

이와같은 동작을 통해 밀결합 멀티 프로세서에서 록킹 제어를 수행하게 되는데, 이와같은 종래의 록킹 제어 방법에 의하면 다음과 같은 문제점이 있다.Through such operation, the locking control is performed in the tightly coupled multiprocessor. According to the conventional locking control method, there are the following problems.

첫째, 어느 한 타이밍에서 1개의 프로세서만이 록킹 관련 동작에 참가하게 되기 때문에 전체적인 시스템의 성능이 저하되고, 타이콤 시스템에서 최대의 프로세서의 갯수가 23개이므로 나머지 프로세서는 대기하고 있게 되는 조건이 존재하여 시스템의 성능이 저하되는 요인이 된다.First, since only one processor participates in locking-related operation at any one timing, the performance of the overall system is degraded. The maximum number of processors in the Tycom system is 23, so the remaining processors are waiting. As a result, the performance of the system is reduced.

즉, 타이콤과 같이 다수의 프로세서가 탑재되어 운용되는 시스템인 경우 종래의 록킹 알고리즘에서는 성능면에서 크게 영향을 받게 된다.That is, in the case of a system in which a plurality of processors are mounted and operated, such as Tycom, the conventional locking algorithm is greatly affected in terms of performance.

이러한 프로세서의 충돌 빈도는 프로세서의 수행속도와 소프트웨어 상의 록킹 동작 빈도에 의존하며, 따라서 68040프로세서를 장착한 시스템에는 종래의 알고리즘을 채택한다면, 성능상 록킹에 관련하여 BUTTLE LOCK이 발생할 우려가 높다.The collision frequency of such a processor depends on the execution speed of the processor and the frequency of locking operation in software. Therefore, if a conventional algorithm is adopted in a system equipped with a 68040 processor, there is a high possibility that a BUTTLE LOCK occurs in relation to the performance locking.

둘째, 상기 록킹을 구현하기 위하여 버퍼를 5개 필요로 하고, 따라서 록킹 관련 칩의 비중이 커지게 되며, 실제로 MC68040프로세서를 채용한 경우 현재 타이콤 시스템의 경우에는 버퍼의 사용이 없게 된다(CAS관련 INSTRUCTION을 발생하지 않는다) .Second, in order to implement the locking, five buffers are required, and thus, the weight of the locking-related chips becomes large, and in the case of employing the MC68040 processor, the buffer is not used in the case of the current Tycom system. Does not cause INSTRUCTION).

셋째, DUMMY IW의 발생 장치를 위하여 프로세서 보드의 내부에 별도의 장치를 필요로 하게 된다.Third, a separate device is required inside the processor board for generating the DUMMY IW.

즉, 더미 인터록 라이트(DUMMY INTER LOCK WRITE)를 위하여 프로세서 보드에 별도의 로직을 첨가하기 때문에 결과적으로 시스템의 하드웨어적인 로드(칩의 갯수)가 증가하고, 또한 프로세서의 입장에서는 더미 인터록 라이트로 인한 로드도 피하기 어려운 것이다.In other words, additional logic is added to the processor board for DUMMY INTER LOCK WRITE. As a result, the hardware load of the system (number of chips) increases, and from the processor's point of view, the load due to the dummy interlock write. It is also difficult to avoid.

따라서, 본 발명은 여러개의 프로세서가 록킹 동작에 참가하여 시스템의 성능을 향상 시킬 수 있게 하고, 기존의 MC68030프로세서 채용 시스템에서는 최대 버퍼의 갯수를 2개로 줄여서 효율적인 시스템 운용이 가능하며, 여러개의 프로세서가 록킹 동작에 참가하면서 CAS INSTRUCTION까지 지원할 수 있도록 한 타이콤(TICOM) 시스템의 록킹 장치와 록킹 제어 방법을 제공함을 목적으로 하며, 이하 첨부된 도면을 참조하여 본 발명의 구성과 그에 따른 작용 효과를 설명하면 다음과 같다.Therefore, the present invention enables a plurality of processors to participate in the locking operation to improve the performance of the system, and in the conventional MC68030 processor employing system, the maximum number of buffers is reduced to two, and efficient system operation is possible. It is an object of the present invention to provide a locking device and a locking control method of a TICOM system that can support CAS INSTRUCTION while participating in a locking operation. Hereinafter, the configuration of the present invention and its effects will be described with reference to the accompanying drawings. Is as follows.

먼저, 제 3 도는 본 발명에 의한 록킹 버퍼 메모리의 구성을 나타낸 것으로, 상기 제 1 도의 (a)에서 공유 메모리 보드(4)에 구비된다.First, FIG. 3 shows the configuration of the locking buffer memory according to the present invention, which is provided in the shared memory board 4 in FIG.

즉, 시스템 버스(SYSTEM BUS)를 공유하며, 다수의 프로세서로 구성되는 프로세서부(1)와, 시스템 제어를 위한 시스템 제어모듈(2)과, 입출력 프로세서가 구비된 입출력 보드(3)와, 공유 메모리 보드(4)로 구성되고, 하나의 시스템에 여러개의 프로세서들이 탑재되어 공유 메모리(4)를 사용하는 밀결합(TIGHTLY COUPLED) 구조의 멀티 프로세서 시스템을 구성함에 있어서, 상기 메모리 보드에 다음의 구성요소들로 이루어지는 록킹 버퍼 메모리를 구성한다.That is, share the system bus (SYSTEM BUS), and share with the processor unit (1) consisting of a plurality of processors, the system control module (2) for system control, the input and output board (3) equipped with an input and output processor, In constructing a multi-processor system having a tightly coupled (TIGHTLY COUPLED) structure using a memory board (4) and having a plurality of processors in one system and using a shared memory (4), It constitutes a locking buffer memory consisting of elements.

록킹 어드레스를 저장하는 32비트의 제 1 내지 제 5 버퍼(509) 5개를 구비하고, 록킹을 수행한 리퀘스트(프로세서)의 슬롯 어드레스(AT; ADDRESS TAG)를 저장하며 상기 각 버퍼(5-9)의 레벨 갯수에 맞게 구성되는 제 1 내지 제 5 AT버퍼/비교기(10-14), 각 AT버퍼/비교기(10-14)의 기타 조건을 검색하여 버퍼(5-9)로 기록하거나 또는 클리어 동작 제어를 담당하는 로더(LOADER)(15), 리퀘스트 프로세서와의 스탠다드 인터페이스(16)로 구성된다.Five 32-bit first to fifth buffers 509 for storing a locking address, storing a slot address (AT; ADDRESS TAG) of a request (processor) for which locking is performed, and storing each of the buffers 5-9. Search for the first to fifth AT buffers / comparators 10-14 and other conditions of each AT buffer / comparator 10-14, and write them to the buffer 5-9 or clear them. It consists of a loader 15 in charge of the operation control and a standard interface 16 with the request processor.

이와같이 구성된 장치에 의하여 수행되는 본 발명의 록킹 제어 방법은, 시스템에서 채용한 프로세서에 대응하는 동작 모드를 판단하는 모드 판별단계와, 상기 모드 판별단계에서 판단된 결과 MC68040계열의 프로세서 채용인 경우 다수의 프로세서가 록킹 동작에 참가하는 멀티 록킹루틴을 수행하는 멀티록 제어단계와, 상기 모드 판별단계에서 판단된 결과 MC68030계열의 프로세서 채용인 경우 싱글 프로세서 및 더블 버퍼적용 조건을 판단하는 조건 판별단계와, 상기 조건 판별단계에서 싱글 프로세서 및 더블 버퍼 적용 조건을 만족하는 경우 싱글 프로세서 루틴을 수행하는 싱글 록 제어단계와, 상기 조건 판별 단계에서 싱글 프로세서 및 더블 버퍼 적용 조건을 만족하지 않은 경우에는 다이나믹 프로세서 루틴을 수행하는 다이나믹 록 제어단계로 이루어진 것이다.The locking control method of the present invention performed by the apparatus configured as described above includes a mode determination step of determining an operation mode corresponding to a processor adopted by the system, and a result of the determination of the mode determination step. A multi-lock control step of performing a multi-locking routine in which the processor participates in the locking operation; a condition determination step of determining a single processor and a double buffer application condition when the processor of the MC68030 series is employed as a result of the mode determination step; A single lock control step of performing a single processor routine when the conditions for applying the single processor and the double buffer are satisfied in the condition determining step, and a dynamic processor routine for executing the single processor and the double buffer application conditions in the condition determining step. Dynamic lock control It is lost.

이와같이 구성된 본 발명의 작용 효과를 도면 제 3 도 내지 제 6 도를 참조하여 설명하면 다음과 같다.The effects of the present invention configured as described above will be described with reference to FIGS. 3 to 6.

제 4 도는 본 발명의 타이콤(TICOM) 시스템의 록킹 제어 방법에서 멀티 록을 위한 록킹 제어 알고리즘을 보인 플로우차트로서, 상기 모드 판별단계에서 멀티 록킹 모드로 판단된 경우 수행되는 멀티 록 제어단계의 멀티 록킹 루틴이다.4 is a flowchart showing a locking control algorithm for multi-locking in the locking control method of the TICOM system of the present invention, wherein the multi-locking control step is performed when it is determined that the multi-locking mode is performed in the mode determination step. This is a locking routine.

즉, 매 이벤드(EVENT)가 발생할 경우 어드레스 또는 AT를 비교하기 위하여 레벨의 갯수에 알맞은 AT버퍼/비교기(10-14)를 두고, 로더(15)에서 인터페이스(16)를 통해 시스템버스로 입력되는 프로세서의 록킹 관련 알고리즘을 수행한다.That is, if an event occurs, an AT buffer / comparator 10-14 suitable for the number of levels is set in order to compare an address or AT, and the loader 15 enters the system bus through the interface 16. Performs a locking related algorithm of the processor.

즉, 록킹 관련 동작인가의 여부를 판단하여 록킹 관련 동작이 아닌 경우 현재 록이 걸려있는 상태인가를 판단한다.That is, it is determined whether or not the lock-related operation is determined, and if it is not the locking-related operation, it is determined whether the current lock is in the locked state.

현재 록이 걸려있는 상태가 아니면 종료하고, 록이 걸려 있으면 임계 영역인가를 판별하여 임계 영역이 아니면 종료하고 임계 영역이 비지(BUSY) 신호를 발생시킨 후 종료한다.If the current lock is not in the locked state, the operation is terminated. If the lock is locked, it is determined whether it is the critical area. If it is not the critical area, the operation is terminated.

상기 록킹 관련 동작의 판단결과 록킹 관련 동작이면 버퍼(5-9)가 클리어 되어 있는가의 여부를 판단하여 클리어 되어 있으면 어드레스 관련 정보를 버퍼(5-9)에 저장하고 AT를 AT버퍼/비교기(10-14)에 저장한 후 종료한다.As a result of the determination of the locking-related operation, if it is the locking-related operation, it is determined whether the buffer 5-9 is cleared, and if it is cleared, the address-related information is stored in the buffer 5-9 and the AT is stored in the AT buffer / comparator 10. -14) and exit.

그러나, 버퍼(5-9)에 데이타가 있는 경우에는 읽기(READ) 동작인가를 판별하여 읽기동작이면 버퍼(5-9)의 FULL 여부를 판별하여 FULL이면 비지신호를 발생시키고, FULL이 아니면 어드레스 관련 정보와 AT를 각각 버퍼(5-9)와 AT버퍼/비교기(10-14)에 저장한 후 종료한다.However, if there is data in the buffer 5-9, it is determined whether it is a read operation. If it is a read operation, it is determined whether the buffer 5-9 is full. If it is FULL, a busy signal is generated. The relevant information and the AT are stored in the buffer 5-9 and the AT buffer / comparator 10-14, respectively, and then terminated.

상기 읽기동작을 판단한 결과 읽기 동작이 아닌 경우에는 AT를 비교하여 이 비교 결과에 따라 버퍼(5-9)중에서 해당 버퍼를 클리어시킨 후 종료한다.If it is determined that the read operation is not a read operation, the AT is compared and the buffer is cleared in the buffers 5-9 according to the comparison result and then terminated.

이와같은 알고리즘은 프로세서가 6840프로세서를 채택한 경우 MMU테이블 검색을 위해 68030과 같이CAS관련 INSTRUCTION을 사용하지 않기 때문에 실제 연속한 인터록리드(IR)의 갯수를 1개 이상 발생하지는 않는다.This algorithm does not use more than one consecutive interlock lead (IR) because the processor does not use CAS-related INSTRUCTION, such as 68030, to retrieve the MMU table when the processor adopts 6840 processor.

그러므로, 68040프로세서를 채택한 경우 기존의 알고리즘에서는 버퍼의 갯수가 여분이 발생하고, 실제로 AT버퍼/비교기를 첨가하면 최대 5개의 프로세서가 록킹 관련 동작에 참가할 수 있어 효율적으로 증가된 성능의 시스템 운용이 가능하게 되는 것이다.Therefore, when the 68040 processor is adopted, the number of buffers is excessive in the existing algorithm, and when AT buffer / comparator is actually added, up to five processors can participate in locking related operations, enabling efficient system operation. Will be done.

제 5 도는 본 발명에서 싱글 프로세서 및 더블 버퍼를 적용한 경우의 타이콤(TICOM) 시스템의 록킹 제어 방법을 나타낸 것으로, 상기 모드 판별 단계와 조건 판별단계에서 싱글 프로세서 판별 조건이 만족된 경우 수행되는 싱글 록 제어단계의 싱글 프로세서 루틴이다.5 is a diagram illustrating a locking control method of a TICOM system when a single processor and a double buffer are applied in the present invention, and the single lock performed when the single processor determination condition is satisfied in the mode determination step and the condition determination step. Single processor routine in the control phase.

즉, 상기 모드 판별단계에서 MC68030프로세서이고 조건 판별단계에서, 록킹 관련 동작인가, 버퍼 클리어인가, AT비교 결과 매칭되었는가를 판별하여 록킹 관련 동작이고 버퍼가 클리어되어 있지 않은 상태이며 AT가 매칭된 조건이 만족되면 싱글 프로세서 루틴으로 이행하는 것이며, 이 루틴은, 록킹 관련 동작인가를 판단하여 록킹 관련 동작이 아니면 AT를 비교하여 일치하면 버퍼를 클리어시키고 종료하는 제 1 단계와, 상기 제 1 단계의 판단 결과 록킹 관련 동작이면 버퍼의 클리어 여부를 판단하여 클리어 된 경우에는 어드레스 관련 정보와 AT를 해당 버퍼에 저장하고 제 1 플래그를 세팅시킨 후 종료하는 제 2 단계와, 상기 제 2 단계의 판단 결과 버퍼가 클리어되어 있지 않은 경우는 AT를 비교하여 일치하지 않으면 비지신호를 발생시킨 후 종료하고, 일치하면 읽기동작인가를 판단하는 제 3 단계와, 상기 제 3 단계의 판단 결과 읽기동작이 아니면 버퍼를 클리어시킨 후 종료하고, 읽기동작이면 버퍼의 FULL여부를 판단하는 제 4 단계와, 상기 제 4 단계의 판단결과 버퍼가 FULL상태가 아니면 어드레스 관련 정보를 저장한 후 종료하고, FULL상태이면 제 1 플래그를 세팅시킨 버퍼를 클리어시킨 후 그 버퍼에 어드레스 관련 정보를 저장한 다음 다른 버퍼에 제 1 플래그를 세팅시키고 종료하는 제 5 단계로 이루어진다.That is, in the mode determining step, the MC68030 processor, and in the condition determining step, it is determined whether the locking related operation, the buffer clear, or the AT comparison result is matched, and the locking related operation, the buffer is not cleared, and the AT matched condition is determined. If satisfied, the process proceeds to a single processor routine. The routine determines whether the operation is locking related and compares the AT if it is not a locking related operation. In the case of the locking-related operation, the second step of determining whether the buffer is cleared and if it is cleared stores the address-related information and the AT in the corresponding buffer, sets the first flag and ends, and clears the buffer as a result of the determination of the second step. If not, compare AT and generate busy signal, then exit. A third step of determining whether the read operation is performed; a fourth step of determining whether the buffer is full when the read operation is completed; If it is determined that the buffer is not in the FULL state, the address-related information is stored and terminated. If the buffer is in the FULL state, the buffer in which the first flag is set is cleared, the address-related information is stored in the buffer, and the first flag is set in another buffer. The fifth step is to set and finish.

이 경우는 기존의 68030프로세서 시스템에서도 프로세서당 최대 2개의 록킹 버퍼가 소요되는 알고리즘이다.This is an algorithm that requires up to two locking buffers per processor, even in a conventional 68030 processor system.

예를들면, CAS INSTRUCTION인 경우 인터록 리드(IR)후에 반드시 인터록 라이트(IW)가 발생하지는 않지만 연속해서 인터록 리드(IR)가 발생하는 경우는 버퍼를 클리어시키고, 인터록 리드(IR)가 발생하고 모든 수행을 마쳤을 경우는 NORMAL INSTRUCTION이 버스상에 액티브되면 버퍼를 클리어시킨다.For example, in case of CAS INSTRUCTION, interlock write (IW) does not necessarily occur after interlock read (IR), but if interlock read (IR) occurs continuously, the buffer is cleared, interlock read (IR) occurs, and all When finished, the buffer is cleared when NORMAL INSTRUCTION is active on the bus.

이로 인하여 데드 룩(DEAD LOCK)되는 조건을 방지할 수 있다.This prevents a dead look condition.

즉, 제 5 도에서 보는 바와같이, 록킹 관련 동작인가를 판단하여 록킹 관련 동작이 아닌 경우는 AT버퍼/비교기(10-14)의 AT를 비교하여 AT가 매치(MATCH)된 경우는 해당 버퍼를 클리어시키고, 록킹 관련 동작이 아닌 경우는 버퍼(5-9)가 클리어 상태인가를 판단하여 클리어 상태이면 어드레스 관련 정보를 버퍼(5-9)에 저장하고 AT를 AT버퍼/비교기(10-14)에 저장한 후 제 1 플래그(FIRST FLAG)를 세팅시킨다.That is, as shown in FIG. 5, when it is determined that the operation is locking related, and not the locking related operation, the AT is matched by comparing the ATs of the AT buffer / comparator 10-14. If it is clear, if it is not the locking related operation, it is determined whether the buffer 5-9 is in the clear state, and if it is clear, the address related information is stored in the buffer 5-9 and the AT is stored in the AT buffer / comparator 10-14. After saving to the first flag (FIRST FLAG) is set.

그러나, 상기 버퍼 검색 결과 클리어 상태가 아닌 경우(데이타가 존재하는 경우)에는 AT를 비교하여 매치되지 않으면 비지신호를 발생한 후 종료하고, 매치된 경우는 읽기 동작인가의 여부를 판단한다.However, if the buffer search result is not clear (when data is present), the AT is compared, and if it does not match, the busy signal is generated and terminated. If the match is found, it is determined whether the read operation is performed.

읽기동작이 아니면 버퍼(5-9)를 클리어시키고, 읽기 동작이면 버퍼(5-9)의 FULL여부를 판단하여 FULL상태가 아니면 상기 어드레스 관련 정보를 해당 버퍼에 저장한 후 종료하며, FULL상태이면 제 1 플래그 세팅 버퍼를 클리어시킨 후 이 클리어된 버퍼에 어드레스 관련 정보를 저장하고, 다른 버퍼에 제 1 플래그를 세팅시킨 다음 종료한다.If it is not a read operation, the buffer 5-9 is cleared. If it is a read operation, the buffer 5-9 is determined to be full and if it is not full, the address related information is stored in the corresponding buffer and terminated. After clearing the first flag setting buffer, the address related information is stored in this cleared buffer, the first flag is set in another buffer, and then terminated.

즉, 싱글 프로세서 및 더블 버퍼 적용장치에 적용된 본 발명의 타이콤(TIC0M) 시스템의 록킹 제어 방법은 인터록 라이트(IW) 발생시 모든 버퍼를 클리어시키는 단계와, 연속되는 3번째 인터록 리드(IR)발생시 첫번째 버퍼를 클리어시키는 단계와, 더미 인터록 라이트(DUMMY IW) 발생시 모든 버퍼를 클리어시키는 단계와, 록킹을 거는 AT가 노말 동작 상태이면 모든 버퍼를 클리어시키는 단계를 수행하는 것이다.That is, the locking control method of the TIC0M system of the present invention applied to a single processor and a double buffer application device includes the steps of clearing all the buffers when the interlock write (IW) occurs and the first when the third interlock read (IR) occurs consecutively. Clearing a buffer, clearing all buffers when a dummy interlock write (DUMMY IW) occurs, and clearing all buffers when the locked AT is in a normal operation state.

제 6 도는 본 발명의 타이콤(TICOM) 시스템의 록킹 제어 방법에서 다이나믹 록킹 버퍼의 선택 제어 알고리즘을 나타낸 것으로, 다이나믹 록 제어단계의 다이나믹 프로세서 루틴으로서, 록킹 관련 동작인가를 판단하여 록킹 관련 동작이 아니면 AT를 비교하여 일치하면 해당 버퍼를 클리어시킨 후 종료하고, 록킹 관련 동작이면 버퍼의 클리어 여부를 판단하는 제 1 단계와, 상기 제 1 단계의 판단결과 버퍼가 클리어되어 있는 경우는 어드레스 관련 정보와 AT를 해당 버퍼에 저장하고 제 1 플래그를 세팅시킨 후 종료하는 제 2 단계와, 상기 제 2 단계의 판단 결과 버퍼가 클리어되어 있지 않은 경우는 AT를 비교하여 일치하면 버퍼의 FULL여부를 판단하는 제 3 단계와, 상기 제 3 단계의 판단결과 버퍼가 FULL상태이면 비지신호를 발생시킨후 종료하고, FULL상태가 아니면 어드레스 오버랩을 판단하는 제 4 단계와, 상기 제 4 단계의 판단결과 어드레스 오버랩의 경우는 비지신호를 발생시킨 후 종료하고, 어드레스 오버랩이 아니면 어드레스 관련 정보와 AT를 해당버퍼에 저장하고 제 1 플래그를 세팅시킨 후 종료하는 제 5 단계로 이루어진 것이다.FIG. 6 is a diagram illustrating a control algorithm for selecting a dynamic locking buffer in a locking control method of a TICOM system according to the present invention. As shown in FIG. 6, a dynamic processor routine of a dynamic lock control step determines whether a locking related operation is performed. If the AT is matched and the corresponding buffer is cleared, the buffer is cleared and terminated. If the lock-related operation is performed, the first step of determining whether the buffer is cleared, and if the buffer is cleared, the address related information and the AT Is stored in the buffer, the first flag is set, and the second step is terminated. If the buffer is not cleared as a result of the determination of the second step, the AT is compared with the third step to determine whether the buffer is full. And if the buffer is in the FULL state as a result of the third step, generates a busy signal and ends. In the fourth step of determining the surface address overlap and the result of the fourth step, in the case of the address overlap, the busy signal is generated and terminated. If not, the address-related information and the AT are stored in the corresponding buffer and the first flag is generated. After setting the step 5 is completed.

즉, 상기 제 4 도 및 제 5 도의 경우가 항상 존재하여 응용(APPLICATION)이 필요한 경우 상기 로더(15)에 딥스위치나 레지스터 레벨로 각 모드를 선택할 수 있게 구성하고, 프로세서(68030/68040)를 선택하여 68030이면 상기 제 4 도의 멀티 록킹을 위한 알고리즘을 수행하는데, CAS INSTRUCTION을 채용하고 멀티 록킹 방식을 구형하게 되면 이 방식에서는 데드록(DEAD LOCK)이 발생할 우려가 있다.That is, when the application (APPLICATION) is necessary because the case of FIGS. 4 and 5 are always present, the loader 15 is configured to select each mode by a dip switch or a register level, and the processors 68030/68040 are configured. If it is 68030, the algorithm for the multi-locking of FIG. 4 is performed. If the CAS INSTRUCTION is adopted and the multi-locking scheme is established, deadlock may occur in this scheme.

예를들면 제 1 프로세서가 제 1 메모리에 인터록 리드(IR)를 수행하고 다음 타이밍에서는 제 2 프로세서가 제 2 메모리에 인터록 리드(IR)를 수행한 후, 제 1 프로세서가 제 2 메모리에 또다른 인터록 리드(IR)를 시도하려고 하면 제 2 메모리는 제 2 프로세서에 의한 록킹이 걸려있게 되고, 다른 경우로 제 2 프로세서가 제 1 메모리에 인터록 리드(IR)를 시도하는 경우에도 데드록(DEAD LOCK)이 발생한다.For example, after the first processor performs an interlock read (IR) to the first memory and at a next timing, the second processor performs an interlock read (IR) to the second memory, and then the first processor adds another memory to the second memory. Attempting to interlock read (IR) causes the second memory to be locked by the second processor, and in other cases deadlock (DEAD LOCK) even when the second processor attempts to interlock read (IR) to the first memory. ) Occurs.

이러한 경우의 수를 방지하기 위해서 어드레스의 LSB(1바이트)를 제외한 모든 비트가 매칭이 될 경우 접근을 허용하지 않는 알고리즘이 필요하며, 이러한 경우의 발생은 프로세서가 CAS INSTRUCTION을 수행할 경우 LONG DESCRIPTOR를 사용할 경우에 발생할 수 있다.In order to prevent such a case, an algorithm that does not allow access when all bits except the LSB (1 byte) of an address are matched is required. In such a case, a LONG DESCRIPTOR is generated when the processor performs a CAS INSTRUCTION. Can occur when used.

따라서, 제 6 도에 나타낸 본 발명의 제어 과정에서는 어드레스 오버랩(ADDRESS OVERLAP)의 판별단계를 개입시켜 CAS INSTRUCTION의 데드 록 발생 우려를 해소한다.Therefore, in the control process of the present invention shown in FIG. 6, the concern of the deadlock of CAS INSTRUCTION is eliminated through the determination of the address overlap.

이러한 본 발명의 다이나믹 록킹 버퍼 선택 제어과정을 설명하면 다음과 같다.Referring to the dynamic locking buffer selection control process of the present invention as follows.

먼저, 상기한 바와같이 로더(15)에 연결된 딥스위치(또는 레지스터)로 세팅된 프로세서를 판단하여 68040프로세서이면 상기 제 4 도에서의 과정을 수행하고, 68030프로세서이면 록킹 관련 동작인가를 판단한다.First, as described above, the processor set by the dip switch (or register) connected to the loader 15 is determined, and if the processor is 68040, the process of FIG. 4 is performed.

록킹관련 동작이 아니면 AT를 비교기(10-14)에서 비교하여 AT가 매칭되지 않은 경우는 종료하고 매칭된 경우는 해당 버퍼(5-9)를 클리어시킨 후 종료한다.If the operation is not related to the locking, the AT is compared by the comparator 10-14, and when the AT is not matched, the AT is terminated.

그러나, 록킹 관련 동작이 아닌 경우는 버퍼(5-9)가 클리어되어 있는가를 판단하여 클리어 되어 있으면 어드레스 관련 정보를 버퍼(5-9)에 저장하고 AT를 AT버퍼/비교기(10-14)에 저장한 후 제 1 플래그를 세팅시키고 종료하며, 버퍼가 클리어 되어 있지 않으면(데이타 존재) AT를 비교하여 매칭 여부를 판단한다.However, in the case of non-locking operation, it is determined whether the buffer 5-9 is cleared, and if cleared, the address related information is stored in the buffer 5-9 and the AT is stored in the AT buffer / comparator 10-14. After the first flag is set and terminated, if the buffer is not cleared (data is present), AT is compared to determine whether a match is made.

AT가 매칭된 경우는 상기 제 5 도에서의 싱글 프로세서 및 더블 버퍼 적용 알고리즘을 수행하고, AT가 매칭되지 않은 경우는 버퍼(5-9)가 FULL인가를 판단한다.If the AT is matched, the single processor and the double buffer applying algorithm of FIG. 5 are performed. If the AT is not matched, it is determined whether the buffer 5-9 is FULL.

버퍼가 FULL이면 비지(BUSY) 신호를 발생하고 종료하며, FULL이 아니면 어드레스 오버랩 여부를 판단한다.If the buffer is FULL, a BUSY signal is generated and terminated. If it is not FULL, it is determined whether the address overlaps.

어드레스 오버랩은 어드레스의 하위 비트(LSB 1 바이트)만이 매칭되지 않고 상위 비트는 모두 매칭된 경우의 판단이다.The address overlap is determined when only the lower bits (LSB 1 byte) of the address do not match and all the upper bits match.

어드레스 오버랩이 아니면 어드레스 관련 정보를 버퍼(5-9)에 저장하고 AT를 AT버퍼/비교기(10-14)에 저장한 후 제 1 플래그를 세팅시키고 종료하며, 오버랩이면 BUSY신호를 발생시킨 후 종료하므로서 CAS INSTRUCTION의 데드록 발생 우려를 해소한다.If the address is not overlapped, the address-related information is stored in the buffer 5-9 and the AT is stored in the AT buffer / comparator 10-14. Then, the first flag is set and terminated. If the overlap occurs, the BUSY signal is generated and terminated. This eliminates the possibility of deadlock in CAS INSTRUCTION.

이상에서 설명한 바와같이 본 발명의 멀티 록킹 제어 방법에 의하면, 여러개의 프로세서가 록킹에 참가하여 동작할 수 있으므로 여러개의 프로세서가 장착된 시스템에서 시스템다운을 방지할 수 있고, 싱글 록킹 제어 방법을 적용한 경우는 메모리 보드의 버퍼를 2개로 제한하여 메모리 보드 구성의 간소화가 가능하며, 기존의 더미 인터록 라이트를 위한 프로세서 보드의 로직 구성이 배제되므로 경제적이고, 본 발명의 다이나믹 록킹 제어 방법에 의하면 상기 알고리즘을 시스템의 구조와 성능요구에 따라 적절하게 운용할 수 있는 효과가 있다.As described above, according to the multi-locking control method of the present invention, since a plurality of processors can participate in a locking operation, it is possible to prevent a system down in a system equipped with multiple processors, and to apply a single locking control method. Since the memory board configuration can be simplified by limiting the buffers of the memory board to two, and the logic configuration of the processor board for the existing dummy interlock write is excluded, it is economical and the algorithm according to the dynamic locking control method of the present invention There is an effect that can be properly operated according to the structure and performance requirements of the.

Claims (9)

시스템 버스(SYSTEM BUS)를 공유하며, 다수의 프로세서로 구성되는 프로세서부(1)와, 시스템 제어를 위한 시스템 제어모듈(2)과, 입출력 프로세서가 구비된 입출력 보드(3)와, 공유 메모리 보드(4)로 구성되고, 하나의 시스템에 여러개의 프로세서들이 탑재되어 공유 메모리(4)를 사용하는 밀결합(TIGHTLY COUPLED) 구조의 멀티 프로세서 시스템을 구성함에 있어서, 상기 메모리 보드(4)에는, 록킹 어드레스를 저장하는 32비트의 제 1 내지 제 5 버퍼(5-9)를 구비하고, 록킹을 수행한 리퀘스트(프로세서)의 슬롯 어드레스(AT; ADDRESS TAG)를 저장하며 상기 각 버퍼(5-9)의 레벨 갯수에 맞게 구성되는 제 1 내지 제 5 AT버퍼/비교기(10-14), 각 AT버퍼/비교기(10-14)의 기타 조건을 검색하여 버퍼(5-9)로 기록하거나 또는 클리어 동작 제어를 담당하는 로더(LOADER)(15), 리퀘스트 프로세서와의 스탠다드 인터페이스(16)를 포함하는 타이콤(TICOM) 시스템의 록킹 장치.A processor unit 1 comprising a system bus, comprising a plurality of processors, a system control module 2 for system control, an input / output board 3 having an input / output processor, and a shared memory board. In the multi-processor system of the TIGHTLY COUPLED structure which consists of (4) and is equipped with a plurality of processors in one system using the shared memory (4), the memory board (4), locking 32-bit first to fifth buffers 5-9 storing an address, and storing slot addresses (AT) ADDRESS TAGs of requests (processors) for which locking has been performed; Search for the first to fifth AT buffers / comparators 10-14 and other conditions of each AT buffer / comparator 10-14 configured according to the number of levels of the AT buffers / comparators 10-14, and write them to the buffer 5-9 or perform a clear operation. The loader (15) responsible for control, the request processor Tie comb (TICOM) a locking device of a system including a standard interface (16). 제 1 항에 있어서, 상기 로더(15)에 시스템에서 채용한 프로세서의 선택정보를 입력시키는 딥스위치를 포함하는 타이콤(TICOM) 시스템의 록킹 장치.The locking device according to claim 1, further comprising a dip switch for inputting selection information of a processor employed in the system to the loader (15). 제 1 항에 있어서, 상기 로더(15)에 시스템에서 채용한 프로세서의 선택정보를 입력시키는 레지스터를 포함하는 타이콤(TICOM) 시스템의 록킹 장치.2. The locking device according to claim 1, further comprising a register for inputting selection information of a processor employed in the system to the loader (15). 시스템에서 채용한 프로세서에 대응하는 동작 모드를 판단하는 모드 판별단계와, 상기 모드 판별단계에서 판단된 결과 MC68040 계열의 프로세서 채용인 경우 다수의 프로세서가 록킹 동작에 참가하는 멀티록킹루틴을 수행하는 멀티록 제어단계와, 상기 모드 판별 단계에서 판단된 결과 MC68030계열의 프로세서 채용인 경우 싱글 프로세서 및 더블 버퍼적용 조건을 판단하는 조건 판별단계와, 상기 조건 판별단계에서 싱글 프로세서 및 더블버퍼 적용 조건을 만족하는 경우 싱글 프로세서 루틴을 수행하는 싱글 록 제어단계와, 상기 조건 판별 단계에서 싱글 프로세서 및 더블 버퍼 적용 조건을 만족하지 않은 경우에는 다이나믹 프로세서 루틴을 수행하는 다이나믹 록 제어단계로 이루어진 타이콤(TICOM) 시스템의 록킹 제어 방법.A mode determination step of determining an operation mode corresponding to a processor adopted by the system, and a multi-locking routine for performing a multi-locking routine in which a plurality of processors participate in a locking operation when the MC68040 series of processors is used as a result determined in the mode determination step. In the control step and the result of the mode determination step, in the case of adopting the MC68030 processor, a condition determination step of determining a single processor and a double buffer application condition, and a condition of the single processor and double buffer applying condition are satisfied. Locking of the TICOM system comprising a single lock control step for performing a single processor routine and a dynamic lock control step for performing a dynamic processor routine when the condition for determining the single processor and the double buffer is not satisfied in the condition determination step. Control method. 제 4 항에 있어서, 상기 모드 판별단계는 딥스위치나 레지스터로 로더(15)에 제공된 정보를 해독하여 MC68040프로세서, MC68030계열의 프로세서 여부를 판별하는 타이콤(TICOM) 시스템의 록킹 제어 방법.The method of claim 4, wherein the mode determining step determines whether the MC68040 processor or the MC68030 series processor is read by reading information provided to the loader (15) by a dip switch or a register. 제 4 항에 있어서, 상기 멀티록 제어단계에서 수행되는 멀티록킹 루틴은, 록킹 관련 동작인가의 여부를 판별하여 록킹 관련동작이 아니면, 현재 록이 걸려있는가, 임계 영역인가를 판단하여 록이 걸려있고 임계영역이면 비지신호를 발생시킨 후 종료하고 록이 걸려있지 않거나 또는 임계 영역이 아니면 종료하는 제 1 단계와, 상기 제 1 단계의 판별결과 현재 록킹 관련 동작이면 버퍼의 클리어 여부를 판단하여 클리어된 경우는 어드레스 관련 정보와 AT를 각각 해당 버퍼에 저장하고 종료하는 제 2 단계와, 상기 제 2 단계의 판단결과 버퍼가 클리어되어 있지 않은 경우는 읽기동작을 판단하여 읽기동작이 아니면 AT를 비교하고 해당버퍼를 클리어시킨 후 종료하는 제 3 단계와, 상기 제 3 단계의 판단결과 읽기동작이면 버퍼의 FULL여부를 판단하여 FULL이면 비지신호를 발생시킨 후 종료하고, FULL이 아니면 어드레스 관련 정보와 AT를 해당 버퍼에 저장한 후 종료하는 제 4 단계로 이루어진 타이콤(TICOM) 시스템의 록킹 제어 방법.5. The method of claim 4, wherein the multi-locking routine performed in the multi-lock control step determines whether the lock-related operation is performed, and if the lock is not a lock-related operation, the lock is determined by determining whether the lock is currently engaged or a critical area. A first step of generating and closing a busy signal in the critical area and ending the lock if not locked or in the critical area, and in the case of the current locking-related operation as a result of the determination of the first step, determining whether or not the buffer is cleared The second step of storing and terminating the address-related information and the AT in the corresponding buffer, respectively, and if the buffer is not cleared as a result of the determination of the second step, the read operation is determined to compare the AT if the read operation is not read and the corresponding buffer If the third step of clearing and ending the operation, and if the read result of the third step is a read operation, it is determined whether the buffer is full or not. End was generated if the signal, FULL or a method of controlling the locking tie comb (TICOM) system of the address information and the AT to the fourth step ends after saving its buffer. 제 4 항에 있어서, 상기 조건 판별단계는, 록킹 관련 동작인가 버퍼 클리어인가, AT비교 결과 매칭되었는가를 판단하여 록킹 관련 동작이고 버퍼가 클리어 되어있지 않은 상태이며 AT가 매칭된 조건이 만족되면 싱글 프로세서 루틴으로 이행하는 타이콤(TICOM) 시스템의 록킹 제어 방법.The method of claim 4, wherein the determining of the condition comprises determining whether the lock related operation is performed, whether the buffer is cleared or whether the AT comparison result is matched, and the locking related operation, when the buffer is not cleared and the AT matched condition is satisfied. How to control locking of TICOM systems to transition to routines. 제 4 항에 있어서, 상기 싱글록 제어단계에서 수행되는 싱글 프로세서 루틴은, 록킹 관련 동작인가를 판단하여 록킹 관련 동작이 아니면 AT를 비교하여 일치하면 버퍼를 클리어시키고 종료하는 제 1 단계와, 상기 제 1 단계의 판단 결과 록킹 관련 동작이면 버퍼의 클리어 여부를 판단하여 클리어 된 경우에는 어드레스 관련 정보와 AT를 해당 버퍼에 저장하고 제 1 플래그를 세팅시킨 후 종료하는 제 2 단계와, 상기 제 2 단계의 판단 결과 버퍼가 클리어되어 있지 않은 경우는 AT를 비교하여 일치하지 않으면 비지신호를 발생시킨후 종료하고, 일치하면 읽기동작인가를 판단하는 제 3 단계와, 상기 제 3 단계의 판별 결과 읽기동작이 아니면 버퍼를 클리어시킨 후 종료하고, 읽기동작이면 버퍼의 FULL 여부를 판단하는 제 4 단계와, 상기 제 4 단계의 판단결과 버퍼가 FULL상태가 아니면 어드레스 관련 정보를 저장한 후 종료하고, FULL상태이면 제 1 플래그를 세팅시킨 버퍼를 클리어시킨 후 그 버퍼에 어드레스 관련 정보를 저장한 다음 다른 버퍼에 제 1 플래그를 세팅시키고 종료하는 제 5 단계로 이루어진 타이콤(TICOM) 시스템의 록킹 제어 방법.5. The method of claim 4, wherein the single processor routine performed in the single lock control step comprises: a first step of determining whether or not the lock related operation is performed and comparing the AT to compare the AT if not the lock related operation; If it is determined that the locking-related operation is performed in the first step, the second step of determining whether the buffer is cleared and if it is cleared stores the address-related information and the AT in the corresponding buffer, sets the first flag, and then terminates. If the buffer is not cleared as a result of the determination, if the AT does not match and compares the AT, the busy signal is generated and terminated. A fourth step of determining whether the buffer is full or a read result of the fourth step If the status is not FULL, save the address-related information and exit. If the status is FULL, clear the buffer in which the first flag is set, save the address-related information in the buffer, and then set the first flag in another buffer. The locking control method of the TICOM system consisting of five steps. 제 4 항에 있어서, 상기 다이나믹 록 제어단계에서 수행되는 다이나믹 프로세서 루틴은, 록킹 관련 동작인가를 판단하여 록킹 관련 동작이 아니면 AT를 비교하여 일치하면 해당 버퍼를 클리어시킨 후 종료하고, 록킹 관련 동작이면 버퍼의 클리어 여부를 판단하는 제 1 단계와, 상기 제 1 단계의 판별결과 버퍼가 클리어되어 있는 경우는 어드레스 관련정보와 AT를 해당 버퍼에 저장하고 제 1 플래그를 세팅시킨 후 종료하는 제 2 단계와, 상기 제 2 단계의 판단 결과 버퍼가 클리어되어 있지 않은 경우는 AT를 비교하여 일치하면 버퍼의 FULL여부를 판단하는 제 3 단계와, 상기 제 3 단계의 판단결과 버퍼가 FULL상태이면 비지신호를 발생시킨 후 종료하고, FULL상태가 아니면 어드레스 오버랩을 판단하는 제 4 단계와, 상기 제 4 단계의 판단결과 어드레스 오버랩의 경우는 비지신호를 발생시킨 후 종료하고, 어드레스 오버랩이 아니면 어드레스관련 정보와 AT를 해당버퍼에 저장하고, 제 1 플래그를 세팅시킨 후 종료하는 제 5 단계로 이루어진 타이콤(TICOM) 시스템의 록킹 제어 방법.5. The method of claim 4, wherein the dynamic processor routine performed in the dynamic lock control step determines whether the lock-related operation is performed. A first step of determining whether or not the buffer is clear; a second step of storing address related information and AT in the corresponding buffer, setting the first flag, and ending if the buffer is cleared as a result of the determination of the first step; If the buffer is not cleared as a result of the determination of the second step, the third step of determining whether the buffer is FULL if the AT is matched, and the busy signal is generated if the buffer is in the FULL state. The fourth step of determining the address overlap if not in the FULL state and the determination result of the fourth step. The method of controlling the locking of the TICOM system includes a fifth step of generating and ending a busy signal, and if not an address overlap, storing address-related information and AT in the corresponding buffer, and setting and ending the first flag. .
KR1019930013034A 1993-07-12 1993-07-12 Locking apparatus and its control method in ticom system KR950013116B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930013034A KR950013116B1 (en) 1993-07-12 1993-07-12 Locking apparatus and its control method in ticom system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930013034A KR950013116B1 (en) 1993-07-12 1993-07-12 Locking apparatus and its control method in ticom system

Publications (2)

Publication Number Publication Date
KR950003981A KR950003981A (en) 1995-02-17
KR950013116B1 true KR950013116B1 (en) 1995-10-25

Family

ID=19359105

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930013034A KR950013116B1 (en) 1993-07-12 1993-07-12 Locking apparatus and its control method in ticom system

Country Status (1)

Country Link
KR (1) KR950013116B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220115418A (en) 2021-02-10 2022-08-17 주식회사 티엠에스헬스케어 Cosmetics and therapeutic products for fillers with trichloroacetic acid (TCA), low molecular chitosan and beta hydroxyl acid (BHA)

Also Published As

Publication number Publication date
KR950003981A (en) 1995-02-17

Similar Documents

Publication Publication Date Title
US4197580A (en) Data processing system including a cache memory
US4449183A (en) Arbitration scheme for a multiported shared functional device for use in multiprocessing systems
US4975870A (en) Apparatus for locking a portion of a computer memory
EP0617366A1 (en) Memory controller having all DRAM address and control signals provided synchronously from a single device
US4872138A (en) Transparent cache memory
US6446149B1 (en) Self-modifying synchronization memory address space and protocol for communication between multiple busmasters of a computer system
US5371857A (en) Input/output interruption control system for a virtual machine
US5313602A (en) Multiprocessor system and method of control over order of transfer of data between buffer storages
US4907149A (en) Dynamic redirection of interrupts
US4942521A (en) Microprocessor with a cache memory in which validity flags for first and second data areas are simultaneously readable
US5218688A (en) Data processing system with memory-access priority control
KR950013116B1 (en) Locking apparatus and its control method in ticom system
JPH01187650A (en) Buffer storage device
JP2586112B2 (en) Address conversion table access control method
US6694408B1 (en) Scalable replacement method and system in a cache memory
JPS6153747B2 (en)
JPS59112479A (en) High speed access system of cache memory
JP3169878B2 (en) Memory control circuit
KR940001590B1 (en) Method and device for shortening memory access time in reading and writing
JPS61237145A (en) Controlling system for store buffer
JPH0211931B2 (en)
JPH03271859A (en) Information processor
EP0341061B1 (en) Data processing system with memory-access priority control
JP2966038B2 (en) Digital data processing unit arbitration apparatus and method
JPH02307123A (en) Computer

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: 20010830

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee