JP3362740B2 - Multi CPU system - Google Patents

Multi CPU system

Info

Publication number
JP3362740B2
JP3362740B2 JP29122692A JP29122692A JP3362740B2 JP 3362740 B2 JP3362740 B2 JP 3362740B2 JP 29122692 A JP29122692 A JP 29122692A JP 29122692 A JP29122692 A JP 29122692A JP 3362740 B2 JP3362740 B2 JP 3362740B2
Authority
JP
Japan
Prior art keywords
cpu
signal
gate
sub
sub cpu
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 - Fee Related
Application number
JP29122692A
Other languages
Japanese (ja)
Other versions
JPH06139204A (en
Inventor
憲二 原
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP29122692A priority Critical patent/JP3362740B2/en
Publication of JPH06139204A publication Critical patent/JPH06139204A/en
Application granted granted Critical
Publication of JP3362740B2 publication Critical patent/JP3362740B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、WAIT機能を有する
汎用CPUをメインCPUとし、I/Oポートを介して
外部のメモリアクセス機能を有する1チップCPUをサ
ブCPUとし、メインCPUとサブCPUの相互のデー
タバスが結合されたマルチCPUシステムに関する。 【0002】 【従来の技術】従来この種のシステムは、入出力データ
の直並列変換を行うシリアルポートに8251等のUA
RT用のLSIチップを用い、メインCPUがプログラ
ムによりこのチップを制御するのを常としていた。しか
し、このLSIチップの機能を向上し、制御のプログラ
ムを従来と同様としたまま、UART部をインテリジェ
ント化したいという要求が生じたので、本出願人は82
51の代りに8051,8031,8751などの1チ
ップCPUをサブCPUとして用いるとともに、このサ
ブCPUとメインCPUとが外部メモリを同時にアクセ
スしないように構成する案を特願昭58−91454
(特公昭63−63940)、特願昭58−17771
5、および特願昭60−39988(特公平2−150
95)として出願した。 【0003】すなわち、特願昭58−91454(特公
昭63−63940)は、図3に示すように、1チップ
CPU、汎用CPU、外部メモリの間に共通バス40を
直接接続し、データ処理時には汎用CPUにバスを占有
させてデータ処理を行なわしめるとともに、データ転送
時には1チップCPUが汎用CPUに対してHOLD要
求を発して汎用CPUにバスを放棄させ、1チップCP
Uがバスを占有するように構成したものであり、特願昭
58−177715は、図4に示すように、タイミング
信号発生器を備えて、1チップCPUがRAMをアクセ
スする直前に、汎用CPUがRAMをアクセスしないよ
うに、該タイミング信号発生器がWAIT信号を発生し
たのち、汎用CPUとRAMをつないでいるバスを切離
して、1チップCPUがアクセスに要する時間だけRA
Mを占有させたものであった。また、特願昭60−39
988(特公平2−15095)は、図5に示すよう
に、1チップCPUがメインCPUのRAMをアクセス
する直前にDMA要求信号を発し、メインCPUからの
DMA可能の返答信号によってバスを切換えるような回
路を設けるものであった。 【0004】 【発明が解決しようとする課題】しかし、特願昭58−
91454においては、一時休止中の汎用CPUがHO
LDをかけられたままになるので、データ転送のバイト
数が多いと実行時間が大幅に低下してしまうという欠点
があり、この欠点を改善した特願昭58−177715
は、多くの部品点数を必要とするという欠点があった。
特願昭60−39988(特公平2−15095)は、
少ない部品点数で実行速度の低下を招かないシステムの
提供を目的としたが、メインのCPUのソフトが特殊に
なるという問題点があった。すなわち、アクセスの本体
は、1チップCPUであり、メインのCPUはRAMに
書いたデータを1チップCPUが伝送するのをひたすら
待つのみであった。 【0005】本発明の目的は、上述の欠点を解消し、汎
用のOS等を変更することなく、メインCPUが通信イ
ンタフェースのサブCPUの1チップCPUをあたかも
単なる周辺装置のように使用することができるマルチC
PUシステムを提供することにある。 【0006】 【課題を解決するための手段】本発明のマルチCPUシ
ステムは、メインCPUが発するサブCPUに対するチ
ップセレクト信号/CS(/CSの“/”は、CS信号
が負論理であることを示す。以下各信号について同様と
する。)と読取制御信号/IORDとの論理積を求めて
サブCPUに読取/書込みの識別信号として出力する第
1のアンドゲートと、チップセレクト信号/CSと書込
制御信号/IOWRとの論理積を求める第2のアンドゲ
ートと、第1および第2のアンドゲートの2つの出力の
否定論理和を求めてサブCPUに割込信号/INTOと
して出力するノアゲートと、サブCPUから発せられる
書込信号/WRを反転するインバータと、インバータの
出力とノアゲートの出力との否定論理積を求めてメイン
CPUにWAIT要求信号として出力するナンドゲート
とからなる信号変換部を有する。 【0007】 【作用】メインCPUが発するチップセレクト信号/C
S,読取制御信号/INTO,書込制御信号/IOWR
は、読取/書込みの識別信号および割込信号/INTO
に変換されてサブCPUに入力され、サブCPUの出力
との論理積でWAIT要求信号に変換されてメインCP
Uに入力される。 【0008】 【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は本発明のマルチCPUシステムの1
実施例のシステム構成図、図2は図1の実施例の信号変
換部50の回路図である。図1において、本実施例のマ
ルチCPUシステムは、公知の汎用CPU、例えばイン
テル社の8088等からなるメインCPU10と、公知
の1チップCPU、例えばインテル社8051等からな
るサブCPU20と、ROM,RAMからなる外部メモ
リ30と、メインCPU10、サブCPU20、外部メ
モリ30間に共通に接続されるバス40と、メインCP
U10とサブCPU20との間に接続され、両者間の信
号を変換する信号変換部50とを有する。 【0009】図2において、信号変換部50は、メイン
CPU10のAO端子とサブCPU20のポートP34
に接続され、ステータスとデータを振分ける信号線と、
メインCPU10の/INTO,/CS端子に入力端子
が接続される第1のアンドゲート51と、/IOWR/
CS端子に入力端子が接続される第2のアンドゲート5
2、第1,第2のアンドゲート51,52の出力が入力
されサブCPU20の/INTOポートに出力されるノ
アゲート53と、サブCPU20の/WR信号が出力さ
れるポートP35に入力が接続されるインバータ54
と、ノアゲート53の出力から分岐された信号とインバ
ータ54の出力とを入力してメインCPU10の/WA
IT端子に出力が接続されるナンドゲート55とを有す
る。メインCPU10が受信データを読むときは、/C
S,/IORDを「ロー」にすると、アンドゲート5
1、ノアゲート53を経てサブCPU20の/INTO
に「ロー」が送られる。サブCPU20は、アクセスさ
れたことを割込み、またはポーリングで確認し、ポート
P34およびポートP35の両方が「ハイ」であること
により、ステータスのアクセスであることを確認する。
このとき、メインCPU10は、/WAIT端子が「ロ
ー」なので、停止したままとなる。サブCPU20が外
部メモリライトを実行すると、データバスP00〜P0
7にアドレスに続けたステータスが出力され、/WR信
号が「ロー」になる。この/WR信号は、インバータ5
4で反転された後、ナンドゲート55で、ノアゲート5
3から分岐された/INTO信号と否定論理積演算され
てメインCPU10の/WAITを端子「ハイ」にす
る。メインCPU10は、データバスのデータ、すなわ
ちサブCPU20の出力したデータを読込む。 【0010】メインCPU10からの送信データの書込
みのときは、メインCPU10から発せられる/CS,
/IOWRの信号を「ロー」にすることにより、サブC
PU20の/INTOが「ロー」になる。サブCPU2
0は、受信データ読取りの場合と同様にしてアクセスを
確認して、ポートP34,P35の信号によりデータの
書込みであることを判別し、データバスP00〜P07
のデータを取込む。その後ポートP36の/WR信号を
「ハイ」,「ロー」,「ハイ」と変化させることによ
り、メインCPU10のWAIT状態が解除され、メイ
ンCPU10の書込み動作が終了する。 【0011】 【発明の効果】以上説明したように、本発明は、汎用の
メインCPUと1チップのサブCPUとの間に論理ゲー
トからなる信号変換部を設けることにより、メインCP
Uが汎用のOS等のソフトウエアを変更することなくサ
ブCPUをあたかも単なる周辺装置のように制御するこ
とが可能となり、通信システム等の機能を向上すること
ができる効果がある。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a one-chip CPU having a general-purpose CPU having a WAIT function as a main CPU and an external memory access function via an I / O port. The present invention relates to a multi-CPU system in which a main CPU and a sub-CPU are connected to each other as data buses. 2. Description of the Related Art Conventionally, this type of system has a UA such as 8251 on a serial port for performing serial / parallel conversion of input / output data.
An RT LSI chip was used, and the main CPU always controlled the chip by a program. However, there has been a demand to improve the function of this LSI chip and to make the UART unit intelligent while keeping the control program the same as the conventional one.
Japanese Patent Application No. 58-91454 proposes to use a one-chip CPU such as 8051, 8031, 8751 or the like as a sub-CPU in place of the sub-CPU 51 and to prevent the sub-CPU and the main CPU from simultaneously accessing an external memory.
(Japanese Patent Publication No. 63-63940) and Japanese Patent Application No. 58-17777.
5, and Japanese Patent Application No. 60-39988 (Japanese Patent Application 2-150)
95). In Japanese Patent Application No. 58-91454, a common bus 40 is directly connected between a one-chip CPU, a general-purpose CPU, and an external memory as shown in FIG. The general-purpose CPU occupies the bus to perform data processing, and at the time of data transfer, the one-chip CPU issues a HOLD request to the general-purpose CPU to give up the bus to the general-purpose CPU, thereby causing the general-purpose CPU to abandon the bus.
U is configured to occupy the bus. Japanese Patent Application No. 58-177715 has a timing signal generator as shown in FIG. After the timing signal generator generates the WAIT signal, the bus connecting the general-purpose CPU and the RAM is disconnected so that the one-chip CPU cannot access the RAM so that the one-chip CPU does not access the RAM.
M was occupied. Also, Japanese Patent Application No. 60-39
988 (Japanese Patent Publication No. 2-15095) issues a DMA request signal immediately before the one-chip CPU accesses the RAM of the main CPU as shown in FIG. 5, and switches the bus in response to a DMA-enabled reply signal from the main CPU. A simple circuit. [0004] However, Japanese Patent Application No.
In 91454, the suspended general-purpose CPU
Since the LD is still applied, there is a disadvantage that the execution time is greatly reduced if the number of bytes of the data transfer is large, and Japanese Patent Application No. Sho 58-177715 has improved this disadvantage.
Has the disadvantage of requiring a large number of parts.
Japanese Patent Application No. 60-99988 (Japanese Patent Publication No. 2-15095)
An object of the present invention is to provide a system which does not cause a decrease in execution speed with a small number of components, but has a problem that software of a main CPU becomes special. That is, the main body of the access is a one-chip CPU, and the main CPU simply waits for the one-chip CPU to transmit the data written in the RAM. SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned drawbacks and to make it possible for a main CPU to use a one-chip CPU of a sub CPU of a communication interface as if it were a simple peripheral device without changing a general-purpose OS or the like. Multi C that can be
It is to provide a PU system. In the multi-CPU system of the present invention, the chip select signal / CS ("/" of / CS) for the sub CPU issued from the main CPU indicates that the CS signal has negative logic. A first AND gate for obtaining the logical product of the read control signal / IORD and outputting it to the sub CPU as a read / write identification signal, and a chip select signal / CS. A second AND gate for obtaining a logical product of the interrupt control signal / IOWR and a NOR gate for obtaining a NOR of two outputs of the first and second AND gates and outputting the result to the sub CPU as an interrupt signal / INTO , An inverter for inverting a write signal / WR issued from the sub CPU, and a logical AND of an output of the inverter and an output of the NOR gate to obtain a main CP And a NAND gate that outputs to U a WAIT request signal. The chip select signal / C issued by the main CPU
S, read control signal / INTO, write control signal / IOWR
Are read / write identification signals and interrupt signals / INTO
Is converted into a WAIT request signal by a logical product of the output of the sub CPU and the main CP.
Input to U. Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a multi-CPU system 1 according to the present invention.
FIG. 2 is a circuit diagram of a signal converter 50 according to the embodiment of FIG. 1. In FIG. 1, a multi-CPU system according to the present embodiment includes a main CPU 10 composed of a known general-purpose CPU, for example, 8088 of Intel Corporation, a sub CPU 20 composed of a known one-chip CPU, for example, 8051 of Intel Corporation, a ROM and a RAM. An external memory 30, a bus 40 commonly connected between the main CPU 10, the sub CPU 20, and the external memory 30;
A signal conversion unit 50 is connected between the U10 and the sub CPU 20 and converts a signal between the two. In FIG. 2, a signal conversion unit 50 includes an AO terminal of the main CPU 10 and a port P34 of the sub CPU 20.
A signal line that is connected to
A first AND gate 51 having an input terminal connected to the / INTO and / CS terminals of the main CPU 10, and / IOWR /
Second AND gate 5 whose input terminal is connected to CS terminal
2. The inputs are connected to a NOR gate 53 to which the outputs of the first and second AND gates 51 and 52 are input and output to the / INTO port of the sub CPU 20, and a port P35 of the sub CPU 20 to which the / WR signal is output. Inverter 54
And the signal branched from the output of the NOR gate 53 and the output of the inverter 54,
It has a NAND gate 55 whose output is connected to the IT terminal. When the main CPU 10 reads the received data, / C
When S, / IORD is set to low, AND gate 5
1. Via the NOR gate 53, / INTO of the sub CPU 20
Is sent a "low". The sub CPU 20 confirms that the access has been made by interruption or polling, and confirms that the access is in a status because both the port P34 and the port P35 are "high".
At this time, the main CPU 10 remains stopped because the / WAIT terminal is “low”. When the sub CPU 20 executes the external memory write, the data buses P00 to P0
7, the status following the address is output, and the / WR signal becomes "low". This / WR signal is output from the inverter 5
4, the NAND gate 55 and the NOR gate 5
An AND operation is performed on the / INTO signal branched from 3 and the / WAIT of the main CPU 10 is set to the terminal “high”. The main CPU 10 reads data on the data bus, that is, data output from the sub CPU 20. When writing transmission data from the main CPU 10, the signals / CS,
/ IOWR signal is set to “low”, so that the sub C
/ INTO of PU20 becomes "low". Sub CPU2
0 indicates access in the same manner as in the case of reading received data, determines that data is to be written based on the signals of the ports P34 and P35, and sets the data buses P00 to P07.
Capture data from Thereafter, by changing the / WR signal of the port P36 to “high”, “low”, or “high”, the WAIT state of the main CPU 10 is released, and the write operation of the main CPU 10 ends. As described above, the present invention provides a main CP by providing a signal converter comprising a logic gate between a general-purpose main CPU and a one-chip sub CPU.
The U can control the sub CPU as if it were a mere peripheral device without changing software such as a general-purpose OS, which has the effect of improving functions of a communication system and the like.

【図面の簡単な説明】 【図1】本発明のマルチCPUシステムの一実施例のシ
ステム構成図である。 【図2】図1の実施例の信号変換部50の回路図であ
る。 【図3】従来のマルチCPUシステムの第1の実施例を
示す図である。 【図4】従来のマルチCPUシステムの第2の実施例を
示す図である。 【図5】従来のマルチCPUシステムの第3の実施例を
示す図である。 【符号の説明】 10 メインCPU 20 サブCPU 30 外部メモリ 40 バス 50 信号変換部 51,52 アンドゲート 53 ノアゲート 54 インバータ 55 ナンドゲート
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a system configuration diagram of one embodiment of a multi-CPU system of the present invention. FIG. 2 is a circuit diagram of a signal converter 50 of the embodiment of FIG. FIG. 3 is a diagram showing a first embodiment of a conventional multi-CPU system. FIG. 4 is a diagram showing a second embodiment of the conventional multi-CPU system. FIG. 5 is a diagram showing a third embodiment of the conventional multi-CPU system. [Description of Signs] 10 Main CPU 20 Sub CPU 30 External memory 40 Bus 50 Signal converter 51, 52 AND gate 53 NOR gate 54 Inverter 55 NAND gate

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 15/16 - 15/177 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 15/16-15/177

Claims (1)

(57)【特許請求の範囲】 【請求項1】 WAIT機能を有する汎用CPUをメイ
ンCPUとし、I/Oポートを介して外部メモリのアク
セス機能を有する1チップCPUをサブCPUとし、前
記メインCPU、サブCPU両者のデータバスが相互に
結合されたマルチCPUシステムにおいて、 前記メインCPUが発する前記サブCPUに対するチッ
プセレクト信号/CSと読取制御信号/IORDとの論
理積を求めて前記サブCPUに読取/書込みの識別信号
として出力する第1のアンドゲートと、前記チップセレ
クト信号/CSと書込制御信号/IOWRとの論理積を
求める第2のアンドゲートと、前記第1および第2のア
ンドゲートの2つの出力の否定論理和を求めて前記サブ
CPUに割込信号/INTOとして出力するノアゲート
と、前記サブCPUから発せられる書込信号/WRを反
転するインバータと、前記インバータの出力と前記ノア
ゲートの出力との否定論理積を求めて前記メインCPU
にWAIT要求信号として出力するナンドゲートとから
なる信号変換部を有することを特徴とするマルチCPU
システム。
(1) A general-purpose CPU having a WAIT function is defined as a main CPU, and a one-chip CPU having an external memory access function via an I / O port is defined as a sub CPU. In a multi-CPU system in which the data buses of both sub CPUs are mutually connected, a logical product of a chip select signal / CS and a read control signal / IORD for the sub CPU issued by the main CPU is obtained and read by the sub CPU. A first AND gate for outputting a write / write identification signal, a second AND gate for obtaining a logical product of the chip select signal / CS and a write control signal / IOWR, and the first and second AND gates A NOR gate for calculating the NOR of the two outputs of the above and outputting the result to the sub CPU as an interrupt signal / INTO; An inverter for inverting a write signal / WR issued from the sub CPU, and a NAND of an output of the inverter and an output of the NOR gate to obtain the NAND
And a NAND gate for outputting a WAIT request signal to the multi-CPU
system.
JP29122692A 1992-10-29 1992-10-29 Multi CPU system Expired - Fee Related JP3362740B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29122692A JP3362740B2 (en) 1992-10-29 1992-10-29 Multi CPU system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29122692A JP3362740B2 (en) 1992-10-29 1992-10-29 Multi CPU system

Publications (2)

Publication Number Publication Date
JPH06139204A JPH06139204A (en) 1994-05-20
JP3362740B2 true JP3362740B2 (en) 2003-01-07

Family

ID=17766110

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29122692A Expired - Fee Related JP3362740B2 (en) 1992-10-29 1992-10-29 Multi CPU system

Country Status (1)

Country Link
JP (1) JP3362740B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100310298B1 (en) * 1999-07-09 2001-11-03 오길록 Data transmission control circuit

Also Published As

Publication number Publication date
JPH06139204A (en) 1994-05-20

Similar Documents

Publication Publication Date Title
KR900004006B1 (en) Micro processor system
JP3838278B2 (en) Bridge circuit between two buses of a computer system
US4271466A (en) Direct memory access control system with byte/word control of data bus
WO1999015949A1 (en) Direct memory access (dma) transactions on a low pin count bus
US7171509B2 (en) Method and apparatus for host messaging unit for Peripheral Component Interconnect busmaster devices
EP0658852A3 (en) Computer system with derived local bus
US5467461A (en) Multiprocessor computer system having bus control circuitry for transferring data between microcomputers
JPS62226257A (en) Arithmetic processor
JP2963426B2 (en) Bus bridge device and transaction forward method
US5636348A (en) Control system for a multiple mode standard parallel port for a personal computer
JP3362740B2 (en) Multi CPU system
JPS63175962A (en) Direct memory access controller
GB1595471A (en) Computer system
JPS60233757A (en) Microcomputer
US6199123B1 (en) Computer system for supporting increased PCI master devices without the requiring additional bridge chips
JPH05314062A (en) Integrated digital device for use in computation apparatus
JP3211264B2 (en) External bus control method
KR930004903B1 (en) Parallel data communication system and its method between processors by using data bus
JP2975638B2 (en) Semiconductor integrated circuit
JP3019323B2 (en) Direct access to image memory
KR0170742B1 (en) Data transfer method using mbus
JPS62232061A (en) Data transmission processor
JP2928036B2 (en) Logic semiconductor integrated circuit
JPH0462653A (en) Electronic computer and extension device module
JPH06161947A (en) Computer system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081025

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees