JPS6138511B2 - - Google Patents
Info
- Publication number
- JPS6138511B2 JPS6138511B2 JP56008375A JP837581A JPS6138511B2 JP S6138511 B2 JPS6138511 B2 JP S6138511B2 JP 56008375 A JP56008375 A JP 56008375A JP 837581 A JP837581 A JP 837581A JP S6138511 B2 JPS6138511 B2 JP S6138511B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- dma
- circuit
- cpu
- output
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/28—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
- G06F13/285—Halt processor DMA
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
- Memory System (AREA)
Description
【発明の詳細な説明】
この発明は、主メモリを備えたマスタCPU
(中央処理装置)と、内部メモリを備えマスタ
CPUに接続されたスレーブCPUとからなり、主
メモリがスレーブCPUによつて直接アクセスさ
れ得るマルチプロセツサ・システムに関する。[Detailed Description of the Invention] This invention provides a master CPU with main memory.
(central processing unit) and internal memory.
The present invention relates to a multiprocessor system consisting of a CPU and a slave CPU connected to it, the main memory of which can be directly accessed by the slave CPU.
従来のマルチプロセツサ・システムでは、スレ
ーブCPUはマスタCPUに付随したDMA(直接メ
モリ・アクセス)制御回路を介してシステム・バ
スに接続されており、DMA制御回路が主メモリ
のアドレスに関する情報をマスタCPUから受取
つて記憶している。そして、まずスレーブCPU
がDMA制御回路にDMA要求信号を出力し、この
DMA制御回路の制御のもとにスレーブCPUが主
メモリをアクセスするように構成されている。し
かしながらこの方式では、主メモリのアクセスす
べきメモリ・アドレスが頻繁に変化する場合や、
多数のスレーブCPUが主メモリをアクセスする
場合には処理能力が大巾に低下するという問題が
ある。 In traditional multiprocessor systems, slave CPUs are connected to the system bus through a DMA (direct memory access) control circuit attached to the master CPU, and the DMA control circuit masters information about main memory addresses. It is received from the CPU and stored. And first, the slave CPU
outputs a DMA request signal to the DMA control circuit, and this
The slave CPU is configured to access the main memory under the control of the DMA control circuit. However, with this method, there are cases where the memory address to be accessed in main memory changes frequently,
When a large number of slave CPUs access the main memory, there is a problem in that processing power is significantly reduced.
また、スレーブCPUの内部バスをシステム・
バスに直接に接続し、スレーブCPUが主メモリ
をアクセスする間他のスレーブCPUを待機状態
にする方式もとられることがあるが、この方式で
はスレーブCPUの待機時間の分だけ処理速度が
低下し、また待機時間に制限のあるCPUをスレ
ーブCPUとして使用できないという欠点があ
る。 In addition, the internal bus of the slave CPU can be
A method is sometimes used in which a slave CPU is directly connected to the bus and other slave CPUs are placed on standby while the slave CPU accesses the main memory, but with this method the processing speed is reduced by the amount of time the slave CPU waits. , Another drawback is that a CPU with a limited standby time cannot be used as a slave CPU.
この発明は上記実情に鑑みてなされたものであ
つて、スレーブCPUの処理能力を低下させるこ
となく主メモリとの間でDMA転送を行なうこと
のできるマルチプロセツサ・システムを提供する
ことを目的とする。 This invention was made in view of the above circumstances, and an object of the present invention is to provide a multiprocessor system that can perform DMA transfer with main memory without reducing the processing ability of slave CPUs. do.
以下、図面を参照してこの発明の実施例につい
て詳しく説明する。 Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図において、システム全体を制御するマス
タCPU1およびその主メモリ2は、複数のスレ
ーブCPU1と、システム・バスを構成するアド
レス・バス3、データ・バス4およびコントロー
ル、ライン5,6,7で結ばれている。マスタ
CPU1と主メモリ2とはシステム・バスにより
接続されている。各スレーブCPU11は内部メ
モリ12をそれぞれ備えており、内部バスを構成
するアドレス・バス13、データ・バス14およ
びコントロール・ライン15により相互に接続さ
れている。これらの内部バスは、DMA制御回路
22のラツチ・ゲート回路31,32,33,3
4をそれぞれ介してシステム・バスに接続されて
いる。この例では、便宜的に2台のスレーブ
CPU11が図示されているが、適数台設けられ
ているものとする。そして、これらのスレーブ
CPUに番号1、2、……m、n(=m+1)、…
…を付して表わす。 In FIG. 1, a master CPU 1 and its main memory 2, which control the entire system, are connected to a plurality of slave CPUs 1, an address bus 3, a data bus 4, and control lines 5, 6, and 7, which constitute a system bus. tied together. Master
CPU 1 and main memory 2 are connected by a system bus. Each slave CPU 11 has an internal memory 12, and is interconnected by an address bus 13, a data bus 14, and a control line 15 that constitute an internal bus. These internal buses are connected to latch gate circuits 31, 32, 33, 3 of the DMA control circuit 22.
4, respectively, to the system bus. In this example, we use two slaves for convenience.
Although the CPU 11 is shown in the figure, it is assumed that an appropriate number of CPUs are provided. And these slaves
Numbers 1, 2, ...m, n (=m+1), ... on the CPU
It is expressed with ....
各スレーブCPU11に対して、スレーブCPU
11のアドレス信号を入力とするデコーダ21が
設けられている。このデコーダ21には、内部メ
モリ12のアドレス範囲があらかじめ設定されて
おり、アドレス・バス13を通して入力するアド
レスがこの設定アドレス範囲内に含まれていれ
ば、デコーダ21からLレベルの内部メモリ判定
信号が出力され、この信号がメモリ要求信号
として内部メモリ12に送られる。またスレーブ
CPU11の出力するアドレスが、上記の設定ア
ドレス範囲外の場合には、デコーダ21からLレ
ベルのDMA要求判定信号が出力される。この
DMA要求判定信号はDMA制御回路22に送
られる。したがつてスレーブCPU11は、内部
メモリ12のアドレス範囲のアドレス信号および
リードまたはライト制御信号を出力することによ
り、通常の手法で、内部メモリ12からのデータ
の読出しまたは書込みを行なうことができる。な
お、デコーダ21には、内部メモリのアドレス範
囲に代えて主メモリのアドレス範囲を設定してお
くようにしてもよい。 For each slave CPU11, the slave CPU
A decoder 21 is provided which receives 11 address signals as input. The address range of the internal memory 12 is preset in this decoder 21, and if the address input through the address bus 13 is included in this set address range, the decoder 21 sends an internal memory judgment signal of L level. is output, and this signal is sent to the internal memory 12 as a memory request signal. Also a slave
If the address output by the CPU 11 is outside the above set address range, the decoder 21 outputs an L-level DMA request determination signal. this
The DMA request determination signal is sent to the DMA control circuit 22. Therefore, the slave CPU 11 can read or write data from the internal memory 12 in a normal manner by outputting an address signal and a read or write control signal in the address range of the internal memory 12. Note that the address range of the main memory may be set in the decoder 21 instead of the address range of the internal memory.
スレーブCPU11が主メモリ2へのデコーダ
の書込みまたは読出しを行なう場合には、主メモ
リ2のアドレスを指定するアドレス信号を出力す
る。すると、デコーダ21からDMA要求判定信
号が出力され、DMA制御回路22に送られる
ので、DMA制御回路22によるDMA転送制御が
行なわれる。このDMA転送の様子が第2図に示
されている。 When the slave CPU 11 writes or reads a decoder to or from the main memory 2, it outputs an address signal specifying the address of the main memory 2. Then, a DMA request determination signal is output from the decoder 21 and sent to the DMA control circuit 22, so that the DMA control circuit 22 performs DMA transfer control. The state of this DMA transfer is shown in FIG.
さて、DMA転送によつて主メモリ2への書込
みを行なう場合には、スレーブCPU11はアド
レス信号をアドレス・バス13に出力するととも
に、書込むべきデータ信号およびライト制御信号
をデータ・バス14およびコントロール・ライ
ン15に出力する。デコーダ21からLレベルの
DMA要求判定信号が出力されると、この信号
はラツチ・ゲート回路31,34のラツチ制
御端子Rに送られるので、スレーブCPU11か
ら出力されたアドレス信号およびライト制御信号
がこれらのラツチ・ゲート回路31,34にラ
ツチされる。また、信号は負論理AND回路3
6の一方の入力端子にも送られる。このAND回
路36の他方の入力端にはコントロール信号すな
わちLレベルのライト制御信号が入力している
から、AND回路36からはLレベルの出力が発
生し、このLレベル信号がラツチ回路32のラツ
チ制御端子Rに入力するので、スレーブCPU1
1から出力されたデータ信号がこのラツチ・ゲー
ト回路32にラツチされる。 Now, when writing to the main memory 2 by DMA transfer, the slave CPU 11 outputs the address signal to the address bus 13, and also outputs the data signal to be written and the write control signal to the data bus 14 and the control signal. - Output to line 15. L level from decoder 21
When the DMA request determination signal is output, this signal is sent to the latch control terminals R of the latch gate circuits 31 and 34, so that the address signal and write control signal output from the slave CPU 11 are sent to the latch gate circuits 31 and 34. , 34. In addition, the signal is negative logic AND circuit 3
It is also sent to one input terminal of 6. Since a control signal, that is, an L-level write control signal is input to the other input terminal of the AND circuit 36, an L-level output is generated from the AND circuit 36, and this L-level signal triggers the latch of the latch circuit 32. Since it is input to control terminal R, slave CPU1
The data signal output from the latch gate circuit 32 is latched into the latch gate circuit 32.
LレベルのDMA要求判定信号は、負論理
AND回路25の一方の入力端子にも入力する。
このAND回路25の他方の入力端子には、フリ
ツプフロツプ24のセツト出力Qが入力してい
る。このフリツプフロツプ24はこの時点ではリ
セツトされているから、そのセツト出力QはLレ
ベルである。したがつて、AND回路25の出力
はLレベルとなり、このLレベル信号がフリツプ
フロツプ23の強制セツト入力端子Sに送られる
ので、このフリツプフロツプ23はセツトされ
る。この結果、フリツプフロツプ23のセツト出
力QがHレベルになり、このHレベル信号は
NOT回路29を経てLレベルのDMA要求信号
としてライン6を経てマスタCPU1に送られ
る。またフリツプフロツプ23のセツト出力Qは
AND回路27およびNAND回路30にも送られ
る。 The L level DMA request determination signal is a negative logic
It is also input to one input terminal of the AND circuit 25.
The set output Q of the flip-flop 24 is input to the other input terminal of the AND circuit 25. Since flip-flop 24 has been reset at this point, its set output Q is at L level. Therefore, the output of the AND circuit 25 becomes L level, and this L level signal is sent to the forced set input terminal S of the flip-flop 23, so that the flip-flop 23 is set. As a result, the set output Q of the flip-flop 23 becomes H level, and this H level signal is
It passes through the NOT circuit 29 and is sent to the master CPU 1 via line 6 as an L-level DMA request signal. Also, the set output Q of the flip-flop 23 is
It is also sent to the AND circuit 27 and the NAND circuit 30.
DMA制御回路22には優先回路が設けられて
いる。この優先回路は、フリツプフロツプ23、
NOT回路41、NAND回路42およびNAND回
路30からなる。この例では、スレーブCPU1
1に付した番号1〜n等の小さい順に優先順位が
高い。番号mのスレーブCPU11を考えると、
優先順位の高い前段のDMA禁止信号DR(m−
1)がHレベルであれば、このスレーブCPU1
1によるDMA転送が禁止される。すなわち、こ
のHレベルの信号はNOT回路41で反転されて
Lレベルの信号となり、このLレベルの信号が
NAND回路30に送られ、このNAND回路30の
ゲートが開かない。またNOT回路41のLレベ
ルの信号はNAND回路42に入力しているから、
NAND回路42の出力は必ずHレベルになり、次
段のスレーブCPU11のDMA転送を禁止する信
号DPnとなる。また、フリツプフロツプ23がセ
ツトされてDMA要求信号が出力されたときに
は、フリツプフロツプ23のLレベルのリセツト
出力がNAND回路42に入力し、NAND回路4
2の出力がHレベルとなるので、この場合にも次
段の優先順位の低いスレーブCPU11のDMA転
送が禁止される。 The DMA control circuit 22 is provided with a priority circuit. This priority circuit includes a flip-flop 23,
It consists of a NOT circuit 41, a NAND circuit 42, and a NAND circuit 30. In this example, slave CPU1
The priority order is higher in descending order of the numbers 1 to n attached to 1. Considering slave CPU11 with number m,
DMA prohibition signal DR (m-
1) is H level, this slave CPU1
DMA transfer by 1 is prohibited. That is, this H level signal is inverted by the NOT circuit 41 to become an L level signal, and this L level signal is
The signal is sent to the NAND circuit 30, and the gate of this NAND circuit 30 does not open. Also, since the L level signal of the NOT circuit 41 is input to the NAND circuit 42,
The output of the NAND circuit 42 is always at the H level, and serves as a signal DP n that inhibits DMA transfer by the slave CPU 11 at the next stage. Furthermore, when the flip-flop 23 is set and a DMA request signal is output, the L level reset output of the flip-flop 23 is input to the NAND circuit 42,
Since the output of CPU 2 becomes H level, DMA transfer by the slave CPU 11 at the next stage with a lower priority is prohibited in this case as well.
DMA禁止信号DP(m−1)がLレベルの場合
には、番号mのスレーブCPU11のDMA転送が
可能である。この場合にはNOT回路41の出力
はHレベルとなり、このHレベルの信号がNAND
回路30に入力する。このNAND回路30にはフ
リツプフロツプ23のHレベルのセツト出力Qも
入力している。したがつて、マスタCPU1が
DMA要求信号を受付けてLレベルのDMA許
可信号を出力すると、この信号はNOT回
路28を経てHレベルの信号となりNAND回路3
0に入力する。この結果、NAND回路30の出力
はLレベルになる。マスタCPU1は、スレーブ
CPU11からのDMA要求信号が受付可能であれ
ば上述のLレベルのDMA許可信号を出力し、か
つシステム・バスを切離してDMA転送が可能な
状態とする。 When the DMA prohibition signal DP (m-1) is at the L level, DMA transfer by the slave CPU 11 with number m is possible. In this case, the output of the NOT circuit 41 becomes H level, and this H level signal becomes the NAND
input to circuit 30; This NAND circuit 30 also receives the H level set output Q of the flip-flop 23. Therefore, master CPU1
When the DMA request signal is received and a DMA permission signal at L level is output, this signal passes through the NOT circuit 28 and becomes an H level signal.
Enter 0. As a result, the output of the NAND circuit 30 becomes L level. Master CPU1 is slave
If the DMA request signal from the CPU 11 can be accepted, the above-mentioned L-level DMA permission signal is output, and the system bus is disconnected to enable DMA transfer.
NAND回路30のLレベルの出力信号は、ラツ
チ・ゲート回路31,34のゲート制御端子Gに
送られるので、これらのラツチ・ゲート回路3
1,34のゲートが開かれ、そこにラツチされて
いたアドレス信号およびライト制御信号がアド
レス・バス3およびコントロール・バス5を通つ
て主メモリ2に送られる。また、NAND30のL
レベル信号は負論理AN回路35に送られる。こ
のAND回路35の他方の入力端子にはラツチ・
ゲート回路34の出力信号が入力しているから、
Lレベルのライト制御信号がラツチ・ゲート回
路34から出力されると、AND回路35の出力
はLレベルになり、このLレベル信号がラツチ・
ゲート回路32のゲート制御端子Gに送られその
ゲートが開かれるので、この回路32にラツチさ
れていたデータ信号が主メモリ2に送られる。こ
のようにして、スレーブCPU11から出力され
たデータが主メモリ2の所定のアドレスに書込ま
れる。 The L level output signal of the NAND circuit 30 is sent to the gate control terminal G of the latch gate circuits 31 and 34, so these latch gate circuits 3
Gates 1 and 34 are opened, and the address signal and write control signal latched therein are sent to main memory 2 through address bus 3 and control bus 5. Also, NAND30 L
The level signal is sent to the negative logic AN circuit 35. The other input terminal of this AND circuit 35 has a latch.
Since the output signal of the gate circuit 34 is input,
When the L level write control signal is output from the latch/gate circuit 34, the output of the AND circuit 35 becomes L level, and this L level signal causes the latch/gate circuit 34 to output the L level write control signal.
Since the data signal is sent to the gate control terminal G of the gate circuit 32 and the gate is opened, the data signal latched in this circuit 32 is sent to the main memory 2. In this way, data output from the slave CPU 11 is written to a predetermined address in the main memory 2.
DMA転送が終了してDMA許可信号がHレ
ベルになると、NAND回路30の出力もHレベル
になるから、この出力がフリツプフロツプ23の
クロツク入力端子Tに入力する。このフリツプフ
ロツプ23のデータ入力端子Dは接地されている
からLレベルである。したがつてフリツプフロツ
プ23がリセツトされ、そのセツト出力QがLレ
ベルになるのでDMA要求信号はHレベルにな
る。このフリツプフロツプ23のリセツト出力
がHレベルになるから、このHレベル信号が優先
回路のNAND回路42に入力し、少なくともこの
DMA制御回路による優先順位の低い回路に対す
るDMA禁止が解かれる。 When the DMA transfer is completed and the DMA permission signal goes high, the output of the NAND circuit 30 also goes high, so this output is input to the clock input terminal T of the flip-flop 23. Since the data input terminal D of the flip-flop 23 is grounded, it is at L level. Therefore, flip-flop 23 is reset and its set output Q goes to L level, so the DMA request signal goes to H level. Since the reset output of this flip-flop 23 becomes H level, this H level signal is input to the NAND circuit 42 of the priority circuit, and at least this
The DMA inhibition of low priority circuits by the DMA control circuit is lifted.
スレーブCPU11は主メモリ2のアドレス範
囲のアドレスを出力したのちは、DMA転送に必
要な信号をすべてDMA制御回路22に転送して
しまつているから、このスレーブCPU11は、
DMA転送とは無関係に処理を行なうことができ
る。 After the slave CPU 11 outputs the address in the address range of the main memory 2, it has already transferred all the signals necessary for DMA transfer to the DMA control circuit 22, so this slave CPU 11
Processing can be performed independently of DMA transfer.
スレーブCPU11がDMA転送によつて主メモ
リ2からの読出しを行なう場合には、スレーブ
CPU11は、主メモリ2のデータを読出すべき
アドレスを指定するアドレス信号をアドレス・バ
ス13に、Hレベルのリード信号Rをコントロー
ル・ライン15にそれぞれ出力する。デコーダ2
1からは上述のようにDMA要求判定信号が出
力され、この信号はラツチ・ゲート回路3
1,34のラツチ制御端子Rに送られるので、ア
ドレス信号およびリード信号Rが回路31,34
にそれぞれラツチされる。また、DMA要求判定
信号はNAND回路37の一方の入力端子に反
転して入力する。このNAND回路37の他方の入
力端子にはHレベルのリード信号Rが入力してい
るから、この回路37からはLレベルの信号が出
力され、この出力はラツチ・ゲート回路33のゲ
ート制御端子Gに入力する。このラツチ・ゲート
回路33はDMA転送において主メモリ2から読
出されてデータ・バス4を通して送られてきたデ
ータ信号をラツチするものであり、前回行なつた
DMAによる主メモリ2の読出しにおいて読出さ
れたデータ信号がラツチされている。NAND回路
37からLレベルの信号が出力されるとこのラツ
チ・ゲート回路33にラツチされていた前回のデ
ータ信号がこの回路33から出力される。このデ
ータ信号は今回のDMA転送が終了するまでに出
力され続けるから、スレーブCPU11は適当な
タイミングでこのデータ信号を取込むことができ
る。 When the slave CPU 11 reads from the main memory 2 by DMA transfer, the slave CPU 11
The CPU 11 outputs an address signal specifying an address from which data in the main memory 2 is to be read to the address bus 13, and outputs an H level read signal R to the control line 15. Decoder 2
1 outputs the DMA request determination signal as described above, and this signal is sent to the latch gate circuit 3.
Since the address signal and read signal R are sent to the latch control terminals R of circuits 31 and 34,
are respectively latched. Further, the DMA request determination signal is inverted and input to one input terminal of the NAND circuit 37. Since the read signal R at H level is input to the other input terminal of this NAND circuit 37, a signal at L level is output from this circuit 37, and this output is applied to the gate control terminal G of the latch/gate circuit 33. Enter. This latch gate circuit 33 latches the data signal read from the main memory 2 and sent through the data bus 4 during DMA transfer, and it
The data signal read out when reading main memory 2 by DMA is latched. When an L level signal is output from the NAND circuit 37, the previous data signal latched in the latch/gate circuit 33 is output from this circuit 33. Since this data signal continues to be output until the current DMA transfer ends, the slave CPU 11 can take in this data signal at an appropriate timing.
優先順位の高い前段の回路からのDMA禁止信
号がLレベルであつてかつマスタCPU1からL
レベルのDMA許可信号が送られると、上述の
ように、NAND回路30の出力はLレベルにな
る。そして、ラツチ・ゲート31,34にラツチ
されていたアドレス信号およびリード信号Rが主
メモリ2に送られる。またNAND回路30の出力
はNAND回路38の一方の入力端に反転して入力
する。このNAND回路38の他方の入力端子はラ
ツチ・ゲート回路34の出力端子に接続されてい
るから、この回路34のゲートが開いたときにリ
ード信号Rが入力する。したがつて、NAND回路
38の出力はLレベルになり、この信号がラツ
チ・ゲート回路33のラツチ制御端子Rに送られ
るので、この回路33は主メモリ2から転送され
る読出しデータ信号をラツチしうる状態となり、
DMAによつて主メモリ2の指定されたアドレス
から読出されたデータがデータ・バス4を通つて
転送されたときにこのデータをラツチする。この
ラツチされたデータは次回のDMAによる読出し
のときにスレーブCPU11によつて取込まれ
る。 The DMA inhibit signal from the previous circuit with high priority is at L level, and the signal from master CPU1 is at L level.
When a high level DMA permission signal is sent, the output of the NAND circuit 30 becomes L level, as described above. Then, the address signal and read signal R latched in the latch gates 31 and 34 are sent to the main memory 2. Further, the output of the NAND circuit 30 is inverted and inputted to one input terminal of the NAND circuit 38. Since the other input terminal of this NAND circuit 38 is connected to the output terminal of the latch gate circuit 34, the read signal R is inputted when the gate of this circuit 34 is opened. Therefore, the output of the NAND circuit 38 becomes L level, and this signal is sent to the latch control terminal R of the latch gate circuit 33, so that this circuit 33 latches the read data signal transferred from the main memory 2. It becomes wet,
The data read from the specified address of main memory 2 by DMA is latched when it is transferred through data bus 4. This latched data is taken in by the slave CPU 11 the next time it is read by DMA.
DMA転送が終了してDMA許容信号がHレ
ベルになると、書込みの場合と同じように、フリ
ツプフロツプ23がリセツトされ、かつ優先順位
の低い回路に対するDMA禁止が解かれる。 When the DMA transfer is completed and the DMA permission signal becomes H level, the flip-flop 23 is reset and the DMA prohibition for the lower priority circuit is released, as in the case of writing.
第3図は、スレーブCPU11が主メモリ2の
アドレス範囲に含まれるアドレス信号を出力して
DMA要求判定信号が出力され、この信号
にもとづいてDMA要求信号がマスタCPU1に
送られたのち、マスタCPU1からDMA許可信号
が出力されないことにより、または優先順位の高
い回路によつてDMAが禁止されていることによ
り、NAND回路30の出力がLレベルになる前
に、再びスレーブCPU11から主メモリ2のア
ドレス範囲に含まれるアドレスの指定があつた場
合の様子を示している。 Figure 3 shows that the slave CPU 11 outputs an address signal included in the address range of the main memory 2.
After a DMA request determination signal is output and a DMA request signal is sent to master CPU 1 based on this signal, DMA is prohibited due to no DMA permission signal being output from master CPU 1 or by a circuit with a higher priority. This shows the situation when an address included in the address range of the main memory 2 is specified again from the slave CPU 11 before the output of the NAND circuit 30 becomes L level.
フリツプフロツプ24のデータ入力端子Dには
AND回路27の出力が入力している。このAND
回路27には、フリツプフロツプ23のセツト出
力QとNAND回路30の出力とが入力している。
フリツプフロツプ23がリセツトされていると
き、またはこのフリツプフロツプ23がセツトさ
れていてもNAND回路30の出力がLレベルのと
きにはAND回路27の出力はLレベルである。
フリツプフロツプ24のクロツク入力端子Tに
は、DMA要求判定信号がNOT回路26を介
して入力している。したがつて、このフリツプフ
ロツプ24は、DMA要求判定信号が出力する
たびに通常はリセツトされ、またはリセツト状態
に保たれ、フリツプフロツプ24のセツト出力Q
はLレベル、リセツト出力はHレベルにある。 The data input terminal D of the flip-flop 24 has
The output of the AND circuit 27 is input. This AND
The set output Q of the flip-flop 23 and the output of the NAND circuit 30 are input to the circuit 27.
When flip-flop 23 is reset, or even if flip-flop 23 is set, when the output of NAND circuit 30 is at L level, the output of AND circuit 27 is at L level.
A DMA request determination signal is input to the clock input terminal T of the flip-flop 24 via a NOT circuit 26. Therefore, this flip-flop 24 is normally reset or kept in a reset state each time a DMA request determination signal is output, and the set output Q of the flip-flop 24 is
is at L level, and the reset output is at H level.
第1回目のDMA要求判定信号が出力される
と、この時点ではフリツプフロツプ23はリセツ
トされているから、フリツプフロツプ24もリセ
ツトされる。DMA要求判定信号によつてフリ
ツプフロツプ23がセツトされると、AND回路
27の一方の入力端子にはフリツプフロツプ23
のHレベルのセツト出力Qが入力する。そして、
DMAが許可されずにNAND回路30の出力がH
レベルに保たれていればAND回路27の他方の
入力もHレベルであつて、AND回路27の出力
はHレベルに保たれる。 When the first DMA request determination signal is output, since flip-flop 23 has been reset at this point, flip-flop 24 is also reset. When the flip-flop 23 is set by the DMA request determination signal, one input terminal of the AND circuit 27 is connected to the flip-flop 23.
The set output Q of H level is inputted. and,
DMA is not permitted and the output of the NAND circuit 30 is high
If it is maintained at the H level, the other input of the AND circuit 27 is also at the H level, and the output of the AND circuit 27 is maintained at the H level.
第2回目のDMA要求判定信号が出力される
と、この信号はフリツプフロツプ24のクロ
ツク入力端子Tに入力するから、フリツプフロツ
プ24はセツトされる。したがつて、そのリセツ
ト出力はLレベルになり、このLレベル信号が
フリツプフロツプ23の強制リセツト入力端子R
に送られフリツプフロツプ22がリセツトされる
とともに、Hレベル信号はスレーブCPU11の
割込入力端子に入力してこのスレーブCPU1
1に割込がかけられる。したがつて、このスレー
ブCPU11はこの割込の受付によりDMA失敗を
判定し、再度DMA転送を繰返すことができる。 When the second DMA request determination signal is output, this signal is input to the clock input terminal T of the flip-flop 24, so the flip-flop 24 is set. Therefore, the reset output becomes L level, and this L level signal is applied to the forced reset input terminal R of the flip-flop 23.
The flip-flop 22 is reset, and the H level signal is input to the interrupt input terminal of the slave CPU 11 and output to the slave CPU 1.
1 is interrupted. Therefore, this slave CPU 11 can determine DMA failure by accepting this interrupt and repeat the DMA transfer again.
以上のようにこの発明によれば、スレーブ
CPUから出力されるアドレス・データが主メモ
リのアドレス範囲に含まれているかどうかを判定
し、主メモリのアドレス範囲に含まれる場合に
DMA要求判定信号を出力するアドレス・データ
判定回路を備えているから、スレーブCPUが主
メモリをアクセスする場合には、主メモリのアド
レスを出力するだけでDMA転送が可能となる。
また、上記DMA要求判定信号が出力されたとき
にマスタCPUにDMA要求信号を送り、スレーブ
CPUから出力されている必要なデータにより
DMA転送を可能とするDMA制御回路を備え、こ
のDMA制御回路は、アドレス・データを含む
DMA転送に必要なデータを記憶するラツチ回路
と、マスタCPUからDMA許可信号があつたとき
に上記記憶したデータを主メモリまたはスレーブ
CPUに送るラツチ制御回路と、DMA要求信号出
力後であつてマスタCPUからDMA許可信号が出
力される前に、DMA要求判定信号が再度発生し
たときにスレーブCPUへの割込信号を発生する
割込発生回路とを含んでいるので、スレーブ
CPUはDMA転送とは無関係に次の処理を行なう
ことが可能となり、スレーブCPUの処理の高速
化を図ることができる。さらに、主メモリとスレ
ーブCPUの入出力装置間のデータ転送では、
DMA要求の時間間隔は入出力装置の処理時間に
よつて決定されるが、この発明ではDMA転送処
理を入出力装置の処理速度に合わせた速度で行な
うことが可能であつて、この処理時間内にDMA
転送が完了しなければ割込が発生するので、再度
DMA転送処理を繰返すことができる。 As described above, according to this invention, the slave
Determine whether the address data output from the CPU is included in the main memory address range, and if it is included in the main memory address range
Since it is equipped with an address/data determination circuit that outputs a DMA request determination signal, when the slave CPU accesses the main memory, DMA transfer is possible by simply outputting the address of the main memory.
Also, when the above DMA request judgment signal is output, a DMA request signal is sent to the master CPU, and the slave
Depending on the necessary data output from the CPU
Equipped with a DMA control circuit that enables DMA transfer, this DMA control circuit includes address data.
A latch circuit stores the data necessary for DMA transfer, and when a DMA permission signal is received from the master CPU, the stored data is transferred to the main memory or slave.
A latch control circuit that sends signals to the CPU, and an interrupt that generates an interrupt signal to the slave CPU when the DMA request judgment signal is generated again after the DMA request signal is output but before the DMA permission signal is output from the master CPU. Since it includes a signal generation circuit, the slave
The CPU can perform the following processing regardless of DMA transfer, and the processing speed of the slave CPU can be increased. Furthermore, data transfer between main memory and slave CPU input/output devices requires
The time interval of DMA requests is determined by the processing time of the input/output device, but with this invention, it is possible to perform DMA transfer processing at a speed that matches the processing speed of the input/output device, and within this processing time. to DMA
If the transfer is not completed, an interrupt will occur, so try again.
DMA transfer processing can be repeated.
第1図はこの発明の実施例を示すブロツク図、
第2図および第3図は動作を示すタイム・チヤー
トである。
1……マスタCPU、2……主メモリ、11…
…スレーブCPU、21……デコーダ、22……
DMA制御回路、23,24……フリツプフロツ
プ、31〜34……ラツチ・ゲート回路。
FIG. 1 is a block diagram showing an embodiment of this invention.
FIGS. 2 and 3 are time charts showing the operation. 1...Master CPU, 2...Main memory, 11...
...Slave CPU, 21...Decoder, 22...
DMA control circuit, 23, 24... flip-flop, 31-34... latch gate circuit.
Claims (1)
を備えマスタCPUに接続されたスレーブCPUと
からなり、主メモリがスレーブCPUによつて直
接アクセスされ得るマルチプロセツサ・システム
において、スレーブCPUから出力されるアドレ
ス・データが主メモリのアドレス範囲に含まれる
かどうかを判定し、主メモリのアドレス範囲に含
まれる場合にDMA要求判定信号を出力するアド
レス・データ判定回路、およびこのDMA要求判
定信号が出力されたときにマスタCPUにDMA要
求信号を送り、スレーブCPUから出力されてい
る必要なデータによりDMA転送を可能とする
DMA制御回路を備え、このDMA制御回路は、ア
ドレス・データを含むDMA転送に必要なデータ
を記憶するラツチ回路と、マスタCPUからDMA
許可信号があつたときに上記記憶したデータを主
メモリまたはスレーブCPUに送るラツチ制御回
路と、DMA要求信号出力後であつてマスタCPU
からDMA許可信号が出力される前に、DMA要求
判定信号が再度発生したときに、スレーブCPU
への割込信号を発生する割込発生回路とを含む。
マルチプロセツサ・システム。 2 マスタCPUに複数台のスレーブCPUが接続
されている場合に、DMA制御回路に、一定の優
先順位にしたがつてマスタCPUからのDMA許可
信号を制御する優先回路が備えられている、特許
請求の範囲第1項記載のマルチプロセツサ・シス
テム。[Claims] 1. In a multiprocessor system consisting of a master CPU with a main memory and a slave CPU with internal memory connected to the master CPU, the main memory can be accessed directly by the slave CPU. An address/data determination circuit that determines whether the address data output from the CPU is included in the address range of the main memory and outputs a DMA request determination signal if it is included in the address range of the main memory, and this DMA request. When the judgment signal is output, a DMA request signal is sent to the master CPU, and the necessary data output from the slave CPU enables DMA transfer.
This DMA control circuit includes a latch circuit that stores data necessary for DMA transfer including address data, and a latch circuit that stores data necessary for DMA transfer including address data.
A latch control circuit that sends the stored data to the main memory or slave CPU when a permission signal is received, and a latch control circuit that sends the stored data to the main memory or slave CPU when a permission signal is received;
When the DMA request determination signal is generated again before the DMA permission signal is output from the slave CPU,
and an interrupt generation circuit that generates an interrupt signal to.
Multiprocessor system. 2. A patent claim in which, when a plurality of slave CPUs are connected to a master CPU, the DMA control circuit is equipped with a priority circuit that controls the DMA permission signal from the master CPU according to a certain priority order. The multiprocessor system according to item 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56008375A JPS57121752A (en) | 1981-01-21 | 1981-01-21 | Multi-processor system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56008375A JPS57121752A (en) | 1981-01-21 | 1981-01-21 | Multi-processor system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57121752A JPS57121752A (en) | 1982-07-29 |
| JPS6138511B2 true JPS6138511B2 (en) | 1986-08-29 |
Family
ID=11691476
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56008375A Granted JPS57121752A (en) | 1981-01-21 | 1981-01-21 | Multi-processor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS57121752A (en) |
-
1981
- 1981-01-21 JP JP56008375A patent/JPS57121752A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57121752A (en) | 1982-07-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR900004006B1 (en) | Micro processor system | |
| US4282572A (en) | Multiprocessor memory access system | |
| JP2000047974A (en) | Bus arbitration method for bus control controller, bus control controller, and system for electronic device | |
| JPS6138511B2 (en) | ||
| JPS5995662A (en) | Memory access selection circuit | |
| JP3019323B2 (en) | Direct access to image memory | |
| JPH09311812A (en) | Microcomputer | |
| KR100283187B1 (en) | Device and method for accessing common memory in system using common memory | |
| KR100453118B1 (en) | Microprocessor and microprocessor systems | |
| JP3049125B2 (en) | CPU interrupt controller | |
| JP2546002B2 (en) | Parity circuit | |
| JPS6224347A (en) | bus controller | |
| JPS5819966A (en) | Dma transfer system | |
| JPH0351017B2 (en) | ||
| JPS62229457A (en) | Data transfer controller | |
| JPS6119059B2 (en) | ||
| JPS6238743B2 (en) | ||
| JPH0476152B2 (en) | ||
| JPH03131955A (en) | memory controller device | |
| JPS5921062B2 (en) | Memory contention control method | |
| JPS60252980A (en) | Dual port memory configuration method | |
| JPH086905A (en) | Access arbitration circuit for multiport RAM | |
| JPH02103650A (en) | Data processor | |
| JPS62264348A (en) | Bus lock control system | |
| JPS6029856A (en) | Access control system for local memory of multiprocessor system |