JPS62111343A - Channel control circuit - Google Patents

Channel control circuit

Info

Publication number
JPS62111343A
JPS62111343A JP60251036A JP25103685A JPS62111343A JP S62111343 A JPS62111343 A JP S62111343A JP 60251036 A JP60251036 A JP 60251036A JP 25103685 A JP25103685 A JP 25103685A JP S62111343 A JPS62111343 A JP S62111343A
Authority
JP
Japan
Prior art keywords
data
memory
internal
word
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP60251036A
Other languages
Japanese (ja)
Inventor
Kazuyuki Yokota
和之 横田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP60251036A priority Critical patent/JPS62111343A/en
Publication of JPS62111343A publication Critical patent/JPS62111343A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain rapid data transfer by using a direct memory access (DMA) controller, and transferring data to a data register word by word without using a program. CONSTITUTION:Data inputted from an external interface circuit 3 are stored in a large capacity internal memory 2 every input. To output data asynchronously to an external I/O device 12, the idle state of a rapid memory 7 is checked, the DMA controller 10 is started and then data are written from the internal memory 2 to the data register 8 word by word. The data are outputted to a data bus for a rapid memory 7. The initial value of a counter 6 is '0' and the value is counted up in accordance with the writing of data in the memory 7. The DMA controller 10 reads out the succeeding data from the internal memory 2 and said operation is repeated by the prescribed number of times. During the repeat of the operation, a program in an internal CPU 1 is not surely used.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、入出力装置、あるいはローカルエリアネット
ワーク(以下LANという)のノード装置などにおいて
、高速データ転送を行なうチャネル制御装置に関するも
のである。  ゛ (従来の技術) 第2図は従来のチャネル制御回路の構成図である。同図
において、21はCPU、22はROM、23は外部イ
ンタフェース、およヒ24はDMAコントローラで、こ
れらはいずれもCPUバス25に接続されている。26
はバス切替回路、27は共有メモリでチャネル制御回路
28を構成している。これが外部入出力装置29に接続
されている。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a channel control device that performs high-speed data transfer in an input/output device or a node device of a local area network (hereinafter referred to as LAN). (Prior Art) FIG. 2 is a block diagram of a conventional channel control circuit. In the figure, 21 is a CPU, 22 is a ROM, 23 is an external interface, and 24 is a DMA controller, all of which are connected to a CPU bus 25. 26
27 is a bus switching circuit, and a shared memory constitutes a channel control circuit 28. This is connected to an external input/output device 29.

外部インタフェース23を経て取り込んだデータは、バ
ス切替回路26を制御することによって、共有メモリ2
7へ書き込まれる。そののち外部入出力装置29が、こ
のデータを取り出す。
Data imported via the external interface 23 is transferred to the shared memory 2 by controlling the bus switching circuit 26.
7. The external input/output device 29 then retrieves this data.

このように、従来のチャネル制御回路においてもデータ
転送は可能であった。
In this way, data transfer was possible even in the conventional channel control circuit.

(発明が解決しようとする問題点) 上記構成のチャネル制御回路では、共有メモリの動作の
高速化と大容量化ならびに低価格化のすべてを満たすこ
とは困難であった。
(Problems to be Solved by the Invention) With the channel control circuit configured as described above, it is difficult to satisfy all of the requirements for faster operation, larger capacity, and lower cost of the shared memory.

本発明の目的は、従来の欠点を解消し、高速データ転送
、メモリの大容量化ならびに低価格化を実現できるチャ
ネル制御回路を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a channel control circuit that eliminates the drawbacks of the prior art and can realize high-speed data transfer, large memory capacity, and low cost.

(問題点を解決するための手段) 本発明のチャネル制御回路は、外部入出力装置に対し、
CPU内部のデータを高速で転送するための回路構成に
おいて、データを一時蓄積するためのメモリと、内部C
PUと外部入出力装置との間で、共有する前記メモリに
対するアクセス競合を制御するためのバス切替回路と、
内部CPUからの指示により、バスの切替えを制御し、
カウンタをリセットし、データ数、前記メモリに書き込
み、カウンタを加算する制御回路と、前記内部CPUか
ら出力されるデータを一時記憶し、前記メモリへのデー
タバス上に、このデータを出力するデータレジスタと、
前記制御回路からの信号により、保持するカウント値を
加算し、前記のメモリへのアドレスバス上に、前記カウ
ント値をアドレスして出力するカウンタと、前記内部C
PtJによって転送データの格納される内部メモリのア
ドレスとデータ数とが設定され、直接DMAによって前
記内部メモリ上のデータを一語ずつデータレジスタに出
力し、データ数に一致するデータを出力し、動作を停止
するDMAコントローラとからなり、内部CPUのメモ
リからデータを、前記メモリに転送し、その終了後、前
記制御回路によって、前記メモリを外部入出力装置側に
切替え、この外部入出力装置から、前記メモリにアクセ
スを可能とするものである。
(Means for Solving the Problems) The channel control circuit of the present invention provides
In the circuit configuration for transferring data inside the CPU at high speed, there is a memory for temporarily storing data and an internal CPU.
a bus switching circuit for controlling access contention for the shared memory between a PU and an external input/output device;
Controls bus switching according to instructions from the internal CPU,
A control circuit that resets a counter, writes the number of data to the memory, and adds the counter; and a data register that temporarily stores data output from the internal CPU and outputs this data on a data bus to the memory. and,
a counter that adds a held count value in response to a signal from the control circuit, addresses and outputs the count value on the address bus to the memory; and
The address of the internal memory where the transfer data is stored and the number of data are set by PtJ, and the data on the internal memory is output word by word to the data register by direct DMA, data matching the number of data is output, and the operation starts. The DMA controller transfers data from the memory of the internal CPU to the memory, and after the transfer is completed, the control circuit switches the memory to the external input/output device side, and from this external input/output device, This allows access to the memory.

(作 用) と記構酸により、内部CPUとはI10装置としてイン
タフェースし、大容量化した内部メモリからDMAコン
トローラによりプログラムの介在なくデータを一語ずつ
データレジスタに転送し、カウンタを進めることによっ
て高速メモリに書き込むことができる。また書き込みが
終了すれば、バス切替回路を切替えることによって、高
速メモリから外部入出力装置へデータを高速転送するこ
とができる。
(Function) By interfacing with the internal CPU as an I10 device, data is transferred word by word from the large-capacity internal memory to the data register by the DMA controller without program intervention, and the counter is advanced. Can be written to high-speed memory. Furthermore, when writing is completed, data can be transferred at high speed from the high speed memory to the external input/output device by switching the bus switching circuit.

(実施例) 本発明の一実施例を第1図に基づいて説明する。(Example) An embodiment of the present invention will be described based on FIG.

第1図は本発明のチャネル制御回路の構成図である。同
図において、1は内部CPU、2は大容量のRAMとR
OMからなる内部メモリ、3は外部インタフェース回路
、4は割り込みコントローラ、5は内部CPUのバス、
6は高速メモリ7に対するアドレスを指示するアップカ
ウンタ、8は高速メモリ7に対するデータを指示するデ
ータレジスタ、9はバス切替えの制御やカウンタのリセ
ットなどを行なう制御回路、10はDMAにより内部メ
モリ2から高速メモリ7へデータ転送を行なうDMAコ
ントローラ、11は高速メモリ7のバス切替えを行なう
バス切替回路、12はバス切替回路11によって高速メ
モリ7にアクセス可能な外部入出力装置である。
FIG. 1 is a block diagram of a channel control circuit according to the present invention. In the same figure, 1 is the internal CPU, 2 is the large capacity RAM and R
Internal memory consisting of OM, 3 an external interface circuit, 4 an interrupt controller, 5 an internal CPU bus,
6 is an up counter that instructs the address to the high speed memory 7; 8 is a data register that instructs data to the high speed memory 7; 9 is a control circuit that controls bus switching and resets the counter; and 10 is an up counter that instructs the address to the high speed memory 7. A DMA controller transfers data to the high-speed memory 7, 11 is a bus switching circuit that switches the bus of the high-speed memory 7, and 12 is an external input/output device that can access the high-speed memory 7 through the bus switching circuit 11.

外部インタフェース回路3から取り込んだデータは、そ
の都度大容量内部メモリ2に格納され、非同期にデータ
を外部入出力装置12に出力する場合、高速メモリ7の
空き状態を確認、内部CPU1がDMAコントローラ1
0を起動し、内部メモリ2から一語ずつデータレジスタ
8にデータを書き込む。このデータは高速メモリ7のデ
ータバス上に出力される。カウンタ6は初期値が0であ
り、その値は、高速メモリ7のアドレスバス上に出力さ
れ、データバス上のデータが高速メモリ7に書き込まれ
るとともにカウンタを加算し、DMAコントローラは、
次のデータを内部メモリ2から読み出し、この動作を所
定の回数分だけ繰りかえす。
The data fetched from the external interface circuit 3 is stored in the large-capacity internal memory 2 each time, and when outputting data to the external input/output device 12 asynchronously, the free state of the high-speed memory 7 is checked, and the internal CPU 1
0 and writes data from the internal memory 2 to the data register 8 word by word. This data is output onto the data bus of high speed memory 7. The initial value of the counter 6 is 0, and the value is output onto the address bus of the high-speed memory 7, and as the data on the data bus is written to the high-speed memory 7, the counter is incremented, and the DMA controller:
The next data is read from the internal memory 2, and this operation is repeated a predetermined number of times.

この間内部CPUIのプログラムは一切介在しない。一
連の転送が終了すると割り込みが発生し、プログラムに
よる後処理として制御回路9の初期化を行なう。この初
期化によってカウンタ6も初期化される。
During this time, no internal CPU program is involved. When a series of transfers is completed, an interrupt is generated, and the control circuit 9 is initialized as post-processing by the program. The counter 6 is also initialized by this initialization.

(発明の効果) 本発明により、DMAによるメモリ間高速転送と、内部
メモリの大容量化と、高速メモリの経済化による低価格
化、および高速メモリと外部入出力装置との高速データ
転送とを可能にする等種々の効果がある。
(Effects of the Invention) The present invention enables high-speed transfer between memories using DMA, increased capacity of internal memory, cost reduction due to economicalization of high-speed memory, and high-speed data transfer between high-speed memory and external input/output devices. There are various effects such as making it possible.

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

第1図は本発明の一実施例によるチャネル制御回路の構
成図、第2図は従来のチャネル制御回路の構成図である
。 1 ・・・内部CPU、 2 ・・・内部メモリ、3 
・・・内部インタフェース回路、 4 ・・・割り込み
コン1ヘローラ、 5 ・・CPUバス、 6 ・・・
アップカウンタ、 7 ・・高速メモリ、8・・データ
レジスタ、 9 ・・制御回路、10  ・・ DMA
コン1−ローラ、 11・・・バス切替回路、12・・
・外部入出力装置。 特許出願人 松下電器産業株式会社 第1図 第2図
FIG. 1 is a block diagram of a channel control circuit according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional channel control circuit. 1...Internal CPU, 2...Internal memory, 3
... Internal interface circuit, 4 ... Interrupt controller 1 roller, 5 ... CPU bus, 6 ...
Up counter, 7...High speed memory, 8...Data register, 9...Control circuit, 10...DMA
Controller 1-Roller, 11...Bus switching circuit, 12...
・External input/output device. Patent applicant: Matsushita Electric Industrial Co., Ltd. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 外部入出力装置に対し、CPU内部のデータを高速で転
送するための回路構成において、前記データを一時蓄積
するためのメモリと、内部CPUと外部出力装置との間
で共有する、前記メモリに対するアクセス競合を制御す
るためのバス切替回路と、前記内部CPUからの指示に
より、バスの切替を制御し、カウンタをリセットし、デ
ータを前記メモリに書き込んだのち、前記カウンタを加
算する制御回路と、前記内部CPUから出力されるデー
タを一時記憶し、前記メモリへのデータバス上に、前記
データを出力するデータレジスタと、前記制御回路から
の信号により、保持するカウント値を加算し、前記メモ
リへのアドレスバス上に、前記カウント値をアドレスし
て出力するカウンタと、前記内部CPUによって、転送
データの格納される内部メモリのアドレスとデータ数と
が設定され、直接メモリアクセス(以下DMAという)
によって前記内部メモリ上のデータを一語ずつデータレ
ジスタに出力し、前記データ数に一致するデータを出力
したのち動作を停止するDMAコントローラとからなり
、前記CPUのメモリからデータを、前記メモリに転送
し、その終了後、前記制御回路によって、前記メモリを
外部入出力装置側に切替え、該外部入出力装置から、前
記メモリにアクセスを可能とすることを特徴とするチャ
ネル制御装置。
In a circuit configuration for transferring data inside a CPU at high speed to an external input/output device, a memory for temporarily storing the data and access to the memory shared between the internal CPU and the external output device are provided. a bus switching circuit for controlling contention; a control circuit for controlling bus switching, resetting a counter, and incrementing the counter after writing data to the memory according to instructions from the internal CPU; A data register that temporarily stores data output from the internal CPU and outputs the data on the data bus to the memory, and a count value to be held by a signal from the control circuit is added, and the data is transferred to the memory. On the address bus, a counter that addresses and outputs the count value and the internal CPU set the address and number of data in the internal memory where the transfer data is stored, and direct memory access (hereinafter referred to as DMA) is performed.
a DMA controller that outputs data on the internal memory word by word to a data register and stops operation after outputting data matching the number of data, and transfers data from the memory of the CPU to the memory. After the completion of the control, the control circuit switches the memory to an external input/output device, thereby making it possible to access the memory from the external input/output device.
JP60251036A 1985-11-09 1985-11-09 Channel control circuit Pending JPS62111343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60251036A JPS62111343A (en) 1985-11-09 1985-11-09 Channel control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60251036A JPS62111343A (en) 1985-11-09 1985-11-09 Channel control circuit

Publications (1)

Publication Number Publication Date
JPS62111343A true JPS62111343A (en) 1987-05-22

Family

ID=17216658

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60251036A Pending JPS62111343A (en) 1985-11-09 1985-11-09 Channel control circuit

Country Status (1)

Country Link
JP (1) JPS62111343A (en)

Similar Documents

Publication Publication Date Title
JPS62111343A (en) Channel control circuit
JPH0343804A (en) Sequence controller
JPH04323755A (en) Dma device
JPS62111344A (en) Channel control circuit
JPH0222748A (en) Non-volatile memory control circuit
JP2687716B2 (en) Information processing device
JPS61150055A (en) Dma data transfer system
JPS62219153A (en) Dma controller
JPH02287750A (en) Address conversion system of channel device
JPH0769885B2 (en) Data transfer device
JPH04369065A (en) Direct memory access controller
JPH0370816B2 (en)
JPS63153635A (en) Specification system for data transfer speed
JPH04205452A (en) Dma controller
JPH05282239A (en) Dma transfer system
JPH03147046A (en) Data processor
JPS61288252A (en) Data transfer system
JPH0652101A (en) Multiport memory for data buffer
JPH06161945A (en) Memory data transfer device
JPH01250163A (en) Bus controller
JPS62173689A (en) Storage device
JPH03259491A (en) Memory controller
JP2005316700A (en) Data transfer method and device
JPS59229606A (en) Programmable controller
JPH04270438A (en) Interruption control system