JPH11184798A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH11184798A
JPH11184798A JP9348865A JP34886597A JPH11184798A JP H11184798 A JPH11184798 A JP H11184798A JP 9348865 A JP9348865 A JP 9348865A JP 34886597 A JP34886597 A JP 34886597A JP H11184798 A JPH11184798 A JP H11184798A
Authority
JP
Japan
Prior art keywords
address
data
access
buffer memory
dmac
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
JP9348865A
Other languages
Japanese (ja)
Inventor
Shunji Inada
俊司 稲田
Kenichi Yoneda
憲一 米田
Hiroshi Tomizawa
宏 冨沢
Makoto Nitta
良 新田
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP9348865A priority Critical patent/JPH11184798A/en
Publication of JPH11184798A publication Critical patent/JPH11184798A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent the increase of direct memory access(DMA) processing load and the reduction of DMA transfer performance by determining the address of a reception area on a buffer memory through an address translating means. SOLUTION: A bus arbitrating means 17 performs the arbitrating processing of access requests from respective master devices, applies the permission of access to each access request in prescribed order and reports a service class showing which master device gets the permission of access to an address translating means 20. When the service class is reported from the bus arbitrating means 18, the address translating means 20 compares an address value on an address bus with a reception port address 31 fixedly allocated in advance through a comparator circuit 32 and when they are not coincident, an address value outputted by an address generating circuit 39 or when they are coincident, an address value outputted by an address generating circuit 39 is selected by a selector circuit 40 and outputted to a buffer memory 19.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はLANを介して相互
に接続されたデータ通信装置に係り、特にデータ通信装
置内でメモリ間の送受信データの転送を行うデータ通信
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication apparatus mutually connected via a LAN, and more particularly to a data communication apparatus for transferring data transmitted and received between memories in the data communication apparatus.

【0002】[0002]

【従来の技術】伝送路に接続されたデータ通信装置間で
データ伝送を行う場合、各データ通信装置は送信データ
をデータ通信装置内のバッファメモリに一旦格納してお
き、伝送路に対するアクセス権を得た時点で、伝送路に
送出し、伝送路上を伝送しているデータを常時監視し、
自データ通信装置宛のデータを検出するとそのデータを
バッファメモリの受信エリアに格納する。この受信エリ
アに格納された受信データは、データ通信装置内のダイ
レクト メモリ アクセス コントローラ(以下、DM
ACと略す)によりバッファメモリから計算機内のホス
トメモリに転送する。
2. Description of the Related Art When performing data transmission between data communication devices connected to a transmission line, each data communication device temporarily stores transmission data in a buffer memory in the data communication device and assigns an access right to the transmission line. At the time when it is obtained, it is sent to the transmission line and constantly monitors the data being transmitted on the transmission line,
When data addressed to the own data communication device is detected, the data is stored in the reception area of the buffer memory. The reception data stored in the reception area is transmitted to a direct memory access controller (hereinafter, DM) in the data communication device.
(Abbreviated as AC) from the buffer memory to the host memory in the computer.

【0003】従来のデータ通信装置では、バッファメモ
リとホストメモリ間のデータ転送をする場合、MPUは
バッファメモリ内の受信データに格納されているデータ
長を読み出し、前記データ長と転送元のバッファメモリ
内の受信データ先頭アドレスと転送先のホストメモリ内
受信エリアの先頭アドレスを設定後DMACを起動す
る。それに加えてMPUは前記データ長の値から次の受
信データが格納されているバッファメモリの先頭アドレ
スを算出しておき、次のDMAC起動時に設定値として
使用する。
In a conventional data communication apparatus, when data is transferred between a buffer memory and a host memory, an MPU reads a data length stored in received data in the buffer memory, and reads the data length and a buffer memory of a transfer source. The DMAC is started after setting the received data start address and the start address of the transfer destination reception area in the host memory. In addition, the MPU calculates the head address of the buffer memory in which the next received data is stored from the value of the data length, and uses it as a set value when the next DMAC is started.

【0004】起動されたDMACは、受信データをバッ
ファメモリからリードし、そのデータをホストメモリに
ライトする。このリード及びライト動作をデータ長分繰
返す。
[0004] The activated DMAC reads the received data from the buffer memory and writes the data to the host memory. The read and write operations are repeated for the data length.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、前記既
知のデータ通信装置では、MPUが転送データのデータ
長及び先頭アドレスを算出し、DMA転送を行う度に転
送元/転送先アドレスと転送データ長を設定した後にD
MACを起動する必要があり、MPUのDMA処理負荷
の増大及びデータ転送性能の低下等の問題を有するもの
である。
However, in the known data communication device, the MPU calculates the data length and the start address of the transfer data, and every time a DMA transfer is performed, the transfer source / destination address and the transfer data length are calculated. D after setting
It is necessary to start up the MAC, which causes problems such as an increase in the DMA processing load of the MPU and a decrease in data transfer performance.

【0006】本発明は、この問題点を除去することを目
的とし、バッファメモリとホストメモリ間でのデータ転
送において、MPUのDMA処理負荷の増大及びDMA
転送性能の低下を防ぐことのできるデータ転送方式を提
供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate this problem and increase the DMA processing load of the MPU and the DMA transfer in data transfer between a buffer memory and a host memory.
An object of the present invention is to provide a data transfer method capable of preventing a decrease in transfer performance.

【0007】[0007]

【課題を解決するための手段】通信制御手段,MPU,
DMAC,送受信データを格納するバッファメモリ、M
PU及びDMACから出力されるアクセス要求に対応し
てアクセス許可を与えるバス調停手段を備えたデータ通
信装置において、バス調停手段はアクセス許可を与えた
デバイスの種別を出力し、このデバイスの種別に応じて
バッファメモリをアクセスする時のアドレスを生成する
アドレス変換手段を備える。バッファメモリに格納され
るデータの先頭には受信データ長が記憶され、DMAC
起動時にはこの受信データ長を設定した後所定のアドレ
スに対しアクセスするように起動する。
Means for Solving the Problems Communication control means, MPU,
DMAC, buffer memory for storing transmission / reception data, M
In a data communication apparatus provided with a bus arbitration means for giving an access permission in response to an access request output from a PU and a DMAC, the bus arbitration means outputs the type of the device to which the access permission has been given, and responds to the type of the device. Address conversion means for generating an address when accessing the buffer memory. At the beginning of the data stored in the buffer memory, the received data length is stored.
At the time of startup, after setting the reception data length, the system is started to access a predetermined address.

【0008】[0008]

【発明の実施の形態】以下、本発明の実施例を図面を用
いて詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0009】図2に本発明を適用する伝送システムの構
成及びデータ通信装置の構成を示す。本伝送システムで
は、伝送路1を介して複数のデータ通信装置5〜7を相
互に接続し、データ通信装置5〜7には計算機2〜4を
それぞれ接続している。各データ通信装置には、MPU
14,DMAC15,バス調停手段17,通信制御手段18,
バッファメモリ19、及びアドレス変換手段20が備え
られている。各計算機にはCPU11とホストメモリ1
2が備えられ、データ通信装置と計算機はシステムバス
13により接続される。ここで、計算機間でデータ伝送
する場合、CPU11がホストメモリ12上の送信エリ
アに送信データを書き込み、データ通信装置内のDMAC15
によりホストメモリ12から読み出してバッファメモリ
19に送信データを転送し、通信制御手段18によりバ
ッファメモリ19から伝送路1上へ送信される。伝送路
1上のデータは、通信制御手段18により自計算機宛か
否かを判定して自計算機宛のデータであればバッファメ
モリ19上の受信エリアに転送され、DMAC15によりバッ
ファメモリ19からホストメモリ12の受信エリアに転
送される。
FIG. 2 shows a configuration of a transmission system to which the present invention is applied and a configuration of a data communication device. In the present transmission system, a plurality of data communication devices 5 to 7 are mutually connected via a transmission line 1, and computers 2 to 4 are connected to the data communication devices 5 to 7, respectively. Each data communication device has an MPU
14, DMAC 15, bus arbitration means 17, communication control means 18,
A buffer memory 19 and address conversion means 20 are provided. Each computer has a CPU 11 and a host memory 1
2 are provided, and the data communication device and the computer are connected by a system bus 13. Here, when data is transmitted between computers, the CPU 11 writes transmission data in a transmission area on the host memory 12 and the DMAC 15 in the data communication device.
Then, the transmission data is read from the host memory 12 and transferred to the buffer memory 19, and is transmitted from the buffer memory 19 to the transmission line 1 by the communication control unit 18. The data on the transmission path 1 is determined by the communication control means 18 to determine whether it is addressed to the own computer or not. It is transferred to 12 reception areas.

【0010】次に図3及び図4を用いて伝送路1から受
信したデータをバッファメモリ19及びホストメモリ1
2に転送する場合のアドレス変換方法について説明す
る。
Next, the data received from the transmission line 1 is stored in the buffer memory 19 and the host memory 1 with reference to FIGS.
Next, an address conversion method in the case of transferring data to C.2 will be described.

【0011】伝送路1から受信した自計算機宛のデータ
は通信制御手段18によりバッファメモリ19に転送さ
れる。通信制御手段18はバッファメモリ19に受信デ
ータを転送する場合、アドレスマップ上の固定的なアド
レスに割り当てられている受信ポートに対しアクセスす
る。アドレス変換手段20は、通信制御手段18から受
信ポートに対しアクセスされる毎に、受信エリアの先頭
アドレスから順次インクリメントしたアドレス値のバッ
ファメモリ19に対しデータを出力し、その結果、受信
エリアの先頭アドレスから順次受信データが書き込まれ
ていく。
The data addressed to the own computer received from the transmission line 1 is transferred to the buffer memory 19 by the communication control means 18. When transferring received data to the buffer memory 19, the communication control means 18 accesses a receiving port assigned to a fixed address on the address map. Each time the communication control unit 18 accesses the reception port, the address conversion unit 20 outputs data to the buffer memory 19 having the address value sequentially incremented from the head address of the reception area. Received data is written sequentially from the address.

【0012】次にバッファメモリ19内に転送済みの受
信データはDMAC15によりホストメモリ12に転送される
が、DMAC15には転送データ長及び転送元/転送先の先頭
アドレスを設定する必要があり、MPU14は受信デー
タの特定位置に格納されているデータ長を読み出すた
め、受信ポートに対しアクセスする。受信エリア内の各
受信データの先頭には、図3に示すように受信したデー
タのデータ長が格納される。アドレス変換手段20は、
MPU14から受信ポートに対しアクセスされる毎に、
受信エリア内の各受信データの先頭アドレス値をバッフ
ァメモリ19に対し順次出力する。これによりMPU1
4に対してバッファメモリ19から各受信データのデー
タ長が返される。MPU14はこの値をDMAC15に対し転
送データ長として設定後、DMAC15を起動する。
Next, the received data that has been transferred to the buffer memory 19 is transferred to the host memory 12 by the DMAC 15. The DMAC 15 needs to set the transfer data length and the start address of the transfer source / destination. Accesses the reception port to read the data length stored in the specific position of the reception data. At the head of each reception data in the reception area, the data length of the received data is stored as shown in FIG. The address translation means 20
Each time the MPU 14 accesses the receiving port,
The head address value of each reception data in the reception area is sequentially output to the buffer memory 19. This allows MPU1
For 4, the buffer memory 19 returns the data length of each received data. After setting this value as the transfer data length for the DMAC 15, the MPU 14 activates the DMAC 15.

【0013】MPU14から起動されたDMAC15は、受信
ポートに対しアクセスする。アドレス変換手段20は、
DMAC15から所定の受信ポートに対しアクセスされる毎に
受信エリアの先頭アドレスから順次インクリメントした
アドレス値をバッファメモリ19に対し出力し、結果と
して受信データの先頭アドレスから順次受信データが読
み出されていく。DMAC15は、アドレス変換手段20を介
して読み出したデータをシステムバス13を経由してホ
ストメモリ12に書き込み、この動作をデータ長分、繰
り返し、受信データをバッファメモリ19からホストメ
モリ12に転送する。
The DMAC 15 started from the MPU 14 accesses the receiving port. The address translation means 20
Each time the DMAC 15 accesses a predetermined reception port, an address value sequentially incremented from the head address of the reception area is output to the buffer memory 19, and as a result, the reception data is sequentially read from the head address of the reception data. . The DMAC 15 writes the data read via the address conversion means 20 to the host memory 12 via the system bus 13, repeats this operation for the data length, and transfers the received data from the buffer memory 19 to the host memory 12.

【0014】次に、通信制御手段18により伝送路1か
ら受信したデータをバッファメモリ19の受信エリアに
転送する途中で、受信エリアの最終アドレスに達した場
合のアドレス変換について、図5及び図6を用いて説明
する。
Next, while transferring data received from the transmission line 1 by the communication control means 18 to the reception area of the buffer memory 19, the address conversion when reaching the final address of the reception area will be described with reference to FIGS. This will be described with reference to FIG.

【0015】アドレス変換手段20は、通信制御手段1
8が受信ポートに対しアクセス中に、バッファメモリ1
9に対し出力するアドレス値が受信エリアの最終アドレ
スに達すると、次回からのバッファメモリ19に対し出
力するアドレス値を受信エリアの先頭に戻し、再びアク
セス毎に順次インクリメントしたアドレス値をバッファ
メモリ19に対し出力する。ここで、図5及び図6に示
すように受信データ3の前部と後部が分割格納される。
DMAC15からのアクセス時も同様にして、バッファメモリ
19に対し出力するアドレス値を受信エリアの先頭に戻
す。
The address conversion means 20 is a communication control means 1
8 is accessing the receiving port, while buffer memory 1
When the address value output to the buffer memory 9 reaches the last address of the reception area, the address value output to the buffer memory 19 from the next time is returned to the head of the reception area, and the address value sequentially incremented for each access again is stored in the buffer memory 19. Output to Here, as shown in FIGS. 5 and 6, the front part and the rear part of the reception data 3 are divided and stored.
Similarly, at the time of access from the DMAC 15, the address value output to the buffer memory 19 is returned to the head of the reception area.

【0016】アドレス変換手段20は、MPU14が受
信ポートに対しアクセスし受信データ3のデータ長を読
み出した次回のアクセスでは受信エリアの先頭部に戻
り、次の受信データ4の先頭アドレス値をバッファメモ
リ19に対し出力する。
The address conversion means 20 returns to the head of the reception area in the next access when the MPU 14 accesses the reception port and reads the data length of the reception data 3 and stores the head address value of the next reception data 4 in the buffer memory. 19 is output.

【0017】次にデータ通信装置の構成について図1を
用いて詳細に説明する。
Next, the configuration of the data communication device will be described in detail with reference to FIG.

【0018】通信制御手段18,MPU14、及びDMAC
15(以下通信制御手段18,MPU14、及びDMAC15をマスタ
デバイスと称する。)はバッファメモリ19に対しアク
セスする場合、バス調停手段17に対しアクセス要求を
出力する。バス調停手段17は各マスタデバイスからの
アクセス要求に対する調停処理を行い、各アクセス要求
に対し所定の順番にてアクセス許可を与えるとともに、
各マスタデバイスの何れにアクセス許可を与えたかを示
すサービス種別をアドレス変換手段20に通知する。
Communication control means 18, MPU 14, and DMAC
When accessing the buffer memory 19 (hereinafter, the communication control means 18, the MPU 14, and the DMAC 15 are referred to as master devices), the access request 15 outputs an access request to the bus arbitration means 17. The bus arbitration unit 17 performs an arbitration process for an access request from each master device, gives access permission to each access request in a predetermined order,
The service type indicating which of the master devices has been granted access permission is notified to the address conversion means 20.

【0019】アクセス許可が与えられたマスタデバイス
はアドレスバス上にこれからアクセスする受信ポートを
示すアドレスを出力し、アクセス許可を与えられたマス
タデバイスが通信制御手段18であればバッファメモリ
19に書き込むデータ値をデータバス上に出力する。
The master device to which the access permission is given outputs an address indicating the receiving port to be accessed on the address bus, and if the master device to which the access permission is given is the communication control means 18, the data to be written into the buffer memory 19 Output the value on the data bus.

【0020】アドレス変換手段20内には、受信ポート
アドレス31と受信エリア先頭アドレス33/受信エリ
ア最終アドレス34をそれぞれ格納するレジスタ、そし
て各マスタデバイスが受信ポートに対しアクセスする場
合にバッファメモリ19に出力するアドレスを決定する
ために用いるMPUアクセスアドレス36/DMACア
クセスアドレス37/通信制御手段アクセスアドレス3
5をそれぞれ格納するレジスタ、及びMPU14が受信
データの先頭に格納されているデータ長を読み出したと
きにその受信データ長38をアドレス変換手段20内に
取り込むためのレジスタ、そしてバス調停手段17から
通知されたサービス種別により、バッファメモリ19に
対し出力するアドレスを選択するとともに次回のアクセ
ス時のアドレス値を算出するアドレス生成回路39を有
する。受信ポートアドレス31と受信エリア先頭アドレ
ス33/受信エリア最終アドレス34を格納する各レジ
スタには予め所定の値が設定され、MPUアクセスアド
レス36,DMACアクセスアドレス37,通信制御手
段アクセスアドレス35を格納する各レジスタには初期
値として受信エリアの先頭アドレスが設定されている。
The address conversion means 20 has registers for storing the reception port address 31 and the reception area start address 33 / reception area end address 34, respectively, and the buffer memory 19 when each master device accesses the reception port. MPU access address 36 / DMAC access address 37 / communication control means access address 3 used to determine output address
5, a register for storing the received data length 38 in the address conversion means 20 when the MPU 14 reads the data length stored at the head of the received data, and a notification from the bus arbitration means 17. An address generating circuit 39 for selecting an address to be output to the buffer memory 19 and calculating an address value at the time of the next access according to the type of service provided. Predetermined values are set in advance in the registers for storing the reception port address 31, the reception area start address 33 / the reception area end address 34, and store the MPU access address 36, the DMAC access address 37, and the communication control means access address 35. The start address of the reception area is set in each register as an initial value.

【0021】アドレス変換手段20は、バス調停手段1
7からサービス種別が通知されると、アドレスバス上の
アドレス値と予め固定的に割り当ててある受信ポートア
ドレス31とを比較回路32により比較して、不一致で
あればアドレスバス上のアドレス値を、一致すればアド
レス生成回路39の出力するアドレス値を、選択回路4
0により選択しバッファメモリ19に対し出力する。
The address translating means 20 comprises a bus arbitrating means 1
When the service type is notified from 7, the comparison circuit 32 compares the address value on the address bus with the reception port address 31 fixedly assigned in advance. If they match, the address value output from the address generation circuit 39 is output to the selection circuit 4
0 is selected and output to the buffer memory 19.

【0022】アドレス生成回路39が出力するアドレス
の生成方法について、図7のフローチャートにより説明
する。
The method of generating the address output from the address generation circuit 39 will be described with reference to the flowchart of FIG.

【0023】アドレス生成回路39はバス調停手段17
から出力されたサービス種別により、アクセス許可され
たマスタデバイスが通信制御手段18かDMAC15又はMP
U14のいずれであるかを判定する(ステップ51)。
The address generation circuit 39 is a bus arbitration unit 17
Depending on the service type output from the device, the master device for which access is permitted is determined by the communication control unit 18, the DMAC 15, or the MPC.
It is determined which of U14 is the case (step 51).

【0024】サービス種別が通信制御手段18の場合
は、通信制御手段アクセスアドレス35の値を出力し
(ステップ52)、アクセス終了後、通信制御手段アク
セスアドレス35の値が受信エリア最終アドレス34と
一致しているか否かを判定し(ステップ53)、不一致
であれば通信制御手段アクセスアドレス35の値をイン
クリメントし(ステップ54)、一致していれば通信制
御手段アクセスアドレス35として受信エリア先頭アド
レス33の値を設定する(ステップ55)。
If the service type is the communication control means 18, the value of the communication control means access address 35 is output (step 52). After the access is completed, the value of the communication control means access address 35 is equal to the reception area final address 34. It is determined whether or not they match (step 53). If they do not match, the value of the communication control means access address 35 is incremented (step 54). Is set (step 55).

【0025】また、サービス種別がDMAC15の場合は、D
MACアクセスアドレス36の値を出力し(ステップ5
6)、アクセス終了後、DMACアクセスアドレス36
の値が受信エリア最終アドレス34と一致しているか否
かを判定し(ステップ57)、不一致であればDMACア
クセスアドレス36の値をインクリメントし(ステップ
58)、一致していればDMACアクセスアドレス36
に受信エリア先頭アドレス33の値を設定する(ステッ
プ59)。
When the service type is DMAC15, D
The value of the MAC access address 36 is output (step 5).
6) After the access is completed, the DMAC access address 36
Is determined to be equal to the reception area final address 34 (step 57). If they do not match, the value of the DMAC access address 36 is incremented (step 58).
Is set to the value of the reception area start address 33 (step 59).

【0026】一方、サービス種別がMPUの場合は、M
PUアクセスアドレス36の値を出力し(ステップ6
0)、MPU14が読み出したデータ長をアドレス変換
手段20内の受信データ長38に取り込んで、このデー
タ長から次の受信データが受信エリアの先頭部に戻され
たか否かを、受信エリア最終アドレス34の値と、MP
Uアクセスアドレス36の値と受信データ長38との和
とを比較して判定する(ステップ61)。
On the other hand, when the service type is MPU, M
The value of the PU access address 36 is output (step 6).
0), the data length read by the MPU 14 is fetched into the reception data length 38 in the address conversion means 20, and whether or not the next reception data has been returned to the head of the reception area is determined from this data length. 34 and MP
A determination is made by comparing the value of the U access address 36 with the sum of the received data length 38 (step 61).

【0027】この判定で受信エリア最終アドレス34の
値がMPUアクセスアドレス36の値と受信データ長3
8との和の値以下であれば、MPU14によるバッファ
メモリ19へのアクセスは、一旦受信エリアの末尾に達
した後受信エリアの先頭部からアクセスが継続している
ことになるため、次回のMPUアクセス時のMPUアク
セスアドレス36の値として(受信エリア先頭アドレス
33+(受信データ長38−(受信エリア最終アドレス
34−MPUアクセスアドレス36)))により算出した
値を設定する(ステップ62)。
In this determination, the value of the reception area final address 34 is the value of the MPU access address 36 and the reception data length 3
If the value is equal to or less than the sum of the MPU 8 and the MPU 14, the MPU 14 accesses the buffer memory 19 once since it reaches the end of the reception area and continues to access from the beginning of the reception area. As the value of the MPU access address 36 at the time of access, a value calculated by (reception area start address 33+ (reception data length 38- (reception area end address 34-MPU access address 36))) is set (step 62).

【0028】また、受信エリア最終アドレス34の値の
ほうが大きければ、次データの先頭アドレス値としてM
PUアクセスアドレス36の値と受信データ長38の和
をMPUアクセスアドレス36として設定する(ステッ
プ63)。
On the other hand, if the value of the receiving area final address 34 is larger, M is set as the leading address value of the next data.
The sum of the value of the PU access address 36 and the received data length 38 is set as the MPU access address 36 (step 63).

【0029】[0029]

【発明の効果】以上述べたように、本発明によれば、デ
ータ通信装置内で受信データを転送する場合に、マスタ
デバイスから所定の受信ポートに対してアクセスするこ
とにより、アドレス変換手段がバッファメモリ上の受信
エリアのアドレスを決定するため、バッファメモリのア
ドレスをバッファメモリをアクセスする各マスタデバイ
スが個々に算出する必要がなく、またMPUによるアド
レス算出処理及びDMACに対する転送元アドレスの設定も
不要となるため、DMA処理負荷の増大及びDMA転送性
能の低下を防ぐことが可能となりデータ伝送処理性能を
向上できる。
As described above, according to the present invention, when receiving data is transferred in the data communication device, the address conversion means can access the predetermined receiving port from the master device so that the address translating means can buffer the data. Since the address of the receiving area on the memory is determined, it is not necessary for each master device accessing the buffer memory to individually calculate the buffer memory address, and it is not necessary to perform the address calculation processing by the MPU and the setting of the transfer source address for the DMAC Therefore, an increase in the DMA processing load and a decrease in the DMA transfer performance can be prevented, and the data transmission processing performance can be improved.

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

【図1】本発明に係る実施例におけるデータ通信装置の
構成図である。
FIG. 1 is a configuration diagram of a data communication device in an embodiment according to the present invention.

【図2】本発明に係る実施例における伝送システムのブ
ロック図である。
FIG. 2 is a block diagram of a transmission system in an embodiment according to the present invention.

【図3】MPUがバッファメモリの受信エリアに対しア
クセスする時のアドレス変換手段の動作を示す図であ
る。
FIG. 3 is a diagram illustrating an operation of an address conversion unit when an MPU accesses a reception area of a buffer memory.

【図4】DMAC又は通信制御手段がバッファメモリの
受信エリアに対しアクセスする時のアドレス変換手段の
動作を示す図である。
FIG. 4 is a diagram illustrating an operation of an address conversion unit when a DMAC or a communication control unit accesses a reception area of a buffer memory.

【図5】MPUがバッファメモリの受信エリアの最終ア
ドレスを超えてアクセスしたときのアドレス変換手段の
動作を示す模式図である。
FIG. 5 is a schematic diagram showing the operation of the address conversion means when the MPU accesses beyond the last address of the reception area of the buffer memory.

【図6】DMACがバッファメモリの受信エリアの最終
アドレスを超えてアクセスしたときのアドレス変換手段
の動作を示す図である。
FIG. 6 is a diagram showing the operation of the address conversion means when the DMAC accesses beyond the last address of the reception area of the buffer memory.

【図7】アドレス生成回路におけるアクセス要求受付時
の動作フロー図である。
FIG. 7 is an operation flowchart when an access request is accepted in the address generation circuit.

【符号の説明】[Explanation of symbols]

1…伝送路、2〜4…計算機、5〜7…データ通信装
置、11…CPU、12…ホストメモリ、13…システ
ムバス、14…MPU、15…DMAC、17…バス調
停手段、18…通信制御手段、19…バッファメモリ、
20…アドレス変換手段。
DESCRIPTION OF SYMBOLS 1 ... Transmission line, 2-4 ... Computer, 5-7 ... Data communication device, 11 ... CPU, 12 ... Host memory, 13 ... System bus, 14 ... MPU, 15 ... DMAC, 17 ... Bus arbitration means, 18 ... Communication Control means 19 buffer memory
20 ... Address conversion means.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 米田 憲一 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 冨沢 宏 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 新田 良 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Kenichi Yoneda 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside the Omika Plant, Hitachi, Ltd. (72) Inventor Hiroshi Tomizawa 5-chome, Omikamachi, Hitachi City, Ibaraki Prefecture No. 1 Hitachi, Ltd., Omika Plant (72) Inventor Ryo Nitta 5-2-1, Omika-cho, Hitachi City, Ibaraki Pref.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】伝送路に接続された複数のデータ通信装置
間でデータ伝送を行う伝送システムを構成し、MPU,
DMAC,通信制御手段,送受信データを格納するバッ
ファメモリ,MPU及びDMACから出力されるアクセ
ス要求に対応してアクセス許可を与えるバス調停手段を
備えたデータ通信装置において、 前記MPU及びDMACは、バッファメモリへのアクセ
スの際には所定のアドレスに対してアクセスを行い、 前記バス調停手段はアクセス許可を与えたデバイス種別
を出力し、 当該バス調停手段から出力されたデバイス種別に応じて
バッファメモリをアクセスする時のアドレスを生成する
アドレス変換手段を有し、 前記アドレス変換手段は、前記通信制御手段,前記MP
U、又は前記DMACから前記所定のアドレスに対しア
クセス要求があった場合にアドレス変換を行うことを特
徴とするデータ通信装置。
1. A transmission system for transmitting data between a plurality of data communication devices connected to a transmission line, comprising an MPU,
A data communication device comprising a DMAC, a communication control means, a buffer memory for storing transmission / reception data, a bus arbitration means for granting access permission in response to an access request output from the MPU and the DMAC, wherein the MPU and the DMAC are buffer memories. When accessing the device, the bus arbitration unit outputs a device type to which access is granted, and accesses the buffer memory according to the device type output from the bus arbitration unit. Address conversion means for generating an address when the communication is performed, the address conversion means comprising: the communication control means;
A data communication device, which performs address conversion when there is an access request to the predetermined address from U or the DMAC.
【請求項2】請求項1のデータ通信装置において、 前記アドレス変換手段は、 伝送路から受信したデータを格納する前記バッファメモ
リの受信エリアの先頭アドレス及び最終アドレスを記憶
しておき、 前記通信制御手段及び前記DMACからのアクセスが行
われる毎に前記バッファメモリに対しアクセスするアド
レスを順次インクリメントし、バッファメモリに対しア
クセスする当該アドレスが前記最終アドレスに一致する
と、次回のDMACからのリードアクセス要求時に生成する
アドレスを前記先頭アドレスに変換することを特徴とす
るデータ通信装置。
2. The data communication apparatus according to claim 1, wherein said address conversion means stores a start address and a last address of a reception area of said buffer memory for storing data received from a transmission line, Each time an access is made from the means and the DMAC, an address for accessing the buffer memory is sequentially incremented, and if the address for accessing the buffer memory matches the last address, a next read access request from the DMAC is made. A data communication device for converting an address to be generated into the head address.
【請求項3】請求項1又は2に記載のデータ通信装置に
おいて、 前記アドレス変換手段は、前記通信制御手段又は前記M
PUからのアクセス要求時、受信データのデータ長が格
納されているアドレスを生成し、前記MPUが読み出し
たデータ値を当該アドレス変換手段内に取り込み、次の
受信データのデータ長が格納されているアドレスを算出
することを特徴とするデータ通信装置。
3. The data communication device according to claim 1, wherein said address translating means comprises said communication control means or said M.
At the time of an access request from the PU, an address storing the data length of the received data is generated, the data value read by the MPU is taken into the address conversion means, and the data length of the next received data is stored. A data communication device for calculating an address.
【請求項4】請求項1から3に記載のデータ通信装置に
おいて、 前記バッファメモリに記憶される受信データの先頭には
当該受信データのデータ長が格納され、 予め読み出した当該データ長を前記DMACに設定した
後、所定のアドレスからアクセスするように前記DMA
Cを起動することを特徴とするデータ通信装置。
4. The data communication device according to claim 1, wherein a data length of the received data is stored at a head of the received data stored in the buffer memory, and the data length read in advance is stored in the DMAC. After the setting, the DMA is accessed so as to access from a predetermined address.
A data communication device, wherein the data communication device activates C.
JP9348865A 1997-12-18 1997-12-18 Data communication equipment Pending JPH11184798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9348865A JPH11184798A (en) 1997-12-18 1997-12-18 Data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9348865A JPH11184798A (en) 1997-12-18 1997-12-18 Data communication equipment

Publications (1)

Publication Number Publication Date
JPH11184798A true JPH11184798A (en) 1999-07-09

Family

ID=18399916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9348865A Pending JPH11184798A (en) 1997-12-18 1997-12-18 Data communication equipment

Country Status (1)

Country Link
JP (1) JPH11184798A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004128764A (en) * 2002-10-01 2004-04-22 Ando Electric Co Ltd Memory control system and method in ethernet (r)-atm converter
JP2009032085A (en) * 2007-07-27 2009-02-12 Panasonic Corp Data processing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004128764A (en) * 2002-10-01 2004-04-22 Ando Electric Co Ltd Memory control system and method in ethernet (r)-atm converter
JP2009032085A (en) * 2007-07-27 2009-02-12 Panasonic Corp Data processing system
US8239652B2 (en) 2007-07-27 2012-08-07 Panasonic Corporation Data processing system

Similar Documents

Publication Publication Date Title
JP2571067B2 (en) Bus master
US6189062B1 (en) Apparatus and method for address translation in bus bridge devices
JPH04246745A (en) Memory access system
JPH06187298A (en) Data transfer processing method and data transfer processor
JP2774862B2 (en) DMA control device and information processing device
US6272583B1 (en) Microprocessor having built-in DRAM and internal data transfer paths wider and faster than independent external transfer paths
US6061748A (en) Method and apparatus for moving data packets between networks while minimizing CPU intervention using a multi-bus architecture having DMA bus
US6826644B1 (en) Peripheral component interconnect arbiter implementation with dynamic priority scheme
JP2591502B2 (en) Information processing system and its bus arbitration system
JP2001333137A (en) Self-operating communication controller and self- operating communication control method
JP2001282631A (en) Method, system and pci bus system for limiting destruction of write data
JPH11184798A (en) Data communication equipment
JPH09269934A (en) Data matching method and transmitting system for common memory
JPH0544238B2 (en)
JP3420114B2 (en) Data transfer method
CN115017093B (en) Method and device for on-chip external bus communication
JP2001256169A (en) Data transfer control system and device
JPH05189311A (en) Cache memory system
JP3371978B2 (en) Information processing device
CN116303158A (en) Bus arbitration method, electronic device and graphic processor
JP2000244585A (en) Bus interface circuit
JP3272890B2 (en) Memory access control circuit and output device
JP2627355B2 (en) Data communication method
JPS59231952A (en) Communication control system between multiprocessors
JPH07334453A (en) Memory access system