JPS62145449A - Information transfer system - Google Patents

Information transfer system

Info

Publication number
JPS62145449A
JPS62145449A JP60287243A JP28724385A JPS62145449A JP S62145449 A JPS62145449 A JP S62145449A JP 60287243 A JP60287243 A JP 60287243A JP 28724385 A JP28724385 A JP 28724385A JP S62145449 A JPS62145449 A JP S62145449A
Authority
JP
Japan
Prior art keywords
information
data buffer
transfer
layer
data
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.)
Granted
Application number
JP60287243A
Other languages
Japanese (ja)
Other versions
JPH0378660B2 (en
Inventor
Noriaki Kishino
岸野 訓明
Toru Furuhashi
古橋 徹
Hitoya Nakamura
人也 中村
Minoru Abe
稔 安部
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP60287243A priority Critical patent/JPS62145449A/en
Publication of JPS62145449A publication Critical patent/JPS62145449A/en
Publication of JPH0378660B2 publication Critical patent/JPH0378660B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing efficiency of information transfer by setting a data buffer information area storing a final information address and a transfer information area storing transfer information. CONSTITUTION:An equipment 20 of a layer 3 writes transfer information on a data buffer of a common memory 40, e.g., a transfer information area 44-0 of a buffer 41-0. When the transfer information is long and it is required to provide a chain, chaining information C is brought to 1 in a chaining information area 42-0 and an idle data buffer to write the succeeding transfer information, e.g., DBNO:1 of 41-1 is written on an information area 43-0. Then the device 20 informs a reception request SRQ, in this case, DBNO:0 written at first on the transfer information to a device 10a of layer 2 via an input port 17. The device 10a reads the informed data DBNO:0 and reads the chaining information C of the buffer 41-0.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ハイレベルデータリンク制御手順を使用する
通信IIIall装置とそのL位装茜のような2つの装
置111における情報の転送方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to an information transfer method in two devices 111, such as a communication IIIall device and its L-equipped device using a high-level data link control procedure. It is.

(従来の技術) 従来より、ハイレベルデータリンク制御手順(HDLC
)を使用する通信制御装置(レイヤ2装置)とその上位
装a(レイヤ3装口)との間で情報を転送する方式の一
つとして、両装置間に共通のメモリ(以下、共有メモリ
と称す。)を設け、該共有メモリをレイヤ2装置および
レイヤ3装置の両方からアクセスすることによって行な
うものがある。
(Prior art) Conventionally, high-level data link control procedures (HDLC
) is used to transfer information between a communication control device (layer 2 device) and its upper device a (layer 3 device), which uses a common memory (hereinafter referred to as shared memory) between both devices. ), and the shared memory is accessed from both layer 2 devices and layer 3 devices.

このような情報転送方式について述べたものとして、伝
水 他著rHDLC機能の強化が進むデータ通信用LS
I(マイクロプロセッサ周辺LSIシリーズ 第8回)
」(日経エレクトロニクス、1984、10.8 、 
P131〜158)がある。以下、これに沿って説明す
る。
As a description of such an information transfer method, Densui et al.
I (Microprocessor Peripheral LSI Series No. 8)
” (Nikkei Electronics, 1984, 10.8,
P131-158). This will be explained below.

第2図は従来の情報転送方式におけるシステム構成の一
例を示すもので、図中、10はレイヤ2装置(L2)、
20はレイヤ3装置(L3)、30は共有メモリであり
、レイヤ2装置10は、シリアルデータインタフェース
(801)11と、プロセッナ(CPU)12と、リー
ドオンリメモリ(ROM)13と、ランダムアクセスメ
モリ(RAM)14と、ダイレクトメモリアクセスコン
トローラ(DMAC)15とからなっている。
FIG. 2 shows an example of a system configuration in a conventional information transfer method. In the figure, 10 is a layer 2 device (L2),
20 is a layer 3 device (L3), 30 is a shared memory, and the layer 2 device 10 includes a serial data interface (801) 11, a processor (CPU) 12, a read only memory (ROM) 13, and a random access memory. (RAM) 14 and a direct memory access controller (DMAC) 15.

また、第3図は、前記共有メモリ30の内部構成および
DMACl3内のレジスタ151の内容の一例を示すも
のである。即ち、共有メモリ30は、送受信動作に必要
な情報を蓄積する送信用ルック・アップ・テーブル(T
LOOに一8バイト×8〉31、および受信用ルック・
アップ・テーブル(RLOOに:8バイトX8)32を
有し、また、これとは別に、実際の転送情報を蓄積する
複数の送信データ・バッファ33および受信データ・バ
ッファ34を有している。
Further, FIG. 3 shows an example of the internal configuration of the shared memory 30 and the contents of the register 151 in the DMACl3. That is, the shared memory 30 stores a transmission lookup table (T) that stores information necessary for transmission and reception operations.
18 bytes x 8〉31 in LOO, and look for reception.
It has an up table (RLOO: 8 bytes x 8) 32, and separately from this, it has a plurality of transmit data buffers 33 and receive data buffers 34 for storing actual transfer information.

前記データ・バッファ33.34は、一定の大きさに区
切られた共通のメモリであり、転送情報が1データバツ
フアを越えると、続きの鳶送情報を他の空きのデータ・
バッファ33(又は34)に蓄積する(以下、チェーン
を組むと称す。)ことにより、長い転送情報に対処する
ようになしている。
The data buffers 33 and 34 are common memories partitioned into fixed sizes, and when the transfer information exceeds one data buffer, the subsequent transfer information is transferred to other free data.
By accumulating the information in the buffer 33 (or 34) (hereinafter referred to as forming a chain), long transfer information can be handled.

前記チェーンを組んだ時、これを表示する情報として、
次のデータ・バッファ33(又は34)のアドレスを示
すトランスファ・アドレスが、データバッファ33(又
は34)内の最後に入れられる如くなっている。
When the chain is assembled, the information displayed is:
A transfer address indicating the address of the next data buffer 33 (or 34) is placed at the end of the data buffer 33 (or 34).

次に、レイヤ3装置20→レイヤ2装置10の情報転送
を例として動作を説明する。
Next, the operation will be described using information transfer from the layer 3 device 20 to the layer 2 device 10 as an example.

(1)レイヤ3装置20は、共有メモリ30の送信デー
タ・バッファ33に転送情報を書込む。チェーンを組む
必要がある場合は、トランスファ・アドレスを書込みな
がら、次々と転送情報を書込む。
(1) The layer 3 device 20 writes transfer information to the transmission data buffer 33 of the shared memory 30. If it is necessary to form a chain, write transfer information one after another while writing the transfer address.

(2)レイヤ3装置20は、TLOQに31のセグメン
ト0に、送信データ・バッファ33に蓄積されたデータ
の先頭アドレス、送信データの長さを書込み、送信デー
タ・バッファ・レディ・フラグを“1゛にする。
(2) The layer 3 device 20 writes the start address of the data accumulated in the transmission data buffer 33 and the length of the transmission data to segment 0 of TLOQ 31, and sets the transmission data buffer ready flag to “1”. Make it ゛.

(3)レイヤ3装M20は、レイヤ2装置10に情報フ
レーム送信用のビットを°1″にづることにより送信要
求を伝える。
(3) The layer 3 device M20 notifies the layer 2 device 10 of a transmission request by setting the bit for transmitting the information frame to °1''.

(4)レイヤ2装置10内のDMACl3は、TLOO
に31のセグメントOの内容を読取る。
(4) DMACl3 in the layer 2 device 10 is TLOO
Read the contents of segment O of 31.

(5)前記DMACl3は、送信データ・バッファ・レ
ディ・フラグが1″であることを確認した上で、送信デ
ータ・バッファ33内の転送情報を情報フィールドに入
れながら、情報フレームをSD 111に送出し、さら
にモデム等の物l!l!mを構成するレイA’ 1装置
に対して送出する。
(5) After confirming that the transmission data buffer ready flag is 1'', the DMACl 3 sends the information frame to the SD 111 while putting the transfer information in the transmission data buffer 33 into the information field. Then, it is further transmitted to the ray A'1 device constituting the device l!l!m such as a modem.

(6)DMAC15は、転送情報のビット数をカウント
し、セグメント0に書込まれた送信データの長さと比較
し、転送終了をヂエツクする。
(6) The DMAC 15 counts the number of bits of the transfer information, compares it with the length of the transmission data written in segment 0, and checks the end of the transfer.

(7)1つの送信データ・バッファ33内の情報を転送
し終えた時、転送完了でない、即ち前記送信デ、−夕の
長さとカウント数とが一致しない場合は、トランスファ
・アドレスに従って、連結された送信データ・バッファ
33内の情報を転送する。
(7) When the information in one transmission data buffer 33 has been transferred, if the transfer is not completed, that is, the length of the transmission data and the count number do not match, the information is concatenated according to the transfer address. The information in the transmitted data buffer 33 is transferred.

(8)こうして、転送完了まで前記(6)、(7)の動
作を繰返す。
(8) In this way, the operations of (6) and (7) are repeated until the transfer is completed.

(発明が解決しようとする問題貞) しかしながら前記情報転送方式では、転送データの先頭
アドレスとデータの長さとを・与えなければならないこ
とから、 1)、データの長さがチェーンを組まれる程、長い情報
ではデータの長さを通知するために多数のビットを必要
とする、 2)、データの転送完了を知るためには、全体を通して
のビット数を計数するカウンタが必要となり、このカウ
ンタのビット数も大きいものが必要となる、 3)、1データバツフア内で情報が終わらない場合、次
のデータ・バッファにデータが続くかどうかの判断は、
前記カウンタの計数値とデータの長さとの比較によって
行なうため、多数のビットの比較が必要とされる等の問
題点があった。
(Problem to be Solved by the Invention) However, in the above-mentioned information transfer method, since the start address of the transfer data and the length of the data must be given, 1) The longer the data is chained, the shorter the length of the data becomes. Long information requires a large number of bits to notify the length of the data. 2) In order to know when data transfer is complete, a counter is required to count the number of bits throughout, and the bits of this counter 3) If the information does not end within one data buffer, determining whether the data continues in the next data buffer is as follows:
Since this is done by comparing the count value of the counter with the length of the data, there are problems such as the need to compare a large number of bits.

本発明は前述した問題点を除去し、情報転送に関わる処
理の効率の良い情報転送方式を提供することを目的とす
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide an information transfer method that eliminates the above-mentioned problems and provides efficient processing related to information transfer.

(問題点を解決するための手段) 本発明では前記問題点を解決するため、2つの装置より
アクセス可能な共有メモリを介して、該2つの装置間の
情報転送を行なう情報転送方式において、前記共有メモ
リを少なくとも複数のデータ・バッファで構成するとと
もに、転送情報を蓄積したデータ・バッファの位置を示
ず情報からなる転送要求を、前記2つの装置間で送受信
する手段を設け、前記各データ・バッファに、続きの情
報を格納したデータ・バッファがあるか否かを示すチェ
ーン化情報を格納するチェーン化情報エリアと、続きの
情報を格納したデータ・バッファがある場合は次のデー
タ・バッファの位置を示す次データバッファ情報を格納
し、続きの情報を格納したデータ・バッファがない場合
は該データ・バッファ内で最侵の転送情報が格納されて
いるアドレスを示す最終情報アドレスを格納するデータ
バッファ情報エリアと、転送情報を格納する転送情報エ
リアとを設定した。
(Means for Solving the Problems) In order to solve the above problems, the present invention provides the above-mentioned information transfer method for transferring information between two devices via a shared memory accessible by the two devices. The shared memory is configured with at least a plurality of data buffers, and means is provided for transmitting and receiving a transfer request consisting of information without indicating the location of the data buffer storing transfer information between the two devices, and each of the data buffers A chaining information area that stores chaining information indicating whether or not there is a data buffer that stores continuation information in the buffer, and a chaining information area that stores chaining information that indicates whether or not there is a data buffer that stores continuation information. Data that stores next data buffer information that indicates the position, and if there is no data buffer that stores the continuation information, stores the final information address that indicates the address where the most corrupted transfer information is stored in the data buffer. A buffer information area and a transfer information area for storing transfer information are set.

(作用) 本発明によれば、転送情報を蓄積したデータ・バッファ
の位置を示す情報を送るのみで転送要求を出すことがで
き、データ・バッファのチェーン化情報エリア内のチェ
ーン化情報を読出ずことにより、続きの転送情報を蓄積
したデータ・バッファがあるか否かを判定でき、さらに
続きのデータ・バッファがある時はデータバッファ情報
エリア内の次データバッファ情報に基づいて、次のデー
タ・バッファをアクセスでき、続きのデータ・バッファ
がない時はそのデータ・バッファの読出し開始時点から
の計数値とデータバッファ情報エリア内の最終情報アド
レスとを比較することにより、転送完了のチェックを行
なうことができる。
(Operation) According to the present invention, a transfer request can be issued simply by sending information indicating the position of a data buffer that has accumulated transfer information, without reading the chaining information in the chaining information area of the data buffer. By this, it is possible to determine whether or not there is a data buffer that has stored continuation transfer information, and if there is a continuation data buffer, the next data buffer is stored based on the next data buffer information in the data buffer information area. When the buffer can be accessed and there is no continuation data buffer, check whether the transfer is complete by comparing the count value from the start of reading the data buffer with the final information address in the data buffer information area. I can do it.

(実施例) 第1図は本発明方式の一実施例を示すもので、図中、第
2図と同一構成部分は同一符号をもって表わす。即ち、
10aはレイヤ2装置、20はレイヤ3装置、40は共
有メモリである。
(Embodiment) FIG. 1 shows an embodiment of the system of the present invention, in which the same components as those in FIG. 2 are denoted by the same reference numerals. That is,
10a is a layer 2 device, 20 is a layer 3 device, and 40 is a shared memory.

レイヤ2装置10aは、シリアルデータインタフェース
(SDI>11と、プロセッサ(CPU)12と、リー
ドオンリメモリ(ROM)13と、ランダムアクセスメ
モリ(RAM)14と、ダイレクトメモリアクセスコン
トローラ(DM八へ)15と、出力ボート16と、入力
ボート17とを備えている。
The layer 2 device 10a has a serial data interface (SDI>11), a processor (CPU) 12, a read-only memory (ROM) 13, a random access memory (RAM) 14, and a direct memory access controller (to DM8) 15. , an output boat 16 , and an input boat 17 .

出力ボート16および入力ボート17は、レイヤ2装置
10aとレイヤ3装誼20との間で直接、コマンドをや
りとりするためのもので、それぞれ受信リクエストRR
Qをレイ1フ3装置20に通知し、レイヤ3装置20よ
り通知された送信リクエストSRQを受ける。前記受信
リクエストRRQ。
The output boat 16 and the input boat 17 are for directly exchanging commands between the layer 2 device 10a and the layer 3 equipment 20, and each receives a reception request RR.
Q to the Layer 1 F3 device 20, and receives the transmission request SRQ notified from the Layer 3 device 20. The received request RRQ.

送信リクエストSRQの内容は、共有メモリ40におけ
る転送情報の蓄積されたデータ・バッファの位置を示す
アドレス、番号(ナンバ)等の情報である。なお、デー
タ・バッファがチェーン化されている場合には、最初の
データバッファの位置、例えばナンバを通知する。
The contents of the transmission request SRQ include information such as an address and a number indicating the location of the data buffer in the shared memory 40 in which the transfer information is stored. Note that if the data buffers are chained, the position of the first data buffer, for example, the number, is notified.

第4図は共有メモリ40の内容を示すもので、同じ容量
を有し、且つそれぞれを区別するデータバッファナンバ
(DBNO)0.1.2.−・・−nを付与されている
複数のデータ・バッファ41−0.41−1.41−2
.・・・・・・41−nを備えている。各データ・バッ
ファ41−0〜41−nは、チェーン化情報エリア42
−O〜42−nと、データバッファ情報エリア43−O
〜43−nと、転送情報エリア44−0〜44−nとか
らなっている。
FIG. 4 shows the contents of the shared memory 40, which has the same capacity and is distinguished by data buffer numbers (DBNOs) 0.1.2. - Multiple data buffers 41-0.41-1.41-2 given -n
.. ...41-n is provided. Each data buffer 41-0 to 41-n is connected to a chaining information area 42.
-O to 42-n and data buffer information area 43-O
43-n and transfer information areas 44-0 to 44-n.

チェーン化情報エリア42−O〜42−nには、チェー
ン化情報Cが格納され、該チェーン化情報Cが“OII
の時は次に続くチェーン化されたデータ・バッファがな
いことを示し、°“1″の時は次に続くチェーン化され
たデータ・バッファがあることを示す。データバッファ
情報エリア43−0〜43−nの内容りは、チェーン化
情報Cの値によって内容が異なり、C−0の場合はその
データ・バッファ内で最後の転送情報の7ドレスを示す
最終情報アドレスが格納され、C−1の場合は次のデー
タ・バッファの位置を示す次データバッファ情報、例え
ばDBNOが格納される。また、転送情報エリア44−
0〜44−nには転送情報が蓄積される。
Chaining information C is stored in the chaining information areas 42-O to 42-n, and the chaining information C is “OII
When it is "1", it indicates that there is no next chained data buffer, and when it is "1", it indicates that there is a next chained data buffer. The contents of the data buffer information areas 43-0 to 43-n differ depending on the value of chaining information C, and in the case of C-0, the final information indicating the 7th address of the last transfer information in the data buffer. An address is stored, and in the case of C-1, next data buffer information indicating the location of the next data buffer, for example DBNO, is stored. In addition, transfer information area 44-
Transfer information is stored in 0 to 44-n.

次にレイヤ3装@20→レイヤ2装置10aの情報転送
を例にとって動作を説明する。
Next, the operation will be explained using an example of information transfer from layer 3 device @ 20 to layer 2 device 10a.

(1)レイヤ3装硼20は空きのデータ・バッファ、例
えば41−0の転送情報エリア44−0に転送情報をl
込む。転送情報が長く、チェーンを組む必要のある場合
はチェーン化情報エリア42−〇内のチェーン化情報C
を“1”とし、次に続きの転送情報を書込むための空き
のデータ・バッファ、例えば41−1のDBNO,即ち
「1」をデータバッファ情報エリア43−0に書込む。
(1) The layer 3 device 20 stores transfer information in the transfer information area 44-0 of an empty data buffer, for example 41-0.
It's crowded. If the transfer information is long and it is necessary to form a chain, use the chaining information C in the chaining information area 42-0.
is set to "1", and then an empty data buffer for writing the subsequent transfer information, for example, the DBNO of 41-1, that is, "1" is written to the data buffer information area 43-0.

(2)該データ・バッファ41−1で転送情報を全てl
終えた場合、レイヤ3装置20は、データバッファ41
−1のチェ・−ン化情報エリア42−1内のチェーン化
情報Cを0′とし、さらにその転送情報エリア44−1
で最後に転送情報を書込んだアドレスを、データバッフ
ァ情報エリア43−1に書込む。
(2) All the transfer information is stored in the data buffer 41-1.
If the layer 3 device 20 has completed the data buffer 41, the layer 3 device 20
The chaining information C in the chaining information area 42-1 of -1 is set to 0', and the transfer information area 44-1
The address where the transfer information was last written is written in the data buffer information area 43-1.

(3)レイヤ3装M20はレイヤ2装置10aに対し、
入力ボート17を介して受信リクエスト5RQ1ここで
は転送情報の最初に書込まれたDBNo rOJを通知
する。
(3) The layer 3 device M20 has the following information for the layer 2 device 10a:
Here, the reception request 5RQ1 is notified of the first written DBNorOJ of the transfer information via the input port 17.

(4)レイヤ2装置110aは、通知されたDBNO「
0」を読取り、次にそのデータ・バッファ41−0のチ
ェーン化情報Cを読取る。
(4) The layer 2 device 110a receives the notified DBNO “
0'' is read, and then the chaining information C of the data buffer 41-0 is read.

(5)この時、チェーン化情報Cは“°1”であるから
、データ・バッファ41−0の転送情報エリア44−0
内の情報全てを情報フィールドに挿入しながら、情報フ
レームを5D111を介しでレイヤ1装置(図示せず)
に対して送出する。
(5) At this time, since the chaining information C is "°1", the transfer information area 44-0 of the data buffer 41-0
The information frame is sent to the layer 1 device (not shown) via the 5D 111 while inserting all the information in the information field into the information field.
Send to.

(6)データ・バッファ41−0内の転送情報を全て送
出し終ると、データバッファ情報エリア43−0の内容
D1即ちDBNOrIJより、続きの情報が蓄積されて
いるデータ・バッファ41−1を選び、そのチェーン化
情報Cの内容をチェックする。
(6) When all the transfer information in the data buffer 41-0 has been sent, select the data buffer 41-1 in which the next information is stored from the content D1 of the data buffer information area 43-0, that is, DBNOrIJ. , the contents of the chained information C are checked.

(7)この時、C=“0”であるから、データバッファ
情報エリア43−1の内容りより、その転送情報エリア
44−1内での最終情報アドレスを認識し、該転送情報
エリア44−1の情報を情報フィールドに挿入しながら
、情報フレームをレイヤ1装置に対して送出する。この
際、送出情報のビット数をカウントしながら、前記最終
情報アドレスと比較し、転送が完rしたかどうかをチェ
ックする。
(7) At this time, since C="0", the final information address in the transfer information area 44-1 is recognized from the contents of the data buffer information area 43-1, and the final information address in the transfer information area 44-1 is recognized. The information frame is sent to the layer 1 device while inserting the information of layer 1 into the information field. At this time, while counting the number of bits of the sending information, it is compared with the final information address to check whether the transfer has been completed.

なお、動作(6)で、C=″゛1″の場合は動作(5)
、 (6)を繰返し、また、動作(4)でC−” O”
の場合には、動作(7)へ移行する。
In addition, in operation (6), if C = "゛1", operation (5)
, repeat (6), and in operation (4) C-"O"
In this case, the process moves to operation (7).

このように本実施例によれば、1データバツフア内で情
報が閉じているか、チェーン化されて次のデータ・バッ
ファに続くかどうかは、1ビツトのチェーン化情報の判
断だけで良く、また、転送完了のチェックは、チェーン
化されたデータ・バッファのうちの最後の分についてそ
の情報のビット数を計数し、これを最終情報アドレスと
比較するのみで良く、さらにこの最終情報アドレスは最
大1データ・バッファ分であるため、従来のように転送
情報の全てに亘るビット数の計数や比較、さらにこの全
ピット数を表わず長さのデータの通知が不要となる。ま
た、チェーン化情報や前記最終情報アドレスはデータ・
バッファ内に格納され、転送要求は直接、DBNOを送
ることにより行なわれるため、従来のようにテーブルを
共有メモリ内に設ける必要がなく、共有メモリを有効に
使用することができる。
In this way, according to this embodiment, whether information is closed within one data buffer or whether it is chained and continues to the next data buffer can be determined only by the 1-bit chaining information. Completion checking simply requires counting the number of bits of information for the last part of the chained data buffer and comparing this with the final information address, which can contain up to one data buffer. Since it is for a buffer, there is no need to count and compare the number of bits in all of the transfer information, as in the past, and to notify the length data, which does not represent the total number of pits. In addition, the chain information and the final information address are data
Since the table is stored in a buffer and the transfer request is made by directly sending the DBNO, there is no need to provide a table in the shared memory as in the conventional case, and the shared memory can be used effectively.

なお、前記実施例では、転送要求を入力(又は出力)ボ
ートを介して送っているが、これに限定されるものでは
ない。また、各データ・バッファ内のチェーン化情報エ
リア、データバッファ情報エリアおよび転送情報エリア
の配置は任意に定めることができ、図示のものに限定さ
れることはない。
Note that in the embodiment described above, the transfer request is sent via the input (or output) port, but the present invention is not limited to this. Furthermore, the arrangement of the chained information area, data buffer information area, and transfer information area within each data buffer can be arbitrarily determined, and is not limited to what is shown in the drawings.

第5図は本発明の他の実施例を示すもので、ここでは共
有メモリとしてページメモリを用いた例を示す。即ち、
図中、50−0〜50−nはページメモリ(PM)であ
り、互いに独立な一定の記憶伍を有する複数(ここでは
n個)のメモリからなっている。また、各PM50−0
〜50−nには各々を識別するための番号(ナンバ)#
0〜#nが付されている。また、11はシリアルデータ
インタフェース(SDI)、12はプロセッサ(CPU
)、18.19&を入出力ボート(portO,por
tl)である。入出力ボート18゜19は前記実施例に
おける出力ポートと入力ボートとを一緒にしたものであ
り、図示しない2つのレイヤ3装置にそれぞれ接続され
ている。また、11a、12a、18a、19aは各装
置のデータバスであり、データバス11a、18a、1
9aは全てデータバス12aに接続されている。また、
前記各PM50−1〜5O−nG、t、前記データバス
11a、12a、18a、19aのいずれの配下で動作
するかを、CPU12により、独立に(0−タリースイ
ッチ的に)切換え制御される如くなっている。
FIG. 5 shows another embodiment of the present invention, in which a page memory is used as the shared memory. That is,
In the figure, page memories (PM) 50-0 to 50-n are composed of a plurality of (n in this case) memories each having a fixed storage capacity that is independent of each other. In addition, each PM50-0
~50-n has a number # to identify each
0 to #n are assigned. In addition, 11 is a serial data interface (SDI), and 12 is a processor (CPU).
), 18.19& as the input/output port (portO, por
tl). The input/output ports 18 and 19 are a combination of the output port and the input port in the embodiment described above, and are respectively connected to two layer 3 devices (not shown). Further, 11a, 12a, 18a, 19a are data buses of each device, and data buses 11a, 18a, 19a are data buses of each device.
9a are all connected to the data bus 12a. Also,
The CPU 12 independently (like a 0-tally switch) controls which of the PMs 50-1 to 5O-nG, t and the data buses 11a, 12a, 18a, and 19a to operate under. It has become.

次にレイヤ3装置→レイヤ2装置の情報転送を例にとっ
て動作を説明する。
Next, the operation will be explained using an example of information transfer from a layer 3 device to a layer 2 device.

(1)情報転送の要求が生じたレイヤ3装置は、接続さ
れている入出力ボート、例えば18を介して、空きのP
M、例゛えば50−0をそのデータバス18aの配下で
動作できるように1IJ1[IL、転送する情報を書込
む。この場合、転送情報が1つのページメモリでおさま
らない場合、本発明に従ってチェーンを組む。
(1) The layer 3 device that has requested the information transfer transfers the information to the available port via the connected input/output port, for example 18.
1IJ1[IL, writes the information to be transferred so that, for example, 50-0 can operate under the data bus 18a. In this case, if the transfer information cannot fit in one page memory, a chain is formed according to the present invention.

(2)レイヤ3装置は情報の書込みが終了すると、入出
力ボート18を介してCPU12に対し、転送要求、即
ち情報が書込まれているページメモリのナンバ、ここで
は「#0]を通知する。チェーンが組まれている場合で
は、転送情報が書込まれている最初のページメモリのナ
ンバのみの通知でよい。
(2) When the layer 3 device finishes writing the information, it notifies the CPU 12 via the input/output port 18 of a transfer request, that is, the number of the page memory where the information is written, here "#0". If a chain is formed, it is sufficient to notify only the number of the first page memory in which transfer information is written.

(3)CPU12は入出力ボート18からの通知がある
と、そのページメモリ50−0を自装置のデータバス1
2aの配下で動作するように切換える。
(3) When the CPU 12 receives a notification from the input/output boat 18, the CPU 12 transfers the page memory 50-0 to the data bus 1 of its own device.
Switch to operate under 2a.

(4)CPU12は前記PM50−0の内容を本発明に
従って処理する。
(4) The CPU 12 processes the contents of the PM 50-0 according to the present invention.

このように本発明は、レイヤ2装置とレイヤ3装置との
間の転送手段がDMACによるものだけでなく、他の手
段の場合でも有効となり、1デ一タバツフア単位で転送
処理を独立させることができる等の理由により、前記ペ
ージメモリを用いた転送方式のように、各データ・バッ
ファが独立している場合には特に有効となる。
In this way, the present invention is effective not only when the transfer means between the layer 2 device and the layer 3 device is based on DMAC, but also when other means are used, and the transfer processing can be made independent in units of one data buffer. For this reason, it is particularly effective when each data buffer is independent, such as in the transfer method using the page memory described above.

なお、これまではレイヤ2装置とレイヤ3装置との間の
情報転送について説明したが、レイヤ2装置以下とレイ
ヤ3装置以上との間、もしくはレイヤ3装置以下とレイ
ヤ4装置以上との間における情報転送においても有効で
あり、その他、あらゆる装置に適用できる。
Up to now, we have explained information transfer between layer 2 devices and layer 3 devices, but information transfer between layer 2 devices and below and layer 3 devices and above, or between layer 3 devices and below and layer 4 devices and above. It is also effective in information transfer and can be applied to all other devices.

(発明の効果) 以上説明したように本発明によれば、1データバツフ?
内で情報が閉じているか、チェーン化されて次のデータ
・バッファに続くかどうかは、最低1ビツトのチェーン
化情報の判断だけで良く、また、転送完了のチェックは
、チェーン化されたデータ・バッファのうちの最後の分
についてその情報のビット数を計数し、これを最終情報
アドレスと比較するのみで良く、さらにこの最終情報ア
ドレスは最大1データ・バッファ分であるため、従来の
ように転送情報の全てに亘るビット数の計数や比較、お
よびこの全ビット数を表わす長さのデータの通知が不要
となり、さらに1デ一タバツフア単位で転送動作を独立
させた構成をとれる等の利点がある。
(Effects of the Invention) As explained above, according to the present invention, 1 data buffer?
It is only necessary to judge whether the information is closed in the chained data buffer or whether it is chained and continues to the next data buffer.In addition, checking the completion of the transfer can be done by checking the chained data buffer. All you need to do is count the number of bits of information for the last part of the buffer and compare it with the final information address.Furthermore, since this final information address is for a maximum of one data buffer, it is not necessary to transfer it as before. It eliminates the need to count and compare the number of bits of all information and to notify the length of data representing the total number of bits, and has the advantage that it is possible to have a configuration in which transfer operations are independent in units of one data buffer. .

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

第1図は本発明の情報転送方式の一実施例を示すシステ
ム構成図、第2図は従来の情報転送方式によるシステム
構成の一例を示す図、第3図は従来の共有メモリの構成
を示ず図、第4図は本発明による共有メモリの構成を示
す図、第5図は本発明の他の実施例を示づシステム構成
図である。 10a・・・レイヤ2装置、11・・・シリアルデータ
インタフェース、12・・・プロセッサ、15・・・ダ
イレクトメモリアクセスコントローラ、16・・・出力
ボート、17・・・入力ボート、20・・・レイヤ3V
R置、40・・・共有メモリ、41−0〜41−n・・
・データ・バッファ、42−O〜42−n・・・チェー
ン化情報エリア、43−0〜43−n・・・データ・バ
ッファ情報エリア、44−0〜44−n・・・転送情報
エリア。 特許出願人 沖電気工業株式会社 代理人弁理士 古  1)精 孝 本金明の共有メモリのa威凹 第4[
FIG. 1 is a system configuration diagram showing an embodiment of the information transfer method of the present invention, FIG. 2 is a diagram showing an example of a system configuration using a conventional information transfer method, and FIG. 3 is a diagram showing the configuration of a conventional shared memory. FIG. 4 is a diagram showing the configuration of a shared memory according to the present invention, and FIG. 5 is a system configuration diagram showing another embodiment of the present invention. 10a... Layer 2 device, 11... Serial data interface, 12... Processor, 15... Direct memory access controller, 16... Output port, 17... Input port, 20... Layer 3V
R location, 40...Shared memory, 41-0 to 41-n...
- Data buffer, 42-O to 42-n... Chaining information area, 43-0 to 43-n... Data buffer information area, 44-0 to 44-n... Transfer information area. Patent Applicant Oki Electric Industry Co., Ltd. Representative Patent Attorney Furu 1) Sei Takamoto Kinmei's Shared Memory A Wei Concave No. 4 [

Claims (1)

【特許請求の範囲】 2つの装置よりアクセス可能な共有メモリを介して、該
2つの装置間の情報転送を行なう情報転送方式において
、 前記共有メモリを少なくとも複数のデータ・バッファで
構成するとともに、 転送情報を蓄積したデータ・バッファの位置を示す情報
からなる転送要求を、前記2つの装置間で送受信する手
段を設け、 前記各データ・バッファに、続きの情報を格納したデー
タ・バッファがあるか否かを示すチェーン化情報を格納
するチェーン化情報エリアと、続きの情報を格納したデ
ータ・バッファがある場合は次のデータ・バッファの位
置を示す次データバッファ情報を格納し、続きの情報を
格納したデータ・バッファがない場合は該データ・バッ
ファ内で最後の転送情報が格納されているアドレスを示
す最終情報アドレスを格納するデータバッファ情報エリ
アと、転送情報を格納する転送情報エリアとを設定した
ことを特徴とする 情報転送方式。
[Claims] An information transfer method in which information is transferred between two devices via a shared memory accessible by the two devices, wherein the shared memory is configured with at least a plurality of data buffers; Means is provided for transmitting and receiving a transfer request consisting of information indicating the location of a data buffer storing information between the two devices, and determining whether or not each of the data buffers has a data buffer storing continuation information. If there is a data buffer that stores the next data buffer, stores the next data buffer information that shows the location of the next data buffer, and stores the next data buffer. If there is no data buffer, a data buffer information area is set to store the final information address indicating the address where the last transfer information is stored in the data buffer, and a transfer information area is set to store the transfer information. An information transfer method characterized by:
JP60287243A 1985-12-20 1985-12-20 Information transfer system Granted JPS62145449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60287243A JPS62145449A (en) 1985-12-20 1985-12-20 Information transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60287243A JPS62145449A (en) 1985-12-20 1985-12-20 Information transfer system

Publications (2)

Publication Number Publication Date
JPS62145449A true JPS62145449A (en) 1987-06-29
JPH0378660B2 JPH0378660B2 (en) 1991-12-16

Family

ID=17714884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60287243A Granted JPS62145449A (en) 1985-12-20 1985-12-20 Information transfer system

Country Status (1)

Country Link
JP (1) JPS62145449A (en)

Also Published As

Publication number Publication date
JPH0378660B2 (en) 1991-12-16

Similar Documents

Publication Publication Date Title
US7133940B2 (en) Network interface device employing a DMA command queue
US5933654A (en) Dynamic buffer fracturing by a DMA controller
US20030074502A1 (en) Communication between two embedded processors
CN102918515B (en) Store data in the multiple impact dampers in Memory Controller any in
US6842790B2 (en) Host computer virtual memory within a network interface adapter
CN113590512B (en) Self-starting DMA device capable of directly connecting peripheral equipment and application
US20060143363A1 (en) Module interface handler for controller area network (CAN) communication module
US6742142B2 (en) Emulator, a data processing system including an emulator, and method of emulation for testing a system
JPS6259330B2 (en)
JPS62145449A (en) Information transfer system
JPS6359042A (en) Communication interface equipment
JP2859178B2 (en) Data transfer method between processors and ring buffer memory for data transfer between processors
CN100472496C (en) Data transfer device
KR100487199B1 (en) Apparatus and method for data transmission in dma
JPH0471060A (en) Semiconductor integrated circuit
JPS62145450A (en) Information transfer system
JP2005011357A (en) Data interface device and method of network electronic equipment
JPH0238968B2 (en)
KR950009763B1 (en) A method of data transmission and synchronization between two cpu's
JPH0115100B2 (en)
JPH01274547A (en) Transmission buffer release control system
EP1104612B1 (en) Data-communications unit suitable for asynchronous serial data transmission
JPS61189053A (en) Data transmitting and receiving method in data processor
JPH0410050A (en) Computer system
KR100369363B1 (en) Apparatus for data transmitting and receiving between host system and microcontroller of local system using memory