JPS59194230A - Input and output controller - Google Patents

Input and output controller

Info

Publication number
JPS59194230A
JPS59194230A JP6809883A JP6809883A JPS59194230A JP S59194230 A JPS59194230 A JP S59194230A JP 6809883 A JP6809883 A JP 6809883A JP 6809883 A JP6809883 A JP 6809883A JP S59194230 A JPS59194230 A JP S59194230A
Authority
JP
Japan
Prior art keywords
signal
input
cpu
storage device
counter
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
JP6809883A
Other languages
Japanese (ja)
Inventor
Toshio Mitsusaka
敏夫 三坂
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP6809883A priority Critical patent/JPS59194230A/en
Publication of JPS59194230A publication Critical patent/JPS59194230A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To allow an input and output device to read and write data from in a main storage device by the desired number of times by providing a means, etc., for counting a signal which indicates that the input and output device obtains the right to read and write data from in the storage device. CONSTITUTION:The means for counting the signal which indicates that the input and output device obtains the right to read and write data from in the storage device within a specific time is provided. For example, when an initial signal 26 is supplied from a CPU, etc., the output signal 13 of an OR gate 9 is turned on, and a timer 1 is started to turn on a signal 15 and turn off a signal 14 while resetting a counter 2. Then, the counter 2 starts counting frequency that a bus release signal 12 outputted from a CPU, and a register 3 holds the permissible value of the frequency of access from the input and output device set through the CPU to the storage device. A comparator 4 compares a signal B from the counter 2 with a signal A from the register 3, and when B<A, a CPU stop signal 19 is turned on.

Description

【発明の詳細な説明】 本発明は入出力装置が主記憶装置を主処理装置の制御に
よらないでアクセスするように構成された電子計算機/
ステムに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an electronic computer/
Regarding the stem.

従来のダイレクトメモリアクセス方式(DMA )は、
主処理装置(以下CPUと略記する)−が主記憶装置を
使用していない時間のみ可能とする方式、いわゆるサイ
クルスチール方式やCPUを停止させることによって主
記憶装置を解放してDMAを可能とする方式、いわゆる
バースト方式、およびCPUが1命令を実行するたびに
1回のDMA転送を可能とする方式などが採られている
The conventional direct memory access method (DMA) is
A method that enables DMA only when the main processing unit (hereinafter abbreviated as CPU) is not using the main memory, the so-called cycle steal method, and a method that frees up the main memory by stopping the CPU and enables DMA. A so-called burst method, and a method that enables one DMA transfer each time the CPU executes one instruction have been adopted.

しかしながら、CPUが主記憶装置を読出し/書込みす
る時間と入出力装置が主記憶装置を読出し/書込みする
時間との割合を制御することができなかった。従って、
人出刃装置は必要な回数だけ主記憶装置をアクセスでき
るとは限らなかった。
However, it has not been possible to control the ratio between the time the CPU takes to read/write to the main memory and the time the input/output device takes to read/write to the main memory. Therefore,
The Hitodeba device was not always able to access the main memory as many times as necessary.

従って本発明の目的は、入出力装置が主記憶装置を目的
の回数だけ読出じ/書込みできるようにした入出力制御
装置を提供することにある。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide an input/output control device that allows an input/output device to read/write to/from a main memory a desired number of times.

本発明によれば、記憶装置と、記憶装置の読出し/書込
みを行うCPUと、記憶装置をCPUの制御に依らない
読出し/書込み、いわゆるダイレクト・メモリ・アクセ
スを行う入出力装置をもつ装置において、予め定められ
た時間内に入出力装置が記憶装置を読出し/書込みする
権利を得たことを示す信号を計数する計数器と、CPU
によりアクセス回数の許容値を設定されるレジスタと、
計数器の値とレジスタの値とを比較する比較器を持ち、
予め定められた時間に比較器によって計数器に計数され
た値がレジスタに設定された値よりも小さいと判定され
た場合には、処理装置に対して、読出し/書込みする権
利を解放させる信号を送信することを特徴とする入出力
制御装置が得られる。
According to the present invention, in a device having a storage device, a CPU that reads/writes to the storage device, and an input/output device that reads/writes the storage device without depending on the control of the CPU, so-called direct memory access, a counter that counts a signal indicating that the input/output device has obtained the right to read/write the storage device within a predetermined time; and a CPU.
A register whose allowable number of accesses is set by
It has a comparator that compares the counter value and the register value,
If the comparator determines that the value counted by the counter at a predetermined time is smaller than the value set in the register, a signal is sent to the processing unit to release the right to read/write. An input/output control device is obtained which is characterized in that it transmits data.

次に、本発明の一実施例を示す図面を参照して本発明の
詳細な説明する。
Next, the present invention will be described in detail with reference to the drawings showing one embodiment of the present invention.

図面において、信号26は本実施例の回路をスタートさ
せるイニシャル信号で、CPU27または他の装置から
与えられる。信号26がオンとなると、論理和ゲート9
の出力すなわち信号13がオンとなる。信号13はタイ
マ1のスタート端子および計数器2のリセット端子に接
続されており、タイマ2の動作中を示す信号15をオン
、タイマ2の動作終了を示す信号14″f:オフとし、
計数器2をリセットする。信号15は計数器2の計数イ
ネーブル端子に接続されており、信号15がオンになる
ことによって、計数器2はCPU27がら出力されるl
バス解放信号12がオンになる回数の計数を開始する。
In the drawing, a signal 26 is an initial signal for starting the circuit of this embodiment, and is given from a CPU 27 or another device. When the signal 26 turns on, the OR gate 9
The output of signal 13 is turned on. The signal 13 is connected to the start terminal of the timer 1 and the reset terminal of the counter 2, and the signal 15 indicating that the timer 2 is in operation is turned on, and the signal 14''f indicating that the operation of the timer 2 is finished is turned off.
Reset counter 2. The signal 15 is connected to the count enable terminal of the counter 2, and when the signal 15 is turned on, the counter 2 outputs l from the CPU 27.
Start counting the number of times the bus release signal 12 turns on.

レジスタ3はアドレスバス22とデータバス23を介し
てCPU27と接続され、CPU27によって設定され
た入出力装置の記憶装置へのアクセス回数の許容値を保
持する。計数器2の出力信号24とレジスタ3の出力信
号25は、それぞれ比較器40入力信号B、Aとなり、
比較器4は比較結果に応じてA)Bであることを示す信
号17、またはA≦Bであることを示す信号18のうち
どちらか一方をオンにし、他方をオフにするO タイマ1が所定時間の計数後動作終了信号14をオンに
すると、信号17がオンすなわちレジスタ3の値よルも
計数器2の値が小さい場合には論理積ゲート11の入力
信号が2つともオンになるので論理ゲート11はCPU
停止信号19をオンにする。信号18がオン、すなわち
レジスタ3の値よシも計数器2の値が大きい場合には、
論理積ゲート8の入力が2つともオンになるので、論理
和ゲート9の出力信号13がオンとなシ、この回路をス
タート直後と同じ状態にする。
The register 3 is connected to the CPU 27 via an address bus 22 and a data bus 23, and holds an allowable number of accesses to the storage device of the input/output device set by the CPU 27. The output signal 24 of the counter 2 and the output signal 25 of the register 3 become the input signals B and A of the comparator 40, respectively.
Depending on the comparison result, the comparator 4 turns on either the signal 17 indicating that A) is B or the signal 18 indicating that A≦B, and turns off the other.O Timer 1 is predetermined. When the operation end signal 14 is turned on after counting the time, the signal 17 is turned on, that is, if the value of the counter 2 is smaller than the value of the register 3, both input signals of the AND gate 11 are turned on. Logic gate 11 is CPU
Turn on the stop signal 19. When signal 18 is on, that is, when the value of counter 2 is larger than the value of register 3,
Since both inputs of the AND gate 8 are turned on, the output signal 13 of the OR gate 9 is not turned on, leaving this circuit in the same state as it was immediately after starting.

信号17がオンとなることによってCPU停止信号19
がオンになることは前述した通りであるが、CPU停止
信号19がオンになるとCPUはアドレスバス22およ
びデータバス23を解放するので、バス解放信号12は
周期的にオンとなる。
When the signal 17 turns on, the CPU stop signal 19
As described above, when the CPU stop signal 19 is turned on, the CPU releases the address bus 22 and the data bus 23, so the bus release signal 12 is turned on periodically.

この状態はレジスタ3の値と計数器2の値が等しくなる
まで続き、信号17がオフになることにより、cpu停
止信号19がオフになシ、CPU27は動作を再開する
。CPU停止信号がオンからオフになったことを7リツ
プフロツプ5と6および論理積ゲート7によって検出し
、論理和ゲート9への入力となシ、この回路をスタート
直後の状態にもどる。
This state continues until the value of the register 3 and the value of the counter 2 become equal, and as the signal 17 is turned off, the CPU stop signal 19 is turned off and the CPU 27 resumes operation. The switching of the CPU stop signal from on to off is detected by the flip-flops 5 and 6 and the AND gate 7, and is input to the OR gate 9, returning the circuit to the state immediately after starting.

この回路を実質上CPU27に影響を及さないようにす
る為にはレジスタ3に0を設定しておけばよい。
In order to prevent this circuit from substantially affecting the CPU 27, it is sufficient to set the register 3 to 0.

本発明は以上説明したように、CPUと入出力装置の主
記憶装置を読出し/書込みする割合を制御し、CPUと
入出力装置の処理能力を適切な割合にすることによって
、システム全体の処理能力を向上させる効果がある。
As explained above, the present invention controls the read/write ratio of the main memory of the CPU and input/output devices, and adjusts the processing power of the CPU and input/output devices to an appropriate ratio, thereby increasing the processing capacity of the entire system. It has the effect of improving.

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

図面は本発明の一実施例を示す図でるる。 1・・・・・・タイマ、2・・団・計数器、3・・・・
・・レジスタ、4・・・・・・比較器、5,6・・・・
・・7リツグ70ツブ、7゜8.11・・・・・・論理
積ゲー)、9,10・・・・・・論理和ゲート、12・
・・・・・バス解放信号、22・・団・アトレア、ハ、
x4.23・・・・・・データバス、27・・団・cP
U。
The drawings are diagrams showing one embodiment of the present invention. 1...Timer, 2...Gun/Counter, 3...
...Register, 4...Comparator, 5,6...
... 7 ritz 70 knobs, 7° 8.11... logical product game), 9,10... logical sum gate, 12...
...Bus release signal, 22...Dan Atrea, Ha.
x4.23...Data bus, 27...Dan/cP
U.

Claims (1)

【特許請求の範囲】[Claims] 記憶装置と、前記記憶装置の読出し/書込みを行う処理
装置と、前記記憶装置との間でダイレフ)メモリアクセ
スによってデータの授受を行う入出力装置とを有するシ
ステムにおいて、予め定められた時間内に前記入出力装
置が前記記憶装置を72セスした回数を計数する計数器
と、前記処理装置により前記入出力装置の前記記憶装置
へのアクセス回数許容11区を設定されるレジスタと、
前記計数器の値と前記レジスタの値とを比較する比較器
とを具備し、前記比較器によって前記計数器に計数され
た値が前記レジスタに設定された値よシも小さいと判定
された場合に1前記処理装置の前記記憶装置へのアクセ
スを禁止することを特徴とする入出力制御装置。
In a system that includes a storage device, a processing device that reads/writes to the storage device, and an input/output device that exchanges data with the storage device by memory access, within a predetermined time. a counter for counting the number of times the input/output device has accessed the storage device; and a register in which a permissible number of accesses of the input/output device to the storage device is set to 11 by the processing device;
a comparator that compares the value of the counter and the value of the register, and when the comparator determines that the value counted by the counter is smaller than the value set in the register; (1) An input/output control device that prohibits access of the processing device to the storage device.
JP6809883A 1983-04-18 1983-04-18 Input and output controller Pending JPS59194230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6809883A JPS59194230A (en) 1983-04-18 1983-04-18 Input and output controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6809883A JPS59194230A (en) 1983-04-18 1983-04-18 Input and output controller

Publications (1)

Publication Number Publication Date
JPS59194230A true JPS59194230A (en) 1984-11-05

Family

ID=13363920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6809883A Pending JPS59194230A (en) 1983-04-18 1983-04-18 Input and output controller

Country Status (1)

Country Link
JP (1) JPS59194230A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008059860A (en) * 2006-08-30 2008-03-13 Tokai Rika Co Ltd Lighting device
JP2009140482A (en) * 2007-10-30 2009-06-25 Twinhead Internatl Corp Touch control input device, and set of computer apparatus including the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008059860A (en) * 2006-08-30 2008-03-13 Tokai Rika Co Ltd Lighting device
JP2009140482A (en) * 2007-10-30 2009-06-25 Twinhead Internatl Corp Touch control input device, and set of computer apparatus including the same

Similar Documents

Publication Publication Date Title
US4797853A (en) Direct memory access controller for improved system security, memory to memory transfers, and interrupt processing
US4924427A (en) Direct memory access controller with direct memory to memory transfers
JPS60258671A (en) Processor
US5287486A (en) DMA controller using a programmable timer, a transfer counter and an or logic gate to control data transfer interrupts
JPH03129448A (en) Data transfer controller
US5544333A (en) System for assigning and identifying devices on bus within predetermined period of time without requiring host to do the assignment
JPH02165721A (en) Pulse output device
JPS59194230A (en) Input and output controller
JPH05181789A (en) Digital circuit
JP2679440B2 (en) Information processing device
JPH0764849A (en) Shared memory controller for processor
JPS5965356A (en) Single-chip microcomputer
JPH047773A (en) Dma controller
JP2837698B2 (en) Direct memory access controller
JPH04369065A (en) Direct memory access controller
JPH08137785A (en) Dma controller
JPS5845050B2 (en) Bus centralized monitoring system
JP2667285B2 (en) Interrupt control device
JPH07182272A (en) Dma controller circuit
JPS6097445A (en) Data processor
JPH03122746A (en) Dma control system
JPH02144653A (en) Data processor
JPH07146839A (en) Dma circuit
JPH0395652A (en) Storage device for duplex system
JPS62111343A (en) Channel control circuit