Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6127785B2 - - Google Patents
[go: Go Back, main page]

JPS6127785B2 - - Google Patents

Info

Publication number
JPS6127785B2
JPS6127785B2 JP57184246A JP18424682A JPS6127785B2 JP S6127785 B2 JPS6127785 B2 JP S6127785B2 JP 57184246 A JP57184246 A JP 57184246A JP 18424682 A JP18424682 A JP 18424682A JP S6127785 B2 JPS6127785 B2 JP S6127785B2
Authority
JP
Japan
Prior art keywords
signal
memory
output
cpu
state
Prior art date
Legal status (The legal status 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 status listed.)
Expired
Application number
JP57184246A
Other languages
Japanese (ja)
Other versions
JPS5972552A (en
Inventor
Yoshuki Sakai
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP18424682A priority Critical patent/JPS5972552A/en
Publication of JPS5972552A publication Critical patent/JPS5972552A/en
Publication of JPS6127785B2 publication Critical patent/JPS6127785B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/18Handling requests for interconnection or transfer for access to memory bus based on priority control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Description

【発明の詳細な説明】 本発明は、コンピユータ制御装置の処理能力を
向上させるために、複数個のマイクロプロセツサ
(CPU)を備え、共有のメモリにより相互のデー
タ転送を行なうデータ転送方式に関するものであ
り、その目的とするところは、メモリ制御をクロ
ツク信号によつてサンプリングすることにより回
路を簡略化し、回路の信頼性向上と部品点数の削
減を可能にしたデータ転送方式を提供することで
ある。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transfer method that includes a plurality of microprocessors (CPUs) and mutually transfers data using a shared memory in order to improve the processing capacity of a computer control device. The purpose is to provide a data transfer method that simplifies the circuit by sampling memory control using a clock signal, improves circuit reliability, and reduces the number of parts. .

一般に2個のCPUを用いた装置ではそれぞれ
のCPUから出力するアクセス信号により、共有
メモリの占有制御を行なつているが、アクセス信
号は第1図に示す様にアクセスしていない状態
1,アクセス開始状態2,アクセス状態3、アク
セス完了状態4の4状態がある。1つのCPUの
アクセス状態が4状態あるため、CPUが2個場
合には組合せにより16状態となり、制御方法及び
制御回路は複雑化して信頼性・組立作業において
種々の問題点があつた。
Generally, in a device using two CPUs, shared memory occupancy is controlled by access signals output from each CPU, but as shown in Figure 1, the access signals are in the non-access state 1, the access state 1, and the access signal output from each CPU. There are four states: start state 2, access state 3, and access completion state 4. Since there are four access states for one CPU, if there are two CPUs, the number of states becomes 16 depending on the combination, which complicates the control method and control circuit, leading to various problems in terms of reliability and assembly work.

本発明は上記欠点を解消するために、クロツク
信号を使用してサンプリングすることにより各状
態を固定化し、その制御を簡略化している。固定
した状態とは後述する3状態であり、以下図面に
従つて本発明の実施例を説明する。
In order to solve the above-mentioned drawbacks, the present invention fixes each state by sampling using a clock signal and simplifies its control. The fixed state includes three states described below, and embodiments of the present invention will be described below with reference to the drawings.

第2図は2個のCPUを持つ装置のデータ転送
回路を示す回路図であり、5,6はCPU、7は
CPU5,6に共有されるメモリ8へのデータ書
込み,読出しのためのメモリコントロール、9,
10,11,12はCPU5,6のデータバス及
びアドレスバス用のゲート回路、13はCPU
5,6及びメモリコントロール7へクロツク信号
を供給するクロツク発生器である。メモリコント
ロール7はCPU5,6のアクセス信号
(MREQA,MREQB)にもとずいて、ゲート回
路9,11を開く信号(OPENA)、及びゲート
回路10,12を開く信号(OPENB)を出力し
ている。OPENAが出力されるとメモリ8はCPU
5に占有され、OPENBが出力されるとメモリ8
はCPU6に占有されることになる。また、メモ
リコントロール7から出力される信号
(WAITA,WAITB)はCPU5,6が同時にアク
セス信号を出力した場合に、CPU5またはCPU
6を待機させるための信号である。その動作は
CPU5からMREQAがメモリコントロール7へ出
力されると、メモリコントロール7からOPENA
を出力し、ゲート回路9,11を開き、CPU5
からの書込み信号(WRA)あるいは読出し信号
(RDA)によつてメモリ8へデータを書込み、あ
るいは読出しのためのアドレスを転送し、CPU
5がメモリ8を占有する。また、CPU6から
MREQBが出力されると、メモリコントロール7
からOPENBを出力し、上記同様にCPU6がメモ
リ8を占有する。さらに、CPU5,6から同時
にアクセス信号(MREQA,MREQB)が出力さ
れると、メモリコントロール7に予めCPU5,
6の一方を優先するように設定しておき優先する
CPUにメモリ8を占有させるようにする。例え
ば、CPU5を優先させた場合にはメモリコント
ロール7からOPENBおよびWAITAを出力し、
CPU6にメモリ8を占有させる様にする。
Figure 2 is a circuit diagram showing the data transfer circuit of a device with two CPUs, 5 and 6 are CPUs, and 7 is a circuit diagram showing the data transfer circuit of a device with two CPUs.
Memory control for writing and reading data to and from memory 8 shared by CPUs 5 and 6; 9;
10, 11, 12 are gate circuits for the data bus and address bus of CPUs 5 and 6, 13 is the CPU
5, 6 and the memory control 7. The memory control 7 outputs a signal (OPENA) to open the gate circuits 9, 11 and a signal (OPENB) to open the gate circuits 10, 12 based on the access signals (MREQA, MREQB) of the CPUs 5, 6. . When OPENA is output, memory 8 is the CPU
5 is occupied, and when OPENB is output, memory 8
will be occupied by CPU6. In addition, the signals (WAITA, WAITB) output from memory control 7 will
This is a signal for making 6 standby. Its operation is
When MREQA is output from CPU5 to memory control 7, OPENA is output from memory control 7.
is output, gate circuits 9 and 11 are opened, and CPU5
Write data to the memory 8 or transfer the read address by the write signal (WRA) or read signal (RDA) from the CPU.
5 occupies memory 8. Also, from CPU6
When MREQB is output, memory control 7
OPENB is output from , and the CPU 6 occupies the memory 8 in the same way as above. Furthermore, when the access signals (MREQA, MREQB) are output from the CPUs 5 and 6 at the same time, the memory control 7
Set and prioritize one of 6.
Make the CPU occupy memory 8. For example, if CPU 5 is given priority, OPENB and WAITA are output from memory control 7,
Make CPU 6 occupy memory 8.

第3図は第2図のメモリコントロール7の詳細
を示す回路図であり、14はDタイプのフリツプ
フロツプ、15〜18,21はアンドゲート、1
9,20はノツトゲートであり、アンドゲート2
1の一方の入力端子にクロツク発生器13からク
ロツク信号Φが入力され、フリツプフロツプ14
及びアンドゲート15,16にはCPU5から
MREQA、アンドゲート17,18の一方の入力
端子にはCPU6からMREQBが入力され、アンド
ゲート15〜18の出力からそれぞれOPENA,
WAITA,OPENB,WAITBが出力される。CPU
5,6からのアクセス信号(MREQA,
MREQB)が出力されていない状態(MREQA=
0、MREQB=0)でフリツプフロツプ14の出
力は“0”になつている。このためアンドゲート
15〜18の出力は“0”となり、ゲート回路9
〜12は閉じられてメモリ8はCPU5,6から
切り離された状態になる。この状態が第4図の状
態Aである。次に、CPU5からMREQAが出力さ
れた場合(MREQA=1)フリツプフロツプ14
の出力信号Qはアンドゲート21の出力(信号
Φ)の立ち上りより“1”となり、アンドゲート
15の出力は“1”となつて、メモリ8はCPU
5に占有されることになる(第4図の状態B)。
また、このときCPU6からMREQBが出力される
(MREQB=1)と、アンドゲート18の出力信
号(WAITB)が“1”になり、CPU6を待機状
態にさせる。フリツプフロツプ14は信号Φによ
りMREQAをサンプリングしてMREQAが“0”
になるまでサンプリングされた信号を出力する。
MREQAが“0”になると第4図の状態Aにもど
る。次に、MREQBが“1”になると、アンドゲ
ート17の出力信号(OPENB)が“1”とな
り、メモリ8はCPU6占有される。この状態が
第4図の状態Cである。また、このときMREQA
が“1”になつても、OPENBが“1”のためノ
ツトゲート20の出力は“0”でありアンドゲー
ト21の出力信号Φは出力されず、MREQAの信
号によるサンプリングを停止する。また、
MREQAが“1”になると、アンドゲート16の
出力信号(WAITA)はノツトゲート19の出力
が“1”であるため“1”になり、CPU5を待
機状態にさせ、MREQBが“0”になるまで継続
待機させる。MREQBが“0”になると、アンド
ゲート21ののノツトゲート20を介した入力が
“1”となつて信号Φの出力を開始し、第4図の
状態Bになり、メモリ8はCPU5に占有され
る。MREQAとMREQBが同時に“1”になつた
場合は、フリツプフロツプ14の出力が“0”の
ため、信号Φを止める動作が早く動き上述の状態
Cになる。
FIG. 3 is a circuit diagram showing the details of the memory control 7 shown in FIG.
9, 20 are not gates, and gates 2
A clock signal Φ is input from the clock generator 13 to one input terminal of the flip-flop 14.
And from CPU5 to AND gates 15 and 16
MREQB is input from the CPU 6 to one input terminal of MREQA and AND gates 17 and 18, and OPENA and MREQB are input from the outputs of AND gates 15 to 18, respectively.
WAITA, OPENB, WAITB are output. CPU
Access signals from 5 and 6 (MREQA,
MREQB) is not output (MREQA=
0, MREQB=0), the output of the flip-flop 14 is "0". Therefore, the outputs of the AND gates 15 to 18 become "0", and the gate circuit 9
~12 are closed and the memory 8 is separated from the CPUs 5 and 6. This state is state A in FIG. Next, when MREQA is output from CPU5 (MREQA=1), flip-flop 14
The output signal Q of the AND gate 21 becomes "1" from the rising edge of the output (signal Φ), the output of the AND gate 15 becomes "1", and the memory 8 is connected to the CPU.
5 (state B in FIG. 4).
At this time, when MREQB is output from the CPU 6 (MREQB=1), the output signal (WAITB) of the AND gate 18 becomes "1", causing the CPU 6 to enter a standby state. Flip-flop 14 samples MREQA by signal Φ and sets MREQA to “0”.
Outputs the sampled signal until .
When MREQA becomes "0", the state returns to state A in FIG. Next, when MREQB becomes "1", the output signal (OPENB) of the AND gate 17 becomes "1", and the memory 8 is occupied by the CPU 6. This state is state C in FIG. Also, at this time, MREQA
Even if becomes "1", since OPENB is "1", the output of the not gate 20 is "0", and the output signal Φ of the AND gate 21 is not output, and sampling by the signal of MREQA is stopped. Also,
When MREQA becomes "1", the output signal (WAITA) of the AND gate 16 becomes "1" because the output of the NOT gate 19 is "1", causing the CPU 5 to enter the standby state until MREQB becomes "0". Continue to wait. When MREQB becomes "0", the input of the AND gate 21 through the NOT gate 20 becomes "1" and starts outputting the signal Φ, resulting in state B in FIG. 4, where the memory 8 is occupied by the CPU 5. Ru. When MREQA and MREQB become "1" at the same time, the output of the flip-flop 14 is "0", so the operation to stop the signal Φ is quick and the state C described above is reached.

上記の様に、本発明は1個のフリツプフロツプ
と、5個のアンドゲート,2個のノツトゲートに
よつてメモリコントロールを構成し、一方の
CPUからのメモリのアクセス信号を、他方の
CPUからのアクセス信号に基づく信号とクロツ
ク信号とのアンド信号の立上りもしくは立下がり
に同期して、フリツプフロツプによりサンプリン
グし、他方のCPUからのアクセス信号に基づく
信号で、そのサンプリングを停止させることによ
つて、1個のメモリを2個のCPUで共有できる
ように制御し、その制御回路は従来の16状態の制
御から、前述A,B,Cの3状態の制御になるこ
とによつて、簡素化され、しかも部品点数が削減
できて回路部品の管理も容易となり、回路の信頼
性が向上する等のきわめて大きな効果を奏する。
更に、アクセス信号等の信号線に外部から細いパ
ルスが入つた時においても、誤動作を生じること
がなく、外部ノイズに強い回路が実現出来る。
As described above, the present invention configures the memory control with one flip-flop, five AND gates, and two NOT gates, one of which is
The memory access signal from the CPU is transferred to the other side.
By sampling with a flip-flop in synchronization with the rise or fall of an AND signal between a signal based on an access signal from the CPU and a clock signal, and stopping the sampling with a signal based on an access signal from the other CPU. Therefore, one memory is controlled so that it can be shared by two CPUs, and the control circuit is simplified by changing from the conventional 16-state control to 3-state control, A, B, and C. In addition, the number of parts can be reduced, the management of circuit parts becomes easier, and the reliability of the circuit is improved.
Furthermore, even when a thin pulse is input from the outside to a signal line such as an access signal, malfunction does not occur, and a circuit that is resistant to external noise can be realized.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はCPUのアクセス信号のタイムチヤー
ト、第2図は本発明によるデータ転送方式を示す
回路図、第3図は第1図のメモリコントロールの
詳細を示す回路図、第4図はメモリコントロール
の信号状態を示すタイムチヤートである。 5,6…CPU、7…メモリコントロール、8
…メモリ、9,10,11,12…ゲート回路、
13…クロツク発生器、14…フリツプフロツ
プ、15,16,17,18,21…アンドゲー
ト、19,20…ノツトゲート。
Figure 1 is a time chart of CPU access signals, Figure 2 is a circuit diagram showing the data transfer method according to the present invention, Figure 3 is a circuit diagram showing details of the memory control in Figure 1, and Figure 4 is a memory control diagram. This is a time chart showing the signal status. 5, 6...CPU, 7...Memory control, 8
...memory, 9,10,11,12...gate circuit,
13... Clock generator, 14... Flip-flop, 15, 16, 17, 18, 21... AND gate, 19, 20... NOT gate.

Claims (1)

【特許請求の範囲】[Claims] 1 複数個のマイクロプロセツサにより共有され
たメモリを設け、該メモリとのデータ転送を行な
う際、一方のマイクロプロセツサからのメモリへ
のアクセス信号を、他方のマイクロプロセツサか
らのアクセス信号に基づく信号とクロツク信号と
のアンド信号の立上りもしくは立下がりに同期し
て、フリツプフロツプによりサンプリングし、上
記他方のマイクロプロセツサからのアクセス信号
に基づく信号でそのサンプリングを停止させて共
有メモリを制御することを特徴とするデータ転送
方式。
1 When a memory is provided that is shared by multiple microprocessors and data is transferred to and from the memory, the access signal from one microprocessor to the memory is based on the access signal from the other microprocessor. The shared memory is controlled by sampling by a flip-flop in synchronization with the rise or fall of an AND signal between the signal and the clock signal, and stopping the sampling with a signal based on the access signal from the other microprocessor. Characteristic data transfer method.
JP18424682A 1982-10-20 1982-10-20 Data transfer system Granted JPS5972552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18424682A JPS5972552A (en) 1982-10-20 1982-10-20 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18424682A JPS5972552A (en) 1982-10-20 1982-10-20 Data transfer system

Publications (2)

Publication Number Publication Date
JPS5972552A JPS5972552A (en) 1984-04-24
JPS6127785B2 true JPS6127785B2 (en) 1986-06-27

Family

ID=16149938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18424682A Granted JPS5972552A (en) 1982-10-20 1982-10-20 Data transfer system

Country Status (1)

Country Link
JP (1) JPS5972552A (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54939A (en) * 1977-06-06 1979-01-06 Panafacom Ltd Bus priority use control system
JPS5416334U (en) * 1977-07-06 1979-02-02

Also Published As

Publication number Publication date
JPS5972552A (en) 1984-04-24

Similar Documents

Publication Publication Date Title
KR900004006B1 (en) Micro processor system
US4694426A (en) Asynchronous FIFO status circuit
CN117312210A (en) A general approach to extending the performance of RISC-V processors
EP0217479A3 (en) Information processing unit
JPS6127785B2 (en)
JPS6256598B2 (en)
KR940001827Y1 (en) Computer clock delay circuit
JPH09311812A (en) Microcomputer
KR920005294B1 (en) Chip Enable Signal Control Circuit of Dual Port Memory Devices
KR950006547Y1 (en) Process double time common memory access circuit
JPH0551931B2 (en)
JPH027284A (en) Integrated circuit
JP2975638B2 (en) Semiconductor integrated circuit
JPS59161761A (en) State setting circuit of data processor
JPS6137084Y2 (en)
JPH0223954B2 (en)
JP2919357B2 (en) CPU interface circuit
KR870003281Y1 (en) Interface circuit
JPH0624908Y2 (en) Data transfer control device
JPS5916351B2 (en) information control device
JPS6243409Y2 (en)
JPS60201465A (en) Data processing device
JPS61153731A (en) data delay device
JPS6040063B2 (en) composite bus circuit
JPH01194052A (en) Data input/output circuit for digital signal processing processor