JPS6375867A - Ram controller using multi-cpu - Google Patents

Ram controller using multi-cpu

Info

Publication number
JPS6375867A
JPS6375867A JP22074386A JP22074386A JPS6375867A JP S6375867 A JPS6375867 A JP S6375867A JP 22074386 A JP22074386 A JP 22074386A JP 22074386 A JP22074386 A JP 22074386A JP S6375867 A JPS6375867 A JP S6375867A
Authority
JP
Japan
Prior art keywords
ram
signal
data
cpus
read
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.)
Pending
Application number
JP22074386A
Other languages
Japanese (ja)
Inventor
Kazuhide Takahama
和英 高濱
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.)
Toshiba TEC Corp
Original Assignee
Tokyo 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP22074386A priority Critical patent/JPS6375867A/en
Publication of JPS6375867A publication Critical patent/JPS6375867A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/16Multiple access memory array, e.g. addressing one storage element via at least two independent addressing line groups

Abstract

PURPOSE:To shorten waiting time by controlling a RAM time-division-wise by using a basic signal from a basic signal generation circuit and a read/write signal and a chip selecting signal from two CPUs. CONSTITUTION:The common RAM 13 is controlled time-division-wise alternately by the two CPUs 11, 12. Latch circuits 14, 20 to latch respective address data are inserted in the address buses of the CPUs 11, 12 and the RAM 13, and in their data buses, latch circuits 15, 19, 21, 25 to latch respective write data and read data. The basic signal generation circuit 26 generates a basic signal to let the respective CPUs 11, 12 alternately control the RAM 13 time-division- wise. A control signal generation circuit 27 generates a read/write control signal in accordance with the said basic signal and the read/write signal and the chip selecting signal from the respective CPUs 11, 12 so that the respective CPUs 11, 12 will alternately control the RAM 13 time-division-wise.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は2個のCPUで共通のRAMを制御するマル
チCPUによるRAM制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a RAM control device using a multi-CPU that controls a common RAM by two CPUs.

[従来の技術] 例えばプリンタにおいて2個のCPLIを使用しその一
方のCPUで印字データの編集系を制御し、もう一方の
CPUで印字動作系を制御するものがある。そしてこの
ようなものではRAMが2つのCPUに対して共通に制
御されるようになっている。このような例としては他に
ファクシミリにおいて通信、圧縮処理系とプリンタ及び
ラインセンサー制御系を2つのCPUで制御するものに
も見られる。
[Prior Art] For example, there is a printer that uses two CPLIs, one CPU of which controls a print data editing system, and the other CPU controls a print operation system. In such a device, the RAM is commonly controlled by the two CPUs. Another example of this can be found in a facsimile machine in which the communication and compression processing system and the printer and line sensor control system are controlled by two CPUs.

従来、このようなマルチCPUによるR A M制m+
装四としては第4図に示すように2個のCPU1.2、
すなわちCPUo 1、CPUt 2を共通のアドレス
バスAB及びデータバスDBを介して共通のRAM3に
接続し、各CPU01、CPUt 2がそれぞれ第5図
及び第6図に示すRAM制御を示すものが知られている
。すなわち、CPUa系は第5図に示すように先ずCP
U52からのビジィ信号BSY1が立っているか否かを
チェックし、立っていなければ自己のビジィ信号BSY
Oを立ててCPUtへ出力し所定時間のウェイトをかけ
る。そして再度CPU1からのBSYrが立っているか
否かをチェックし、立っていればBSYoを下げて初期
の状態に戻り、また立っていなければ始めてRAM3に
対する処理を行なう。そしてこの処理が終了すると自己
のBSYOを下げて終了する。
Conventionally, such multi-CPU RAM system m+
As shown in Figure 4, the system is equipped with two CPUs 1.2,
That is, it is known that the CPUo 1 and CPUt 2 are connected to a common RAM 3 via a common address bus AB and a data bus DB, and each CPU01 and CPUt 2 exhibit RAM control shown in FIGS. 5 and 6, respectively. ing. That is, as shown in FIG. 5, the CPUa system first
Check whether the busy signal BSY1 from U52 is on, and if it is not on, the own busy signal BSY
It sets O, outputs it to CPUt, and waits for a predetermined time. Then, it is checked again whether BSYr from the CPU 1 is on, and if it is on, BSYo is lowered to return to the initial state, and if it is not on, processing on the RAM 3 is performed for the first time. When this process is finished, it lowers its own BSYO and ends the process.

一方、CPU1系は第6図に示すように先ずCPUa 
1からのビジィ信@BSYaが立っているか否かをチェ
ックし、立っていなければ自己のビジィ信号BSY1を
立ててCPUoへ出力し所定時間のウェイトをかける。
On the other hand, the CPU1 system first uses CPUa as shown in Figure 6.
It is checked whether the busy signal @BSYa from 1 is on, and if it is not on, it sets its own busy signal BSY1, outputs it to CPUo, and waits for a predetermined time.

そして再度CPU。And CPU again.

からのBSYoが立っているか否かをチェックし、立っ
ていれば立ち下がるまで待つ。また立っていなければ始
めてRAM3に対する処理を行なう。
Check whether BSYo is standing or not, and if it is, wait until it falls. If it is not standing, processing for RAM3 is performed for the first time.

そしてこの処理が終了すると自己のBSYlを下げて終
了する。
When this process is completed, it lowers its own BSYl and ends the process.

[発明が解決しようとする問題点コ このような従来装置では相手のCPUがRAMを制御し
ているときにはそれが終了するまで待つ必要があった。
[Problems to be Solved by the Invention] In such a conventional device, when the other party's CPU was controlling the RAM, it was necessary to wait until the other party's CPU finished controlling it.

このため例えばプリンタなどにこれを適用した場合、一
方のCPUでデータの編集を行なっているときにはもう
一方のCPUでのデータ印字ができないことになり、高
速印字が求められる場合には対処できない問題があった
For this reason, if this is applied to a printer, for example, when one CPU is editing data, the other CPU will not be able to print data, creating a problem that cannot be addressed if high-speed printing is required. there were.

この発明は、2つのCPUによって共通のRAMを時分
割的に交互に制御することによって互いの持ち時間の短
縮化を図り、例えばプリンタやファクシミリなどに適用
した場合に高速化を図ることができるマルチCPUによ
るRAM制御装置を提供することを目的としている。
This invention aims to shorten the time taken by two CPUs by controlling a common RAM alternately in a time-sharing manner, and is capable of increasing speed when applied to, for example, printers and facsimile machines. The purpose is to provide a RAM control device using a CPU.

[問題点を解決するための手段] この発明は、2個のCPUで共通のRAMを制御するR
 A M II !1]装置において、各CPUとRA
Mとのアドレスバスにそれぞれ介挿されたアドレスデー
タをラッチするラッチ回路並びにデータバスにそれぞれ
介挿された店込みデータ及び読み出しデータをラッチす
るラッチ回路と、各CPUによるRAMの制御を時分割
的に交互に行なわせるための基本信号を発生する基本信
号発生回路と、この基本信号発生回路からの基本信号と
各CPUからのリード、ライト及びチップセレクト信号
によって各CPUがRAMを時分割的に交互に制御する
リード、ライトのコントロール信号を発生するコントロ
ール信号発生回路を設けたものである。
[Means for Solving the Problems] This invention provides an R
AMII! 1] In the device, each CPU and RA
A latch circuit that latches the address data inserted into the address bus with M and a latch circuit that latches the store data and read data that are inserted into the data bus, respectively, and the control of the RAM by each CPU in a time-sharing manner. A basic signal generation circuit generates a basic signal for alternating the operation, and each CPU uses the basic signal from this basic signal generation circuit and the read, write, and chip select signals from each CPU to cause the RAM to be executed alternately in a time-division manner. The device is equipped with a control signal generation circuit that generates read and write control signals.

[作用] このような構成の本発明においては、基本信号発生回路
からの基本信号と2つのCPUからのリード、ライト及
びチップセレクト信号によってRA Mに対するリード
、ライトのコントロール信号を発生してRAMを時分割
的に交互に制御する。
[Function] In the present invention having such a configuration, read and write control signals for the RAM are generated using the basic signal from the basic signal generation circuit and the read, write and chip select signals from the two CPUs, and the RAM is operated. Control is performed alternately in a time-division manner.

そしてRAMに書込むべきデータ及びRAMから読み出
されたデータはそれぞれラッチ回路にラッチされ、RA
Mと各ラッチ回路とを結ぶアドレスバス及びデータバス
も時分割制御に合わせて共用できる。
The data to be written to the RAM and the data read from the RAM are each latched in a latch circuit, and
The address bus and data bus connecting M and each latch circuit can also be shared in accordance with time division control.

[実施例] 以下、この発明の実施例を図面を参照して説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.

第1図において11は一方のCPUo112は他方のC
PLIt 、13はRAMである。前記CPU011か
らラッチ回路14の入力側にアドレスバスABnを接続
するとともにラッチ回路15の入力側及びバッファ16
の出力側にデータバスDBaを接続している。前記ラッ
チ回路14の出力側はバッファ17及びインナーアドレ
スバスIABを介して前記RAM13に接続している。
In FIG. 1, 11 is one CPU o 112 is the other C
PLIt, 13 is a RAM. An address bus ABn is connected from the CPU 011 to the input side of the latch circuit 14, and also to the input side of the latch circuit 15 and the buffer 16.
A data bus DBa is connected to the output side of the data bus DBa. The output side of the latch circuit 14 is connected to the RAM 13 via a buffer 17 and an inner address bus IAB.

前記ラッチ15の出力側はバッファ18及びインナーデ
ータバスIDBを介して前記RAM13に接続している
。また前記インナーデータバスIDBはラッチ回路19
の入力側にも接続されている。このラッチ回路19の出
力側は前記バッファ16を介してデータバスDBOに接
続している。
The output side of the latch 15 is connected to the RAM 13 via a buffer 18 and an inner data bus IDB. Further, the inner data bus IDB has a latch circuit 19.
It is also connected to the input side of. The output side of this latch circuit 19 is connected to the data bus DBO via the buffer 16.

前記CPUt12からラッチ回路20の入力側にアドレ
スバスABrを接続するとともにラッチ回路21の入力
側及びバッファ22の出力側にデ−タバスDo1を接続
している。前記ラッチ回路20の出力側はバッファ23
及び前記インナーアドレスバスIABを介して前記RA
M13に接続している。前記ラッチ21の出力側はバッ
ファ24及び前記インナーデータバスIDBを介して前
記RAM13に接続している。また前記インナーデータ
バスIDBはラッチ回路25の入力側にも接続されてい
る。このラッチ回路25の出力側は前記バッファ22を
介してデータバスDBrに接続している。
An address bus ABr is connected from the CPUt12 to the input side of the latch circuit 20, and a data bus Do1 is connected to the input side of the latch circuit 21 and the output side of the buffer 22. The output side of the latch circuit 20 is a buffer 23
and the RA via the inner address bus IAB.
Connected to M13. The output side of the latch 21 is connected to the RAM 13 via a buffer 24 and the inner data bus IDB. The inner data bus IDB is also connected to the input side of the latch circuit 25. The output side of the latch circuit 25 is connected to the data bus DBr via the buffer 22.

26は基本信号発生回路で、この回路は各CPUo 1
1.CPUr 12に使用されているE信号を入力して
第2図及び第3図の(a)〜(e)に示す基本信号CK
口、CKI 、CK2、CKIB、CK2 Bの他、C
Kt B、CK2 Bを発生するようにしている。
26 is a basic signal generation circuit, and this circuit is connected to each CPUo 1.
1. By inputting the E signal used in the CPUr 12, the basic signal CK shown in (a) to (e) in FIGS. 2 and 3 is generated.
Mouth, CKI, CK2, CKIB, CK2 B, C
Kt B and CK2 B are generated.

27はRAM13を時分割的に交互に制御するリード、
ライトのコントロール信号を発生するためのコントロー
ル信号発生回路で、この回路27はCPLIa系のコン
トロール信号を発生する回路部27aとCPLII系の
コントロール信号を発生する回路部27bとで構成され
ている。
27 is a read that controls the RAM 13 alternately in a time-division manner;
This circuit 27 is a control signal generation circuit for generating a write control signal, and is composed of a circuit section 27a that generates a CPLIa-based control signal and a circuit section 27b that generates a CPLII-based control signal.

前記回路部27aは、3ff!itのD形フリツブフO
ツブ28,29.30その他複数のインバータとゲート
回路とで構成され、前記CPUo11からチップセレク
ト信号C8o 、リード信号RDa。
The circuit section 27a is 3ff! it's D type Fritzbuf O
It is composed of a plurality of inverters and gate circuits, and receives a chip select signal C8o and a read signal RDa from the CPUo11.

ライト信号WRaを入力され、又前記基本信号発生回路
26から信号CKt 、CKI B、CKI Bを入力
されてコントロール信号QIW、Qt Rを出力してい
る。また前記回路部27bは、3個のD形フリップフロ
ップ31.32.33その他複数のインバータとゲート
回路とで構成され、前記CPU112からチップセレク
ト信号C5I 、リード信号RD1、ライト信号W R
1を入力され、又前記基本信号発生回路26から信@C
K2、CK2 B、CK2 Bを入力されてコントロー
ル信号Q2 W、Q2 Rを出力している。
It receives the write signal WRa, and also receives the signals CKt, CKI B, and CKI B from the basic signal generation circuit 26, and outputs the control signals QIW and Qt R. The circuit section 27b is composed of three D-type flip-flops 31, 32, and 33, as well as a plurality of inverters and a gate circuit, and receives a chip select signal C5I, a read signal RD1, and a write signal WR from the CPU 112.
1 is input, and the signal @C is input from the basic signal generation circuit 26.
It inputs K2, CK2 B, and CK2 B and outputs control signals Q2 W and Q2 R.

そして前記コントロール信号QIWをオアゲート回路3
4を介して前記RAM13にライト信号として供給する
とともに、前記バッフ118に制御信号として供給して
いる。またコントロール信号Qs Rをオアゲート回路
35を介して前記RAM13にリード信号として供給す
るとともに、前記ラッチ回路19に制御信号として供給
している。また前記コントロール信号Q2Wをオアゲー
ト回路34を介して前記RAM13にライト信号として
供給するとともに、前記バッファ24に制御信号として
供給している。またコントロール信@Q2Rをオアゲー
ト回路35を介して前記RAM13にリード信号として
供給するとともに、前記ラッチ回路25にυ制御信号と
して供給している。
Then, the control signal QIW is sent to an OR gate circuit 3.
4 to the RAM 13 as a write signal, and also to the buffer 118 as a control signal. Further, a control signal QsR is supplied to the RAM 13 as a read signal via the OR gate circuit 35, and is also supplied to the latch circuit 19 as a control signal. Further, the control signal Q2W is supplied to the RAM 13 as a write signal via the OR gate circuit 34, and is also supplied to the buffer 24 as a control signal. Further, the control signal @Q2R is supplied to the RAM 13 as a read signal via the OR gate circuit 35, and is also supplied to the latch circuit 25 as a υ control signal.

前記CPU011の信号C8o 、RDa 。Signals C8o and RDa of the CPU011.

W Roをゲート回路34に供給しそのゲート回路34
からラッチ回路14の制御信号を出力し、また信号C8
a、WRgをゲート回路35に供給しそのゲート回路3
5からラッチ回路15の制御信号を出力し、さらに信号
C8O、RDgをゲート回路36に供給しそのゲート回
路36からバッファ16の制御信号を出力している。
W Ro is supplied to the gate circuit 34 and the gate circuit 34
outputs a control signal for the latch circuit 14 from C8 and outputs a control signal for the latch circuit 14 from C8.
a, WRg is supplied to the gate circuit 35 and the gate circuit 3
5 outputs a control signal for the latch circuit 15, and further supplies signals C8O and RDg to a gate circuit 36, which outputs a control signal for the buffer 16.

前&ICPUt12の信@C8t 、RDt、WRIを
ゲート回路37に供給しそのゲート回路37からラッチ
回路20の制御信号を出力し、また信@C8t、WRl
をゲート回路38に供給しそのゲート回路38からラッ
チ回路21の制御信号を出力し、さらに信号C8t 、
RDt @グー8回路39に供給しそのゲート回路39
からバッファ22の制御信号を出力している。
The signals @C8t, RDt, and WRI of the previous &ICPUt12 are supplied to the gate circuit 37, and the control signal of the latch circuit 20 is output from the gate circuit 37, and the signals @C8t, WRl
is supplied to the gate circuit 38, and the gate circuit 38 outputs a control signal for the latch circuit 21, and furthermore, the signals C8t,
RDt @Goo8 Supplied to circuit 39 and its gate circuit 39
A control signal for the buffer 22 is output from the buffer 22.

このような構成の本実施例においては、例えば一方のC
PUollによってRAM13に対して書込み制御する
場合には第2図に示すタイミングで行われる。すなわち
基本信号発生回路26から第2図の(a)〜(e)に示
すタイミングで信号CKo 、CK1.CK2 、CK
t B、CK2 Bが発生している状態でCPLIOI
Iから第2図の(a)で示すタイミングでチップセレク
ト信号C3Oが出力され、続いて第2図の(f)で示す
タイミングでライト信号W Raが出力されるとすると
、フリップフロップ29が動作してそのQ出力端子から
第2図の(h)に示すタイミングで信@QWoが出力さ
れる。この状態で7リツプフロツプ30に入力される信
号CK1が立ち上がるとそのフリップフロップ30が動
作してそのQ出力端子から第2図の(+)に示すタイミ
ングで信号Q1が出力される。しかして回路部27aか
ら第2図の(k)で示すタイミングで信号QIWが出力
され、RAM13に第2図の(1)で示すライト信号W
Rが供給されることになる。
In this embodiment with such a configuration, for example, one C.
When writing to the RAM 13 is controlled by PUoll, it is performed at the timing shown in FIG. That is, the basic signal generation circuit 26 generates the signals CKo, CK1 . CK2, CK
CPLIOI while t B, CK2 B is occurring.
Assuming that the chip select signal C3O is outputted from I at the timing shown in (a) in FIG. 2, and then the write signal WRa is outputted at the timing shown in (f) in FIG. 2, the flip-flop 29 operates. Then, the signal @QWo is output from the Q output terminal at the timing shown in FIG. 2 (h). In this state, when the signal CK1 input to the 7 flip-flop 30 rises, the flip-flop 30 operates and the signal Q1 is output from its Q output terminal at the timing shown by (+) in FIG. Then, the signal QIW is outputted from the circuit section 27a at the timing shown in (k) in FIG. 2, and the write signal W shown in (1) in FIG.
R will be supplied.

CPUoはまた第2図の(m)で示すタイミングでアド
レスバスABO及びデータバスDBoを制御し、ライト
信号W ROを出力するタイミングで第2図の(n)に
示すようにラッチ回路14にアドレスをラッチさせると
ともにラッチ回路15にデータをラッチさせる。そして
バッファ17に信号CK1が供給されるタイミングで第
2図の(1))に示すようにインナーアドレスバスIA
Bを制御してアドレスをラッチ回路14からRAM13
に供給するとともにバッファ18に信号QIWが供給さ
れるタイミングで°第2図の(0)に示すようにインナ
ーデータバスIDBを制御してデータをラッチ回路15
からRAM13に供給する。勿論このとき同じタイミン
グでRAM13にはライト信号W Rが供給されること
になる。
The CPUo also controls the address bus ABO and the data bus DBo at the timing shown in (m) in FIG. 2, and sends an address to the latch circuit 14 as shown in (n) in FIG. and causes the latch circuit 15 to latch the data. Then, at the timing when the signal CK1 is supplied to the buffer 17, the inner address bus IA is connected as shown in (1) in FIG.
B is controlled to transfer the address from the latch circuit 14 to the RAM 13.
At the same time as the signal QIW is supplied to the buffer 18, the inner data bus IDB is controlled and data is transferred to the latch circuit 15 as shown in (0) in FIG.
The data is supplied to the RAM 13 from there. Of course, at this time, the write signal WR is supplied to the RAM 13 at the same timing.

こうしてCPUallによるRAM13へのデータ書込
みはライト信号WRaが出力されて待ち時間無しで直ち
に信号CKIが発生するタイミングで行われる。そして
次に信号CKIが発生するタイミングではCPU212
によってRAM13の制御が行われることになる。
In this way, the CPUall writes data to the RAM 13 at the timing when the signal CKI is generated immediately after the write signal WRa is output without waiting time. Then, at the next timing when the signal CKI is generated, the CPU 212
The RAM 13 is controlled by this.

なお、フリップフロップ30からの信号Q!が立ち下が
ると第2図の(j)に示すように信号CLRaが発生し
てフリップフロップ28.29をリセットする。またフ
リップフロップ30は基本信号発生回路26からの信号
CKIBによってリセットされる。
Note that the signal Q! from the flip-flop 30! When the signal CLRa falls, the signal CLRa is generated to reset the flip-flops 28 and 29, as shown in FIG. 2(j). Furthermore, the flip-flop 30 is reset by the signal CKIB from the basic signal generation circuit 26.

また、例えば一方のCPUollによってRAM13に
対して読み出し制御する場合には第3図に示すタイミン
グで行われる。すなわち基本信号発生回路26から第3
図の(a)〜(e)に示すタイミングで信号CKo 、
CKt 、CK2 。
Further, for example, when one CPU oll controls reading from the RAM 13, it is performed at the timing shown in FIG. 3. That is, from the basic signal generation circuit 26 to the third
At the timings shown in (a) to (e) in the figure, the signal CKo,
CKt, CK2.

CKIB、CK2 Bが発生している状態でCPU01
1から第3図の(Q)で示すタイミングでチップセレク
ト信号C8oが出力され、続いて第3図の(f)で示す
タイミングでリード信号RDoが出力されるとすると、
フリップ70ツブ28が動作してそのQ出力端子から第
3図の(11)に示すタイミングで信号QROが出力さ
れる。この状態でフリップフロップ30に入力される信
号CK1が立ち上がるとその7リツプフロツブ30が動
作してそのQ出力端子から第3図の(i)に示すタイミ
ングで信号Q1が出力される。しかして回路部27aか
ら第3図の(j)で示すタイミングで信号QIRが出力
され、RAM13にリード信号RDが供給されることに
なる。
CPU01 while CKIB, CK2 B is occurring.
Suppose that the chip select signal C8o is outputted at the timings shown by (Q) in FIG. 3 from 1 to 3, and then the read signal RDo is outputted at the timing shown in (f) in FIG.
The flip 70 knob 28 operates and the signal QRO is output from its Q output terminal at the timing shown in (11) in FIG. In this state, when the signal CK1 input to the flip-flop 30 rises, the seven flip-flop 30 operates and the signal Q1 is output from its Q output terminal at the timing shown in FIG. 3(i). Thus, the signal QIR is output from the circuit section 27a at the timing shown in (j) in FIG. 3, and the read signal RD is supplied to the RAM 13.

CPUaはまた第3図の(1)で示すタイミングでアド
レスバスABOを制御し、リード信号RDaを出力する
タイミングで第3図の(m)に示すようにラッチ回路1
4にアドレスをラッチさせる。そしてバッファ17に信
MCKtが供給されるタイミングで第3図の(n)に示
すようにインナーアドレスバスJABを制御してアドレ
スをラッチ回路14からRAM13に供給する。そして
若干のタイミング遅れをもって第3図の(0)に示すよ
うにインナーデータバスTDBを制御してRAM13か
らデータを読み出し第3図の(p)のタイミングでラッ
チ回路19にラッチする。そしてラッチ回路19にラッ
チされたデータを第3図の(Q)で示す時間バッファ1
6を制御してデータを読み込む。
The CPUa also controls the address bus ABO at the timing shown in (1) of FIG. 3, and activates the latch circuit 1 at the timing of outputting the read signal RDa as shown in (m) of FIG.
4 to latch the address. Then, at the timing when the signal MCKt is supplied to the buffer 17, the inner address bus JAB is controlled to supply the address from the latch circuit 14 to the RAM 13 as shown in (n) of FIG. Then, with a slight timing delay, the inner data bus TDB is controlled as shown in (0) of FIG. 3, data is read from the RAM 13, and is latched into the latch circuit 19 at the timing of (p) in FIG. The data latched in the latch circuit 19 is stored in the time buffer 1 indicated by (Q) in FIG.
6 to read the data.

こうしてCPUollによるRAM13からのデータ読
み出しはリード信号RDoが出力されてから信号CK1
の1サイクルの待ち時間だけ遅れて行われることになる
。そして次に信号CK1が発生するタイミングではCP
U212によってRAM13の制御が行われることにな
る。
In this way, data reading from the RAM 13 by the CPUoll begins with the output of the read signal RDo and then the signal CK1.
The processing is delayed by one cycle of waiting time. Then, at the next timing when signal CK1 is generated, CP
The RAM 13 will be controlled by U212.

なお、フリップフロップ30からの信号Q1が立ち下が
ると第3図の(k)に示すように信号CLRoが発生し
てフリップフロップ28.29をリセットする。またフ
リップフロップ30は基本信号発生回路26からの信号
CKIBによってリセットされる。
Note that when the signal Q1 from the flip-flop 30 falls, the signal CLRo is generated as shown in FIG. 3(k) to reset the flip-flops 28 and 29. Furthermore, the flip-flop 30 is reset by the signal CKIB from the basic signal generation circuit 26.

このように010口11及びCPUn11によってRA
M13を信号CKtのサイクルに基いて時分割的に交互
に行ない、しかもデータをRAM13に書き込むときに
は持ち時間無しで行い、かつRAM13からデータを読
み出すときには信号CKIの1サイクルのみの持ち時間
をもって行なうので、CPUoll及びCPUtはそれ
ぞれ長い時間待つこと無<RAM13を制御することが
でき。従ってこれをプリンタに適用した場合、CPUn
11でデータの編集系の制御を行い、またCPUn11
2で印字動作系の制御を行なうとすると、データを編集
しつつデータ印字が可能となる高速印字動作が可能とな
る。
In this way, RA by 010guchi11 and CPUn11
M13 is performed alternately in a time division manner based on the cycle of the signal CKt, and when data is written to the RAM 13, it is performed without a waiting time, and when data is read from the RAM 13, it is performed with a waiting time of only one cycle of the signal CKI. CPUoll and CPUt can each control the RAM 13 without waiting for a long time. Therefore, if this is applied to a printer, CPUn
11 controls the data editing system, and CPUn11
If the printing operation system is controlled in step 2, a high-speed printing operation is possible in which data can be printed while editing the data.

[発明の効果] 以上詳述したようにこの発明によれば、2つのCPUに
よって共通のRAMを制御するものにおいて、互いの持
ち時間の短縮化を図ることができ、例えばプリンタやフ
ァクシミリなどに適用した場合に印字や伝送の高速化を
図ることができるマルチCPUによるRAM制御装置を
提供できるものである。
[Effects of the Invention] As described in detail above, according to the present invention, in a device where two CPUs control a common RAM, it is possible to reduce the time taken by each CPU, and it is applicable to, for example, printers and facsimile machines. In this case, it is possible to provide a RAM control device using multiple CPUs that can speed up printing and transmission.

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

第1図〜第3図はこの発明の実施例を示すもので、第1
図は回路図、第2図は一方のCPUによるデータ書込み
時の各部の動作タイミングを示すタイミング波形図、第
3図は一方のCPUによるデータ読出し時の各部の動作
タイミングを示すタイミング波形図、第4図〜第6図は
従来例を示すもので、第4図はブロック図、第5図は一
方のCPUによるR A M M t211を示す流れ
図、第6図は他方のCPUによるR A M fril
l mを示す流れ図である。 11・・・CPU口 、12・・・CPU1.13・・
・RAM、14.15,19.20,21.25・・・
ラッチ回路、26・・・基本信号発生回路、27・・・
コントロール信号発生回路。
Figures 1 to 3 show embodiments of this invention.
The figure is a circuit diagram, Figure 2 is a timing waveform diagram showing the operation timing of each part when data is written by one CPU, and Figure 3 is a timing waveform diagram showing the operation timing of each part when data is read by one CPU. Figures 4 to 6 show conventional examples, where Figure 4 is a block diagram, Figure 5 is a flowchart showing RAM t211 by one CPU, and Figure 6 is RAM fril by the other CPU.
1 is a flowchart showing l m. 11...CPU port, 12...CPU1.13...
・RAM, 14.15, 19.20, 21.25...
Latch circuit, 26... Basic signal generation circuit, 27...
Control signal generation circuit.

Claims (1)

【特許請求の範囲】[Claims] 2個のCPUで共通のRAMを制御するRAM制御装置
において、前記各CPUとRAMとのアドレスバスにそ
れぞれ介挿されたアドレスデータをラッチするラッチ回
路並びにデータバスにそれぞれ介挿された書込みデータ
及び読み出しデータをラッチするラッチ回路と、前記各
CPUによる前記RAMの制御を時分割的に交互に行な
わせるための基本信号を発生する基本信号発生回路と、
この基本信号発生回路からの基本信号と前記各CPUか
らのリード、ライト及びチップセレクト信号によつて前
記各CPUが前記RAMを時分割的に交互に制御するリ
ード、ライトのコントロール信号を発生するコントロー
ル信号発生回路とを具備してなることを特徴とするマル
チCPUによるRAM制御装置。
In a RAM control device that controls a common RAM between two CPUs, a latch circuit that latches address data inserted into the address bus of each of the CPUs and the RAM, and write data and data inserted into the data bus, respectively. a latch circuit that latches read data; a basic signal generation circuit that generates a basic signal for causing each of the CPUs to control the RAM alternately in a time-sharing manner;
Control in which each CPU generates read and write control signals that control the RAM alternately in a time-sharing manner based on the basic signal from this basic signal generation circuit and the read, write, and chip select signals from each of the CPUs. A RAM control device using a multi-CPU, characterized by comprising a signal generation circuit.
JP22074386A 1986-09-18 1986-09-18 Ram controller using multi-cpu Pending JPS6375867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22074386A JPS6375867A (en) 1986-09-18 1986-09-18 Ram controller using multi-cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22074386A JPS6375867A (en) 1986-09-18 1986-09-18 Ram controller using multi-cpu

Publications (1)

Publication Number Publication Date
JPS6375867A true JPS6375867A (en) 1988-04-06

Family

ID=16755834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22074386A Pending JPS6375867A (en) 1986-09-18 1986-09-18 Ram controller using multi-cpu

Country Status (1)

Country Link
JP (1) JPS6375867A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0283885A (en) * 1988-09-20 1990-03-23 Rohm Co Ltd Memory access circuit
JPH02105251A (en) * 1988-10-13 1990-04-17 Japan Electron Control Syst Co Ltd Intercommunication equipment for controller
JPH0273258U (en) * 1988-11-22 1990-06-05
JPH02281356A (en) * 1989-04-24 1990-11-19 Matsushita Graphic Commun Syst Inc Shared memory device
JPH02306359A (en) * 1989-01-31 1990-12-19 Internatl Business Mach Corp <Ibm> Arbitration controller
JPH04229488A (en) * 1990-07-27 1992-08-18 Internatl Business Mach Corp <Ibm> Virtual multi-port ram structure

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0283885A (en) * 1988-09-20 1990-03-23 Rohm Co Ltd Memory access circuit
JPH02105251A (en) * 1988-10-13 1990-04-17 Japan Electron Control Syst Co Ltd Intercommunication equipment for controller
JPH0273258U (en) * 1988-11-22 1990-06-05
JPH02306359A (en) * 1989-01-31 1990-12-19 Internatl Business Mach Corp <Ibm> Arbitration controller
JPH02281356A (en) * 1989-04-24 1990-11-19 Matsushita Graphic Commun Syst Inc Shared memory device
JPH04229488A (en) * 1990-07-27 1992-08-18 Internatl Business Mach Corp <Ibm> Virtual multi-port ram structure

Similar Documents

Publication Publication Date Title
US4271466A (en) Direct memory access control system with byte/word control of data bus
EP0401588B1 (en) VME-Multibus II interface adapter
US5539917A (en) Computer system having circuitry interfacing a DMA controller directly with a parallel port having specific timing control to allow printing operation without microprocessor intervention
US4730308A (en) Interface between a computer bus and a serial packet link
US5289583A (en) Bus master with antilockup and no idle bus cycles
JPS6375867A (en) Ram controller using multi-cpu
JPS6043546B2 (en) Data transfer error handling method
TW449698B (en) Control chipsets and data exchange method among them
US7103764B2 (en) Parallel port with direct memory access capabilities
EP0811923A2 (en) Bus access means for data processing apparatus
JPS6312291B2 (en)
JPS5845116B2 (en) Duplex storage device
TW475118B (en) Bus system for information processing device
JPH0562384B2 (en)
JPH0560625B2 (en)
JPS62282322A (en) Printer control circuit
JPS6184706A (en) Programmable controller
KR100191242B1 (en) Apparatus for transferring data between processors
JPS5844420Y2 (en) High-speed data processing equipment
JPH02153453A (en) Asynchronous data transmission equipment
JP2822414B2 (en) Dual port memory
JPS60205630A (en) Printer controller
JPS63201822A (en) Data processing system
JPS6027058B2 (en) Interrupt control circuit
JPH02211571A (en) Information processor