KR20010015489A - Processor duplication system - Google Patents

Processor duplication system Download PDF

Info

Publication number
KR20010015489A
KR20010015489A KR1020000055970A KR20000055970A KR20010015489A KR 20010015489 A KR20010015489 A KR 20010015489A KR 1020000055970 A KR1020000055970 A KR 1020000055970A KR 20000055970 A KR20000055970 A KR 20000055970A KR 20010015489 A KR20010015489 A KR 20010015489A
Authority
KR
South Korea
Prior art keywords
unit
processor
data
signal
buffer
Prior art date
Application number
KR1020000055970A
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 KR1020000055970A priority Critical patent/KR20010015489A/en
Publication of KR20010015489A publication Critical patent/KR20010015489A/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/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
    • G06F15/17306Intercommunication techniques
    • G06F15/17331Distributed shared memory [DSM], e.g. remote direct memory access [RDMA]
    • 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/177Initialisation or configuration control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Hardware Redundancy (AREA)

Abstract

PURPOSE: A processor duplication system is provided to store all the data, processed in a processor currently in operation, at a memory of a spare processor so that it can reduce a downloading time at a switching mode. CONSTITUTION: The system comprises a first unit, a second unit and a common memory(200). The first unit is connected to the 2n unit via a common bus. The first unit has the same components with the second unit. The first or second unit includes a processor(20a,20b), a ROM(21a,21b), a storage(22a), a buffer(23a,23b) for the common memory(200), and a buffer controller(26a,26b). The buffer controller(26a,26b) controls a write operation of a RAM(24a,24b) and an IO operation of a local bus buffer(25a,25b). The buffer controller(26a,26b) includes a first flipflop, a second flipflop, an OR gate, and a multiplexor. The OR gate performs an OR operation on an output signal of the first flipflop and a state control signal, and then generates a selection signal. The multiplexor selects a local chip select signal or a remote chip select signal as a chip select signal.

Description

프로세서 이중화 시스템{PROCESSOR DUPLICATION SYSTEM}Processor Redundancy System {PROCESSOR DUPLICATION SYSTEM}

본 발명은 이중화 시스템에 관한 것으로, 특히 현재 운용중인 시스템에서 대기중인 예비 시스템으로의 전환 시간을 개선시킨 프로세서 이중화 시스템에 관한 것이다.The present invention relates to a redundancy system, and more particularly, to a processor redundancy system that improves the switching time from a currently operating system to a standby standby system.

일반적으로 이중화 시스템은 장치내에 두 대의 동일한 시스템을 구비한 것으로, 현재 실제로 운영되는 시스템에 문제가 발생되면, 대기중인 다른 한 대로 자동적으로 처리가 이행되도록 한 것이다. 이런 이중화 시스템은 시스템의 신뢰도를 향상시키기 위한 것으로 특히, 실시간 처리를 요하는 시스템 예컨대, 은행의 온라인 시스템이나 통신 교환 시스템에서 응용되고 있다.In general, a redundant system has two identical systems in the unit, so that if there is a problem with a system that is currently operating, the processing is automatically carried out to the other waiting. Such a redundancy system is to improve the reliability of the system, and is particularly applied to a system requiring real-time processing such as an online system of a bank or a communication exchange system.

도 1은 종래의 이중화 시스템에 대한 구성도로서, 이중화 시스템은 크게 운용 유닛, 예비 유닛으로 구성된다. 운용 유닛과 예비 유닛은 공통 버스(17)로 서로 연결된다. 공통 메모리(100)는 운용 유닛 및 예비 유닛이 공유하여 사용하기 위한 데이터 베이스를 구축하고 있으며, 두 유닛의 경계선상에 위치하여 공통 버스(17)에 연결된다.1 is a configuration diagram of a conventional redundancy system, and the redundancy system is largely composed of an operation unit and a spare unit. The operating unit and the spare unit are connected to each other by a common bus 17. The common memory 100 constructs a database for shared use by the operation unit and the spare unit, and is located on the boundary line of the two units and connected to the common bus 17.

운용 유닛은 공통 버스(17)에 각기 연결되어 있는 제1 프로세서(10a), 제1 롬(Read Only Memory; ROM)(12a), 제1 램(Random Access Memory; RAM)(14a), 및 제1 버퍼(16a)로 구성된다. 제1 프로세서(10a)는 운용 유닛측의 주변 기기들에 대한 데이터 처리 및 데이터 입출력 제어를 담당한다. 제1 롬(12a)은 제1 프로세서(10a)의 프로그램을 저장한다. 제1 램(14a)은 프로그램 운용상에 필요한 각종 변수 및 데이터를 제1 롬(12a)으로부터 제공받아 기록하고, 해당 변수 및 데이터를 판독하여 제1 프로세서(10a) 혹은 공통메모리(100)로 제공한다. 제1 버퍼(16a)는 운용 유닛측과 공통메모리(100) 사이의 공통 버스(17)를 통한 입력/출력 데이터를 통과시키거나 차단시킨다.The operating unit includes a first processor 10a, a first read only memory (ROM) 12a, a first random access memory (RAM) 14a, and a first processor 10a, each connected to a common bus 17. It consists of one buffer 16a. The first processor 10a is responsible for data processing and data input / output control of peripheral devices on the operation unit side. The first ROM 12a stores a program of the first processor 10a. The first RAM 14a receives and records various variables and data necessary for program operation from the first ROM 12a, reads the corresponding variables and data, and provides them to the first processor 10a or the common memory 100. do. The first buffer 16a passes or blocks the input / output data via the common bus 17 between the operation unit side and the common memory 100.

예비 유닛은 공통 버스(17)에 각기 연결되어 있는 제2 프로세서(10b), 제2 롬(12b), 제2 램(14b), 및 제2 버퍼(16b)로 구성된다. 예비 유닛의 주변 기기들은 운영 유닛에서의 해당 기기들과 각기 동일한 구조를 갖고, 동일한 기능을 수행하므로 이하 설명은 생략한다.The spare unit includes a second processor 10b, a second ROM 12b, a second RAM 14b, and a second buffer 16b, which are each connected to the common bus 17. Since the peripheral devices of the spare unit have the same structure and perform the same function as the corresponding devices in the operating unit, the following description is omitted.

이제, 도 1에서 종래의 이중화 시스템의 작용은 다음과 같다.Now, the operation of the conventional redundancy system in Figure 1 is as follows.

장치의 정상적인 상태에서 운용 유닛측은 활성 상태로 되고, 예비 유닛측은 대기 상태로 된다. 운용 유닛에서 제1 프로세서(10a)가 제1 롬(12a)으로부터 프로그램을 로딩하여 운용을 개시함에 따라 프로그램상의 각종의 변수 및 데이터가 제1 램(14a)에 저장된다. 제1 프로세서(10a)는 외부 입출력 조건에 따라 프로그램을 운영하면서 제1 램(14a)의 변수 및 데이터를 수정, 변경시키도록 제어한다. 또, 제1 프로세서(10a)는 제1 버퍼(16a)의 입출력 방향을 제어하여, 운용 유닛측의 모든 데이터 베이스를 공통 메모리(100)에 저장한다.In the normal state of the apparatus, the operating unit side becomes the active state, and the spare unit side becomes the standby state. As the first processor 10a loads a program from the first ROM 12a in the operation unit to start operation, various variables and data on the program are stored in the first RAM 14a. The first processor 10a controls to modify and change variables and data of the first RAM 14a while operating a program according to an external input / output condition. In addition, the first processor 10a controls the input / output direction of the first buffer 16a and stores all the databases on the operation unit side in the common memory 100.

한편, 운영 유닛측의 고장 등과 같은 전환 조건에 의해 운영 유닛측은 정지 상태로 되고, 예비 유닛측이 활성 상태로 진입한다. 예비 유닛측에서 제2 프로세서(10b)는 제2 버퍼(16b)의 입출력 방향을 제어하여, 공통 메모리(100)에 저장된 모든 데이터베이스를 로딩받고, 제2 롬(12b)에 저장된 프로그램에 따라 운용을 계속해서 진행한다.On the other hand, the operating unit side is stopped by the switching conditions such as a failure of the operating unit side, and the spare unit side enters the active state. On the spare unit side, the second processor 10b controls the input / output direction of the second buffer 16b to load all the databases stored in the common memory 100 and to operate the program according to the program stored in the second ROM 12b. Continue on.

그러나, 전환시점 이전의 운영 유닛측에서, 공통 메모리(100)로의 저장시기는 기록할 데이터량이 제1 램(14a)의 용량을 초과했거나, 혹은 일정시간 간격으로 제1 램(14a)에 저장된 내용을 공통 메모리(100)에 적재시키도록 하기 때문에, 전환 직전의 제1 램(14a)에 저장되어 있는 내용은 공통 메모리(100)에 적재되지 않을 수 있다.However, on the operating unit side before the switching point, the storage time to the common memory 100 is the amount of data to be recorded exceeds the capacity of the first RAM 14a, or is stored in the first RAM 14a at regular intervals. Is loaded into the common memory 100, the contents stored in the first RAM 14a immediately before switching may not be loaded into the common memory 100.

따라서, 예비 유닛측에서 제2 프로세서(10b)는, 운영 유닛측의 제1 램(14a)의 내용을 다운로딩 받지 못함으로 인해, 전환 직전의 운용 상태로 동작할 수 없음은 물론, 제1 램(14a)의 내용을 다운로딩 받는 시간 동안 서비스 중단 상태가 장시간 지속될 수 있는 문제점이 있다.Accordingly, since the second processor 10b on the spare unit side does not download the contents of the first RAM 14a on the operating unit side, the second processor 10b cannot operate in the operation state just before switching, of course, the first RAM. There is a problem that the service interruption state can be maintained for a long time while downloading the content of 14a.

이에, 본 발명은 상기의 문제점을 해결하기 위하여 발명된 것으로서, 본 발명은 현재 운영중인 프로세서가 처리하는 모든 데이터들을 예비 시스템의 메모리에 실시간으로 저장시키도록 하여, 전환 발생시 데이터 다운로딩 시간을 개선시킨 프로세서 이중화 시스템을 제공하는 데 그 목적이 있다.Accordingly, the present invention has been invented to solve the above problems, and the present invention allows all the data processed by the currently running processor to be stored in the memory of the preliminary system in real time, thereby improving the data downloading time when a conversion occurs. The purpose is to provide a processor redundancy system.

상기와 같은 목적을 달성하기 위한 본 발명은, 운용상태와 대기상태를 번갈아 수행하는 제 1 유닛 및 제 2 유닛이 운용시 처리된 데이터를 공통버스(COMMON BUS)를 통해 공통메모리에 저장하여 사용하도록 된 이중화 시스템에 있어서, 상기 제 1 유닛은, 제 1 유닛의 주변 기기를 제어하고 데이터를 처리하는 제1 프로세서와, 상기 제1 프로세서의 프로그램을 저장하는 제 1 메모리과, 상기 제1 프로세서의 제어신호에 따라 운용상태이면 상기 제 1 유닛의 데이터를 기록하고, 대기상태이면 상기 제 2 유닛의 데이터를 기록하는 제 1 데이터 저장부과, 상기 제1 프로세서의 제어에 따라 공통버스를 통해 상기 공통메모리 혹은 상기 제 2 유닛과의 데이터 입출력을 통제하는 제 1 공통버스용 버퍼를 포함하며; 상기 제 2 유닛은, 제 2 유닛내의 주변 기기를 제어하고 데이터를 처리하는 제2 프로세서와, 상기 제2 프로세서의 프로그램을 저장하는 제 2 메모리과, 상기 제2 프로세서의 제어신호에 따라 운용상태이면 상기 제 2 유닛의 데이터를 기록하고, 대기상태이면 상기 제 1 유닛의 데이터를 기록하는 제 2 데이터 저장부과, 상기 제2 프로세서의 제어에 따라 공통버스를 통해 상기 공통메모리 혹은 상기 제 1 유닛과의 데이터 입출력을 통제하는 제2 공통버스용 버퍼를 포함하는 것을 특징으로 한다.The present invention for achieving the above object, the first unit and the second unit performing the operation state and the standby state alternately to store and use the data processed during the operation in a common memory via a common bus (COMMON BUS) In the redundant system, the first unit includes a first processor for controlling peripheral devices of the first unit and processing data, a first memory for storing a program of the first processor, and a control signal of the first processor. The first data storage unit records data of the first unit in an operating state, and records data of the second unit in a standby state, and the common memory or the controller through a common bus under control of the first processor. A first common bus buffer for controlling data input and output with the second unit; The second unit may include a second processor that controls a peripheral device in the second unit and processes data, a second memory that stores a program of the second processor, and an operating state according to a control signal of the second processor. A second data storage unit for recording data of a second unit and recording data of the first unit in a standby state; and data with the common memory or the first unit through a common bus under control of the second processor; And a second common bus buffer for controlling input and output.

도 1은 종래의 이중화 시스템에 대한 구성도,1 is a configuration diagram for a conventional redundant system,

도 2는 본 발명에 따른 이중화 시스템에 대한 구성도,2 is a block diagram of a redundancy system according to the present invention;

도 3은 도 2의 저장부의 버퍼 제어부에 대한 세부 회로도,3 is a detailed circuit diagram illustrating a buffer controller of a storage unit of FIG. 2;

도 4a는 운용상태에서 대기상태로 전환시 도 3의 버퍼 제어부의 동작을 설명하기 위한 제어신호 상태도,4A is a control signal state diagram for describing an operation of a buffer controller of FIG. 3 when switching from an operating state to a standby state;

도 4b는 대기상태에서 운용상태로 전환시 도 3의 버퍼 제어부의 동작을 설명하기 위한 제어신호 상태도이다.4B is a control signal state diagram for describing an operation of the buffer controller of FIG. 3 when switching from a standby state to an operating state.

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

20a, 20b: 프로세서 21a, 21b: 롬(ROM)20a, 20b: Processor 21a, 21b: ROM

22a, 22b: 저장부 23a, 23b: 공통버스용 버퍼22a, 22b: storage unit 23a, 23b: buffer for common bus

24a, 24b, 500: 램(RAM) 25a, 25b, 400: 자국버스용 버퍼24a, 24b, 500: RAM 25a, 25b, 400: Buffer for Local Bus

26a, 26b, 300: 버퍼 제어부 200: 공통메모리26a, 26b, 300: buffer controller 200: common memory

31, 32: 플립플롭 33: OR 게이트31, 32: flip-flop 33: OR gate

34: 멀티플렉서34: Multiplexer

이하, 본 발명의 바람직한 실시예를 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 따른 이중화 시스템에 대한 구성도로서, 본 시스템은 공통버스(COMMON BUS)를 통해 서로 연결된 제 1 유닛 및 제 2 유닛과, 공통버스를 통해 전달된 제 1 유닛 및 제 2 유닛의 처리 데이터를 저장하는 공통메모리(200)를 포함한다. 제 1 유닛과 제 2 유닛은 도 2에서 보는 바와 같이 동일한 요소로 구성되고, 동일한 기능을 갖는다.FIG. 2 is a configuration diagram of a redundancy system according to the present invention. The system includes a first unit and a second unit connected to each other through a common bus, and a first unit and a second unit transferred through a common bus. It includes a common memory 200 for storing the processing data of. The first unit and the second unit are composed of the same elements as shown in FIG. 2 and have the same function.

제 1 유닛은 제 1 유닛내의 주변 기기를 제어하고 데이터를 처리하는 제1 프로세서(20a), 상기 제1 프로세서의 프로그램을 저장하는 제1 롬(21a), 프로그램 운영중의 변수 및 처리 데이터 등을 기록하여 보관하는 제1 저장부(22a), 및 공통메모리(200)와 제 1 유닛측 간의 공통버스 상에 로딩된 데이터의 입출력을 제어하기 위한 제1 공통버스용 버퍼(23a)로 구성된다. 여기서, 상기 제1 저장부(22a)는 제1 램(24a), 제1 자국버스용 버퍼(25a) 및 제1 버퍼제어부(26a)로 구성된다. 제1 램(24a)은 프로그램 운용상에 필요한 각종 변수 및 데이터를 기록하고 갱신하기 위한 것이다. 제1 자국버스용 버퍼(25a)는 공통버스와 상기 제2 램(24a)을 연결하는 자국버스(LOCAL BUS) 상에 로딩된 데이터의 입출력을 제어한다. 제1 버퍼제어부(26a)는 제어신호에 따라 상기 제1 자국버스용 버퍼(25a)의 입출력을 제어하여 상기 제1 램(24a)의 쓰기 동작을 통제한다.The first unit may control a peripheral device in the first unit, and may include a first processor 20a for processing data, a first ROM 21a for storing a program of the first processor, variables and processing data during program operation, and the like. And a first storage section 22a for recording and storing, and a first common bus buffer 23a for controlling input and output of data loaded on the common bus between the common memory 200 and the first unit side. In this case, the first storage unit 22a includes a first RAM 24a, a first local bus buffer 25a, and a first buffer control unit 26a. The first RAM 24a is for recording and updating various variables and data necessary for program operation. The first local bus buffer 25a controls the input / output of data loaded on the local bus LOCAL BUS connecting the common bus and the second RAM 24a. The first buffer controller 26a controls the input / output of the first local bus buffer 25a in accordance with a control signal to control the write operation of the first RAM 24a.

제 2 유닛은 제 2 유닛내의 주변 기기를 제어하고 데이터를 처리하는 제2 프로세서(20b), 상기 제2 프로세서의 프로그램을 저장하는 제2 롬(21b), 프로그램 운영중의 변수 및 처리 데이터 등을 기록하여 보관하는 제2 저장부(22b), 및 공통메모리(200)와 제 2 유닛측 간의 공통버스 상에 로딩된 데이터의 입출력을 제어하기 위한 제2 공통버스용 버퍼(23b)로 구성된다. 여기서, 상기 제2 저장부(22b)는 제2 램(24b), 제2 자국버스용 버퍼(25b) 및 제2 버퍼제어부(26b)로 구성된다. 제2 램(24b)은 프로그램 운용상에 필요한 각종 변수 및 데이터를 기록하고 갱신하기 위한 것이다. 제2 자국버스용 버퍼(25b)는 공통버스와 상기 제2 램(24b)을 연결하는 자국버스(LOCAL BUS) 상에 로딩된 데이터의 입출력을 제어한다. 제2 버퍼제어부(26b)는 제어신호에 따라 상기 제2 자국버스용 버퍼(25b)의 입출력을 제어하여 상기 제2 램(24b)의 쓰기 동작을 통제한다.The second unit controls a second processor 20b for controlling peripheral devices in the second unit and processing data, a second ROM 21b for storing a program of the second processor, variables and processing data during program operation, and the like. And a second storage section 22b for recording and storing, and a second common bus buffer 23b for controlling input and output of data loaded on the common bus between the common memory 200 and the second unit side. Here, the second storage section 22b is composed of a second RAM 24b, a second local bus buffer 25b, and a second buffer control section 26b. The second RAM 24b is for recording and updating various variables and data necessary for program operation. The second local bus buffer 25b controls the input / output of data loaded on the local bus LOCAL BUS connecting the common bus and the second RAM 24b. The second buffer controller 26b controls the input / output of the second local bus buffer 25b in accordance with a control signal to control the write operation of the second RAM 24b.

본 발명의 특징은 두 유닛 중 대기상태에 있는 유닛측에서 현재 운영상태에 있는 유닛측의 데이터를 실시간적으로 액세스하여 기록 보관하는 데 있다. 즉, 도 2에서, 제 1 유닛이 운영상태이고 제 2 유닛이 대기상태인 경우, 제 1 유닛의 제1 램(24a)에 기록되는 쓰기 데이터를 제 2 유닛의 제2 램(24b)에도 동시에 기록하는 것이다. 이렇게 하면, 운영중인 제 1 유닛이 탈장되거나 어떠한 전환조건이 발생했을 경우, 대기상태의 제 2 유닛은 제2 램(24b)에 저장된 데이터를 이용하여 전환 직전의 운영 상태를 유지하면서 중단없이 프로그램을 운용할 수 있다.It is a feature of the present invention to record and store in real time the data of the unit side in the current operating state from the unit side in the standby state of the two units. That is, in FIG. 2, when the first unit is in the operating state and the second unit is in the standby state, write data recorded in the first RAM 24a of the first unit is simultaneously written to the second RAM 24b of the second unit. To record. In this way, when the running first unit is dismounted or any switching condition occurs, the standby second unit uses the data stored in the second RAM 24b to maintain the operating state immediately before switching, without interruption. It can be operated.

도 3은 도 2의 저장부의 버퍼 제어부에 대한 세부 회로도이다. 버퍼 제어부(300)는 2개의 플립플롭(31,32), OR 게이트(33), 2-1 멀티플렉서(34)로 구성된다.3 is a detailed circuit diagram illustrating a buffer controller of a storage unit of FIG. 2. The buffer controller 300 includes two flip-flops 31 and 32, an OR gate 33, and a 2-1 multiplexer 34.

제1 플립플롭(31)은 리셋단자(RESET)를 갖고 전원리셋신호(PW_RST)를 클럭으로 제공받아 'H'(하이)레벨 신호를 출력한다. 제2 플립플롭(32)은 초기화 신호(INIT_COM)를 입력 신호로 제공받고, 쓰기 제어신호(WR_CTL)를 클럭으로 제공받는다. 제2 플립플롭(32)의 출력은 제1 플립플롭(31)의 리셋단자로 제공된다. OR 게이트(33)는 제1 플립플롭(31)의 출력신호 및 상태제어신호()를 제공받아 논리합 연산하여 멀티플렉서(34)의 선택신호(SEL_SIN)로 제공한다. 멀티플렉서(34)는 선택신호(SEL_SIN)에 따라 자국유닛으로부터 제공되는 자국칩선택신호(Local Chip Select; LCS)와, 원격유닛으로부터 제공되는 원격칩선택신호(Remote Chip Select; RCS)중 어느 하나를 칩선택신호(CHIP_SEL)로 출력한다. 자국칩선택신호(LCS)는 자국 유닛의 램에 대한 칩셀렉트신호이며, 원격칩선택신호(RCS)는 원격 유닛의 램에 대한 칩셀렉트신호이다.The first flip-flop 31 has a reset terminal RESET and receives a power reset signal PW_RST as a clock to output a 'H' (high) level signal. The second flip-flop 32 receives an initialization signal INIT_COM as an input signal and a write control signal WR_CTL as a clock. The output of the second flip-flop 32 is provided to the reset terminal of the first flip-flop 31. The OR gate 33 is an output signal and a state control signal of the first flip-flop 31. ) Is received and provided as a select signal SEL_SIN of the multiplexer 34. The multiplexer 34 selects one of a local chip select signal (LCS) provided from the local station unit and a remote chip select signal (RCS) provided from the remote unit according to the selection signal SEL_SIN. Outputs the chip select signal (CHIP_SEL). The local chip select signal LCS is a chip select signal for the RAM of the own station unit, and the remote chip select signal RCS is a chip select signal for the RAM of the remote unit.

버퍼 제어부(300)의 칩선택신호(CHIP_SEL)는 자국버스용 버퍼(도 2의 25a, 25b) 중 출력 버퍼(400)의 인에이블 단자(EN)로 제공된다. 버퍼(400)는 칩선택신호(CHIP_SEL)에 의해 인에이블 되어 어드레스, 데이터, 쓰기 제어신호(마더보드로부터)를 입력받아 해당 자국버스 인 주소버스(ADDR_BUS), 데이터버스(DATA_BUS), 제어신호버스(WR_CTL)를 통해 각각 출력한다. 램(500)은 자국버스를 통해 입력된 쓰기 데이터를 저장한다.The chip select signal CHIP_SEL of the buffer controller 300 is provided to the enable terminal EN of the output buffer 400 among the local bus buffers 25a and 25b of FIG. 2. The buffer 400 is enabled by the chip select signal CHIP_SEL and receives an address, data, and write control signal (from the motherboard) to receive the corresponding local bus in address bus (ADDR_BUS), data bus (DATA_BUS), and control signal bus. Output via (WR_CTL) respectively. The RAM 500 stores write data input through a local bus.

결국, 버퍼 제어부(300)는 상태제어신호 및 운용 유닛의 쓰기 제어신호에 따라 공통버스상에 로딩된 어드레스, 데이터, 쓰기 신호를, 자국버스를 통해 자신의 램으로 액세스 할 것인지, 원격버스를 통해 자신의 램으로 액세스 할 것인지를 제어하는 역할을 한다.As a result, the buffer controller 300 accesses the address, data, and write signals loaded on the common bus according to the state control signal and the write control signal of the operation unit, via its own bus, via the remote bus. It controls whether or not to access RAM.

이하, 도 2 내지 도 3을 참조하여 본 실시예의 작용 및 효과를 설명한다.Hereinafter, the operation and effect of the present embodiment will be described with reference to FIGS. 2 to 3.

본 실시예는 초기전원 투입시 제 1 유닛을 운용 유닛으로, 제 2 유닛을 예비 유닛으로 설정한다.This embodiment sets the first unit as the operation unit and the second unit as the spare unit when the initial power is turned on.

① 제 1 유닛(운용 유닛)① First unit (operation unit)

도 3을 참조하면, 최초 전원 투입시 제 1 유닛은 상태제어신호()를 'H'로 활성화 시켜 자신이 운용중임을 표시한다. 또한, 운용 유닛으로 작동하기 위해 제1 프로세서(20a)를 구동시켜 제1 롬(21a)으로부터 프로그램을 로딩받아 운용을 개시하고, 램(24a)에 운용상 필요한 변수 및 데이터를 저장하여 초기화를 수행한다. 초기화 완료 후 운용상태로 진입하여, 프로세서(20a)는 외부 입출력 조건에 따라 프로그램을 진행시키면서, 제1 램(24a)의 데이터를 판독하고 갱신하도록 제어한다. 제1 프로세서(20a)는 제1 공통버스용 버퍼(23a)의 입출력 방향을 제어하여 운용 중에 발생된 모든 데이터 베이스를 공통메모리(200)에 저장하여 사용한다.Referring to FIG. 3, when the first power is turned on, the first unit includes a state control signal ( ) To 'H' to indicate that you are operating. In addition, in order to operate as an operation unit, the first processor 20a is driven to load a program from the first ROM 21a to start operation, and store and store variables and data necessary for operation in the RAM 24a to perform initialization. do. After the initialization is completed, the operation state is entered, and the processor 20a controls to read and update the data of the first RAM 24a while advancing the program according to the external input / output condition. The first processor 20a controls the input / output direction of the first common bus buffer 23a to store and use all the databases generated during operation in the common memory 200.

제1 버퍼제어부(26a)는, 도 3에서와 같이, 'H'레벨 상태제어신호()에 따라 멀티플렉서(34)를 통해 자국칩선택신호(LCS)를 선택한다. 결국, 운용 유닛측의 프로세서(20a)에 의해 생성된 모든 변수 및 데이터는 자국의 제1 램(24a)으로 액세스된다.As shown in FIG. 3, the first buffer controller 26a uses the 'H' level state control signal ( The local chip selection signal LCS is selected through the multiplexer 34 according to the " As a result, all the variables and data generated by the processor 20a on the operation unit side are accessed to the first RAM 24a of the local station.

이제, 도 4a를 참조하여 제 1 유닛이 초기화상태->운영상태->대기상태로 전환되는 과정을 설명한다. 도 4a는 제 1 유닛의 버퍼제어부의 제어신호 상태도이다.Now, referring to FIG. 4A, a process of switching the first unit to the initialization state-> operation state-> standby state will be described. 4A is a control signal state diagram of the buffer control unit of the first unit.

(a)는 전원리셋신호(PW_RST)이고, (b)는 초기화 신호(INIT_COM)신호로서, 전원 투입 후 초기화 상태가 완료되는 시점에서 'L'에서 'H'로 천이한다.(a) is a power reset signal (PW_RST), (b) is an initialization signal (INIT_COM) signal, the transition from 'L' to 'H' at the time when the initialization state is completed after the power is turned on.

(c)는 상태제어신호()로서, 초기화 및 운용상태 구간에서는 'H'이고, 대기상태 구간에서 'L'로 천이한다. (d)는 쓰기 제어신호(WR_CTL)이다.(c) state control signal ( ), 'H' in the initialization and operation state section, and transitions to 'L' in the standby state section. (d) is the write control signal WR_CTL.

(e)는 멀티플렉서의 선택제어신호(SEL_SIN)로서, 초기화 및 운용상태 구간에서는 'H'이고, 대기상태 구간에서는 상기 (d) 신호와 반대 위상을 갖는다.(e) is the selection control signal SEL_SIN of the multiplexer, which is 'H' in the initialization and operation state sections, and has a phase opposite to the (d) signal in the standby state sections.

(f)는 칩선택신호(CHIP_SEL)로서, 상기 (e)신호에 따라 초기화 및 운용 상태에서는 자국칩선택(LCS)신호를 출력하여 운용중인 자국유닛의 프로세서(20a)에서 생성한 데이터를 램(24a)에 저장한다. 반면에, 대기상태에서는 (e)신호에 따라 운용중인 원격유닛의 램(24b)에서 쓰기 동작이 일어날 때마다 원격칩선택(RCS)신호를 출력하여 운용중인 타국의 프로세서(20b)에서 생성한 데이터를 램(24a)에 저장한다.(f) is a chip select signal (CHIP_SEL). In the initialization and operation state according to the (e) signal, a local chip select (LCS) signal is output and the data generated by the processor 20a of the host unit in operation is stored in RAM ( Store in 24a). On the other hand, in the standby state, whenever a write operation occurs in the RAM 24b of the remote unit in operation according to the signal (e), the remote chip select (RCS) signal is output to generate data generated by the processor 20b of the other station in operation. Is stored in the RAM 24a.

② 제 2 유닛(예비 유닛)② Second unit (spare unit)

제 2 유닛의 버퍼제어부(22b)에서는, 도 3을 참조하면, 최초 전원 투입시 전원리셋신호(PW_RST)에 의해 제1 플립플롭(31)의 출력을 'H'로 활성화시키고, 상태제어신호()를 'L'로 비활성화 시켜 자신이 예비 유닛임을 표시한다. 이때, OR게이트(33)는 제1 플립플롭(31)의 출력'H'와 상태제어신호 'L'을 논리합 연산하여 선택신호 'H'를 출력함에 따라 멀티플렉서(34)는 자국칩선택신호(LCS)를 출력한다.In the buffer control unit 22b of the second unit, referring to FIG. 3, the output of the first flip-flop 31 is activated to 'H' by the power reset signal PWM_RST at the time of initial power-on, and the state control signal ( ) To 'L' to indicate that you are a spare unit. At this time, the OR gate 33 performs an OR operation on the output 'H' and the state control signal 'L' of the first flip-flop 31 and outputs the selection signal 'H'. LCS).

자국칩선택신호(LCS)가 선택됨에 따라 제 2 유닛은, 예비 유닛으로 작동하기 위한 초기화 상태로 진입한다. 초기화 상태에서, 프로세서(20b)를 구동시켜 롬(21b)으로부터 프로그램을 로딩받아 운용을 개시하고, 자국의 램(24b)에 운용상 필요한 변수 및 데이터를 저장하여 초기화를 수행한다(도 2 참조).As the local chip select signal LCS is selected, the second unit enters an initialization state for operating as a spare unit. In the initialization state, the processor 20b is driven to start operation by loading a program from the ROM 21b, and initialization is performed by storing variables and data necessary for operation in the RAM 24b of the host (see FIG. 2). .

초기화가 완료됨을 알리는 초기화 신호(INIT_COM)에 따라 제 2 유닛은 대기상태로 진입한다. 즉, 초기화 신호는 초기화 완료시 'H'로 활성화되고, 제2 플립플롭(32)에 입력된다. 제2 플립플롭(WR_CTL)은 쓰기 제어신호(WR_CTL)를 클럭신호로 제공받아, 출력을 제1 플립플롭(31)의 리셋단자(RESET)로 제공한다. 그러면, 운용 유닛측 램(제 1 유닛의 램(24a))에서 쓰기 동작이 일어날 때마다, 예비 유닛측의 버퍼 제어부(26b)의 제1 플립플롭(31)은 'L'신호를 출력하고, 멀티플렉서(34)는 운용 유닛측에서 제공한 원격칩선택신호(RCS)를 출력한다.The second unit enters the standby state according to the initialization signal INIT_COM indicating that the initialization is completed. That is, the initialization signal is activated at 'H' upon completion of initialization and is input to the second flip-flop 32. The second flip-flop WR_CTL receives the write control signal WR_CTL as a clock signal and provides an output to the reset terminal RESET of the first flip-flop 31. Then, whenever a write operation occurs in the operating unit side RAM (RAM 24a of the first unit), the first flip-flop 31 of the buffer control unit 26b on the spare unit side outputs an 'L' signal, The multiplexer 34 outputs the remote chip select signal RCS provided from the operating unit side.

버퍼제어부(26b)에서 원격칩선택신호(RCS)가 출력됨에 따라 프로세서(20b)는 자국유닛의 램(24b)을 액세스 할 수 없게 된다. 반면에 운영중인 제 1 유닛의 공통버스용 버퍼(23a)와 제 2 유닛의 공통버스용 버퍼(23b)가 활성화되어, 제 1 유닛의 프로세서(20a)가 공통버스를 통해 램(24a)에 쓰기 액세스 할 때마다, 제 2 유닛의 램(24b)도 동시에 공통버스상에 올려진 데이터를 쓰기 액세스하게 된다.As the remote chip selection signal RCS is output from the buffer controller 26b, the processor 20b cannot access the RAM 24b of the host unit. On the other hand, the common bus buffer 23a of the first unit in operation and the common bus buffer 23b of the second unit are activated so that the processor 20a of the first unit writes to the RAM 24a through the common bus. Each time the access is made, the RAM 24b of the second unit also writes and accesses data loaded on the common bus.

한편, 운영 유닛(제 1 유닛)측의 탈장이나 전환 스위치 등에 의해 전환이 발생되면, 대기 상태의 제 2 유닛의 프로세서(20b)는 공통 메모리(200)상에 저장된 데이터를 다운로드 받는 등 운용을 위한 준비작업을 완료한다. 이어서, 제 2 유닛은 운용 유닛으로서 작동하고, 전환되기 바로 직전까지 발생했던 데이터를 저장하고 있는 자국의 램(24b)을 액세스하면서 운용을 계속해서 진행한다.On the other hand, when switching occurs due to a switch or a switch on the operating unit (first unit) side, the processor 20b of the second unit in the standby state downloads the data stored in the common memory 200 for operation. Complete the preparation work. Subsequently, the second unit operates as an operation unit and continues operation while accessing the RAM 24b of the local station that stores data that has occurred just before switching.

이제, 도 4b를 참조하여 제 2 유닛이 초기화상태->대기상태->운용상태로 전환되는 과정을 설명한다. 도 4b는 제 2 유닛의 버퍼제어부의 제어신호 상태도이다.Now, a process of switching the second unit to the initialization state-> standby state-> operation state will be described with reference to FIG. 4B. 4B is a control signal state diagram of the buffer control unit of the second unit.

(a)는 전원리셋신호(PW_RST)이고, (b)는 초기화 신호(INIT_COM)신호로서, 전원 투입 후 초기화 상태가 완료되는 시점에서 'L'에서 'H'로 천이한다.(a) is a power reset signal (PW_RST), (b) is an initialization signal (INIT_COM) signal, the transition from 'L' to 'H' at the time when the initialization state is completed after the power is turned on.

(c)는 상태제어신호()로서, 초기화 및 대기상태 구간에서는 'L'이고, 운용상태 구간에서 'H'로 천이한다. (d)는 쓰기 제어신호(WR_CTL)이다.(c) state control signal ( ), 'L' in the initialization and standby state section, and transitions to 'H' in the operation state section. (d) is the write control signal WR_CTL.

(e)는 멀티플렉서의 선택제어신호(SEL_SIN)로서, 초기화상태 구간에서는 'H'이고, 대기상태 구간에서는 상기 (d) 신호와 반대 위상을 갖고, 운용 상태 구간에서는 'H'이다.(e) is the multiplexer's selection control signal SEL_SIN, which is 'H' in the initialization state section, has a phase opposite to the (d) signal in the standby state section, and is 'H' in the operating state section.

(f)는 칩선택신호(CHIP_SEL)로서, 상기 (e)신호에 따라 초기화상태 구간에서는 자국칩선택(LCS)신호를 출력하여 자국의 프로세서(20b)에 의해 초기 데이터를 램(24b)에 저장한다. 초기화가 완료 된 후 대기상태로 진입하면, 운용중인 타국의 램(24a)에서 쓰기 동작이 일어날 때마다, 원격칩선택신호(RCS)를 출력한다. 원격칩선택신호(RSC)에 의해 제 1 유닛의 공통버스용 버퍼(23a) 및 제 2 유닛의 공통버스용 버퍼(23b)를 통해 제1 프로세서(20a)에서 생성한 데이터를 제공받아 자국의 제2 램(24b)에 저장한다. 대기상태에서 운용상태로 전환되면, 자국칩선택신호(LCS)에 의해 자국의 제2 프로세서(20b)에서 생성한 데이터를 자국의 제2 램(24b)에 저장한다.(f) is a chip select signal (CHIP_SEL), which outputs a local chip select (LCS) signal in the initialization state section according to the (e) signal, and stores initial data in the RAM 24b by the processor 20b of the local station. do. When the standby state is entered after the initialization is completed, the remote chip select signal RCS is output whenever a write operation occurs in the RAM 24a of the other station in operation. The remote chip select signal RSC receives data generated by the first processor 20a through the common bus buffer 23a of the first unit and the common bus buffer 23b of the second unit. 2 is stored in the RAM 24b. When switching from the standby state to the operating state, data generated by the second processor 20b of the local station is stored in the second RAM 24b of the local station by the local chip selection signal LCS.

이상에서 살펴본 바와 같이, 종래에는 운용 유닛의 처리중인 데이터가 자국의 램에만 저장되고 예비 유닛과는 공유되지 않아서, 예비 유닛이 운용 유닛으로 전환시, 데이터를 재로딩받는 동안 서비스 중단사태가 발생할 수 있었다. 본 발명은 운용 유닛의 램에 저장되는 데이터를 예비 유닛의 램에도 동시에 저장시킴으로써, 전환시 운용 유닛측 램의 데이터를 다운 로드 받을 필요가 없으므로 중단없이 프로그램을 운용할 수 있다. 또한, 본 발명은 전환 시간동안 서비스에 중대한 영향을 미치는 통신 서비스 등의 실시간 시스템에 적용할 수도 있다.As described above, in the related art, the data being processed in the operating unit is stored only in the RAM of the own station and is not shared with the spare unit, so a service interruption may occur while the spare unit is converted to the operating unit and the data is reloaded. there was. According to the present invention, data stored in the RAM of the operating unit is simultaneously stored in the RAM of the spare unit, so that it is not necessary to download the data of the RAM of the operating unit at the time of switching, so that the program can be operated without interruption. In addition, the present invention can be applied to a real-time system such as a communication service that has a significant effect on the service during the switching time.

Claims (4)

운용상태와 대기상태를 번갈아 수행하는 제 1 유닛 및 제 2 유닛이 운용시 처리된 데이터를 공통버스(COMMON BUS)를 통해 공통메모리에 저장하여 사용하도록 된 이중화 시스템에 있어서,In the redundancy system in which the first unit and the second unit performing the operation state and the standby state alternately store and use data processed during operation in a common memory through a common bus. 상기 제 1 유닛은,The first unit, 제 1 유닛의 주변 기기를 제어하고 데이터를 처리하는 제1 프로세서;A first processor controlling a peripheral device of the first unit and processing data; 상기 제1 프로세서의 프로그램을 저장하는 제 1 메모리;A first memory for storing a program of the first processor; 상기 제1 프로세서의 제어신호에 따라 운용상태이면 상기 제 1 유닛의 데이터를 기록하고, 대기상태이면 상기 제 2 유닛의 데이터를 기록하는 제 1 데이터 저장부; 및A first data storage unit configured to record data of the first unit in an operating state according to a control signal of the first processor, and to record data of the second unit in a standby state; And 상기 제1 프로세서의 제어에 따라 공통버스를 통해 상기 공통메모리 혹은 상기 제 2 유닛과의 데이터 입출력을 통제하는 제 1 공통버스용 버퍼를 포함하며;A first common bus buffer controlling data input / output with the common memory or the second unit through a common bus under control of the first processor; 상기 제 2 유닛은,The second unit, 제 2 유닛내의 주변 기기를 제어하고 데이터를 처리하는 제2 프로세서;A second processor for controlling peripherals in the second unit and processing data; 상기 제2 프로세서의 프로그램을 저장하는 제 2 메모리;A second memory for storing a program of the second processor; 상기 제2 프로세서의 제어신호에 따라 운용상태이면 상기 제 2 유닛의 데이터를 기록하고, 대기상태이면 상기 제 1 유닛의 데이터를 기록하는 제 2 데이터 저장부; 및A second data storage unit configured to record data of the second unit in an operating state according to a control signal of the second processor, and to record data of the first unit in a standby state; And 상기 제2 프로세서의 제어에 따라 공통버스를 통해 상기 공통메모리 혹은 상기 제 1 유닛과의 데이터 입출력을 통제하는 제2 공통버스용 버퍼를 포함하는 것을 특징으로 하는 프로세서 이중화 시스템.And a second common bus buffer controlling data input / output with the common memory or the first unit through a common bus under the control of the second processor. 제 1 항에 있어서, 상기 제 1 데이터 저장부 또는 제 2 데이터 저장부 각각은,The method of claim 1, wherein each of the first data storage unit or the second data storage unit, 상기 프로그램 운용상에 필요한 각종 변수 및 데이터를 기록하고 갱신하기 위한 램;RAM for recording and updating various variables and data necessary for the program operation; 상기 공통버스와 상기 램을 연결하는 자국버스(LOCAL BUS) 상에 로딩된 데이터의 입출력을 제어하기 위한 자국버스용 버퍼; 및A local bus buffer for controlling input / output of data loaded on a local bus connecting the common bus and the RAM; And 제어신호에 따라 상기 자국버스용 버퍼의 입출력을 제어하여, 상기 램의 쓰기 동작을 통제하는 버퍼제어부를 포함하는 것을 특징으로 하는 프로세서 이중화 시스템.And a buffer controller to control the write operation of the RAM by controlling input / output of the local bus buffer according to a control signal. 제 2 항에 있어서, 상기 버퍼 제어부는The method of claim 2, wherein the buffer control unit 리셋단자(RESET)를 갖고 전원리셋신호(PW_RST)에 의해 활성화되는 제1 플립플롭;A first flip-flop having a reset terminal RESET and activated by a power reset signal PWM_RST; 쓰기 제어신호(WR_CTL)에 의해 초기화신호(INIT_COM)를 입력받아 상기 제1 플립플롭의 리셋단자로 제공하는 제2 플립플롭;A second flip-flop which receives the initialization signal INIT_COM by a write control signal WR_CTL and provides it as a reset terminal of the first flip-flop; 상기 제1 플립플롭의 출력신호 및 상태제어신호()를 제공받아 논리합 연산하여 선택신호(SEL_SIN)를 출력하는 OR 게이트; 및An output signal and a state control signal of the first flip-flop OR gate to receive OR and output the select signal SEL_SIN; And 상기 선택신호(SEL_SIN)에 따라 자국유닛으로부터 제공되는 자국칩선택신호(Local Chip Select; LCS)와, 원격유닛으로부터 제공되는 원격칩선택신호(Remote Chip Select; RCS)중 어느 하나를 칩선택신호(CHIP_SEL)로 출력하는 멀티플렉서로 구성되는 것을 특징으로 하는 프로세서 이중화 시스템.According to the selection signal SEL_SIN, any one of a local chip select signal (LCS) provided from a local station unit and a remote chip select signal (RCS) provided from a remote unit may be selected. And a multiplexer for outputting to CHIP_SEL). 제 2 항에 있어서, 상기 자국버스용 버퍼는,The buffer of claim 2, wherein the local bus buffer includes: 상기 칩선택신호(CHIP_SEL)에 의해 어드레스, 데이터, 쓰기 제어신호를 자국버스를 통해 입력받아 상기 램에 저장하는 것을 특징으로 하는 프로세서 이중화 시스템.And the address, data, and write control signals are received through the local bus by the chip select signal (CHIP_SEL) and stored in the RAM.
KR1020000055970A 2000-09-23 2000-09-23 Processor duplication system KR20010015489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000055970A KR20010015489A (en) 2000-09-23 2000-09-23 Processor duplication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000055970A KR20010015489A (en) 2000-09-23 2000-09-23 Processor duplication system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR2019980016267U Division KR20000005448U (en) 1998-08-28 1998-08-28 Processor redundancy system

Publications (1)

Publication Number Publication Date
KR20010015489A true KR20010015489A (en) 2001-02-26

Family

ID=19690108

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000055970A KR20010015489A (en) 2000-09-23 2000-09-23 Processor duplication system

Country Status (1)

Country Link
KR (1) KR20010015489A (en)

Similar Documents

Publication Publication Date Title
US5125081A (en) Inter-configuration changing controller based upon the connection and configuration information among plurality of clusters and the global storage
US4467454A (en) High-speed external memory system
JP2001167005A (en) Method and circuit for diagnosing memory and semiconductor memory device
KR20000005448U (en) Processor redundancy system
KR20010015489A (en) Processor duplication system
JPS60123952A (en) Input-output controlling system
JP2002229692A (en) Information processing device
KR0174608B1 (en) Microcomputer with direct memory access function and control method
JPH07129524A (en) High speed switching device of duplex system
JP2919357B2 (en) CPU interface circuit
JPH01239485A (en) Large-scale integrated circuit
KR100337296B1 (en) Apparatus and Method for Data Copy between Duplicated Circuit Board
KR0174211B1 (en) Data access device for parallel programmable controller
JP2002259209A (en) Arithmetic processing system
JPH05290589A (en) Semiconductor integrated circuit
JPS62171059A (en) Storage device
JPH046482A (en) Semiconductor device
JPH07281917A (en) Cpu switchin circuit
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPH01205257A (en) Integrated circuit
JPH047771A (en) Composite system
JPH0744488A (en) Data transfer system
JPS6236268B2 (en)
JP2000215042A (en) In-operation update system for control program
KR20020087749A (en) Dual apparatus and method of data in-output

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application
J201 Request for trial against refusal decision
AMND Amendment
AMND Amendment
B601 Maintenance of original decision after re-examination before a trial
N231 Notification of change of applicant
J301 Trial decision

Free format text: TRIAL DECISION FOR APPEAL AGAINST DECISION TO DECLINE REFUSAL REQUESTED 20011011

Effective date: 20030430

Free format text: TRIAL NUMBER: 2001101003390; TRIAL DECISION FOR APPEAL AGAINST DECISION TO DECLINE REFUSAL REQUESTED 20011011

Effective date: 20030430

S901 Examination by remand of revocation
GRNO Decision to grant (after opposition)
NORF Unpaid initial registration fee