JPH067379B2 - Direct memory access control circuit - Google Patents

Direct memory access control circuit

Info

Publication number
JPH067379B2
JPH067379B2 JP60080092A JP8009285A JPH067379B2 JP H067379 B2 JPH067379 B2 JP H067379B2 JP 60080092 A JP60080092 A JP 60080092A JP 8009285 A JP8009285 A JP 8009285A JP H067379 B2 JPH067379 B2 JP H067379B2
Authority
JP
Japan
Prior art keywords
bus
microprocessor
control circuit
memory access
dma
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 - Lifetime
Application number
JP60080092A
Other languages
Japanese (ja)
Other versions
JPS61239348A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP60080092A priority Critical patent/JPH067379B2/en
Publication of JPS61239348A publication Critical patent/JPS61239348A/en
Publication of JPH067379B2 publication Critical patent/JPH067379B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は、ダイレクト・メモリ・アクセス装置を接続し
たコンピユータシステムに使用されるダイレクト・メモ
リ・アクセス・コントロール回路に関する。
The present invention relates to a direct memory access control circuit used in a computer system to which a direct memory access device is connected.

「従来の技術」 入出力装置から別のメモリ装置に対してデータ転送処理
を行う場合、その効率を向上させるために、入出力装置
にデータ転送処理動作を行う機能を付加したものがあ
る。これはダイレクト・メモリ・アクセス(以下DMA
と記載する)装置と呼ばれている。このようなDMA装
置を接続したコンピユータシステムの一例を第7図に示
す。
"Prior Art" When performing data transfer processing from an input / output device to another memory device, there is a type in which a function of performing a data transfer processing operation is added to the input / output device in order to improve the efficiency. This is a direct memory access (hereinafter DMA
It is called a device. FIG. 7 shows an example of a computer system to which such a DMA device is connected.

このシステムは、マイクロプロセッサ(以下CPUと記
載する)10と直接接続される第1のバス111と、C
PU10と間接的に接続される第2のバス112とを有
しており、この第1のバス111と第2のバス112とは
バスコントロール回路12により連結されている。
This system includes a first bus 11 1 directly connected to a microprocessor (hereinafter referred to as CPU) 10 and a C
It has a second bus 11 2 indirectly connected to the PU 10, and the first bus 11 1 and the second bus 11 2 are connected by a bus control circuit 12.

第1のバス111には例えば1台のメモリ装置141(こ
れを第1のメモリ装置と呼ぶ)が接続されている。ま
た、第2のバス112には、1台のDMA装置13と1
台のメモリ装置142(これを第2のメモリ装置と呼
ぶ)が接続されている。
For example, one memory device 14 1 (this is called a first memory device) is connected to the first bus 11 1 . In addition, one DMA device 13 and one DMA device 1 are provided on the second bus 11 2.
One memory device 14 2 (this is called a second memory device) is connected.

DMA装置13は、必要に応じて第1のメモリ装置14
1あるいは第2のメモリ装置142との間で相互にデータ
転送処理を行う。バスコントロール回路12は、DMA
装置13のDMA要求(DMAリクエスト)およびその
実行のための各種の信号の第1のバス111と第2のバ
ス112の間の転送を制御するために設けられている。
The DMA device 13 uses the first memory device 14 as necessary.
Data transfer processing is mutually performed with the first or second memory device 14 2 . The bus control circuit 12 is a DMA
It is provided to control the transfer of the DMA request (DMA request) of the device 13 and various signals for execution thereof between the first bus 11 1 and the second bus 11 2 .

第8図はそのバスラインの構成とバスコントロール回路
12のブロツク図である。
FIG. 8 is a block diagram of the bus line configuration and the bus control circuit 12.

(バスラインの構成) 図において、バスコントロール回路12の左方には第1
のバス111が接続され、バスコントロール回路12の
右方には第2のバス112が接続されている。
(Structure of Bus Line) In the figure, the first part is provided on the left side of the bus control circuit 12.
The bus 11 1 connected, 2 second bus 11 is connected to the right side of the bus control circuit 12.

第1のバス111は図のようにそれぞれ1本もしくは複
数本のパラレルな伝送線から構成された9種の伝送路か
ら構成され、第2のバス112は同様に8種の伝送路か
ら構成されている。
The first bus 11 1 is composed of nine kinds of transmission lines each composed of one or a plurality of parallel transmission lines as shown in the figure, and the second bus 11 2 is also composed of eight kinds of transmission lines. It is configured.

各伝送路は、これらの機能に応じた名称で呼び、DMA
要求信号を伝送するDMAリクエスト1111、1121
DMAを許可する信号を伝送するDMAリクエストOK
1112、1122、アドレス信号を伝送するアドレスバス
1113、1123、バスラインが使用中か否かの信号を伝
送するバスアクティブ1114、1124、第1図に示した
DMA装置13からメモリ装置141あるいは142にデ
ータの書き込みを行う場合のリード信号もしくは反対に
メモリ装置141、142の内容をDMA装置13に書き
込む場合のライト信号を伝送するリード/ライトモード
1115、1125、データの書き込み動作を制御するスト
ローブ信号を伝送するストローブ1116、1126、デー
タの書き込みが終了した応答信号を伝送するリプライ1
17、1127、データを伝送するデータバス1118、1
28、第7図に示したCPU10の動作の再開のタイミ
ングパルスを伝送するリスタート1119から構成されて
いる。
Each transmission line is called by a name corresponding to these functions, and DMA
DMA request for transmitting request signal 11 11 , 11 21 ,
DMA request OK for transmitting a signal that permits DMA
11 12 , 11 22 , address buses 11 13 , 11 23 for transmitting address signals, bus active 11 14 , 11 24 for transmitting a signal indicating whether or not a bus line is in use, from the DMA device 13 shown in FIG. read / write mode 11 15 for transmitting a write signal for writing the read signal or the memory device 14 1 in the opposite, 14 2 of the contents when the data is to be written into the memory device 14 1 or 14 2 to the DMA device 13, 11 25 , strobes 11 16 and 11 26 for transmitting strobe signals for controlling the data writing operation, reply 1 for transmitting a response signal indicating that the data writing has been completed
1 17 , 11 27 , data buses 11 18 for transmitting data, 1
1 28 , and a restart 11 19 for transmitting a timing pulse for restarting the operation of the CPU 10 shown in FIG.

ここで、以後第1のバス111に属する伝送路には「第
1の」という語を付し、第2のバス112に属する伝送
路には「第2の」という語を付すことにする。
Here, hereinafter, the term "first" is attached to the transmission path belonging to the first bus 11 1, and the term "second" is attached to the transmission path belonging to the second bus 11 2. To do.

(バスコントロール回路の構成) 一方、バスコントロール回路12は、DMAリクエスト
/OKコントロール21、アドレスバストランシーバ2
2、アドレスデコーダ23、CPUリスタートタイミン
グジェネレータ26、タイミングゲートコントロール2
4、およびデータバストランシーバ25から構成され
る。
(Configuration of Bus Control Circuit) On the other hand, the bus control circuit 12 includes a DMA request / OK control 21, an address bus transceiver 2
2, address decoder 23, CPU restart timing generator 26, timing gate control 2
4 and a data bus transceiver 25.

DMAリクエスト/OKコントロール21は、第2のD
MAリクエスト1121の信号を第1のDMAリクエスト
1111に転送し、第1のDMAリクエストOK1112
信号を第2のDMAリクエストOK1122に転送するよ
うそれぞれを接続しておくゲートを有する回路である。
The DMA request / OK control 21 uses the second D
A circuit having gates connected to each other so as to transfer the signal of the MA request 11 21 to the first DMA request 11 11 and transfer the signal of the first DMA request OK 11 12 to the second DMA request OK 11 22 is there.

アドレスバストランジーバ22とデータバストランシー
バ25とは、それぞれアドレスおよびデータを指定され
た方向へ転送する双方向ゲートを有する回路である。
The address bus transceiver 22 and the data bus transceiver 25 are circuits each having a bidirectional gate that transfers an address and data in a designated direction.

アドレスデコーダ23は、第2のバス1123を伝送され
るアドレスが第1のバス111に接続された第1のメモ
リ装置141のものか第2のバス112に接続された第2
のメモリ装置142のものかを判定しそれを識別する信
号27を出力する回路である。
Address decoder 23, a second address transmitted through the second bus 11 23 which is connected to the first memory device 14 1 thing or the second bus 11 2 connected to the first bus 11 1
It is a circuit for determining whether or not the memory device 14 2 is for outputting a signal 27 for identifying it.

ダイミングゲートコントロール24は、このアドレスデ
コーダ23の識別信号27をもとにして、アドレスバス
トランシーバ22およびデータバストランシーバ25に
対して先に説明した転送方向の指定信号28を出力す
る。
The dimming gate control 24 outputs the transfer direction designation signal 28 described above to the address bus transceiver 22 and the data bus transceiver 25 based on the identification signal 27 of the address decoder 23.

またこのタイミングゲートコントロール24は、第1の
バス111と第2のバス112の各リード/ライトモード
1115、1125間と、ストローブ1116、1126間と、
リプライ1117、1127間を、双方向に接続するゲート
と、第1のバスアクティブ1114と第2のバスアクティ
ブ1124とを必要に応じて接続するゲートを有する回路
である。
Further, the timing gate control 24 is provided between the read / write modes 11 15 and 11 25 of the first bus 11 1 and the second bus 11 2 and between the strobes 11 16 and 11 26 .
It is a circuit having a gate that bidirectionally connects between the replies 11 17 and 11 27 and a gate that connects the first bus active 11 14 and the second bus active 11 24 as needed.

CPUリスタートタイミングジェネレータ26は、第2
のバスアクティブ1124を監視して、その立下りのタイ
ミングでCPUのリスタート信号をリスタート1119
対して出力する回路である。
The CPU restart timing generator 26 has a second
Is a circuit which monitors the bus active 11 24 and outputs the restart signal of the CPU to the restart 11 19 at the timing of its fall.

(バスコントロール回路の動作) 第8図の回路の動作の第9図のタイミングチャートを用
いて第7図から第9図を対比しながら説明する。
(Operation of Bus Control Circuit) The operation of the circuit of FIG. 8 will be described with reference to the timing chart of FIG. 9 while comparing FIG. 7 to FIG.

まず、第7図に示すDMA装置13が第2のバス112
に接続された第2のメモリ装置142との間でデータ転
送処理を行う場合を説明する。DMA装置13からDM
A要求信号が出されると第2のDMAリクエスト1121
が立上り(第9図(a))、この信号はDMAリクエス
ト/OKコントロール21を通って第1のDMAリクエ
スト1111へそのまま転送される。
First, DMA unit 13 shown in FIG. 7 is a second bus 11 2
A case will be described in which data transfer processing is performed with the second memory device 14 2 connected to. DMA device 13 to DM
When the A request signal is issued, the second DMA request 11 21
Rises (FIG. 9 (a)), this signal is directly transferred to the first DMA request 11 11 through the DMA request / OK control 21.

CPU10はこれを受けて、第1のDMAリクエストO
K1112を立上らせる(同図(b))。そして同時に、
今まで使用していた第1のバス111の使用を停止して
第1のバスアクティブ1114を立下らせる(同図
(c))。
In response to this, the CPU 10 receives the first DMA request O
K11 12 is raised ((b) in the same figure). And at the same time,
The use of the first bus 11 1 which has been used up to now is stopped and the first bus active 11 14 is made to fall ((c) in the same figure).

第2のDMAリクエストOK1122が立下ると、DMA
装置13は第2のDMAリクエスト1121を立下らせ、
第2のバスアクティブ1124を立上らせる(同図
(d))。そして、モード指定信号を第2のリード/ラ
イトモード1125にのせ、アドレス信号とデータとをそ
れぞれ第2のアドレスバス1123と第2のデータバス1
28とにのせる。
When the second DMA request OK11 22 is falls, DMA
The device 13 drops the second DMA request 11 21 ,
The second bus active 11 24 is started up ((d) in the same figure). Then, the mode designating signal is placed in the second read / write mode 11 25 , and the address signal and the data are sent to the second address bus 11 23 and the second data bus 1 respectively.
Put on 28 .

その後、DMA装置13は1ワード分のデータが第2の
データバス1128に出力されるたびに、ストローブパル
スを第2のストローブ1126に出力する(同図
(h))。そして、第2のメモリ装置142はそのつど
応答信号を第2のリプライ1127に出力する。
Thereafter, the DMA device 13 outputs a strobe pulse to the second strobe 11 26 every time one word of data is output to the second data bus 11 28 ((h) in the figure). Then, the second memory device 14 2 outputs a response signal to the second reply 11 27 each time.

これらの一連のデータ転送処理が終了すると、DMA装
置13は第2のバスアクティブ1124を立下らせる。
(同図(d))。これをCPUリスタートタイミングジ
ェネレータ26が検出し、リスタートパルスをリスター
ト1119に対して出力する。
When the series of data transfer processing is completed, the DMA device 13 causes the second bus active 11 24 to fall.
((D) of the same figure). The CPU restart timing generator 26 detects this and outputs a restart pulse to the restart 11 19 .

CPU10はこのリスタートパルスを受けて第1のバス
アクティブ1114を立上らせ、動作を再開する。
Upon receiving the restart pulse, the CPU 10 raises the first bus active 11 14 and restarts the operation.

第10図は、第7図に示したDMA装置13が第1のバ
ス111に接続された第1のメモリ装置141との間でデ
ータ転送処理を行う場合のタイミングチャートである。
FIG. 10 is a timing chart when the DMA device 13 shown in FIG. 7 performs a data transfer process with the first memory device 14 1 connected to the first bus 11 1 .

この内容は第9図とほぼ同一であるが、応答信号を第1
のリプライ1117に出力するのが第1のメモリ装置14
1である点が相違している。
This content is almost the same as in FIG. 9, but the response signal is
That output to the reply 11 17 first memory device 14
The difference is that it is 1.

そして、第9図に示したデータ転送処理の動作中は、第
1のバス111は全く使用されていないが、第10図に
示したデータ転送処理の動作中は第1のバス111およ
び第2のバス112の両方が使用されている点が相違し
ている。
Then, during operation of the data transfer processing shown in FIG. 9, the first bus 11 1 is not used at all, during the operation of the data transfer processing shown in FIG. 10 1 and the first bus 11 The difference is that both second buses 11 2 are used.

「発明が解決しようとする問題点」 以上のように、第8図に示したようなバスコントロール
回路12を有する第7図のようなコンピュータシステム
は、DMA装置13がデータ転送処理を行っている間
は、無条件にその動作を停止していた。
[Problems to be Solved by the Invention] As described above, in the computer system shown in FIG. 7 having the bus control circuit 12 shown in FIG. 8, the DMA device 13 performs the data transfer process. During that time, the operation was unconditionally stopped.

ところが、DMA装置13が第2のバス112に接続さ
れた第2のメモリ装置142との間でデータ転送処理を
行うときは、CPU10に直接接続されている第1のバ
ス111は全く使用されていない。
However, when the DMA device 13 performs a data transfer process with the second memory device 14 2 connected to the second bus 11 2 , the first bus 11 1 directly connected to the CPU 10 is completely not being used.

この第1のバス111には図示しない各種のデバイスが
接続されており、この間、CPU10を停止させておく
ことはその実行効率上好ましくない。
Various devices (not shown) are connected to the first bus 11 1, and it is not preferable to stop the CPU 10 during this period in terms of execution efficiency.

本発明は以上の点に着目してなされたもので、CPUの
実行効率を高めるダイレクト・メモリ・アクセス・コン
トロール回路を提供することを目的とするものである。
The present invention has been made in view of the above points, and an object of the present invention is to provide a direct memory access control circuit that improves the execution efficiency of a CPU.

「問題点を解決するための手段」 本発明のメモリ・アクセス・コントロール回路は、マイ
クロプロセッサと直接接続される第1のバスと、マイク
ロプロセッサと間接的に接続される第2のバスと、前記
第1のバスと第2のバスとを連結するバスコントロール
回路とを有し、このバスコントロール回路は、前記第2
のバスに接続されたダイレクト・メモリ・アクセス装置
がマイクロプロセッサに対してダイレクト・メモリ・ア
クセス要求を行いこのマイクロプロセッサがこの要求を
認めたことを条件として第1のバスに対するマイクロプ
ロセッサの動作で停止させ、前記ダイレクト・メモリ・
アクセス装置がデータ転送処理の開始の際第2のバスに
接続されたメモリのアドレスを指定したときには、ダイ
レクト・メモリ・アクセス装置によるデータ転送処理が
終了する前のこの段階で、マイクロプロセッサが第1の
バスを使用して動作を行うことを許可することを特徴と
している。「作用」 このように本発明のダイレクト・メモリ・アクセス・コ
ントロール回路は、マイクロプロセッサと間接的に接続
された第2のバスが、この第2のバスに接続されている
DMA装置と第2のメモリ装置とによって使用されてい
る間、マイクロプロセッサと直接接続されている第1の
バスを並行使用するようにして、マイクロプロセッサの
実行効率を高めている。
"Means for Solving Problems" A memory access control circuit of the present invention includes a first bus directly connected to a microprocessor, a second bus indirectly connected to the microprocessor, and A bus control circuit for connecting the first bus and the second bus, and the bus control circuit includes the second bus
The direct memory access device connected to the bus of the microprocessor makes a direct memory access request to the microprocessor, and the microprocessor stops the operation of the microprocessor for the first bus on condition that the microprocessor acknowledges the request. The direct memory
When the access device specifies the address of the memory connected to the second bus at the start of the data transfer process, at this stage before the data transfer process by the direct memory access device is completed, the microprocessor sets the first It is characterized by permitting the operation using the bus. "Operation" As described above, in the direct memory access control circuit of the present invention, the second bus indirectly connected to the microprocessor is connected to the DMA device and the second bus. While being used by the memory device, the first bus directly connected to the microprocessor is used in parallel to increase the execution efficiency of the microprocessor.

この第1のバスと第2のバスとを分離してそれぞれ独立
に使用できるようにするのがバスコントロール回路で、
このバスコントロール回路がマイクロプロセッサに対し
て動作の停止あるいは許可のための指示信号を出力す
る。
The bus control circuit separates the first bus and the second bus so that they can be used independently.
This bus control circuit outputs an instruction signal for stopping or permitting the operation to the microprocessor.

DMA装置がマイクロプロセッサに対してDMA要求を
行ったときは、通常マイクロプロセッサは一度その動作
を停止するが、データ転送処理の開始の際にDMA装置
が第2のバスに接続された第2のメモリ装置のアドレス
を指定したときは、バスコントロール回路がこれを検出
してマイクロプロセッサの動作を再開させるようにす
る。
When the DMA device makes a DMA request to the microprocessor, the microprocessor normally suspends its operation once, but at the start of the data transfer process, the DMA device is connected to the second bus. When the address of the memory device is designated, the bus control circuit detects this and restarts the operation of the microprocessor.

こうすれば、例えば、従来のバスコントロール回路の構
成を変更するだけで、コンピユータシステムの改善を行
うことができる。
This makes it possible to improve the computer system, for example, simply by changing the configuration of the conventional bus control circuit.

「実施例」 (バスコントロール回路とその動作の概要) 本発明のダイレクト・メモリ・アクセス・コントロール
回路は、第7図に示したようなコンピュータシステムに
おいて使用された、第8図に示したバスコントロール回
路12を第1図に示したようにその構成を変更したもの
である。
[Embodiment] (Outline of bus control circuit and its operation) The direct memory access control circuit of the present invention is used in a computer system as shown in FIG. 7, and the bus control shown in FIG. The configuration of the circuit 12 is changed as shown in FIG.

この図において、第1のバス111と第2のバス112
構成は第8図で説明したものと同一であり、同一部分に
は同一の符号を付して重複する説明を省略する。
In this figure, the configurations of the first bus 11 1 and the second bus 11 2 are the same as those described with reference to FIG. 8, and the same parts are designated by the same reference numerals and redundant description will be omitted.

また、バスコントロール回路32を構成する各ブロツク
も、CPUリスタートタイミングジェネレータ36の周
辺の結線を除いてほぼ同一であり、同一部分には同一符
号を付して重複する説明を省略する。
Also, the blocks constituting the bus control circuit 32 are almost the same except for the wiring around the CPU restart timing generator 36, and the same portions are denoted by the same reference numerals and the duplicated description will be omitted.

この第1図に示したバスコントロール回路32におい
て、CPUリスタートタイミングジェネレータはおよ
そ、次のような動作を行う。
In the bus control circuit 32 shown in FIG. 1, the CPU restart timing generator performs the following operation.

第8図に示した従来のジェネレータ26は、第2のバス
アクティブ1124の立下りをとらえて、そのタイミング
でリスタートパルスを発生させリスタート1119に送り
出すものであった。
The conventional generator 26 shown in FIG. 8 captures the trailing edge of the second bus active 11 24 , generates a restart pulse at that timing, and sends it to the restart 11 19 .

これに対して本発明の回路のCPUリスタートタイミン
グジェネレータ36は、第1図のように、第2のバスア
クティブ1124とアドレスデコーダ23の出力する識別
信号27を受け入れている。そして、この識別信号27
から、第7図のDMA装置13が第1のバス111に接
続された第1のメモリ装置141との間でデータ転送処
理を行うか、第2のバス112に接続された第2のメモ
リ装置142との間でデータ転送処理を行うかを判断
し、前者の場合は第2のバスアクティブ1124の立下り
時にリスタートパルスを出力し、後者の場合は、第2の
バスアクティブ1124の立上り時にリスタートパルスを
出力する。
CPU Li start timing generator 36 of the circuit of the present invention, on the other hand, as the first view, and receiving an output identifying signal 27 of the second bus active 11 24 and an address decoder 23. Then, this identification signal 27
From the first memory device 14 1 connected to the first bus 11 1 to the DMA device 13 shown in FIG. 7 or the second memory 11 2 connected to the second bus 11 2 . It is determined whether or not data transfer processing is to be performed with the memory device 14 2 of the second bus. In the former case, a restart pulse is output when the second bus active 11 24 falls, and in the latter case, the second bus active 11 24 is output. A restart pulse is output when the active signal 11 24 rises.

第2図はその動作を説明するためのタイミングチャート
である。
FIG. 2 is a timing chart for explaining the operation.

はじめに、DMAリクエスト/OKコントロール21
は、第2のDMAリクエスト1121を第1のDMAリク
エスト1111に接続し、第1のDMAリクエストOK1
12を第2のDMAリクエストOK1122に接続した状
態となっている。
First, DMA request / OK control 21
Connects the second DMA request 11 21 to the first DMA request 11 11 and sends the first DMA request OK 1
1 12 is connected to the second DMA request OK11 22 .

DMA装置13が第2のDMAリクエスト1121を立下
らせると(第2図(a))、これに応答してCPU10
が第1のDMAリクエストOK1112を立上らせ(同図
(b))、ほぼ同時に第1のバスアクティブ1114を立
下らせる(同図(c))。
When the DMA device 13 causes the second DMA request 11 21 to fall (FIG. 2 (a)), the CPU 10 responds to this.
Causes the first DMA request OK11 12 to rise (FIG. 11B), and the first bus active 11 14 to rise almost simultaneously (FIG. 11C).

これに対してDMA装置13は、第2のバスアクティブ
1124を立上らせ(同図(e))、第2のアドレスバス
1123、第2のデータバス1128、第2のリード/ライ
トモード1125、第2のストローブ1126を使用してデ
ータ転送処理を開始する(同図(f)〜(i))。そし
て、DMA装置13がデータ転送処理を行う相手方の第
2のメモリ装置142からリプライパルスが第2のリプ
ライ1127に出力される(同図(j))。
On the other hand, the DMA device 13 causes the second bus active 11 24 to rise ((e) in the figure), the second address bus 11 23 , the second data bus 11 28 , and the second read / write. The data transfer process is started using the write mode 11 25 and the second strobe 11 26 ((f) to (i) in the figure). Then, the reply pulse is output from the second memory device 14 2 of the other party to which the DMA device 13 performs the data transfer processing to the second reply 11 27 ((j) in the same figure).

一方、アドレスデコーダ23からは、このとき第2のメ
モリ装置142を使用する旨の識別信号27が出力され
る(同図(d)の実線)。この状態を第2のメモリスペ
ース27が立上った状態と呼ぶ。すなわち、第2のバス
アクティブ1124が立上り第2のメモリ装置142のア
ドレスを指定するアドレス信号が第2のアドレスバス1
23にのると第2のメモリスペース27が立上るのであ
る。
On the other hand, at this time, the address decoder 23 outputs an identification signal 27 indicating that the second memory device 14 2 is used (solid line in FIG. 7D). This state is called a state in which the second memory space 27 has risen. That is, the second bus active 11 24 rises, and the address signal designating the address of the second memory device 14 2 is the second address bus 1
At 1 23 , the second memory space 27 rises.

この第2のメモリスペース27が立上りかつ第2のバス
アクティブ1124が立上ったタイミングでリスタートパ
ルス53がリスタート1119に出力される(同図(K)
の実線)。
At the timing when the second memory space 27 rises and the second bus active 11 24 rises, the restart pulse 53 is output to the restart 11 19 ((K) in the figure).
Solid line).

このリスタートパルス53を受けて、CPU10は第1
のバスアクティブ1114を立上らせ、DMA装置13の
動作とは無関係な第1のバス111を使用して動作を開
始するのである(同図(C)の実線)。
In response to this restart pulse 53, the CPU 10 makes the first
The bus active 11 14 is started up and the operation is started using the first bus 11 1 irrelevant to the operation of the DMA device 13 (solid line in FIG. 7C).

逆に、DMA装置13が第1のメモリ装置141との間
でデータ転送処理を行う場合、第2のメモリスペース2
7の信号は立上らない(同図(d)の破線)。このとき
は、第2のバスアクティブ1124が立下る時点でリスタ
ートパルス53′(第2図(K)の破線で示したパル
ス)を出力する。
Conversely, when the DMA device 13 performs data transfer processing with the first memory device 14 1 , the second memory space 2
The signal 7 does not rise (broken line in FIG. 7D). At this time, the restart pulse 53 '(the pulse shown by the broken line in FIG. 2K) is output when the second bus active 11 24 falls.

CPUはこのリスタートパルスを受けて第1のバスアク
ティブ1114を立上らせ(同図(c)破線)、動作の再
開をする。
Upon receiving the restart pulse, the CPU causes the first bus active 11 14 to rise (broken line (c) in the figure) and restarts the operation.

このように、この実施例では、CPUに向けて送るリス
タートパルスを発生させるタイミングを、第2のバスア
クティブ1124の立上り時か立下り時かのいずれか一方
にすることによって、その動作の再開のタイミングを調
整する。
As described above, in this embodiment, the timing for generating the restart pulse to be sent to the CPU is set to either the rising edge or the falling edge of the second bus active 11 24 , thereby the operation Adjust the restart timing.

なお、第7図に示したDMA装置13が第1のメモリ装
置141とデータ転送処理を行うときは、第1図におい
て、タイミングゲートコントロール24が第1のバスア
クティブ1114と第2のバスアクティブ1124とを直接
接続する。逆の場合は、アドレスバス1113、1123
データバス1118、1128を含めてタイミングゲートコ
ントロール24で接続している伝送線をすべて切り離
す。このようなリスタートパルスの発生のための回路は
種々考えられるが、その一例を第3図以下で説明する。
Incidentally, when the DMA device 13 shown in FIG. 7 performs the first memory device 14 1 and the data transfer process, in Figure 1, the timing gate control 24 and the first bus active 11 14 second bus Direct connection with active 11 24 . In the opposite case, all the transmission lines including the address buses 11 13 and 11 23 and the data buses 11 18 and 11 28 connected by the timing gate control 24 are disconnected. There are various possible circuits for generating such a restart pulse, one example of which will be described with reference to FIG.

(CPUリスタート タイミングジェネレータの説明) 第3図は本発明のダイレクト・メモリ・アクセス・コン
トロール回路の、バスコントロール回路に設けるのに適
するCPUリスタートタイミングジェネレータ36のブ
ロツク図で、第4図はその動作を説明するタイミングチ
ャートである。
(Explanation of CPU Restart Timing Generator) FIG. 3 is a block diagram of the CPU restart timing generator 36 suitable for being provided in the bus control circuit of the direct memory access control circuit of the present invention, and FIG. 4 shows its operation. 3 is a timing chart for explaining the above.

このジェネレータは、先に第1図を用いて説明したよう
に、第2のメモリスペース27と第2のバスアクティブ
1124とがその入力側に接続され、リスタート1119
その出力側に接続されている。
This generator has the second memory space 27 and the second bus active 11 24 connected to its input side and the restart 11 19 connected to its output side, as described above with reference to FIG. Has been done.

まず第2のバスアクティブ1124の信号は、立上り検出
回路41と立下り検出回路42の双方に入力し、前者か
らは立上り時のタイミングで立上りパルス51が出力さ
れ、後者からは立下り時のタイミングで立下りパルス5
2が出力される。
First, the signal of the second bus active 11 24 is input to both the rising edge detection circuit 41 and the falling edge detection circuit 42, the rising pulse 51 is output from the former at the timing of the rising edge, and the latter outputs the rising edge pulse 51 from the falling edge. Falling pulse 5 at the timing
2 is output.

第4図(b)に第2のバスアクティブ1124、(c)
に立上りパルス51、(d)に立下りパルス52を表示
した。そして、この立上りパルス51は第2のメモリス
ペース27(同図(a))と共に第3図のアンド回路4
3に入力し、立下りパルス52は第2のメモリスペース
27を反転した信号と共にアンド回路44に入力する。
The second bus active 11 24 , (c) is shown in FIG. 4 (b).
The rising pulse 51 is shown in FIG. 4 and the falling pulse 52 is shown in (d). The rising pulse 51 is supplied to the AND circuit 4 of FIG. 3 together with the second memory space 27 (FIG. 7A).
3 and the falling pulse 52 is input to the AND circuit 44 together with the inverted signal of the second memory space 27.

2つのアンド回路43、44の出力はオア回路45で合
流してリスタート信号とされる。
The outputs of the two AND circuits 43 and 44 are merged by the OR circuit 45 to form a restart signal.

ここで、第2のメモリスペース27が立上っているとき
は、アンド回路43からは立上りパルス51がそのまま
出力するが、アンド回路44は立下りパルス52を通過
させない。従って、第4図(e)に実線で示したリスタ
ートパルス53がこのジェネレータ36からリスタート
1119に向けて出力される。
Here, when the second memory space 27 is rising, the rising pulse 51 is output from the AND circuit 43 as it is, but the AND circuit 44 does not pass the falling pulse 52. Therefore, the restart pulse 53 shown by the solid line in FIG. 4 (e) is output from the generator 36 toward the restart 11 19 .

こうして、第2のバスアクティブ1124の立上りのタイ
ミングでリスタートパルス52を出力することができ
る。
In this way, the restart pulse 52 can be output at the rising timing of the second bus active 11 24 .

一方、第2のメモリスペース27が立上っていないとき
(第4図(a)の破線)、アンド回路43から立上りパ
ルス51が出力されず、アンド回路44から立下りパル
ス52が出力される。これがリスタート1119に向けて
出力されるので、第4図(e)の破線に示すように、第
2のバスアクティブ1124の立下りのタイミングでリス
タートパルス53′が出力される。
On the other hand, when the second memory space 27 has not risen (broken line in FIG. 4A), the rising pulse 51 is not output from the AND circuit 43 and the falling pulse 52 is output from the AND circuit 44. . Since this is output toward the restart 11 19 , the restart pulse 53 'is output at the falling timing of the second bus active 11 24 as shown by the broken line in FIG. 4 (e).

第5図は第3図の立上り検出回路41と立下り検出回路
42とをさらに詳細に示したブロツク図である。また、
第6図はその動作を説明するタイミングチャートであ
る。
FIG. 5 is a block diagram showing the rise detection circuit 41 and the fall detection circuit 42 of FIG. 3 in more detail. Also,
FIG. 6 is a timing chart for explaining the operation.

この図において、立上り検出回路41は2個のフリップ
フロップ411、412と、アンド回路413およびディ
レイライン(DL)414とから構成されている。ま
た、立下り検出回路42は、インバータ421とアンド
回路422とから構成されている。
In this figure, the rising detection circuit 41 is composed of two flip-flops 41 1 and 41 2 , an AND circuit 41 3 and a delay line (DL) 41 4 . The fall detection circuit 42 is composed of an inverter 42 1 and an AND circuit 42 2 .

さて、立上り検出回路41の各フリップフロップ4
1、412には、クロック信号60が供給され(第6図
(b))、このクロック信号60のタイミングにあわせ
て、第2のバスアクティブ1124上の信号が、フリップ
フロップ411からフリップフロップ412を通りアンド
回路413へ転送される(同図(c)、(d)、
(e)、(f))。
Now, each flip-flop 4 of the rising edge detection circuit 41
The clock signal 60 is supplied to 1 1 and 41 2 (FIG. 6 (b)), and the signal on the second bus active 11 24 is transferred from the flip-flop 41 1 in synchronization with the timing of this clock signal 60. The data is transferred to the AND circuit 41 3 through the flip-flop 41 2 ((c) and (d) in FIG.
(E), (f)).

アンド回路413の一方の端子には、フリップフロップ
412のQ出力を反転した信号が入力する(同図
(f))。
A signal obtained by inverting the Q output of the flip-flop 41 2 is input to one terminal of the AND circuit 41 3 ((f) in the figure).

アンド回路413のもう一方の端子には第2のバスアク
ティブが直接接続されている((同図(c))。両者の
アンド出力はディレイライン414を通じてアンド回路
43に入力する(同図(g))。
The second bus active is directly connected to the other terminal of the AND circuit 41 3 (((c) in the same figure). The AND outputs of both are input to the AND circuit 43 through the delay line 41 4 (see the same figure). (G)).

一方、立下り検出回路42は、第2のバスアクティブ1
24上の信号をインバータ421で反転させてアンド回
路422の一方の端子に入力させ、かつ立上り検出回路
41のフリップフロップ412のQ出力をもう一方の端
子に入力させる(同図(e))。このアンド回路422
の出力はそのままアンド回路44に入力する(同図
(h))。
On the other hand, the fall detection circuit 42 uses the second bus active 1
The signal on 1 24 is inverted by the inverter 42 1 and input to one terminal of the AND circuit 42 2 , and the Q output of the flip-flop 41 2 of the rising edge detection circuit 41 is input to the other terminal (Fig. e)). This AND circuit 42 2
Is directly input to the AND circuit 44 ((h) in the figure).

ここで、ディレイライン414は、第2のバスアクティ
ブ1124が立上って第2のメモリスペース27が立上る
までやや時間がかかるためそのタイミングを一致させる
ために設けたものである。
Here, the delay line 41 4 is provided to match the timing because it takes some time for the second bus active 11 24 to rise and the second memory space 27 to rise.

このようにして、立上り検出回路41から立上りパルス
51(同図(g))が得られ、立下り検出回路42から
は立下りパルス52(同図(h))が得られる。
In this way, the rising pulse 51 (FIG. 9 (g)) is obtained from the rising edge detection circuit 41, and the falling pulse 52 (FIG. 3 (h)) is obtained from the falling edge detection circuit 42.

その後、第3図で説明したと同様に、第2のメモリスペ
ース27が立上っているときは第2のバスアクティブ1
24が立上るタイミングでリスタートパルス53(第6
図(i)の実線)が出力され、第2のメモリスペース2
7が立上っていないときは、第2のバスアクティブ11
24が立下るタイミングでリスタートパルス53′(第6
図(i)の破線)が出力される。
After that, as described with reference to FIG. 3, when the second memory space 27 is rising, the second bus active 1
Restart pulse 53 at the timing 1 24 rises (sixth
The solid line in the figure (i) is output, and the second memory space 2
When 7 is not rising, the second bus active 11
At the timing when 24 falls, restart pulse 53 '(6th
The broken line in Fig. (I) is output.

「発明の効果」 以上説明した本発明のダイレクト・メモリ・アクセス・
コントロール回路は、マイクロプロセッサと間接的に接
続された第2のバスにおいて、この第2のバスに接続さ
れたDMA装置と第2のメモリ装置との間でデータ転送
処理を行っている間、マイクロプロセッサと直接接続さ
れた第1のバスを使用してマイクロプロセッサが他の処
理を行うことができるので、その実行効率を高めること
ができる。
"Effects of the Invention" The direct memory access of the present invention described above
The control circuit, in the second bus indirectly connected to the microprocessor, controls the microprocessor while performing data transfer processing between the DMA device and the second memory device connected to the second bus. Since the microprocessor can perform other processing by using the first bus directly connected to the processor, its execution efficiency can be improved.

また、本発明ではマイクロプロセッサ側が第2のバスの
存在を何ら意識することなくその制御を行うことができ
る。すなわち、マイクロプロセッサは第1のバスにダイ
レクト・メモリ・アクセス装置が接続されているか第2
のバスにこれが接続されているかを区別することなく、
ダイレクト・メモリ・アクセス要求があったときにはそ
の動作を停止させている。また、第2のバスに接続され
たダイレクト・メモリ・アクセス装置が第2のバスを指
定してデータ転送処理を行うときには第1のバスに接続
されたダイレクト・メモリ・アクセス装置が第1のバス
に対してデータ転送処理を行う場合におけるその処理の
終了と擬制される信号(実施例におけるリスタートパル
ス)をバスコントロール回路から得ることで第1のバス
の使用が許可されるようになっている。このように、マ
イクロプロセッサ側ではバス構成がどのようなものであ
るかどうかを意識することなく、ダイレクト・メモリ・
アクセス要求に対処することができるので、システムの
変更があっても制御のためのプログラムを何ら変更する
必要がなく、バスの増設や変更が容易であるという効果
がある。
Further, according to the present invention, the microprocessor side can control the second bus without being aware of the existence of the second bus. That is, whether the microprocessor has a direct memory access device connected to the first bus or a second bus.
Without distinguishing whether this is connected to the bus of
When there is a direct memory access request, the operation is stopped. Further, when the direct memory access device connected to the second bus designates the second bus and performs the data transfer process, the direct memory access device connected to the first bus is the first bus. When the data transfer process is performed on the first bus, the use of the first bus is permitted by obtaining from the bus control circuit a signal (restart pulse in the embodiment) that is simulated as the end of the process. . In this way, the microprocessor side does not need to be aware of the bus configuration,
Since the access request can be dealt with, there is no need to change the control program even if the system is changed, and the bus can be easily added or changed.

更に本発明の場合には、ダイレクト・メモリ・アクセス
要求があったとき必ずマイクロプロセッサにこれが通知
されマイクロプロセッサが要求を認めた結果としてマイ
クロプロセッサの動作が停止させられるようになってい
る。すなわち、マイクロプロセッサはバス上でマイクロ
プロセッサと無関係にデータ転送が行われる場合にも、
その開始のための要求を知り、その要求を認めるか否か
の決定権を有している。したがって、もし、何らかの障
害が発生してマイクロプロセッサが制御の続行を好まし
くないと判断しているときには、それが第2のバス上で
行われるデータ転送であったとしてもその進行を停止さ
せることができる。これに対して、第1のバスと第2の
バスが通常の状態で切り離されているシステムにおいて
は、マイクロプロセッサの関与なしに第2のバス上のデ
ータ処理が進行してしまい、システムに不都合を発生さ
せるおそれがある。
Further, in the case of the present invention, when a direct memory access request is issued, the microprocessor is notified of this request and the operation of the microprocessor is stopped as a result of the request being acknowledged by the microprocessor. In other words, the microprocessor is able to transfer data on the bus independently of the microprocessor.
Knows the request to start and has the right to decide whether to accept the request. Therefore, if some failure occurs and the microprocessor determines that it is not desirable to continue control, it may stop its progress even if it is a data transfer on the second bus. it can. On the other hand, in a system in which the first bus and the second bus are separated in a normal state, data processing on the second bus proceeds without the involvement of the microprocessor, which is inconvenient for the system. May occur.

また、本発明の場合にはいずれのバス上でデータ転送が
行われる場合であっても、マイクロプロセッサはその動
作を停止し、直接関係ないバス上でダイレクト・メモリ
・アクセス装置によるデータ転送が行われることが確定
した場合や、直接接続されたバスでダイレクト・メモリ
・アクセスが終了したような次の確定状況が発生した段
階で動作を開始するようになっている。したがって、他
のバス上でのデータ処理の開始時に何らかの外乱が発生
してもマイクロプロセッサはその影響を受けることがな
く、信頼性を確保することができる。
Further, in the case of the present invention, regardless of which bus is used for data transfer, the microprocessor stops its operation, and the data transfer by the direct memory access device is performed on the bus that is not directly related. The operation is started when it is determined that the data is to be stored, or when the next determination situation occurs such that the direct memory access is completed on the directly connected bus. Therefore, even if some disturbance occurs at the start of data processing on another bus, the microprocessor is not affected by the disturbance, and the reliability can be ensured.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明のダイレクト・メモリ・アクセス・コン
トロール回路に設けたバスコントロール回路の実施例を
示すブロック図、第2図は本発明のダイレクト・メモリ
・アクセス・コントロール回路の動作を説明するタイミ
ングチャート、第3図は本発明のダイレクト・メモリ・
アクセス・コントロール回路の要部の実施例を示すブロ
ツク図、第4図はそのタイミングチャート、第5図は本
発明のダイレクト・メモリ・アクセス・コントロール回
路の要部のさらに詳細な実施例を示すブロック図、第6
図はそのタイミングチャート、第7図は本発明の実施に
適するコンピュータシステムのブロック図、第8図は従
来のバスコントロール回路の一例を示すブロック図、第
9図と第10図はその動作を説明するタイミングチャー
トである。 10……マイクロプロセッサ、 111……第1のバス、 112……第2のバス、 12……バスコントロール回路、 13……ダイレクト・メモリ・アクセス装置、 141……第1のメモリ装置、 142……第2のメモリ装置。
FIG. 1 is a block diagram showing an embodiment of a bus control circuit provided in the direct memory access control circuit of the present invention, and FIG. 2 is a timing for explaining the operation of the direct memory access control circuit of the present invention. The chart and FIG. 3 show the direct memory of the present invention.
A block diagram showing an embodiment of the main part of the access control circuit, FIG. 4 is a timing chart thereof, and FIG. 5 is a block showing a more detailed embodiment of the main part of the direct memory access control circuit of the present invention. Figure, 6th
FIG. 7 is a timing chart thereof, FIG. 7 is a block diagram of a computer system suitable for implementing the present invention, FIG. 8 is a block diagram showing an example of a conventional bus control circuit, and FIGS. 9 and 10 explain its operation. 7 is a timing chart for performing the operation. 10 ... Microprocessor, 11 1 ...... First bus, 11 2 ...... Second bus, 12 ...... Bus control circuit, 13 ...... Direct memory access device, 14 1 ...... First memory device , 14 2 ...... Second memory device.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】マイクロプロセッサと直接接続される第1
のバスと、マイクロプロセッサと間接的に接続される第
2のバスと、前記第1のバスと第2のバスとを連結する
バスコントロール回路とを有し、 このバスコントロール回路は、前記第2のバスに接続さ
れたダイレクト・メモリ・アクセス装置がマイクロプロ
セッサに対してダイレクト・メモリ・アクセス要求を行
いこのマイクロプロセッサがこの要求を認めたことを条
件として第1のバスに対するマイクロプロセッサの動作
を停止させ、前記ダイレクト・メモリ・アクセス装置が
データ転送処理の開始の際第2のバスに接続されたメモ
リのアドレスを指定したときには、ダイレクト・メモリ
・アクセス装置によるデータ転送処理が終了する前のこ
の段階で、マイクロプロセッサが第1のバスを使用して
動作を行うことを許可することを特徴とするメモリ・ア
クセス・コントロール回路。
1. A first directly connected to a microprocessor.
Bus, a second bus indirectly connected to the microprocessor, and a bus control circuit that connects the first bus and the second bus, and the bus control circuit includes the second bus. Of the direct memory access device connected to the bus of the microprocessor makes a direct memory access request to the microprocessor, and stops the operation of the microprocessor for the first bus on condition that the microprocessor acknowledges the request. When the direct memory access device specifies the address of the memory connected to the second bus at the start of the data transfer process, this step before the data transfer process by the direct memory access device is completed And permitting the microprocessor to perform operations using the first bus. Memory access control circuit.
JP60080092A 1985-04-17 1985-04-17 Direct memory access control circuit Expired - Lifetime JPH067379B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60080092A JPH067379B2 (en) 1985-04-17 1985-04-17 Direct memory access control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60080092A JPH067379B2 (en) 1985-04-17 1985-04-17 Direct memory access control circuit

Publications (2)

Publication Number Publication Date
JPS61239348A JPS61239348A (en) 1986-10-24
JPH067379B2 true JPH067379B2 (en) 1994-01-26

Family

ID=13708554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60080092A Expired - Lifetime JPH067379B2 (en) 1985-04-17 1985-04-17 Direct memory access control circuit

Country Status (1)

Country Link
JP (1) JPH067379B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63278168A (en) * 1987-05-11 1988-11-15 Hitachi Ltd Bus controller
JPH08209023A (en) 1994-11-24 1996-08-13 Fuji Electric Co Ltd Titaniloxyphthalocyanine crystal, its production and photosensitizer for electrophotography
US5874570A (en) * 1995-11-10 1999-02-23 Fuji Electric Co., Ltd. Titanyloxyphthalocyanine crystals, and method of preparing the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5440040A (en) * 1977-09-06 1979-03-28 Toshiba Corp Common bus control system
JPS6027031B2 (en) * 1977-09-12 1985-06-26 コピア株式会社 Toner concentration detection device

Also Published As

Publication number Publication date
JPS61239348A (en) 1986-10-24

Similar Documents

Publication Publication Date Title
US5021950A (en) Multiprocessor system with standby function
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US4716526A (en) Multiprocessor system
US6601165B2 (en) Apparatus and method for implementing fault resilient booting in a multi-processor system by using a flush command to control resetting of the processors and isolating failed processors
JPH08161279A (en) Multiprocessor system
US4622630A (en) Data processing system having unique bus control protocol
EP0242879A2 (en) Data processor with wait control allowing high speed access
EP0348240B1 (en) Microprocessor equipped with parity control unit on same chip
KR950010529B1 (en) Memory sharing for communicaiton between processors
US6108755A (en) Asynchronous access system to a shared storage
JPS6043546B2 (en) Data transfer error handling method
JPH067379B2 (en) Direct memory access control circuit
JP2000231539A (en) Data transfer system and data transfer method
JPH06274462A (en) Asynchronous writing system for shared memory
JP3071044B2 (en) Test method for semiconductor integrated circuit with microcomputer
JPH05250250A (en) Access control method for dual port ram
KR930005836B1 (en) Method of controlling waiting time of cpu and system therefor
JP2802091B2 (en) Interrupt vector control method
JPS6315953Y2 (en)
CN116880327A (en) Main and standby platform cascading method, device, equipment and medium
JPS63251840A (en) Control method for detection of multi-processor abnormality
JPS624746B2 (en)
JPH05233576A (en) Duplex system
JPH04152448A (en) Method and device for conversion of interface
JPH02210515A (en) System resetting system