JPH0318144A - Lan adaptor - Google Patents

Lan adaptor

Info

Publication number
JPH0318144A
JPH0318144A JP1152888A JP15288889A JPH0318144A JP H0318144 A JPH0318144 A JP H0318144A JP 1152888 A JP1152888 A JP 1152888A JP 15288889 A JP15288889 A JP 15288889A JP H0318144 A JPH0318144 A JP H0318144A
Authority
JP
Japan
Prior art keywords
data
controller
lan
dma
lan controller
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
JP1152888A
Other languages
Japanese (ja)
Inventor
Hiroyuki Nakano
裕之 中野
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1152888A priority Critical patent/JPH0318144A/en
Publication of JPH0318144A publication Critical patent/JPH0318144A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To heighten the efficiency of DMA transfer by performing data transfer among a LAN controller, a processing circuit, and a data transfer control circuit when no DMA is transferred. CONSTITUTION:Data transmission/reception with a LAN transmission line 10 is controlled with the LAN controller 12, and interface control for a host side bus 14 is performed with a bus controller 16. A memory 18 can be directly accessed by the controllers 12 and 16, and the arbitration of the request of direct access for the memory 18 is performed at the processing circuit 20. And the data transfer among the controller 12, the processing circuit 20, and the data transfer control circuit 22 is performed by evading a period where the data transfer of DMA is being performed between the LAN controller 12 and the processing circuit 20. Thereby, it is possible to make the control circuit 22 act for the access of the MPU 20 to the controller 12 without competing with the data transfer of DMA.

Description

【発明の詳細な説明】 [目次] 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 発明の効果 [概要] コンピュータシステムのバスをLAN伝送路と接続する
LANアダプタに関し、 内部でのDMA転送を効率よく行うことが可能となるL
ANアダプタの提供を目的とし、LAN伝送路とのデー
タ送受信を制御するLANコントローラと、上位厠のバ
スに対するインターフェイス制御を行なうバスコントロ
ーラと、LANコントローラとバスコントローラにより
直接アクセスされるメモリが設けられこのメモリに対す
る直接アクセスの要求を調停する処理回路と、LANコ
シトローラと処理回路が取り扱うデータの幅を両者間で
転送されるデータのバッフ7リングにより整合させるデ
ータ転送制御回路と、を有し、データ転送制御回路は、
LANコントローラとの間で前記直接アクセスのデータ
転送が行なわれていないときにこれとの間でデータを転
送する手段と、処理回路との間で前記直接アクセスのデ
ータ転送が行なわれていないときにこれとの間でデータ
を転送する手段と、を含む、ことにより構成される. [産業上の利用分野コ 本発明は、コンピュータシステムのバスをLAN伝送路
と接続するLANアダプタに間する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Actions Examples Effects of the Invention [Summary] Converting the computer system bus into a LAN transmission line Regarding the LAN adapter connected to the L, it is possible to perform internal DMA transfer efficiently.
The purpose of providing an AN adapter is to provide a LAN controller that controls data transmission and reception with the LAN transmission line, a bus controller that controls the interface to the upper level bus, and a memory that is directly accessed by the LAN controller and the bus controller. a data transfer control circuit that matches the width of data handled by the LAN controller and the processing circuit by buffering data transferred between the two; teeth,
A means for transferring data between the LAN controller when the direct access data transfer is not being performed, and a means for transferring data between the processing circuit and the processing circuit when the direct access data transfer is not being performed. and means for transferring data between. [Industrial Field of Application] The present invention connects a computer system bus to a LAN adapter that connects a LAN transmission line.

この種のアダプタによれば、コンピュータシステムのバ
スからLAN伝送路へデータを送出し、また、そのLA
N伝送路からコンピュータシステムのバス上へデータを
取り込める. したがって、LANfllて上位(Illのデータを利
用することが可能となり、上位側でもLANIのデータ
を利用することが可能となる. [従来の技術] 第7図に示されたコンピュータシステムでは、LSU 
(ローカルストレージユニット)50−1.50−2の
各々設けられたPM(プロセッサモジュール)52−1
.52−2がバス14に接続されており、このバス14
には、ディスクアダプタ54,回線アダプタ56・・・
とともに、LANアダプタ5日が接続されている。
According to this type of adapter, data can be sent from the computer system bus to the LAN transmission path, and the
Data can be imported from the N transmission line onto the computer system bus. Therefore, it becomes possible to use the data on the upper side (Ill) on the LAN, and it becomes possible to use the data on the LANI on the upper side as well. [Prior Art] In the computer system shown in FIG.
(local storage unit) 50-1, PM (processor module) 52-1 provided respectively in 50-2
.. 52-2 is connected to the bus 14, and this bus 14
includes a disk adapter 54, a line adapter 56...
A LAN adapter is also connected.

第8図には従来におけるLANアダプタ58の構成が示
されており、LAN伝送路10を介して他のシステムと
の間で行なわれるデータ(フレーム〉の送受信はLAN
コントローラ12により制御されている。
FIG. 8 shows the configuration of a conventional LAN adapter 58, in which transmission and reception of data (frames) to and from other systems via the LAN transmission line 10 is performed via the LAN.
It is controlled by a controller 12.

また、上位側のバス14に対するインターフェイス制御
はバスコントローラ16で行なわれており、LANコン
トローラ12とバスコントローラ16によりメモリ18
が直接アクセス(DMA)されている. このメモリ18はMPU20に設けられており、MPU
20ではメモリ18に対するLANコントローラ12,
バスコントローラ16のDMA要求が調停されている。
Also, the interface control for the upper-level bus 14 is performed by the bus controller 16, and the memory 18 is controlled by the LAN controller 12 and the bus controller 16.
is directly accessed (DMA). This memory 18 is provided in the MPU 20, and the MPU
20, the LAN controller 12 for the memory 18;
DMA requests of bus controller 16 are being arbitrated.

その結果、メモリ18に対してLANコントローラ12
.バスコントローラ16が行なうDMA転送の衝突が回
避され、これらLANコントローラ12. メモリ1日
,バスコントローラ16を介してLAN伝走路10と上
位側バス14との間でデータが転送される. なお、LANアダプタ5日の内部にはバス60が設けら
れており、そのバス60にLANコントローラ12.バ
スコントローラ16.MPU20が接続されている. ここで、LANコントローラ12のバス幅とMPU20
のバス幅(内部バス60の幅)とが異なる場合、それら
間にデータ転送制御回路が設けられる。
As a result, the LAN controller 12
.. Collisions between DMA transfers performed by the bus controller 16 are avoided, and these LAN controllers 12. Data is transferred between the LAN transmission path 10 and the upper-level bus 14 via the bus controller 16 during the memory day. Note that a bus 60 is provided inside the LAN adapter 5, and the LAN controller 12. Bus controller 16. MPU20 is connected. Here, the bus width of the LAN controller 12 and the MPU 20
If the bus width of the internal bus 60 is different from that of the internal bus 60, a data transfer control circuit is provided between them.

このデータ転道制御回路では、LANコントローラ12
と処理回路20が取り扱うデータの輻(バス幅)を、両
者間で転送されるデータのバッフ7リングにより、整合
させるデータ操作が行なわれる. 例えばLANコントローラ12のデータ幅が2バイトで
MPU20のバス幅が4バイトの場合、LANコントロ
ーラ12からMPU20へ転送されるデータは2バイト
単位で2回に分けてデータ転送制御回路へDMA転送さ
れる. データ転送制御回路ではそれら2バイト幅のデータが4
バイト幅のデータに変換され、その4バイト幅の変換デ
ータがMPU20へDMA転送される. また、MPU20からLANコントローラ12ヘデータ
がDMA転送されるときには、MPU20からデータ転
送制御回路にDMA転送された4バイト幅のデータが2
バイト幅のデータに分割され、それらがLANコントロ
ーラ12へ順にDMA転送される。
In this data diversion control circuit, the LAN controller 12
A data operation is performed to match the congestion (bus width) of data handled by the processing circuit 20 and the processing circuit 20 by buffering the data transferred between the two. For example, if the data width of the LAN controller 12 is 2 bytes and the bus width of the MPU 20 is 4 bytes, the data transferred from the LAN controller 12 to the MPU 20 is divided into two 2-byte units and DMA-transferred to the data transfer control circuit. .. In the data transfer control circuit, those 2-byte wide data are
It is converted into byte-wide data, and the 4-byte-wide converted data is transferred to the MPU 20 by DMA. Furthermore, when data is transferred by DMA from the MPU 20 to the LAN controller 12, the 4-byte width data transferred from the MPU 20 to the data transfer control circuit by DMA is
The data is divided into byte-wide data and sequentially transferred to the LAN controller 12 by DMA.

したがってLANコントローラ12のバス幅をMPU2
0のバス幅と同一なものとして取り扱うことが可能とな
り、2バイトのデータをDMA転送する毎にそれらの転
送要求をLANコントローラ12が送出することは不要
となる. このため、バス幅の狭いLANコントローラ12のDM
A転送要求はMP U 2 0の広いバス幅を単位とし
て送出てき、その要求の送出回数が減ぜられる. その結果、LANコントローラ12が内部バス60を占
有する時間を引き下げ、LAN伝送路10とバス14と
の間のデータ転送速度を高めることが可能となる。
Therefore, the bus width of the LAN controller 12 is
It becomes possible to handle the bus width as the same as a bus width of 0, and it becomes unnecessary for the LAN controller 12 to send out a transfer request every time 2-byte data is transferred by DMA. Therefore, the DM of the LAN controller 12, which has a narrow bus width,
The A transfer request is sent in units of the wide bus width of MPU 20, and the number of times the request is sent is reduced. As a result, it is possible to reduce the time that the LAN controller 12 occupies the internal bus 60 and increase the data transfer speed between the LAN transmission line 10 and the bus 14.

[従来の技術] しかしながら、データ転送制御回路が設けられた従来の
LANアダプタ(58)においては、LANコントロー
ラ12とM P U 2 0との間でDMA転送される
データのバッファリングが行なわれるので、データ転送
制御回路とLANコントローラ12との間でDMAのデ
ータ転送が開始されてからMPU20とデータ制御回路
との間でDMAのデータ転送が開始されるまでにある程
度の時間を要する。
[Prior Art] However, in the conventional LAN adapter (58) provided with a data transfer control circuit, data transferred by DMA between the LAN controller 12 and the MPU 20 is buffered. A certain amount of time is required from the start of DMA data transfer between the data transfer control circuit and the LAN controller 12 until the start of DMA data transfer between the MPU 20 and the data control circuit.

したがって、その時間中にLANコントローラ12の内
部レジスタをアクセスする要求がMPU20から発行さ
れると、データ転送制御回路とLANコントローラ12
との間のDMA転送とMPIJ 2 0のLANコント
ローラ12に対するアクセスとに競合が生ずる. 競合が生じた場合には、DMA転送が優先して行われる
必要がある. 本発明は上記従来の事情に鑑みてなされたものであり、
その目的は、LANコントローラとデータ転送制御回路
との間でDMA転送が行なわれているときに、LANコ
ントローラに対する処理回路のアクセス要求が発行され
ても、そのDMA転送を効率よく行うことが可能となる
LANアダプタを提供することにある. [課題を解決するための手段] 上記目的を達成するために、本発明にかかるLANアダ
プタは第1図のように構成されている.同図において、
LAN伝送路10とのデータ送受信はLANコントロー
ラ12により制御され、上位側のバス14に対するイン
ターフェイス制御はバスコントローラ16で行なわれる
.そしてLANコントローラ12とバスコントローラ1
6とによりメモリ18が直接アクセスされ、このメモリ
18が設けられた処理回路20ではメモリ18に対する
直接アクセスの要求が調停される. またLANコントローラ12と処理回路20との間で転
送されるデータのバッフ7リングがデータ転送制御回路
22により行なわれ、これによりLANコントローラ1
2と処理回路20が取り扱うデータの幅が整合される。
Therefore, if a request to access the internal register of the LAN controller 12 is issued from the MPU 20 during that time, the data transfer control circuit and the LAN controller 12
Conflict occurs between DMA transfer between MPIJ 20 and access to LAN controller 12 of MPIJ 20. If a conflict occurs, DMA transfer must be given priority. The present invention has been made in view of the above-mentioned conventional circumstances, and
The purpose of this is to enable efficient DMA transfer even if a processing circuit access request to the LAN controller is issued while DMA transfer is being performed between the LAN controller and the data transfer control circuit. Our goal is to provide LAN adapters that will [Means for Solving the Problems] In order to achieve the above object, a LAN adapter according to the present invention is configured as shown in FIG. In the same figure,
Data transmission and reception with the LAN transmission line 10 is controlled by a LAN controller 12, and interface control with respect to the upper-level bus 14 is performed by a bus controller 16. And LAN controller 12 and bus controller 1
6, the memory 18 is directly accessed, and a request for direct access to the memory 18 is arbitrated in the processing circuit 20 provided with this memory 18. In addition, the data transfer control circuit 22 buffers data transferred between the LAN controller 12 and the processing circuit 20.
2 and the width of data handled by the processing circuit 20 are matched.

ここで、データ転送制御回路22には手段24と手段2
6とが含まれる。
Here, the data transfer control circuit 22 includes means 24 and means 2.
6 is included.

これらのうち手段24ては、LANコントローラ12と
の間で前記直接アクセスのデータ転送が行なわれていな
いときに、そのLANコントローラ12との間でデータ
が転送される。
Among these, the means 24 transfers data between the LAN controller 12 and the LAN controller 12 when the direct access data transfer is not performed.

また手段26ては、処理回路20との間で前記直接アク
セスのデータ転送が行なわれていないときに、その処理
回路20との間でデータが転送される. [作用] 本発明では、DMAのデータ転送がLANコントローラ
12と処理回路20との間で行なわれている期間を避け
てLANコントローラ12.処理回路20とデータ転送
制御回路22との間でデータが転送されるので、DMA
のデータ転送と競合することなく、LANコントローラ
12に対するMPU20のアクセスをデータ転送制御回
路22に代行させることが可能となる。
Further, the means 26 transfers data between the processing circuit 20 and the processing circuit 20 when the direct access data transfer is not performed. [Operation] In the present invention, the LAN controller 12. Since data is transferred between the processing circuit 20 and the data transfer control circuit 22, the DMA
It becomes possible to have the data transfer control circuit 22 access the LAN controller 12 by the MPU 20 without conflicting with data transfer.

[実施例] 以下、図面に基づいて本発明にかかるLANアダプタ(
5日)の好適な実施例を説明する.第2図において、M
PU20にはメモリ18が設けられており、そのMPU
20とLANコントローラ12との間にはデータ転送制
御回路22が設けられている. そしてLANコントローラ12とデータ制御回路22と
の間ではLANコントローラ内部のレジスタアドレス,
読出指示(read指示),書込指示(write指示
).DMAアドレス.  DMAデータ.DMA転送の
要求(HOLD).DMA転送許可(HLDA)が転送
されている。
[Example] Hereinafter, a LAN adapter according to the present invention (
A preferred embodiment of 5th day) will be explained below. In Figure 2, M
The PU20 is provided with a memory 18, and the MPU
A data transfer control circuit 22 is provided between the LAN controller 20 and the LAN controller 12. And between the LAN controller 12 and the data control circuit 22, the register address inside the LAN controller,
Read instruction (read instruction), write instruction (write instruction). DMA address. DMA data. Request for DMA transfer (HOLD). DMA transfer authorization (HLDA) is being transferred.

またMPU20とデータ転送制御回路22との間ではI
N命令.OUT命令.IN命令とOtJT命令の発行時
におけるアクセスアドレス,続出指示(read指示)
.書込指示(write指示).DMAアドレス.DM
Aデータ,バス使用要求(BUS−REQ).バス使用
許可(BUS−GRANT)が転送されている. 第3図ではデータ転送制御回Pi22の構成が説明され
ており、DMAデータのバッフ7リングは内部処理回路
30て行なわれている。
Also, between the MPU 20 and the data transfer control circuit 22,
N command. OUT command. Access address and subsequent instruction (read instruction) when issuing IN and OtJT instructions
.. Write instruction (write instruction). DMA address. DM
A data, bus use request (BUS-REQ). Bus use grant (BUS-GRANT) is being transferred. In FIG. 3, the configuration of the data transfer control circuit Pi22 is explained, and the internal processing circuit 30 performs buffering of DMA data.

またデータ転送制御回路22にはレジスタ32(REQ
).34 (FIN).36 (i−DATA).3B
 (o−DATA).40 (i−ADH),42 (
o−ADR)が設けられており、それらは内部処理回路
30によりアクセスされている.これらのうち、レジス
タ32にはLANコントローラ12に対するMPU20
のアクセス要求有無を示すデータが書き込まれ、レジス
タ34には要求アクセスのオペレーション完了を示すデ
ータが書き込まれる. また、レジスタ36ではLANコントローラ12から読
み出ざれたデータが保持され(IN命令の発行時)、レ
ジスタ38ではLANコントローラ12へ書込むデータ
が保持される(OtJT命令の発行時). さらζこ、レジスタ40ではLANコントローラ12の
続出アドレスが保持され(IN命令の発行時)、レジス
タ42ではLANコントローラ12の書込アドレスが保
持される(OUT命令の発行時〉。
Further, the data transfer control circuit 22 includes a register 32 (REQ
). 34 (FIN). 36 (i-DATA). 3B
(o-DATA). 40 (i-ADH), 42 (
o-ADR), which are accessed by internal processing circuitry 30. Among these, the register 32 has the MPU 20 for the LAN controller 12.
Data indicating the presence or absence of an access request is written to the register 34, and data indicating completion of the requested access operation is written to the register 34. Further, the register 36 holds data read from the LAN controller 12 (when an IN command is issued), and the register 38 holds data written to the LAN controller 12 (when an OtJT command is issued). Additionally, the register 40 holds the successive address of the LAN controller 12 (when an IN command is issued), and the register 42 holds the write address of the LAN controller 12 (when an OUT command is issued).

なお、レジスタ32の先頭ビットはLANコントローラ
12の内部レジスタを読み出す要求がMPU20から発
行されたことを示すために使用され、その次のビットは
LANコントローラ12の内部レジスタに書き込む要求
がMPU20から発行されたことを示すために使用され
ている。
The first bit of the register 32 is used to indicate that the MPU 20 has issued a request to read the internal register of the LAN controller 12, and the next bit is used to indicate that the MPU 20 has issued a request to write to the internal register of the LAN controller 12. It is used to indicate that.

ここで内部処理回路30においては、以上のレジスタ3
2.34.36.3B.40.42を用いたデータ(前
記命令,指示など)の転送がDMAのデータ転送の合間
に行なわれる。
Here, in the internal processing circuit 30, the above register 3
2.34.36.3B. Transfer of data (the above-mentioned commands, instructions, etc.) using 40.42 is performed between DMA data transfers.

例えば、MPU20がLANコントローラ12の内部レ
ジスタにデータを書き込む場合では、MPU20との間
でDMA転送の行なわれていないことが内部処理回路3
0で確認されると、MPU20から送出されたレジスタ
アドレスと書込データが内部処理回路30で受信され、
それらがレジスタ42.38に各々格納され、レジスタ
32の第2ビットにこの要求を示す値がセットされる。
For example, when the MPU 20 writes data to the internal register of the LAN controller 12, the internal processing circuit 3 indicates that no DMA transfer is being performed with the MPU 20.
If confirmed as 0, the register address and write data sent from the MPU 20 are received by the internal processing circuit 30,
These are stored in registers 42 and 38, respectively, and the second bit of register 32 is set to a value indicating this request.

そしてLANコントローラ12との間てD lvi A
転送の行なわれていないことが確認されると、内部処理
回路30からLANコントローラ12に書き込み指示が
与えられ、LANコントローラ12が書き込みモードと
される。
And between the LAN controller 12 and D lvi A
When it is confirmed that no transfer is being performed, a write instruction is given from the internal processing circuit 30 to the LAN controller 12, and the LAN controller 12 is placed in the write mode.

さらにLANコントローラ12の内部レジスタのうち、
レジスタ42のアドレスで示されるものにレジスタ3日
の保持データが書き込まれ、その書き込み終了が確認さ
れると、レジスタ34の第2ビットが立てられる. これにより続出指示の削り込みがM P U 2 0に
対して発行され、書き込みの完了が通知される。
Furthermore, among the internal registers of the LAN controller 12,
The data held in the register for three days is written to the address indicated by the register 42, and when the completion of the writing is confirmed, the second bit of the register 34 is set. As a result, a subsequent deletion instruction is issued to the MPU 20, and completion of writing is notified.

ただし、その割り込みはMPU20との間でDMA転送
を行なっていないことが確認されたときに発行される. また、MPU20がLANコントローラ12の内部レジ
スタからデータを読み出す場合では、MPU20との間
でDMA転送が行なわれていないことが確認さ・れると
、MPU20から送出されたレジスタアドレスがレジス
タ40に書き込まれ、レジスタ32の先頭ビットが立て
られる。
However, this interrupt is issued when it is confirmed that no DMA transfer is being performed with the MPU 20. Furthermore, when the MPU 20 reads data from the internal register of the LAN controller 12, if it is confirmed that no DMA transfer is being performed with the MPU 20, the register address sent from the MPU 20 is written to the register 40. , the first bit of register 32 is set.

そしてLANコントローラ12との間でDMA転送の行
なわれていないことが確認されると、読出指示がLAN
コントローラ12に与えられ、LANコントローラ12
が続出モードとされる.その結果、レジスタ40の保持
アドレスで示されるLANコントローラ12内部の指定
レジスタからデータが読み出され、レジスタ36に書き
込まれる。
When it is confirmed that no DMA transfer is being performed with the LAN controller 12, the read instruction is transferred to the LAN controller 12.
is applied to the controller 12 and the LAN controller 12
is considered to be a continuous mode. As a result, data is read from the designated register inside the LAN controller 12 indicated by the address held in the register 40 and written to the register 36.

さらに読み出しの終了が確認されると、レジスタ34の
第2ビットが立てられる。
Furthermore, when the completion of reading is confirmed, the second bit of the register 34 is set.

その後、MPU26との間でDMAのデータ転送が行な
われていないときに、MPU20に読み出しの指示が割
り込みて与えられる. この割り込みが与えられると、データ転送制御回路22
とMPU20との間でDMA転送の行なわれていないと
きに、レジスタ36のデータがMPU20へ転送される
Thereafter, when DMA data transfer is not being performed with the MPU 26, a read instruction is given to the MPU 20 by interruption. When this interrupt is given, the data transfer control circuit 22
The data in the register 36 is transferred to the MPU 20 when DMA transfer is not being performed between the MPU 20 and the MPU 20 .

そして、LANコントローラ12の割り込み要求をM 
P U 2 0が受け付ける場合では、MPU20との
間でDMA転送の行なわれていないことが確認されると
、対象となるLANコントローラ12内部のレジスタ(
割り込みの詳細要因を示すデータが格納されている)を
示すアドレスがレジスタ40に格納され、レジスタ32
の先頭ビットが立てられる. 次にLANコントローラ12との間でDMA転送が行な
われているか否かが判定され、そのDMA転送の行なわ
れていないことが確認されると、LANコントローラ1
2が読出モートとされる。
Then, the interrupt request from the LAN controller 12 is
In the case where P U 2 0 accepts the request, if it is confirmed that no DMA transfer is being performed with the MPU 20, the register inside the target LAN controller 12 (
The address indicating the address (where data indicating the detailed cause of the interrupt is stored) is stored in the register 40, and the address in the register 32
The first bit of is set. Next, it is determined whether or not DMA transfer is being performed with the LAN controller 12. If it is confirmed that the DMA transfer is not being performed, the LAN controller 1
2 is assumed to be a read mode.

さらにレジスタ40の保持アドレスで示されるLANコ
ントローラ12内部のレジスタから割り込みの詳細要因
を示すデータが読み出され、そのデータがレジスタ36
に書き込まれる.この書き込みの終了が確認されると、
レジスタ34の先頭ビットが立てられる。
Further, data indicating the detailed cause of the interrupt is read from the register inside the LAN controller 12 indicated by the address held in the register 40, and the data is stored in the register 36.
is written to. Once the completion of this writing is confirmed,
The first bit of register 34 is set.

そしてMPU20との間でDMA転送の行なわれていな
いことが確認されると、MPU20へ続出指示が割り込
みで与えられる。
When it is confirmed that DMA transfer is not being performed with the MPU 20, a continuation instruction is given to the MPU 20 by an interrupt.

その後、MPU20との間でDMA転送の行なわれてい
ないことが再び確認されると、レジスタ36のデータが
MPU20へ転送される.第4図ではMPU20がLA
Nコントローラ12の内部レジスタにデータを書き込む
ときの作用が説明されている。
Thereafter, when it is confirmed again that DMA transfer is not being performed with the MPU 20, the data in the register 36 is transferred to the MPU 20. In Figure 4, MPU20 is LA
The operation when writing data to the internal register of the N controller 12 is explained.

同図において、DMAの転送要求がLANコントローラ
12から発行され(HOLD)、その転送が許可される
と(HLDA)、データwordO.wordlがLA
Nコントローラ12からデータ転送制御回路22へ順に
転送される.そしてバス使用の要求(BUS − RE
Q)がデ一夕転送制御回路22からMPU20に発行ざ
れ、その要求が許可されると(BUS  GRANT)
、データwordy.wordlを組み立てたデータW
ORDOがデータ転送制御回路22からMPU20へD
MA転送される。
In the figure, a DMA transfer request is issued from the LAN controller 12 (HOLD), and when the transfer is permitted (HLDA), the data wordO. wordl is LA
The data are sequentially transferred from the N controller 12 to the data transfer control circuit 22. and request for bus use (BUS-RE
Q) is issued from the data transfer control circuit 22 to the MPU 20, and when the request is granted (BUS GRANT)
, data wordy. Data W assembled from wordl
ORDO is transferred from the data transfer control circuit 22 to the MPU 20
MA is transferred.

また次回においては、LANコントローラ12からDM
A転送されたデータwo r d 2. wo rd3
を組み立てたデータWORDIがデータ転送制御回路2
2からMPU20へDMA転送される.さらに、データ
wordy,wordlがLANコントローラ12から
データ転送制御回路22へDMA転送されているときで
、データWORDOがデータ転送制御回路22からMP
U20へDMA転送される前に、OUT命令がMPU2
0で発行され(a)、データ転送制御回路22に与えら
れる. そして、データwordy,wordlのDMA転送が
終了すると、LANコントローラ12が書き込みモード
とされ、LANコントローラ12内部の指定レジスタに
データ(W−DATA)が書き込まれる(b)。
Next time, DM from the LAN controller 12
ATransferred data wo r d 2. word3
The assembled data WORDI is transferred to data transfer control circuit 2.
2 is transferred by DMA to the MPU 20. Furthermore, when the data wordy and wordl are being DMA transferred from the LAN controller 12 to the data transfer control circuit 22, the data WORDO is being transferred from the data transfer control circuit 22 to the MP
Before the DMA transfer to U20, the OUT instruction is sent to MPU2.
0 (a) and given to the data transfer control circuit 22. Then, when the DMA transfer of the data wordy and wordl is completed, the LAN controller 12 is put into the write mode, and the data (W-DATA) is written into the specified register inside the LAN controller 12 (b).

その終了は、データWORDOがMPU20へDMA転
送されてから次回のDMA転送が開始される前に、MP
U20へ割り込みで通知される(c). 第5図ではMPU20がLANコントローラ12の内部
レジスタに格納されたデータを読み出すときの作用が説
明されている。
The end occurs after the data WORDO is DMA transferred to the MPU 20 and before the next DMA transfer is started.
Notification to U20 via interrupt (c). FIG. 5 explains the operation when the MPU 20 reads data stored in the internal register of the LAN controller 12.

この場合には、データwordy,wordlがLAN
コントローラ12からデータ転送回路22へDMA転送
されているときでデータWORDOがデータ転送制御回
路22からMPU20へDMA転送される前に、IN命
令が発行され(a)、データ転送制御回路22に与えら
れる.そしてデータwordo,wordlのDMA転
送が終了すると、LANコントo−ラ12が読出モード
とされ、その内部の指定レジスタに格納されたデータ(
R−data)が読み出される(b). この読み出しの終了は、データWORDOがMPU20
へDMA転送されてから次回のDMA転送が開始される
前に、MPU20へ割り込みで通知される(C). さらにデータ転送制御回路22からMPU20にデータ
WORDIがD M A転送されて次回のDMA転送が
終了すると、LANコントローラ12からデータ転送制
御回路22に読み出されていたデータ(R−data)
がデータ転送制御回路22からMPU20へ転送される
( d ) ,第6図ではLANコントローラ12の割
り込み要求がMPU20へ与えられるときの作用が説明
されており、最初のDMA転送が行なわれる前にMPU
20からデータ転送制御回路22へ割り込み要求が与え
られる(a)。
In this case, the data wordy and wordl are connected to the LAN.
During DMA transfer from the controller 12 to the data transfer circuit 22 and before data WORDO is DMA transferred from the data transfer control circuit 22 to the MPU 20, an IN command (a) is issued and given to the data transfer control circuit 22. .. When the DMA transfer of data word and wordl is completed, the LAN controller 12 is placed in read mode, and the data (
R-data) is read (b). At the end of this reading, the data WORDO is sent to the MPU 20.
The MPU 20 is notified by an interrupt after the DMA transfer is performed and before the next DMA transfer is started (C). Furthermore, when the data WORDI is DMA transferred from the data transfer control circuit 22 to the MPU 20 and the next DMA transfer is completed, the data (R-data) that was read from the LAN controller 12 to the data transfer control circuit 22 is transferred.
is transferred from the data transfer control circuit 22 to the MPU 20 (d). In FIG.
20 gives an interrupt request to the data transfer control circuit 22 (a).

次に、データwordo,wordlの最初のDMA転
送が終了した後で次のDMA転送が開始される前に、L
ANコントローラ12が読出モードとされ、割り込みの
!¥細要因が示されるデータ(R−data)を格納し
ているレジスタの読み出しが行なわれる(b)。
Next, after the first DMA transfer of data word and wordl is completed and before the next DMA transfer is started, the L
The AN controller 12 is put into read mode and the interrupt ! The register storing data (R-data) indicating the ¥ detail factor is read (b).

そしてデータWORDOのDMA転送が終了すると、次
回のDMA転送が開始される前に、読み出し終了がデー
タ転送制御回路22からMPU20へ割り込みで通知ざ
れる(C). その後、2回目のDMA転送が終了すると、LANコン
トローラ12からデータ転送制御回路22へ読み出ざれ
ていた割り込み詳細要因のデータ(R−data)がデ
ータ転送制御回路22からMPU20へ読み出される. 以上説明したように本実施例によれば、LANコントロ
ーラ12,MPU20との間でDMA転送が行なわれて
いないときにデータ転送制御回路22がLANコントロ
ーラ12に対するMPU20のアクセスを代行するので
、LANコントローラ12に対するアクセスとDMA転
送との競合を回避できる. したがって、LANコントローラ12に対するアクセス
要求がLANコントローラ12とデータ転送制御回路2
2との間でDMA転送が行なわれているときにいかなる
タイミングでMPU20から発行されても、データ転送
制御回路22においてLANコントローラからDMA転
送されたデータの溢れが生ずることはない。
When the DMA transfer of data WORDO is completed, the data transfer control circuit 22 notifies the MPU 20 of the completion of reading by an interrupt before the next DMA transfer is started (C). Thereafter, when the second DMA transfer is completed, the interrupt detail factor data (R-data) that has not been read from the LAN controller 12 to the data transfer control circuit 22 is read from the data transfer control circuit 22 to the MPU 20. As explained above, according to this embodiment, the data transfer control circuit 22 acts as the access of the MPU 20 to the LAN controller 12 when DMA transfer is not performed between the LAN controller 12 and the MPU 20, so that the LAN controller Conflict between access to 12 and DMA transfer can be avoided. Therefore, an access request to the LAN controller 12 is transmitted between the LAN controller 12 and the data transfer control circuit 2.
No matter what timing is issued from the MPU 20 while DMA transfer is being performed between the data transfer control circuit 22 and the LAN controller, the data transferred by DMA from the LAN controller will not overflow.

したがって、そのDMA転送データの消失を招くことは
なく、このため、LANアダプタ(5日)内でDMA転
送の効率を高めることが可能となる。
Therefore, the DMA transfer data will not be lost, making it possible to improve the efficiency of DMA transfer within the LAN adapter (5 days).

[発明の効果コ 以上説明したように本発明によれば、DMA転送の行な
われていないときにLANコントローラ,処理回路とデ
ータ転送制御回路との間でデータ転送が行なわれるので
、DMA転送の合間にLANコントローラに対する処理
@路のアクセスをデータ転送制御回路に代行させてその
アクセスとD MA転送との競合を回避できる. このため、DMA転送を誤りなく確実に行なってDMA
転送の効率を高めることが可能となる.
[Effects of the Invention] As explained above, according to the present invention, data transfer is performed between the LAN controller, the processing circuit, and the data transfer control circuit when DMA transfer is not being performed. By having the data transfer control circuit perform processing @path accesses to the LAN controller, conflicts between these accesses and DMA transfers can be avoided. Therefore, DMA transfer can be performed reliably without errors, and DMA
This makes it possible to increase the efficiency of transfer.

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

第1図は発明の原理説明図、 第2図は実施例の構成説明図、 第3図は実施例におけるデータ転送制御回路の構成説明
図、 第4図,第5図,第6図は実施例の作用説明図、第7図
はLANアダプタを使用したコンピュータシステムの構
成説明図、 第8図は従来におけるLANアダプタの構成説明図、 である。 32, 34, 36.  38, 40, 42 レジスタ。
Fig. 1 is an explanatory diagram of the principle of the invention, Fig. 2 is an explanatory diagram of the configuration of the embodiment, Fig. 3 is an explanatory diagram of the configuration of the data transfer control circuit in the embodiment, and Figs. 4, 5, and 6 are illustrations of the implementation. FIG. 7 is an explanatory diagram of the configuration of a computer system using a LAN adapter; FIG. 8 is an explanatory diagram of the configuration of a conventional LAN adapter. 32, 34, 36. 38, 40, 42 registers.

Claims (1)

【特許請求の範囲】 LAN伝送路(10)とのデータ送受信を制御するLA
Nコントローラ(12)と、 上位側のバス(14)に対するインターフェイス制御を
行なうバスコントローラ(16)と、LANコントロー
ラ(12)とバスコントローラ(16)により直接アク
セスされるメモリ(18)が設けられ、メモリ(18)
に対する直接アクセスの要求を調停する処理回路(20
)と、LANコントローラ(12)と処理回路(20)
が取り扱うデータの幅を両者間で転送されるデータのバ
ッファリングにより整合させるデータ転送制御回路(2
2)と、 を有し、 データ転送制御回路(22)は、 LANコントローラ(12)との間で前記直接アクセス
のデータ転送が行なわれていないときにLANコントロ
ーラ(12)との間でデータを転送する手段(24)と
、 処理回路(20)との間で前記直接アクセスのデータ転
送が行なわれていないときに処理回路(20)との間で
データを転送する手段(26)と、を含む、 ことを特徴とするLANアダプタ。
[Claims] LA that controls data transmission and reception with the LAN transmission line (10)
N controller (12), a bus controller (16) that performs interface control for the upper side bus (14), and a memory (18) that is directly accessed by the LAN controller (12) and bus controller (16). (18)
a processing circuit (20) that arbitrates requests for direct access to
), LAN controller (12), and processing circuit (20)
A data transfer control circuit (2) that matches the width of data handled by the
2), and the data transfer control circuit (22) transfers data between the LAN controller (12) and the LAN controller (12) when the direct access data transfer is not performed between the LAN controller (12) and the LAN controller (12). and means (26) for transferring data to and from the processing circuit (20) when said direct access data transfer is not occurring between said processing circuit (20). A LAN adapter characterized by:
JP1152888A 1989-06-14 1989-06-14 Lan adaptor Pending JPH0318144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1152888A JPH0318144A (en) 1989-06-14 1989-06-14 Lan adaptor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1152888A JPH0318144A (en) 1989-06-14 1989-06-14 Lan adaptor

Publications (1)

Publication Number Publication Date
JPH0318144A true JPH0318144A (en) 1991-01-25

Family

ID=15550320

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1152888A Pending JPH0318144A (en) 1989-06-14 1989-06-14 Lan adaptor

Country Status (1)

Country Link
JP (1) JPH0318144A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007317377A (en) * 2006-05-23 2007-12-06 Nippon Cable Co Ltd Terminal device for grounding

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007317377A (en) * 2006-05-23 2007-12-06 Nippon Cable Co Ltd Terminal device for grounding

Similar Documents

Publication Publication Date Title
US6081851A (en) Method and apparatus for programming a remote DMA engine residing on a first bus from a destination residing on a second bus
EP0141742A2 (en) Buffer system for input/output portion of digital data processing system
US5794072A (en) Timing method and apparatus for interleaving PIO and DMA data transfers
US6636927B1 (en) Bridge device for transferring data using master-specific prefetch sizes
JPH0354375B2 (en)
JP2004171209A (en) Shared memory data transfer device
JPH0198048A (en) Peripheral device controller and adaptor interface
US5968144A (en) System for supporting DMA I/O device using PCI bus and PCI-PCI bridge comprising programmable DMA controller for request arbitration and storing data transfer information
JPS6375955A (en) Program mode access control system
JPS6356747A (en) Data processor
JPH0318144A (en) Lan adaptor
JP2002123420A (en) Memory access device
JPH11149455A (en) Memory disk sharing method and its executing device
JPH11252150A (en) Network connection device and network connection control method
JPS6029139B2 (en) Connection method between processing units
JP2003085125A (en) Memory controller and memory control method
JPS62145345A (en) Control system for direct memory access interval
JPS60136853A (en) Data transfer system
JPH05324535A (en) Data transfer device
JPH04120648A (en) Common bus connecting device
JPS61214049A (en) Bus control system
JPH0460257B2 (en)
JPS6378257A (en) Input-output controller
JP2001125694A (en) Bridge device
JPH02211571A (en) Information processor