KR920003018Y1 - Memory sharing circuit between various type cpus - Google Patents

Memory sharing circuit between various type cpus Download PDF

Info

Publication number
KR920003018Y1
KR920003018Y1 KR2019890021113U KR890002113U KR920003018Y1 KR 920003018 Y1 KR920003018 Y1 KR 920003018Y1 KR 2019890021113 U KR2019890021113 U KR 2019890021113U KR 890002113 U KR890002113 U KR 890002113U KR 920003018 Y1 KR920003018 Y1 KR 920003018Y1
Authority
KR
South Korea
Prior art keywords
cpu
signal
ram
unit
memory
Prior art date
Application number
KR2019890021113U
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 KR2019890021113U priority Critical patent/KR920003018Y1/en
Application granted granted Critical
Publication of KR920003018Y1 publication Critical patent/KR920003018Y1/en

Links

Landscapes

  • Multi Processors (AREA)

Abstract

내용 없음.No content.

Description

서로 다른 기종의 CPU간 메모리 공유회로Memory sharing circuit between different models of CPU

제1도는 본 고안에 따른 회로도.1 is a circuit diagram according to the present invention.

제2도는 제1도중 제어로직부(80)의 진리표.2 is a truth table of the control logic unit 80 in FIG.

제3a도 및 제3b도는 제1도의 각부분의 동작파형도.3A and 3B are operational waveform diagrams of respective parts of FIG.

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

10 : 제1CPU 20 : 제2CPU10: first CPU 20: second CPU

30 : 공유메모리부 40 : 제1디코더30: shared memory 40: first decoder

50 : 제1CPU메모리선택제어부 60 : 제2디코더50: first CPU memory selection control unit 60: second decoder

70 : 제2CPU메모리선택제어부 80 : 제어로직부70: second CPU memory selection control unit 80: control logic unit

90 : 제1어드레스버스구동부 92 : 제1a어드레스버스구동부90: first address bus driver 92: 1a address bus driver

94 : 제1b어드레스버스구동부 100 : 제1데이타버스 트랜시버부94: 1b address bus drive unit 100: 1st data bus transceiver unit

102 : 제1a데이타버스 트랜시버부 104 : 제1b데이타버스 트랜시버부102: 1a data bus transceiver unit 104: 1b data bus transceiver unit

110 : 제2어드레스버스구동부 112 : 제2a어드레스버스구동부110: second address bus driver 112: second address bus driver

114 : 제2b어드레스버스구동부 120 : 제2데이타버스 트랜시버부114: second bus address drive unit 120: second data bus transceiver unit

122 : 제2a데이타버스 트랜시버부 124 : 제2b데이타버스 트랜시버부122: 2b data bus transceiver section 124: 2b data bus transceiver section

130 : 제1CPU액세스제어부 140 : 제2CPU액세스제어부130: first CPU access control unit 140: second CPU access control unit

150 : 제1CPU대기신호발생부 160 : 제2CPU대기신호발생부150: first CPU standby signal generator 160: second CPU standby signal generator

G1, G4 : 앤드게이트 G2-G3, G5-G6 : 오아게이트G1, G4: Endgate G2-G3, G5-G6: Oagate

TB1-TB8 : 3상태버퍼 R1-R4 : 저항TB1-TB8: tri-state buffer R1-R4: resistance

본 고안은 이 기종CPU(Central Processing Unit)간의 메모리(Memory)공유 회로에 관한 것으로 특히 CPU를 이용한 디지털 시스템(Digital System)에 있어서 사용 데이타(Data)의 크기가 서로 다른 두 기종의 CPU의 메모리 공유를 제어하는 회로에 관한 것이다.The present invention relates to a memory sharing circuit among the different types of CPUs (Central Processing Unit). Especially, in a digital system using a CPU, the memory sharing of two CPUs having different data sizes is used. It relates to a circuit for controlling the.

현재 다수의 CPU를 사용하는 디지털 시스템에서 두 CPU간의 메모리 공유는 일반적으로 같은 크기의 데이타를 취급하는 동기종의 CPU간에 이루어지고 있다.In digital systems using multiple CPUs, memory sharing between two CPUs is generally performed between synchronous CPUs that handle data of the same size.

또한 상기와 같이 동기종의 CPU간에 메모리 공유를 의하여 두 CPU에 의한 공유메모리의 사용요구를 적절히 제어하여 데이타의 충돌없이 원활한 메모리의 공유가 이루어지도록 하고 있다.In addition, as described above, by using memory sharing between CPUs of the same type, the use of shared memory by the two CPUs is properly controlled so that smooth memory sharing is achieved without data collision.

한편 상기와 같은 종래의 메모리 공유방식은 메모리 공유를 위하여 전용IC(Intergrated Circuit) 또는 특별히 설계된 메모리를 사용하거나 별도의 인터페이스(Interface)회로를 설계하여 제어해야 하는 문제점이 있었다. 또한 취급하는 데이타가 8비트(Bit)인 CPU와 16비트인 CPU간의 메모리공유를 실현시키고자 할 때는 상기와 같은 동기종 CPU의 메모리 공유방식과 또 다른 전용 IC를 사용하거나 복잡한 회로를 설계하여 사용해야 하는 결점이 있었다.On the other hand, the conventional memory sharing method as described above has a problem of controlling by using a dedicated IC (Intergrated Circuit) or a specially designed memory or designing a separate interface circuit for memory sharing. In addition, in order to realize memory sharing between an 8-bit CPU and a 16-bit CPU, the memory sharing method of the same type CPU and another dedicated IC or a complicated circuit should be used. There was a flaw.

따라서 본 고안의 목적은 서로 다른 기종의 CPU를 사용하는 디지털 시스템에 있어서, 서로 다른 두 개의 기종의 CPU간에 메모리를 공유할 수 있는 메모리공유 회로를 제공함에 있다.Accordingly, an object of the present invention is to provide a memory sharing circuit capable of sharing a memory between two different CPU types in a digital system using different CPU types.

이하 본 고안을 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제1도는 본 고안에 따른 회로도로서, 처리하는 데이타의 크기가 8비트인 제1CPU(10) 및 16비트인 제2CPU(20)와, 제1램(RAM)(32) 및 제2램(34)으로 구성된 공유메모리부(30)와, 상기 제1CPU(10)의 메모리인에이블(Enable)신호와 어드레스(Address)에 의해 상기 제1CPU(10)의 상기 제1램(32)을 선택하는 제1램선택신호및 상기 제2램(34)을 선택하는 제2램선택신호를 출력하는 제1디코더(Decoder)(40)와, 상기 제1디코더(40)의 출력을 제어하는 제1CPU메모리선택제어부(50)와, 상기 제2CPU(20)의 메모리인에이블신호와 어드레스에 의해 상기 제2CPU(20)가 상기 제1램(32)을 선택하는 제1램선택신호및 상기 제2램(34)을 선택하는 제2램선택신호를 출력하는 제2디코더(60)와, 상기 제2디코더(60)의 출력을 제어하는 제2CPU 메모리선택제어부(70)와, 상기 제1CPU 메모리선택제어부(50)의 출력과 상기 제2CPU메모리선택제어부(70)의 출력을 입력하여 소정의 제어로직(Logic)에 의해 제1CPU버스인에이블신호와 제2CPU버스인에이블신호와 제1램인에이블신호및 제2램인에이블신호를 발생하는 제어로직부(80)와, 상기 제어로직부(80)의 제1CPU버스인에이블신호에 의해 어드레스버스를 상기 제1CPU(10)에 연결하는, 제1a, 제1b어드레스버스구동부(92-94)로 구성된 제1어드레스버스구동부(90) 및 데이타버스를 상기 제1CPU(10)에 연결하는 제1a, 제1b데이타버스 트랜시버(Transceiver)부(102-104)로 구성된 제1데이타버스 트랜시버부(100)와, 상기 제어로직부(80)의 제2CPU인에이블신호에 의해 어드레스버스를 상기 제2CPU(20)에 연결하는 제2a, 제2b어드레스버스구동부(112-114)로 구성된 제2어드레스버스구동부(10) 및 데이타버스를 상기 제2CPU(20)에 연결하는 제2a, 제2b데이타버스 트랜시버부(122-124)로 구성된 제2데이타버스 트랜시버부(120)와, 상기 제어로직부(80)의 제1CPU버스인에이블신호또는 제2CPU버스인에이블신호에 의해 상기 제1CPU(10) 또는 상기 제2CPU(20)에 의한 상기 공유메모리(30)의 액세스(Access)를 제어하는 제1CPU 액세스제어부(130) 및 제2CPU 액세스제어부(140)와, 상기 제2CPU(20)가 상기 공유메모리(30)를 액세스중 상기 제1CPU(10)가 공유메모리부(30)를 액세스하고자 할 때 대기신호를 발생하여 상기 제1CPU(10)를 대기시키는 제1CPU대기신호발생부(150)와, 상기 제1CPU(10)가 상기 공유메모리부(30)를 액세스중 상기 제2CPU(20)가 공유메모리부(30)를 액세스하고자 할 때 대기신호를 발생하여 상기 제2CPU(20)를 대기시키는 제2CPU 대기신호발생부(160)로 구성된다.FIG. 1 is a circuit diagram according to the present invention, in which the size of data to be processed is the first CPU 10 having 8 bits and the second CPU 20 having 16 bits, the first RAM 32, and the second RAM 34. Memory enable signal of the first CPU 10 and the shared memory unit 30 And a first RAM selection signal for selecting the first RAM 32 of the first CPU 10 based on the address and the address. And a second RAM selection signal for selecting the second RAM 34. A first decoder (40) for outputting the first decoder, a first CPU memory selection controller (50) for controlling the output of the first decoder (40), and a memory enable signal of the second CPU (20). And a first RAM selection signal for selecting the first RAM 32 by the second CPU 20 according to And a second RAM selection signal for selecting the second RAM 34. A second decoder 60 for outputting a signal, a second CPU memory selection controller 70 for controlling the output of the second decoder 60, an output of the first CPU memory selection controller 50, and a second CPU memory selection; Input the output of the control unit 70 and the first CPU bus enable signal by a predetermined control logic (Logic) And second CPU bus enable signal And the first RAM enable signal And second RAM enable signal The control logic unit 80 for generating a signal and the first CPU bus enable signal of the control logic unit 80 A first address bus driver 90 and a data bus, each of which is configured as a first bus address driver 92-94 and a data bus, which connect an address bus to the first CPU 10 by means of the first bus 10, respectively. The first data transceiver section 100, consisting of the first 1a, 1b data bus transceiver (102-104) and the second CPU enable signal of the control logic (80) Connecting the second address bus driver 10 and the data bus including the second bus drivers 112 to 114 to connect the address bus to the second CPU 20 to the second CPU 20. A second data bus transceiver unit 120 including the second and second data bus transceiver units 122-124, and a first CPU bus enable signal of the control logic unit 80; Or second CPU bus enable signal A first CPU access control unit 130 and a second CPU access control unit 140 controlling the access of the shared memory 30 by the first CPU 10 or the second CPU 20 by Waiting signal when the first CPU 10 attempts to access the shared memory unit 30 while the CPU 20 is accessing the shared memory 30. The first CPU standby signal generator 150 to wait for the first CPU 10 to generate the first CPU 10, the first CPU 10 is accessing the shared memory unit 30, the second CPU 20 is shared memory unit Wait signal when trying to access 30 And a second CPU wait signal generator 160 to wait for the second CPU 20 to wait.

상기 제1도의 구성중 공유메모리부(30)는 칩선택단에 입력되는 상기 제어로직부(80)의 제1, 제2램인에이블신호에 의해 선택되어 출력인에이블 신호단에 상기 제1CPU(10) 또는 상기 제2CPU(20)의 리드(Reed)신호를 입력하고 라이트(Write) 인에이블신호단에 라이트신호를 입력하여 어드레스버스 및 데이타버스에 연결되는 제1램(32) 및 제2램(34)으로 구성된다.Shared memory unit 30 of the configuration of Figure 1 is a chip Selection First and second ram enable signals of the control logic unit 80 input to the Output Enable Signal Stage Selected by Reed signal of the first CPU 10 or the second CPU 20 to the Input and write enable signal Light signal And a first RAM 32 and a second RAM 34 connected to the address bus and the data bus.

제1CPU메모리선택제어부(50)는 상기 제1디코더(50)의 출력단과 상기 제어로직부(80)의 입력단에 접속되며 상기 제2CPU버스인에이블신호에 의해 각각 상기, 제1, 제2램선택신호를 제어하는 제3상태버퍼(TB1, TB2)와, 상기 제3상태버퍼(TB1, TB2)의 출력단에 각각 접속되어 상기 제3상태버퍼(TB1-TB2)의 출력을 풀업(Pull Up)하는 저항(R1, R2)으로 구성된다.The first CPU memory selection control unit 50 is connected to an output terminal of the first decoder 50 and an input terminal of the control logic unit 80 and the second CPU bus enable signal. By the first and second RAM selection signals, respectively Resistor connected to the output terminal of the third state buffer (TB1, TB2) and the third state buffer (TB1, TB2) for controlling the output pull-up (Pull Up) of the output of the third state buffer (TB1-TB2) It consists of (R1, R2).

제2CPU 메모리선택제어부(70)는 상기 제2디코더(60)의 출력단과 상기 제어로직부(80)의 입력단에 접속되며 상기 제1CPU 버스인에이블신호에 의해 각각 상기 제1, 제2램선택신호를 제어하는 제3상태버퍼(TB3, TB4)와, 상기 제3상태버퍼(TB3, TB4)의 출력단에 각각 접속되어 상기 제3상태버퍼(TB3, TB4)의 출력을 풀업하는 저항(R3, R4)으로 구성된다.The second CPU memory selection control unit 70 is connected to an output terminal of the second decoder 60 and an input terminal of the control logic unit 80, and enables the first CPU bus enable signal. The first and second RAM selection signal by respectively Resistors R3 and R4 connected to output terminals of the third state buffers TB3 and TB4 and the output terminals of the third state buffers TB3 and TB4 to pull up the outputs of the third state buffers TB3 and TB4, respectively. It is composed of

제어로직부(80)는 상기 제1CPU(10) 및 제2CPU(20)의 공유메모리(80)사용을 제어토록 PAL(Programmable Array Logic) 또는 소정의 논리 IC로 구성될 수 있으며 본 고안에서는 PAL10H8를 사용하여 구성한다.The control logic unit 80 may be configured of a programmable array logic (PAL) or a predetermined logic IC to control the use of the shared memory 80 of the first CPU 10 and the second CPU 20. In the present invention, the PAL10H8 Configure using

제1CPU 액세스제어부(130)는 상기 제어로직부(80)의 제1CPU 인에이블신호에 의해 제1CPU의 리드신호및 라이트신호를 각각 제어하는 제3상태버퍼(TB5, TB6)로 구성된다.The first CPU access control unit 130 is the first CPU enable signal of the control logic unit 80 Read signal of the first CPU And light signal It consists of a third state buffer (TB5, TB6) for controlling each.

제2CPU 액세스제어부(140)는 상기 제어로직부(80)의 제2CPU 인에이블신호에 의해 제2CPU의 리드신호및 라이트신호를 각각 제어하는 제3상태버퍼(TB7, TB8)로 구성된다.The second CPU access control unit 140 performs a second CPU enable signal of the control logic unit 80. Read signal of the second CPU And light signal It consists of a third state buffer (TB7, TB8) for controlling each.

제1CPU대기신호발생부(150)는, 앤드(AND)게이트(G1)와 오아(OR)게이트(G2-G3)로 구성된다.The first CPU standby signal generation unit 150 is composed of an AND gate G1 and an OR gate G2-G3.

제2CPU대기신호발생부(160)는, 앤드게이트(G4)와 오아게이트(G5-G6)로 구성된다.The second CPU standby signal generator 160 is composed of an AND gate G4 and an oragate G5-G6.

제2도는 상기 제1도중 제어로직부(80)의 제어로직의 진리표로서, (A)는 상기 제어로직부(80)의 초기상태를 나타낸다.2 is a truth table of the control logic of the control logic unit 80 in the first diagram, and (A) shows an initial state of the control logic unit 80. As shown in FIG.

(B)는 제1CPU 또는 제2CPU(20)중 하나의 CPU가 공유메모리부(30)를 사용하고자 하는 경우의 상기 제1CPU(10) 또는 제2CPU(20)의 제1램선택신호및 제2램선택신호의 입력에 대하여 상기 공유메모리부(30)의 사용을 요구한 CPU가 공유메모리부(30)를 사용하도록 제어신호를 출력하는 상태를 나타낸다.(B) shows a first RAM selection signal of the first CPU 10 or the second CPU 20 when one CPU of the first CPU or the second CPU 20 intends to use the shared memory unit 30. And second RAM selection signal Control signal to use the shared memory unit 30 by the CPU requesting the use of the shared memory unit 30 for the input of Indicates the status of outputting.

(C)는 상기 제1CPU(10) 및 제2CPU(20)가 동시에 상기 공유메모리부(30)를 사용하고자 하는 경우의 상기 제1CPU(10) 및 제2CPU(20)의 제1램선택신호및 제2램선택신호의 입력에 대하여 우선순위가 높은 제2CPU(20)가 공유메모리부(30)를 사용하도록 제어신호를 출력하는 상태를 나타낸다.(C) shows a first RAM selection signal of the first CPU 10 and the second CPU 20 when the first CPU 10 and the second CPU 20 want to use the shared memory unit 30 at the same time. And second RAM selection signal Control signal so that the second CPU 20 having a high priority with respect to the input of the shared memory unit 30 uses the shared memory unit 30; Indicates the status of outputting.

(D)는 처리하는 데이타의 크기가 8비트인 제1CPU(10)가 상기 공유메모리부(30)의 제1램(32) 및 제2램(34)을 동시에 사용하고자 하는 경우의 신호조합으로서 8비트인 상기 제1CPU(10)가 상기 제1램(32) 및 제2램(34)을 동시에 사용을 요구하는 경우가 없으므로 (A)의 초기상태와 같이 모든 제어신호를 논리"1"인 디제이블(Disable)상태로 출력함을 나타낸다.(D) is a signal combination when the first CPU 10 having the size of data to be processed is to use the first RAM 32 and the second RAM 34 of the shared memory unit 30 simultaneously. Since the first CPU 10 having 8 bits does not require the use of the first RAM 32 and the second RAM 34 at the same time, all the control signals as in the initial state of (A). Output to the disabled state of logic " 1 ".

상기 제2도중 제1CPU(10) 및 제2CPU(20)가 동시에 상기 공유메모리부(30)를 사용하고자 할 때 상기 공유메모리부(30)를 사용토록 하는 우선순위는 설계자의 의도에 따라 변경할 수 있다.When the first CPU 10 and the second CPU 20 intend to use the shared memory unit 30 simultaneously, the priority of using the shared memory unit 30 may be changed according to the designer's intention. have.

제3a도 및 제3b도는 상기 제1도의 각 부분의 동작파형도로서, 제3a도는 상기 제2도의 (B)상태에서 제1CPU(10)와 공유메모리부(30)를 사용하고자 할 경우의 파형을 나타낸 것이다.3A and 3B are operation waveform diagrams of the respective parts of FIG. 1, and FIG. 3A is a waveform when the first CPU 10 and the shared memory unit 30 are to be used in the state (B) of FIG. It is shown.

제3b도는 상기 제2도의 (C)상태 즉, 제1CPU(10)와 제2CPU(20)가 동시에 공유메모리부(30)를 사용하고자 할 경우 우선순위가 제2CPU(20)가 상기 공유메모리부(30)를 사용토록 할 때의 파형을 나타낸 것이다.3B shows the state (C) of FIG. 2, that is, when the first CPU 10 and the second CPU 20 want to use the shared memory unit 30 at the same time, the second CPU 20 has a priority. The waveforms when using (30) are shown.

이하 본 고안에 따른 제1도의 동작예를 제2도의 진리표 및 제3a도 및 제3b도의 동작파형도를 참조하여 상세히 설명한다.Hereinafter, an operation example of FIG. 1 according to the present invention will be described in detail with reference to the truth table of FIG. 2 and the operation waveforms of FIGS. 3A and 3B.

지금 전원이 온되고 제1CPU(10)가 어드레스와 메모리인에이블신호를 출력하면, 제1디코더(40)가 동작하여 제1램선택신호또는 제2램선택신호를 출력한다. 한편 상기 제1CPU(10)에서 제1램선택신호또는 제2램선택신호가 출력될 때 제2b도에서와 같이 제2CPU버스인에이블신호는 논리"1"이므로 제3상태버퍼(TB1-TB2)가 인에이블되어 상기 제1 또는 제2램선택신호는 제어로직부(80)에 입력되어 공유메모리부(30)의 사용을 요구한다. 그러므로 상기 제어로직부(80)에서 제2b도와 같이 제1CPU 버스인에이블신호가 논리"0"으로 출력되므로 제1CPU 어드레스버스구동부(90)와 제1데이타버스 트랜시버부(100)가 인에이블되어 어드레스버스 및 데이타버스가 상기 제1CPU(10)에 연결된다.The power is now on and the first CPU 10 is an address and memory enable signal. Outputs the first decoder 40 to operate the first RAM selection signal. Or second RAM selection signal Outputs Meanwhile, the first RAM selection signal from the first CPU 10 Or second RAM selection signal Is output, the second CPU bus enable signal as shown in FIG. 2B. Is a logic " 1 ", so that the third state buffer TB1-TB2 is enabled so that the first or second RAM select signal Is input to the control logic unit 80 to request the use of the shared memory unit 30. Therefore, as shown in FIG. 2b, the control logic unit 80 enables the first CPU bus enable signal. Is output as a logic " 0 ", so that the first CPU address bus driver 90 and the first data transceiver unit 100 are enabled so that the address bus and data bus are coupled to the first CPU 10.

또한 제3상태버퍼(TB5-TB6)도 인에이블되어 상기 제1CPU(10)의 리드신호및 라이트신호도 공유메모리부(30)에 연결된다.In addition, the third state buffer TB5-TB6 is also enabled to read signal of the first CPU 10. And light signal Also connected to the shared memory unit 30.

그리고 상기 제1CPU버스인에이블신호는 제2CPU대기신호발생부(160)의 오아게이트(G5-G6)에 입력되어 상기 제2CPU(20)가 상기 제1CPU(10)에 의해 사용중인 공유메모리부(30)를 사용하려는 경우 제2CPU(20)에 대기신호를 발생시킬 준비를 한다. 또한 제3상태버퍼(TB5-TB6)를 디제이블시켜 상기 제2CPU(20)의 사용요구에 의한 상기 제어로직부(80)의 상태변화를 방지한다. 한편 제2CPU버스인에이블신호는 제2b도와 같이 논리"1"이므로 상기 제2CPU(20)의 어드레스버스 및 데이타버스는 공유메모리부(30)와 분리되고 리이드신호및 라이트신호도 분리된다. 또한제1CPU(10) 대기신호발생부(150)의 오아게이트(G2-G3)에 논리"1"이 입력되므로 상기 제1CPU(10)의 대기신호는 형상 논리 "1"이 되어 상기 제1CPU(10)가 대기상태로 되지 않게 되며, 제3상태버퍼(TB1-TB2)도 인에이블 상태로 있게 된다.And the first CPU bus enable signal. The second CPU is inputted to the OR gate G5-G6 of the second CPU standby signal generator 160 and the second CPU 20 attempts to use the shared memory unit 30 being used by the first CPU 10. Wait signal at 20 Prepare to generate. In addition, the third state buffer TB5-TB6 is disabled to prevent the state change of the control logic unit 80 caused by the use of the second CPU 20. Meanwhile, the second CPU bus enable signal Is a logic " 1 " as shown in FIG. 2B, so that the address bus and data bus of the second CPU 20 are separated from the shared memory section 30, and the lead signal is And light signal Is also separated. In addition, since logic "1" is input to the oragate G2-G3 of the standby signal generator 150 of the first CPU 10, the standby signal of the first CPU 10 is input. Becomes the shape logic "1 " so that the first CPU 10 is not in the standby state, and the third state buffers TB1-TB2 are also in the enable state.

따라서, 상기 제1CPU(10)는 제1램선택신호또는 제2램선택신호에 의해 공유메모리부(30)의 제1램(32) 또는 제2램(34)을 선택하여 사용한다.Therefore, the first CPU 10 receives the first RAM selection signal. Or second RAM selection signal Selects and uses the first RAM 32 or the second RAM 34 of the shared memory unit 30.

한편 상기와 같이 제1CPU(10)에 의해 공유메모리부(30)가 사용되는 중에 제2CPU(20)가 상기 공유메모리부(30)를 중복하여 사용하고자 어드레스 및 메모리인에이블신호를 출력하여 제2디코더(60)에서 제3a도와 같이 제1램선택신또는 제2램선택신호가 출력되면, 논리"0"인 제1CPU 버스인에이블신호에 의해 제3상태버퍼(TB3-TB4)가 디제이블되어 있으므로 제어로직부(80)에 상기, 제1, 제2램선택신호가 입력되지 않는다. 그러므로 공유메모리부(30)는 상기 제1CPU(10)에 의해 계속사용되어진다.On the other hand, while the shared memory unit 30 is being used by the first CPU 10 as described above, the second CPU 20 uses the address and memory enable signal to duplicate the shared memory unit 30. Outputs the first RAM selection unit as shown in FIG. 3a by the second decoder 60. Or second RAM selection signal Is output, the first CPU bus enable signal that is logical " 0 " Since the third state buffer TB3-TB4 is disabled by the control logic unit 80, the first and second RAM selection signals Is not entered. Therefore, the shared memory unit 30 continues to be used by the first CPU 10.

또한, 상기 제1, 제2램선택신호는 상기 제1CPU 버스인에이블신호와 함께 제2CPU대기신호발생부(160)에 입력되므로 상기 제2CPU대기신호발생부(160)에서 대기신호가 제3a도의 (j)와 같이 논리"0"으로 출력되어 상기 제2CPU(20)가 대기상태로 된다.The first and second RAM selection signals Is the first CPU bus enable signal. And the second CPU standby signal generator 160 is input to the standby signal generator 160 to wait for the signal. Is output as a logic " 0 " as shown in (j) of FIG.

이제 상기 제1CPU(10)의 공유메모리부(30) 사용이 완료되면 제1CPU 버스인에이블신호가 제3a도의 (f)와 같이 논리"1"이 되어 제3상태버퍼(TB3-TB4)가 인에이블된다. 그러므로 제2디코더(60)에서 출력되는, 제1, 제2램선택신호는 제어로직부(80)로 입력되며 논리"1"이 된 상기 제1CPU 버스인에이블신호에 의해 제2CPU대기신호발생부(160)의 대기신호가 다시 논리"1"로 된다. 그러므로 제2CPU(20)는 대기상태에서 해제되고 제2b도의 진리상태 및 제3a도의 (g)와 같이 제2CPU버스인에이블신호가 논리"0"이 되어 상기 제1CPU(10)가 공유메모리부(30)를 사용한 것과 동일하게 상기 제2CPU(20)가 공유메모리부(30)를 사용하게 된다.Now when the use of the shared memory unit 30 of the first CPU 10 is completed, the first CPU bus enable signal Becomes a logic " 1 " as shown in Fig. 3A, and the third state buffer TB3-TB4 is enabled. Therefore, the first and second RAM select signals output from the second decoder 60. Is the first CPU bus enable signal, which is input to the control logic unit 80 and becomes logic " 1 ". Standby signal of the second CPU standby signal generator 160 by Becomes logic "1" again. Therefore, the second CPU 20 is released from the standby state and the second CPU bus enable signal as shown in the true state of FIG. 2b and (g) of FIG. 3a. 0 becomes the logic " 0 " so that the second CPU 20 uses the shared memory unit 30 in the same manner as the first CPU 10 uses the shared memory unit 30. FIG.

또한 제2CPU(20)가 공유메모리부(30)를 사용중에 제1CPU(10)가 중복사용을 요구하는 경우의 동작은 상기 제1CPU(10)의 공유메모리부(30)사용중에 제2CPU(20)가 중복사용을 요구한 경우에 상기한 설명한 것과 같은 과정의 동작이 된다.In addition, when the second CPU 20 uses the shared memory unit 30 and the first CPU 10 requests redundancy, the operation of the second CPU 20 when the shared memory unit 30 of the first CPU 10 is used. ) Requires the use of a duplicate, the same operation as described above.

한편, 제2c도의 상태, 즉 제1CPU(10)와 제2CPU(20)가 동시에 공유메모리부(30)의 사용을 요구한 경우를 설명하면 다음과 같다.On the other hand, the state of FIG. 2C, that is, the case where the first CPU 10 and the second CPU 20 request the use of the shared memory unit 30 at the same time will be described.

제1CPU(10) 또는 제2CPU(20)에 의해 제1디코더(40)에서 상기 제1CPU(10)의 제1램선택신호또는 제2램선택신호신호를 출력하며 제2디코더(60)에서 상기 제2CPU(20)의 제1램선택신호및 제2램선택신호를를 출력하면, 제어로직부(80)는 제2c도의 진리표에서와 같이 동작하여 우선순위가 높은 제2CPU(20)가 먼저 공유메모리부(30)를 사용하게 한다. 또한 상기 제2CPU(20)가 상기 공유메모리부(30)의 사용을 완료하면 제1CPU(10)가 상기 공유메모리부(30)를 사용하도록 한다.The first RAM selection signal of the first CPU 10 from the first decoder 40 by the first CPU 10 or the second CPU 20. Or second RAM selection signal Outputs a signal and a first RAM selection signal of the second CPU 20 from the second decoder 60. And the second ram selection signal In this case, the control logic unit 80 operates as in the truth table of FIG. 2C to cause the second CPU 20 having a higher priority to use the shared memory unit 30 first. In addition, when the second CPU 20 completes the use of the shared memory unit 30, the first CPU 10 uses the shared memory unit 30.

즉, 제3도와 같이 제2CPU(20)의 제1, 제2램선택신호에 의해 논리"0"의 제2CPU 버스인에이블신호가 상기 제어로직부(80)에서 출력된다. 그러므로 제1CPU대기신호발생부(150)에서 대기신호가 출력되어 제1CPU(10)에 입력되므로 제1CPU(10)는 대기상태가 된다.That is, the first and second RAM selection signals of the second CPU 20 as shown in FIG. Second CPU bus enable signal of logic " 0 " Is output from the control logic unit 80. Therefore, the standby signal generated by the first CPU standby signal generator 150 Is output and input to the first CPU 10, the first CPU 10 is in a standby state.

또한 제1CPU 버스인에이블신호및 제2CPU 버스인에이블신호에 의한 동작은 상기 제2b도와 같이 하나의 CPU에 의해 공유메모리부(30)가 사용될 때와 같은 과정의 동작이 된다.In addition, the first CPU bus enable signal And second CPU bus enable signal By the operation of FIG. 2B, the same operation as in the case of using the shared memory unit 30 by one CPU is performed.

이제 상기 제2CPU(20)의 공유메모리부(30) 사용이 완료되면 제3b도의 (h)와 같이 제2CPU 버스인에이블신호는 다시 논리"1"이 되며 제1CPU 대기신호발생부(150)에서 제3b도의 (f)와 같이 논리"1"의 대기신호가 출력된다.Now when the use of the shared memory unit 30 of the second CPU 20 is completed, the second CPU bus enable signal as shown in FIG. 3B (h). Becomes the logic " 1 " again, and the first CPU wait signal generator 150 waits for the logic " 1 " Is output.

그러므로 제1CPU(10)는 대기상태에서 해제되고 상기 로직제어부(80)의 동작에 의해 제3b도의 (g)와 같이 제1버스인에이블신호가 논리"0"이 되어 상기 제1CPU(10)가 공유메모리부(30)를 사용하게 된다.Therefore, the first CPU 10 is released from the standby state and the first bus enable signal as shown in (g) of FIG. 3b by the operation of the logic controller 80. Becomes a logic " 0 " so that the first CPU 10 uses the shared memory unit 30.

상술한 바와 같이 본 고안은 사용하는 데이타의 크기가 서로 다른 두기종의 CPU를 사용하는 디지털 시스템에 있어서, 제어로직에 의해 이 기종의 CPU에 의한 메모리의 공유를 제어하는 회로로서 설계를 간단히 할 수 있고 비용을 줄일 수 있는 이점이 있다.As described above, in the present invention, in a digital system using two types of CPUs having different sizes of data, the design can be simplified as a circuit for controlling the sharing of memory by this type of CPU by control logic. And the cost can be reduced.

Claims (5)

서로 다른 기종의 CPU간에 메모리공유 제어회로에 있어서, 사용하는 데이타의 크기가 서로 다른 제1CPU(10) 및 제2CPU(20)와, 제1램(32) 및 제2램(34)으로 구성된 공유메모리부(30)와, 상기 제1CPU(10)의 메모리인에이블신호와 어드레스에 의해 상기 제1CPU(10)가 상기 제1램(32)을 선택하는 제1램선택신호및 상기 제2램(34)을 선택하는 제2램선택신호를 출력하는 제1디코더(40)와, 상기 제1디코더(40)의 출력을 제어하는 제1CPU 메모리선택제어부(50)와, 상기 제2CPU(20) 메모리인에이블신호와 어드레스에 의해 상기 제2CPU(20)가 상기 제1램(32)을 선택하는 제1램선택신호및 상기 제2램(34)을 선택하는 제2램선택신호를 출력하는 제2디코더(60)와, 상기 제2디코더(60)의 출력을 제어하는 제2CPU 메로리선택제어부(70)와, 상기 제1CPU메모리선택제어부(50)의 출력과 상기 제2CPU 메모리 선택제어부(70)의 출력을 입력하여 소정의 제어로직에 의해 제1CPU버스인에이블신호와 제2CPU버스인에이블신호와 제1램인에이블신호및 제2램인에이블신호를 발생하는 제어로직부(80)와, 상기 제어로직부(80)의 제1CPU버스인에이블신호에 의해 어드레스버스를 상기 제1CPU(10)에 연결하는 제1어드레스버스구동부(90) 및 데이타버스를 상기 상기 제1CPU(10)에 연결하는 제1데이타버스 트랜시버부(100)와, 상기 제어로직부(80)의 제2CPU버스인에이블신호에 의해 어드레스버스를 상기 제2CPU(20)에 연결하는 제2어드레스버스구동부(110) 및 데이타버스를 상기 제2CPU(20)에 연결하는 제2데이타버스 트랜시버부(120)와, 상기 제어로직부(80)의 제1CPU버스인에이블신호또는 제2CPU버스인에이블신호에 의해 상기 제1CPU(10) 또는 상기 제2CPU(20)에 의한 상기 공유메모리부(30)의 액세스를 제어하는 제1CPU액세스제어부(130) 및 제2CPU액세스제어부(140)와, 상기 제2CPU(20)가 상기 공유메모리부(30)를 액세스중 상기 제1CPU(10)가 공유메모리부(30)를 액세스하고자 할 때 대기신호를 발생하여 상기 제1CPU(10)를 대기시키는 제1CPU대기신호발생부(150)와, 상기 제1CPU(10)가 상기 공유메모리부(30)를 사용중 상기 제2CPU(20)가 상기 공유메모리부(30)를 액세스하고자 할 때 대기신호를 발생하여 상기 제2CPU(20)를 대기시키는 제2CPU대기신호발생부(160)로 구성됨을 특징으로 하는 서로 다른기종의 CPU간 메모리공유 회로.In a memory sharing control circuit between different types of CPUs, a sharing constituted by a first CPU 10 and a second CPU 20 having different sizes of data to be used, and a first RAM 32 and a second RAM 34. Memory enable signal of the memory unit 30 and the first CPU 10 And a first RAM selection signal for selecting the first RAM 32 by the first CPU 10 based on the and address. And a second RAM selection signal for selecting the second RAM 34. The first decoder 40 for outputting the first, the first CPU memory selection control unit 50 for controlling the output of the first decoder 40, and the memory enable signal of the second CPU 20 And a first RAM selection signal for selecting the first RAM 32 by the second CPU 20 according to And a second RAM selection signal for selecting the second RAM 34. Outputs the second decoder 60 outputting the second decoder, the second CPU memory selection controller 70 controlling the output of the second decoder 60, the first CPU memory selection controller 50, and the second CPU memory selection. Input of the output of the control unit 70 and the first CPU bus enable signal by a predetermined control logic And second CPU bus enable signal And the first RAM enable signal And second RAM enable signal The control logic unit 80 for generating a signal and the first CPU bus enable signal of the control logic unit 80 The first address bus driver 90 for connecting an address bus to the first CPU 10 and a first data transceiver transceiver 100 for connecting a data bus to the first CPU 10 by Second CPU bus enable signal of direct portion 80 The second address bus driver 110 connecting the address bus to the second CPU 20 and the second data transceiver transceiver 120 connecting the data bus to the second CPU 20, and the control logic part. (1) First CPU bus enable signal Or second CPU bus enable signal The first CPU access control unit 130 and the second CPU access control unit 140 for controlling the access of the shared memory unit 30 by the first CPU 10 or the second CPU 20 by the second CPU ( Waiting signal when the first CPU 10 attempts to access the shared memory unit 30 while 20 is accessing the shared memory unit 30. Generates a first CPU standby signal generation unit 150 to wait for the first CPU 10, the first CPU 10 is using the shared memory unit 30, the second CPU 20 is the shared memory unit Wait signal when trying to access 30 Memory sharing circuit between different types of CPUs, characterized in that consisting of a second CPU standby signal generator 160 for generating a second to wait for the second CPU (20). 제1항에 있어서, 상기 제1CPU 메모리선택제어부(50)가 상기 제1디코더(50)의 출력단과 상기 제어로직부(80)의 입력단에 접속되며 상기 제2CPU버스인에이블신호에 의해 각각 상기 제1, 제2램선택신호를 제어하는 3상태버퍼(TB1, TB2)와, 상기 3상태버퍼(TB1, TB2)의 출력단에 각각 접속되어 상기 3상태버퍼(TB1-TB2)의 출력을 풀업하는 저항(R1, R2)으로 구성됨을 특징으로 하는 서로다른 기종의 CPU간 메모리공유 회로.2. The signal of claim 1, wherein the first CPU memory selection control unit 50 is connected to an output terminal of the first decoder 50 and an input terminal of the control logic unit 80. The first and second RAM selection signal by respectively It is composed of three state buffer (TB1, TB2) for controlling the, and resistors (R1, R2) connected to the output terminals of the three state buffer (TB1, TB2), respectively, pulls up the output of the three state buffer (TB1-TB2) Memory sharing circuit between different types of CPU, characterized in that. 제1항에 있어서, 상기 제2CPU 메모리선택 제어부(70)가 상기 제2디코더(60)의 출력단과 상기 제어로직부(80)의 입력단에 접속되며 상기 제1CPU버스인에이블신호에 의해 각각 상기 제1, 제2램선택신호를 제어하는 3상태버퍼(TB3, TB4)와, 상기 3상태버퍼(TB3, TB4)의 출력단에 각각 접속되어 상기 3상태버퍼(TB3, TB4)의 출력을 풀업하는 저항(R3, R4)으로 구성됨을 특징으로 하는 서로다른 기종의 CPU간 메모리공유 회로.The control circuit of claim 1, wherein the second CPU memory selection control unit 70 is connected to an output terminal of the second decoder 60 and an input terminal of the control logic unit 80. The first and second RAM selection signal by respectively It is composed of three state buffer (TB3, TB4) for controlling the, and resistors (R3, R4) connected to the output terminal of the three state buffer (TB3, TB4), respectively, pulls up the output of the three state buffer (TB3, TB4) Memory sharing circuit between different types of CPU, characterized in that. 제1항에 있어서, 상기 제1CPU 액세스제어부(130)가 상기 제어로직부(80)의 제1CPU인에이블신호에 의해 제1CPU리드신호및 라이트신호를 각각 제어하는 3상태버퍼(TB5, TB6)로 구성됨을 특징으로 하는 서로다른 기종의 CPU간 메모리공유 회로.The enable signal of claim 1, wherein the first CPU access control unit 130 is a first CPU of the control logic unit 80. By the first CPU lead signal And light signal Memory sharing circuit between different types of CPU, characterized in that consisting of three state buffer (TB5, TB6) for controlling each. 제1항에 있어서, 상기 제2CPU 액세스제어부(140)가 상기 제어로직부(80)의 제2CPU인에이블신호에 의해 제2CPU리드신호및 라이트신호를 각각 제어하는 3상태버퍼(TB7, TB8)로 구성됨을 특징으로 하는 서로다른 기종의 CPU간 메모리공유 회로.The enable signal of claim 1, wherein the second CPU access control unit 140 is a second CPU of the control logic unit 80. 2nd CPU lead signal by And light signal Memory sharing circuit between different types of CPU, characterized in that consisting of three state buffer (TB7, TB8) for controlling each.
KR2019890021113U 1989-12-30 1989-12-30 Memory sharing circuit between various type cpus KR920003018Y1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR2019890021113U KR920003018Y1 (en) 1989-12-30 1989-12-30 Memory sharing circuit between various type cpus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR2019890021113U KR920003018Y1 (en) 1989-12-30 1989-12-30 Memory sharing circuit between various type cpus

Publications (1)

Publication Number Publication Date
KR920003018Y1 true KR920003018Y1 (en) 1992-05-18

Family

ID=19284013

Family Applications (1)

Application Number Title Priority Date Filing Date
KR2019890021113U KR920003018Y1 (en) 1989-12-30 1989-12-30 Memory sharing circuit between various type cpus

Country Status (1)

Country Link
KR (1) KR920003018Y1 (en)

Similar Documents

Publication Publication Date Title
US5640106A (en) Method and structure for loading data into several IC devices
US5463740A (en) Data control device generating different types of bus requests and transmitting requests directly to one of a number of arbiters for obtaining access to a respective bus
US6978329B1 (en) Programmable array-based bus arbiter
EP0408353B1 (en) Semiconductor integrated circuit
KR920003018Y1 (en) Memory sharing circuit between various type cpus
US5043935A (en) Data transfer system for rearranging data units using intermediate temporary registers
JP3108080B2 (en) Access control circuit device
JP2003223412A (en) Semiconductor integrated circuit
US4594654A (en) Circuit for controlling external bipolar buffers from an MOS peripheral device
KR100265550B1 (en) Data processor having bus controller
GB2228813A (en) Data array conversion
US7519848B2 (en) Data transfer apparatus
US20030049897A1 (en) Semiconductor device
US6324615B1 (en) Data processor
EP0363905A2 (en) I/O Apparatus for programmable controller
JP2919001B2 (en) Semiconductor integrated circuit device
JP3266610B2 (en) DMA transfer method
KR200142909Y1 (en) Input/output interface apparatus
EP0330110B1 (en) Direct memory access controller
JPH08137789A (en) Bus output method
US4330842A (en) Valid memory address pin elimination
KR19980083459A (en) Databus Sizing Device
JP3491838B2 (en) I / O expansion system
JPH06348378A (en) Register unused bit processing circuit
KR900003590B1 (en) Dual port control circuit of on board memory

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination