KR970004522B1 - Preempt request arbitrator among bus masters - Google Patents

Preempt request arbitrator among bus masters Download PDF

Info

Publication number
KR970004522B1
KR970004522B1 KR1019940017547A KR19940017547A KR970004522B1 KR 970004522 B1 KR970004522 B1 KR 970004522B1 KR 1019940017547 A KR1019940017547 A KR 1019940017547A KR 19940017547 A KR19940017547 A KR 19940017547A KR 970004522 B1 KR970004522 B1 KR 970004522B1
Authority
KR
South Korea
Prior art keywords
signal
request
receiving
bus master
arbitration
Prior art date
Application number
KR1019940017547A
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 KR1019940017547A priority Critical patent/KR970004522B1/en
Application granted granted Critical
Publication of KR970004522B1 publication Critical patent/KR970004522B1/en

Links

Landscapes

  • Bus Control (AREA)

Abstract

A device for mediating preempt request between bus masters is disclosed. The device comprises a bus master control means outputting a response signal to a requested signal when a state control signal for controlling the response signal is inputted after a preempt request signal between a plurality of bus masters is stored when the preempt request signal is input, and a mediation control means outputting the state control signal to the bus master control means by receiving a response signal after the response signal is transferred to a main processor by receiving an external mediation mode determination signal and a plurality of the request signal. Thus, the bus master operation is not disturbed and the mediation time is reduced.

Description

버스 마스타간의 선취요청 중재 장치Arbitration request mediation device between bus masters

제1도는 본 발명에 따른 선취요청 중재장치의 블럭 구성도.1 is a block diagram of a lien request arbitration apparatus according to the present invention.

제2도는 본 발명에 따른 버스 마스타 제어부의 상세도.2 is a detailed view of a bus master controller according to the present invention.

제3도는 본 발명에 따른 중재 제어부의 상세도.3 is a detailed view of an arbitration control unit according to the present invention.

제4도는 본 발명에 따른 타이밍도.4 is a timing diagram according to the present invention.

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

1 : 버스 마스타 제어부2 : 중재 제어부1: bus master control unit 2: arbitration control unit

11 내지 11n : 래치12 내지 12n : 낸드게이트11 to 11n: Latch 12 to 12n: NAND gate

21 : 타이머22 내지 22n : 상태 제어부21: timer 22 to 22n: state control unit

23 내지 23n : 인버터24 : 멀티플렉서23 to 23n: Inverter 24: Multiplexer

25 : 앤드게이트25: Andgate

본 발명은 버스 마스타간의 선취(preempt)요청 중재 장치에 관한 것이다.The present invention relates to a preempt request mediation device between bus masters.

종래의 버스 마스타 중재 방식은 직렬식, 병렬식, 순환식이 있다. 상기한 세가지 경우에서 하위 버스 마스타 요청(Request)이 발생되면, 상위 우선권을 가지는 버스 마스타라 할지라도 현행 요청이 끝날때까지 기다려야하며, 현재 진행중인 버스 마스타 요청이 끝나면 다시 중재를 통해 다음 버스 마스타 요청을 결정해야만 한다. 즉, 일반적으로 사용되는 버스 마스타 중재의 경우 우선순위 개념을 들 수 있으나, 현재 요청 되는 버스 마스타 동작이 종료되지 않을 경우 상위 우선순위 요청은 응답을 받을 수 없고, 현재 요청이 종료되었다 할지라도 다시 중재과정을 통해서 응답을 획득해야만 한다. 이것은 현재 진행되는 동작을 보호함으로서 시스템의 오동작을 방지하기 위한 것인데, 이런 경우 상위 우선권을 가졌음에도 불구하고, 현재 진행 중인 요청이 종료될 때까지의 대기 시간이 필요하고, 또다시 중재에 필요한 시간을 가져야 하는 문제점이 있었다.Conventional bus master arbitration methods are serial, parallel, and recursive. In the above three cases, when a lower bus master request is generated, even if the bus master with the higher priority has to wait until the current request is completed, the next bus master request is requested through mediation again when the current bus master request is completed. You must decide. In other words, in the case of commonly used bus master arbitration, there is a concept of priority, but if the currently requested bus master operation is not terminated, the higher priority request cannot receive a response and mediates again even if the current request is terminated. You must get a response through the process. This is to prevent the system from malfunctioning by protecting the current operation. In this case, despite the high priority, there is a waiting time until the current request ends. There was a problem to have.

상기 종래 기술의 문제점을 해결하기 위하여 안출된 본 발명은 버스 마스타간 요청 충돌이 발생하여 상위 우선권의 요청이 발생하였을 때 현재 진행중인 하위 우선권에 요청을 포기하도록 하여 상위 버스 마스타에 우선권을 주는 동시에 하위 우선권의 요청이 해제되었다는 것을 감지한 후, 우선권이 중단된 하위 버스 마스타에는 복구할 시간을 부여하고, 또 다시 중재를 통한 버스 소유 과정을 거치지 않고, 이미 종료된 하위 우선권의 권한을 그대로 이용함으로써 시스템의 오동작을 방지할 수 있고, 버스 마스타 중재를 다시 보정해야 하는 시간을 단축시킬 수 있도록 한 버스 마스타간의 선취 요청 중재 장치를 제공하는데 그 목적이 있다.The present invention devised to solve the problems of the prior art is to give a priority to the lower bus priority by giving up the request to the lower priority currently in progress when a request conflict between the bus master occurs and the higher priority request occurs, while at the same time lower priority After detecting that the request has been released, the sub-bus master whose priority has been suspended is given time to recover, and again, without having to go through the bus ownership process through arbitration, and using the rights of the lower-priority already terminated. It is an object of the present invention to provide a preemptive request arbitration device between bus masters that can prevent malfunctions and shorten the time required to recalibrate bus master arbitration.

상기 목적을 달성하기 위한 본 발명을 이루는 장치의 구성은, 다수의 버스 마스타 선취(Preempt)요청신호가 입력되면 이를 일시 저장한 후, 응답신호의 제어를 위한 상태 제어신호가 입력되면 요청한 신호에 대한 응답신호를 출력하는 버스 마스타 제어수단; 및 상기 다수의 요청 신호와 외부로 부터의 데이타 라인을 통해 중재 모드 결정 신호를 입력받아 주 프로세서로 요청 신호를 보낸 후, 이에 대한 응답 신호를 수신받아 상태 제어 신호를 상기 버스 마스타 제어수단으로 출력하는 중재 제어수단을 구비한 것을 특징으로 한다.In order to achieve the above object, a device of the present invention may be configured to temporarily store a plurality of bus master preempt request signals and then, if a state control signal for control of a response signal is input, to a request signal. Bus master control means for outputting a response signal; And receiving an arbitration mode determination signal through the plurality of request signals and data lines from the outside, sending a request signal to the main processor, and receiving a response signal to output a state control signal to the bus master control means. And an arbitration control means.

이하, 첨부된 도면을 참조하여 본 발명의 일실시예를 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described an embodiment of the present invention;

제1도는 본 발명인 선취 요청 중재장치의 블럭 구성도로서, 도면에서 1은 버스 마스타 제어부, 2는 중재제어부를 각각 나타낸다.1 is a block diagram of a preemptive request arbitration apparatus according to the present invention, in which 1 represents a bus master controller and 2 represents an arbitration controller.

도면에 도시한 바와 같이 본 발명은, 요청 및 응답이 한쌍인 몇개의 버스 마스타 노선이 있으며, 이 버스 마스타 노선을 통해 버스 마스타 제어부(1)로 요청이 발생되면 중재 제어부(2)에서 요청을 중재한 후 주 프로세서 유닛(MPU)(도시하지 않음)에 최종 요청 신호를 보낸다.As shown in the figure, in the present invention, there are several bus master routes having a pair of requests and responses, and when a request is made to the bus master controller 1 via the bus master route, the arbitration control unit 2 arbitrates the request. It then sends a final request signal to the main processor unit (MPU) (not shown).

이 요청 신호에 의해 상기 주 프로세서 유닛(MPU)으로부터 응답 신호가 들어오면 상기 중재 제어부(2)에서는 상기 버스 마스타 제어부(1)로 상태 제어 신호를 출력하고, 상기 버스 마스타 제어부(1)는 상태 제어신호를 받아 우선권이 있는 요청 노선에 대한 응답 신호를 보내주게 된다. 또한, 상기 중재 제어부(2)는 데이타 라인을 통해서 선취 기능 및 타이밍을 프로그램할 수 있도록 외부와 송수신한다.When the response signal is received from the main processor unit (MPU) by this request signal, the arbitration control unit 2 outputs a state control signal to the bus master control unit 1, and the bus master control unit 1 controls the state. It will receive a signal and send a response signal for the preferred request route. In addition, the arbitration control unit 2 transmits and receives to and from the outside so as to program the preemption function and timing through the data line.

제2도는 본 발명에 따른 버스 마스타 제어부의 회로도를 나타낸다. 먼저, 요청 신호가 들어오면 입력되는 요청 신호의 수만큼의 래치(11 내지 11n)에서는 입력된 요청신호를 일시 저장한다.2 is a circuit diagram of a bus master controller according to the present invention. First, when a request signal is input, the latches 11 to 11n corresponding to the number of request signals inputted temporarily store the input request signal.

상기 다수개의 래치에 각각 연결된 다수개의 부정논리곱(NAND) 게이트(12 내지 12n)는 상기 다수개의 래치(11 내지 11n)로부터의 출력을 입력받고, 중재 제어부(2)로부터 상태 제어 신호를 입력받아 요청 신호에 대한 응답신호를 출력한다.A plurality of NAND gates 12 to 12n connected to the plurality of latches respectively receive outputs from the plurality of latches 11 to 11n and receive state control signals from the arbitration control unit 2. Output a response signal to the request signal.

제3도는 본 발명에 다른 중재 제어부의 상세 구성도를 나타낸다. 도면에 도시한 바와 같이 입력되는 첫번째 요청 신호를 인버터(23)를 통해 반전시키고, 상태 제어기(22)는 인버터(23)에 의해 반전된 요청신호를 지연시키고 있다가 타이머(21)로부터 제어신호가 입력되면 요청신호 0에 대한 상태신호를 0을 출력한다.3 is a detailed block diagram of an arbitration control unit according to the present invention. As shown in the figure, the first request signal inputted is inverted through the inverter 23, and the state controller 22 delays the request signal inverted by the inverter 23, and then the control signal from the timer 21 If it is input, the status signal for request signal 0 is outputted as 0.

두번째 요청 신호부터 n번째 요청 신호까지는 해당 요청 신호를 각각의 인버터를 통해 반전시키고, 논리곱(AND) 게이트(25)는 자신의 요청신호와 자신의 요청 신호 이전까지의 요청 신호를 입력받아 논리곱하여 상태 제어기(22n)로 출력한다.From the second request signal to the nth request signal, the corresponding request signal is inverted through each inverter, and the AND gate 25 receives an AND signal of the request signal and the request signal up to the request signal before the request signal. Output to state controller 22n.

또한, 외부에서 입력된 프리엠트 인에이블 신호는 멀티 플렉서(24)에 입력되며, 멀티 플렉서(24)는 프리엠트 인에이블 신호의 제어를 받아 기준 전위(하이) 값을 논리곱 게이트(25)로 출력한다.In addition, an externally input preamble enable signal is input to the multiplexer 24, and the multiplexer 24 is controlled by the preemp enable signal to multiply the reference potential (high) by the AND gate 25. )

논리곱 게이트(25)는 자신의 번째에 해당하는 요청신호와 자신의 요청 신호 이전까지의 요청신호와 상기 멀티 플렉서(24)의 출력을 입력받아 논리곱하여 상태 제어기(22n)로 출력한다.The AND gate 25 receives the request signal corresponding to its own number, the request signal until its own request signal, and the output of the multiplexer 24, and outputs the AND signal to the state controller 22n.

상태 제어기(22n)는 각각의 논리곱 게이트(25)로부터 출력을 입력받아 상기 타이머(21)의 제어에 의해 각각의 요청신호에 대한 응답 신호의 출력을 제어하기 위한 상태제어신호를 버스 마스타 제어부(1)로 출력한다. 상기와 같이 구성된 중재 제어부는 상위 신호가 하위 신호의 요청을 중단시키기 위한 것이다.The state controller 22n receives an output from each AND gate 25 and outputs a state control signal for controlling the output of a response signal to each request signal under the control of the timer 21. Output to 1). The arbitration control unit configured as described above is for the upper signal to interrupt the request for the lower signal.

중재 장치에 프로그램 가능케 함으로써 버스 마스타간의 성능 차이가 없을 경우엔 선취 신호를 디스에이블(disable)시키고, 성능차이가 있을 경우엔 인에이블(enable)시켜서 고속 성능 버스 마스타가 중재시간을 줄이면서 저속 성능 버스 마스터가 획득한 응답을 빌려 쓸 수 있게 만든다.Programmable arbitrators enable the preemption signal to be disabled when there are no performance differences between bus masters and enable if there is a performance difference, allowing the high speed bus master to reduce arbitration time Allows the master to borrow the responses obtained.

또한, 타이머에 어떤 값을 프로그램함에 의해 상위 버스 마스타가 동작중인 하위 버스 마스타의 응답을 해제시킨 후, 하위 버스 마스타 요청이 해제될 때 까지 기다리지 않고 프로그램된 타임에 의해 상위 버스 마스타에 응답을 줌으로써 중재시간을 더욱 절약할 수 있다.Also, by arranging a value in the timer, the host bus releases the response of the active bus master and then responds to the host bus master by the programmed time without waiting for the request of the master bus master to be released. You can save more time.

여기서 타이머 프로그램은 시스템 동작에 영향을 주지않는 범위 내에서 결정되어야 한다.The timer program must be determined within a range that does not affect system operation.

제4도에서 보는 바와 같이 먼저 하위가 요청이 발생되면 상기 중재 제어부(2)는 하위 요청을 인식하고, A와 같이 MPU 요청을 발생시킨다. MPU 응답이 발생되면 인식된 하위 요청에 대해서 C와 같이 하위 응답을 발생시켜준다. 이것은 제2도의 로직을 통해서 이루어진다. 하위 요청의 동작이 이루어지고 있는 동안 상위 요청이 발생되면 제4도의 D처럼 상위 요청은 하위 요청의 응답을 해제(Release)시키고, 하위 응답이 해제되면 하위 버스 마스타는 E처럼 자신의 요청을 해제시킨다. 이때 하위 버스 마스타는 동작상태를 저장하고 다음 요청을 준비해야 한다. 그 후 F와 같이 응답 신호를 내보내고, 이때 MPU 요청 및 응답은 하위 요청이 획득한 상태로 계속 유지된다.As shown in FIG. 4, when the lower request is first generated, the arbitration control unit 2 recognizes the lower request and generates an MPU request as shown in A. FIG. When the MPU response occurs, it generates a lower response like C for the recognized lower request. This is done through the logic of FIG. If an upper request is generated while the lower request is in progress, the upper request releases the response of the lower request, as shown in D in FIG. 4, and when the lower response is released, the lower bus master releases its request as E. . The lower bus master must then save the operating state and prepare for the next request. The response signal is then sent as F, where the MPU request and response are kept in the state obtained by the lower request.

상위 요청이 응답을 획득한 후에는 동작을 수행할 수 있으며, 상위 버스 마스타의 해제는 제4도는 G, H, I의 순으로 이루어지게 된다.After the upper request obtains the response, the operation can be performed, and the upper bus master is released in order of FIG. 4 in the order of G, H, and I.

본 발명은 버스 마스타간의 중재가 필요한 경우 특히, 프리엠트 동작을 필요로 하는 모든 버스 구조에 적용가능하다.The present invention is applicable to all bus structures that require premute operation, particularly where arbitration between bus masters is required.

상기와 같이 이루어지는 본 발명은 상위 버스 마스타의 요청을 정확히 보장해 주고, 또한 진행중인 하위 버스 마스타가 갑작스런 요청 해제에 대비할 시간을 줌으로써, 버스 마스타 동작에 지장을 주지않고 중재 과정을 다시 거침없이 상위 버스 마스타가 응답을 획득함으로써 중재시간을 절약할 수 있다.According to the present invention, the upper bus master accurately guarantees the request of the upper bus master, and also provides a time for the lower bus master in progress to prepare for the sudden release of the request. Obtaining a response can save arbitration time.

Claims (3)

다수의 버스 마스타 선취(Preempt) 요청신호가 입력되면 이를 일시 저장한 후, 응답신호의 제어를 위한 상태 제어 신호가 입력되면 요청한 신호에 대한 응답신호를 출력하는 버스 마스타 제어수단; 및 상기 다수의 요청 신호와 외부로부터의 데이터 라인을 통해 중재 모드 결정 신호를 입력받아 주 프로세서로 요청 신호를 보낸 후, 이에 대한 응답 신호를 수신받아 상태 제어 신호를 상기 버스 마스타 제어수단으로 출력하는 중재 제어수단을 구비한 것을 특징으로 하는 버스 마스타간의 선취요청 중재 장치.Bus master control means for temporarily storing a plurality of bus master preempt request signals and then outputting a response signal to the requested signal when a state control signal for controlling the response signal is input; And an arbitration mode receiving signal for receiving an arbitration mode decision signal through the plurality of request signals and data lines from the outside, and receiving a response signal, and outputting a status control signal to the bus master control means. A preemption request arbitration device between bus masters, comprising a control means. 제1항에 있어서, 상기 버스 마스타 제어수단은, 다수의 프리엠트 요청 신호를 입력받아 일시 저장후 출력하는 다수의 래치수단; 상기 래치수단의 출력과 상기 중재제어수단으로부터의 상태 제어신호를 입력받아 요청 신호에 대한 응답 신호를 출력하는 상기 각각의 래치수단에 연결된 다수의 부정논리곱수단을 구비한 것을 특징으로 하는 버스 마스타간의 선취요청 중재 장치.2. The apparatus of claim 1, wherein the bus master control means comprises: a plurality of latch means for receiving a plurality of premite request signals and temporarily storing and outputting the received signal; And a plurality of negative logical multiplication means connected to each latch means for receiving an output of the latch means and a state control signal from the arbitration control means and outputting a response signal to the request signal. Preemption Arbitration Device. 제1항에 있어서, 상기 중재제어수단은, 자신의 번째에 해당하는 요청 신호를 반전시키는 반전수단; 외부로부터 입력된 데이타에 따라 계수하여 그 계수 값을 출력하는 계수수단; 상기 첫번째 반전수단의 출력을 입력 받아 상기 계수수단으로부터 제어신호가 입력되면 첫번째 요청신호에 대한 상태제어신호를 상기 버스 마스타 제어수단(1)으로 출력하는 제1상태 제어수단; 기준전위에 연결되어 외부의 프리엠트 인에이블 신호에 의해 제어되어 기준전위를 출력하는 선택수단; 상기 자신의 번째에 해당하는 반전수단으로부터 출력을 입력받고, 첫번째 요청 신호를 제외한 자신 번째 이전의 요청신호를 입력받고, 상기 선택수단의 출력을 입력받아 논리곱하는 다수의 논리곱수단; 및 상기 다수의 논리곱수단의 출력을 각각 입력받아 상기 계수수단의 제어에 의해 각각의 요청신호에 대한 상태제어신호를 상기 버스 마스타 제어수단으로 출력하는 다수의 제2상태 제어수단을 구비한 것을 특징으로 하는 버스 마스타간의 선취요청 중재 장치.2. The apparatus of claim 1, wherein the arbitration control means comprises: inverting means for inverting a request signal corresponding to its own th; Counting means for counting according to data input from the outside and outputting the count value; First state control means for receiving the output of the first inverting means and outputting a state control signal for the first request signal to the bus master control means (1) when a control signal is input from the counting means; Selection means connected to the reference potential and controlled by an external premite enable signal to output a reference potential; A plurality of logical multiplication means for receiving an output from the inverting means corresponding to its own number, receiving a first previous request signal except for a first request signal, and receiving and outputting the output of the selection means; And a plurality of second state control means for receiving outputs of the plurality of logical multiplication means, respectively, and outputting a state control signal for each request signal to the bus master control means under control of the counting means. Arbitration request mediation device between bus masters.
KR1019940017547A 1994-07-20 1994-07-20 Preempt request arbitrator among bus masters KR970004522B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940017547A KR970004522B1 (en) 1994-07-20 1994-07-20 Preempt request arbitrator among bus masters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940017547A KR970004522B1 (en) 1994-07-20 1994-07-20 Preempt request arbitrator among bus masters

Publications (1)

Publication Number Publication Date
KR970004522B1 true KR970004522B1 (en) 1997-03-28

Family

ID=19388419

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940017547A KR970004522B1 (en) 1994-07-20 1994-07-20 Preempt request arbitrator among bus masters

Country Status (1)

Country Link
KR (1) KR970004522B1 (en)

Similar Documents

Publication Publication Date Title
EP0166272B1 (en) Processor bus access
EP0162050B1 (en) Improved access-arbitration scheme
US5119480A (en) Bus master interface circuit with transparent preemption of a data transfer operation
US4137565A (en) Direct memory access module for a controller
US4920486A (en) Distributed arbitration apparatus and method for shared bus
US5195185A (en) Dynamic bus arbitration with concurrent same bus granting every cycle
US4131942A (en) Non-volatile storage module for a controller
JPH0268632A (en) Interruption controller
KR100708096B1 (en) Bus system and execution scheduling method for access commands thereof
JP2708289B2 (en) Access request arbitration device
US4131945A (en) Watch dog timer module for a controller
US5038274A (en) Interrupt servicing and command acknowledgement system using distributed arbitration apparatus and shared bus
US6504854B1 (en) Multiple frequency communications
KR970004522B1 (en) Preempt request arbitrator among bus masters
US4131944A (en) System bus module for a controller
CA1199416A (en) High performance serial polling technique for bus arbitration in data processing systems and the like
JP3093374B2 (en) Interrupt controller
KR960001267B1 (en) Input/output processing arbitrator for ticom system
KR100244471B1 (en) Direct memory access controller and control method
JPH0528093A (en) Circuit for generating burst transfer end interrupt signal
JPS60222951A (en) Data transfer system
JPH0381834A (en) Interruption control device
JP2003216569A (en) External bus access method
JPH02222059A (en) Multiprocessor system
JPS63188257A (en) Bus acquiring system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
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: 20050620

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee