JP3434787B2 - HDLC frame conversion circuit - Google Patents

HDLC frame conversion circuit

Info

Publication number
JP3434787B2
JP3434787B2 JP2000235967A JP2000235967A JP3434787B2 JP 3434787 B2 JP3434787 B2 JP 3434787B2 JP 2000235967 A JP2000235967 A JP 2000235967A JP 2000235967 A JP2000235967 A JP 2000235967A JP 3434787 B2 JP3434787 B2 JP 3434787B2
Authority
JP
Japan
Prior art keywords
block
flag
fcs
data
output
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.)
Expired - Fee Related
Application number
JP2000235967A
Other languages
Japanese (ja)
Other versions
JP2002051102A (en
Inventor
光人 池谷
Original Assignee
エヌイーシーアクセステクニカ株式会社
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 エヌイーシーアクセステクニカ株式会社 filed Critical エヌイーシーアクセステクニカ株式会社
Priority to JP2000235967A priority Critical patent/JP3434787B2/en
Publication of JP2002051102A publication Critical patent/JP2002051102A/en
Application granted granted Critical
Publication of JP3434787B2 publication Critical patent/JP3434787B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はHDLCフレーム変
換回路に関し、特に複数のビットを有するパケットデー
タをハイレベルデータリンク制御手順(以後、HDLC
と記載する。)フレームに変換したり、HDLCフレー
ムを複数のビットを有するパケットデータに変換したり
するHDLCフレーム変換回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an HDLC frame conversion circuit, and more particularly to a high level data link control procedure (hereinafter referred to as HDLC) for packet data having a plurality of bits.
Enter. ) It relates to an HDLC frame conversion circuit for converting a frame or converting an HDLC frame into packet data having a plurality of bits.

【0002】[0002]

【従来の技術】従来、HDLCフレーム変換は、送信デ
ータをHDLCフレームにして回線に送信したり回線か
らHDLCフレームを受けこのHDLCフレームから送
信されてきたデータを抽出したりするHDLCコントロ
ーラにより行われ、HDLCコントローラである例えば
NEC製μPD72103Aでは、このHDLCコント
ローラ内でプロセッサとプログラムにより送信データで
あるパケットデータをHDLCフレームにして送信した
り、受信データである送られてきたHDLCフレームを
ディフレーム化してパケットデータに変換したりしてい
る。このとき、このNEC製μPD72103Aは、外
部にある外部プロセッサや外部メモリとの間でコマンド
/ステータスのやり取りを行って、外部より送信データ
であるパケットデータを受けたり、受信したHDLCフ
レームをディフレーム化したパケットデータを外部に渡
したりしている。
2. Description of the Related Art Conventionally, HDLC frame conversion is performed by an HDLC controller that converts transmission data into an HDLC frame and transmits it to a line or receives an HDLC frame from the line and extracts data transmitted from the HDLC frame. In the HDLC controller that is an NEC μPD72103A, for example, a processor and a program in the HDLC controller convert packet data, which is transmission data, into an HDLC frame and transmit it, or deframe the transmitted HDLC frame, which is reception data, into a packet. I am converting it to data. At this time, the NEC μPD72103A exchanges commands / statuses with an external processor or an external memory externally, receives packet data which is transmission data from the outside, and deframes the received HDLC frame. It passes the packet data to the outside.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のHDL
CコントローラによるHDLCフレーム変換は、HDL
Cコントローラ内でプロセッサとプログラムにより送信
データであるパケットデータをHDLCフレームにして
送信したり、受信データである送られてきたHDLCフ
レームをディフレーム化してパケットデータに変換した
りしており、このとき、外部にある外部プロセッサや外
部メモリとの間でコマンド/ステータスのやり取りを行
って、外部より送信データであるパケットデータを受け
たり、受信したHDLCフレームをディフレーム化した
パケットデータを外部に渡したりしているので、送信デ
ータを外部より入力して回線に出力したり回線からの受
信データをパケットデータにしたものを外部に渡すまで
の処理速度が遅くなるという問題がある。また、外部の
プロセッサがHDLCコントローラとコマンド/ステー
タスのやり取りを行ってHDLCコントローラを制御す
るので、外部プロセッサのパフォーマンスが低下すると
いう問題がある。
[Problems to be Solved by the Invention] The above-mentioned conventional HDL
HDLC frame conversion by C controller
At the C controller, a processor and a program convert packet data, which is transmission data, into an HDLC frame and transmit it, or de-frame the received HDLC frame, which is reception data, and convert it into packet data. , Exchanges commands / status with an external processor or external memory, and receives packet data that is transmission data from the outside, or passes de-framed packet data of the received HDLC frame to the outside. Therefore, there is a problem in that the processing speed of inputting the transmission data from the outside and outputting it to the line or passing the reception data from the line into packet data to the outside becomes slow. Further, since the external processor controls the HDLC controller by exchanging commands / statuses with the HDLC controller, there is a problem that the performance of the external processor deteriorates.

【0004】本発明の目的はこのような従来の欠点を除
去するため、外部プロセッサや外部メモリとの間でコマ
ンド/ステータスのやり取りを行わないようにすること
により、送信データを外部より入力して回線に出力した
り回線からの受信データをパケットデータにしたものを
外部に渡すまでの処理速度が遅くならず、外部プロセッ
サのパフォーマンスが低下しないHDLCフレーム変換
回路を提供することにある。
The object of the present invention is to eliminate the above-mentioned conventional drawbacks by preventing the command / status from being exchanged with an external processor or external memory so that the transmission data is input from the outside. An object of the present invention is to provide an HDLC frame conversion circuit in which the processing speed of outputting to a line or packet data of received data from a line and passing to the outside does not slow down, and the performance of an external processor does not deteriorate.

【0005】[0005]

【課題を解決するための手段】本発明の第1のHDLC
フレーム変換回路は、複数のビットを有するパケットデ
ータを入力し予め定めた機能をそれぞれ有する複数のブ
ロックにより前記入力した前記パケットデータを加工し
てハイレベルデータリンク制御手順(以後、HDLCと
記載する。)フレームに変換するHDLCフレーム変換
回路において、前記パケットデータをシリアルに入力し
このパケットデータをシリアルに出力する入力インタフ
ェースブロックと、前記入力インタフェースブロックよ
り前記パケットデータをシリアルに入力しこのパケット
データにフレームチェックシーケンス(以後、FCSと
記載する。)を付加することを示すFCS付加を行いこ
のFCS付きパケットデータをシリアルに出力するFC
S付加ブロックと、前記FCS付加ブロックより前記F
CS付きパケットデータをシリアルに入力しこのFCS
付きパケットデータに予め定めた数の”1”ビットが続
いたときにこの予め定めた数続いた”1”ビットの後
に”0”ビットを挿入することを示す”0”インサーシ
ョンを行いこの”0”インサーションした前記FCS付
きパケットデータをシリアルに出力するインサーション
ブロックと、前記インサーションブロックより前記”
0”インサーションした前記FCS付きパケットデータ
をシリアルに入力しこの入力したデータにこのデータの
開始を示すスタートフラグとこのデータの終了を示すエ
ンドフラグとを付加することを示すフラグ付加を行いこ
のフラグを付加し前記”0”インサーションした前記F
CS付きパケットデータをシリアルに出力するフラグ付
加ブロックと、前記フラグ付加ブロックより前記フラグ
を付加し前記”0”インサーションした前記FCS付き
パケットデータをシリアルに入力しこの入力したデータ
をシリアルに出力する出力インタフェースブロックと、
前記入力インタフェースブロック,前記FCS付加ブロ
ック,前記インサーションブロック,前記フラグ付加ブ
ロック及び前記出力インタフェースブロックのそれぞれ
のブロックの動作を、より後段にあるブロック程優先し
て行わせるように制御する優先処理回路と、を備えて構
成されている。
Means for Solving the Problems The first HDLC of the present invention
The frame conversion circuit inputs packet data having a plurality of bits, processes the input packet data by a plurality of blocks each having a predetermined function, and processes the high-level data link control procedure (hereinafter referred to as HDLC). ) In the HDLC frame conversion circuit for converting into a frame, an input interface block for inputting the packet data serially and outputting this packet data serially, and a packet data for serially inputting the packet data from the input interface block FC for adding FCS indicating that a check sequence (hereinafter referred to as FCS) is added and serially outputting this packet data with FCS
S additional block and F from the FCS additional block
Packet data with CS is input serially and this FCS
When a predetermined number of "1" bits continue in the attached packet data, "0" insertion indicating that a "0" bit is inserted after this predetermined number of "1" bits is performed. 0 "An insertion block for serially outputting the inserted packet data with FCS, and the"
The flag data indicating that the start flag indicating the start of this data and the end flag indicating the end of this data are added to this input data is added to this input data serially. The above-mentioned F with the addition of "0"
A flag addition block for serially outputting the packet data with CS, and the FCS packet data with the flag added and the "0" inserted from the flag addition block are serially input and the input data is serially output. An output interface block,
A priority processing circuit that controls the operation of each block of the input interface block, the FCS addition block, the insertion block, the flag addition block, and the output interface block so that the blocks in the later stages have priority. And are provided.

【0006】本発明の第1のHDLCフレーム変換回路
の前記優先処理回路は、前記出力インタフェースブロッ
クが前記データを前記シリアルに出力中に出力先がこの
データを受け取れないときに、前記出力インタフェース
ブロックより前段にある前記入力インタフェースブロッ
ク,前記FCS付加ブロック,前記インサーションブロ
ック及び前記フラグ付加ブロックのそれぞれのブロック
の動作を停止させ、これらの前記ブロックを前記停止す
る直前の状態を保持する保持状態にそれぞれするように
している。
In the priority processing circuit of the first HDLC frame conversion circuit of the present invention, when the output interface block is outputting the data serially and the output destination cannot receive the data, the output interface block outputs the data from the output interface block. The operation of each block of the input interface block, the FCS addition block, the insertion block, and the flag addition block in the preceding stage is stopped, and each of these blocks is placed in a holding state in which the state immediately before the stopping is held. I am trying to do it.

【0007】また、本発明の第1のHDLCフレーム変
換回路の前記優先処理回路は、前記フラグ付加ブロック
が前記フラグ付加を行っているときに、前記フラグ付加
ブロックより前段にある前記入力インタフェースブロッ
ク,前記FCS付加ブロック及び前記インサーションブ
ロックのそれぞれのブロックの動作を停止させ、これら
の前記ブロックを前記停止する直前の状態を保持する保
持状態にそれぞれするようにしている。
Further, in the priority processing circuit of the first HDLC frame conversion circuit of the present invention, when the flag addition block is performing the flag addition, the input interface block in a stage preceding the flag addition block, The operation of each of the FCS addition block and the insertion block is stopped, and each of these blocks is brought into a holding state for holding the state immediately before the stop.

【0008】さらに、本発明の第1のHDLCフレーム
変換回路の前記優先処理回路は、前記インサーションブ
ロックが前記”0”インサーションを行っているとき
に、前記インサーションブロックより前段にある前記入
力インタフェースブロックと前記FCS付加ブロックと
の動作を停止させ、これらの前記ブロックを前記停止す
る直前の状態を保持する保持状態にそれぞれするように
している。
Further, in the priority processing circuit of the first HDLC frame conversion circuit of the present invention, when the insertion block is performing the "0" insertion, the input in a stage preceding the insertion block is input. The operations of the interface block and the FCS-added block are stopped, and the blocks are brought into the holding state for holding the state immediately before the stopping.

【0009】また、本発明の第1のHDLCフレーム変
換回路の前記優先処理回路は、前記FCS付加ブロック
が前記FCS付加を行っているときに、前記FCS付加
ブロックの前段にある前記入力インタフェースブロック
の動作を停止させ、前記入力インタフェースブロックを
前記停止する直前の状態を保持する保持状態にするよう
にしている。
Further, the priority processing circuit of the first HDLC frame conversion circuit of the present invention is arranged such that, when the FCS addition block is performing the FCS addition, the input interface block in the preceding stage of the FCS addition block is The operation is stopped, and the input interface block is brought into a holding state for holding the state immediately before the stop.

【0010】さらに、本発明の第1のHDLCフレーム
変換回路の前記優先処理回路は、前記出力インタフェー
スブロックが前記フラグを付加し前記”0”インサーシ
ョンした前記FCS付きパケットデータの出力中でない
とき,前記出力インタフェースブロックが前記データの
出力中の場合には前記出力先がこのデータを受け取れる
とき,前記フラグ付加ブロックが前記フラグ付加を行っ
ていないとき,前記インサーションブロックが前記”
0”インサーションを行っていないとき及び前記FCS
付加ブロックが前記FCS付加を行っていないときに、
前記入力インタフェースブロックが前記パケットデータ
の入力中にこのパケットデータが途切れた場合、前記入
力インタフェースブロックの後段にある前記FCS付加
ブロック,前記インサーションブロック,前記フラグ付
加ブロック及び前記出力インタフェースブロックのそれ
ぞれのブロックの動作を停止させ、これらの前記ブロッ
クを前記停止する直前の状態を保持する保持状態にそれ
ぞれするようにしている。
Further, in the priority processing circuit of the first HDLC frame conversion circuit of the present invention, when the output interface block is not outputting the FCS-added packet data to which the flag is added and the "0" is inserted, When the output interface block is outputting the data, when the output destination can receive the data, when the flag addition block is not performing the flag addition, the insertion block is
When 0 ”insertion is not performed and the FCS
When the additional block does not perform the FCS addition,
When the packet data is interrupted while the input interface block is inputting the packet data, each of the FCS addition block, the insertion block, the flag addition block, and the output interface block in the subsequent stage of the input interface block The operation of the blocks is stopped, and each of the blocks is brought into a holding state for holding the state immediately before the stop.

【0011】本発明の第2のHDLCフレーム変換回路
は、複数のビットを有するハイレベルデータリンク制御
手順(以後、HDLCと記載する。)フレームを入力し
予め定めた機能をそれぞれ有する複数のブロックにより
前記入力した前記HDLCフレームを加工して複数のビ
ットを有するパケットデータに変換するHDLCフレー
ム変換回路において、前記HDLCフレームをシリアル
に入力しこのHDLCフレームをシリアルに出力する入
力インタフェースブロックと、前記入力インタフェース
ブロックより前記HDLCフレームをシリアルに入力し
この入力した前記HDLCフレームに含まれるHDLC
フレームの開始を示すスタートフラグとこのHDLCフ
レームの終了を示すエンドフラグとを削除することを示
すフラグ削除を行いこのフラグを削除した前記HDLC
フレームをシリアルに出力するフラグ削除ブロックと、
前記フラグ削除ブロックより前記フラグを削除した前記
HDLCフレームをシリアルに入力しこのフラグを削除
した前記HDLCフレームに予め定めた数の”1”ビッ
トが続いたときにこの予め定めた数続いた”1”ビット
の後にある”0”ビットを削除することを示す”0”デ
リーションを行いこの”0”デリーションし前記フラグ
を削除した前記HDLCフレームをシリアルに出力する
デリーションブロックと、前記デリーションブロックよ
り前記”0”デリーションし前記フラグを削除した前記
HDLCフレームをシリアルに入力しこの入力したデー
タに含まれるフレームチェックシーケンス(以後、FC
Sと記載する。)を削除することを示すFCS削除を行
いこのFCS削除し前記”0”デリーションし前記フラ
グを削除した前記HDLCフレームをシリアルに出力す
るFCS削除ブロックと、前記FCS削除ブロックより
前記FCS削除し前記”0”デリーションし前記フラグ
を削除した前記HDLCフレームをシリアルに入力しこ
の入力したデータをシリアルに出力する出力インタフェ
ースブロックと、前記デリーションブロックで、前記”
0”デリーションを行っているときに前記デリーション
ブロックより後段にある前記FCS削除ブロックと前記
出力インタフェースブロックとの動作を停止させ、これ
らの前記ブロックを前記停止する直前の状態を保持する
保持状態にそれぞれするように制御し、前記デリーショ
ンブロックが前記”0”デリーションを行っていないと
きに前記出力インタフェースブロックが前記データを前
記シリアルに出力中に出力先がこのデータを受け取れな
いときに、前記出力インタフェースブロックより前段に
ある前記FCS削除ブロック,前記デリーションブロッ
ク,前記フラグ削除ブロック及び前記入力インタフェー
スブロックのそれぞれのブロックの動作を停止させ、こ
れらの前記ブロックを前記停止する直前の状態を保持す
る保持状態にそれぞれするように制御する優先処理回路
と、を備えて構成されている。
A second HDLC frame conversion circuit according to the present invention comprises a plurality of blocks each having a predetermined function by inputting a high level data link control procedure (hereinafter referred to as HDLC) frame having a plurality of bits. In an HDLC frame conversion circuit that processes the input HDLC frame and converts it into packet data having a plurality of bits, an input interface block that serially inputs the HDLC frame and serially outputs the HDLC frame; The HDLC frame is serially input from a block, and the HDLC included in the input HDLC frame is input.
The HDLC in which a start flag indicating the start of a frame and an end flag indicating the end of this HDLC frame are deleted and the flag is deleted
A flag deletion block that outputs frames serially,
When the HDLC frame from which the flag has been deleted is serially input from the flag deletion block and the HDLC frame from which the flag has been deleted is followed by a predetermined number of "1" bits, the predetermined number of consecutive "1" A deletion block that outputs “0” deletion indicating that the “0” bit after the “bit” is deleted, serially outputs the “0” deletion, and deletes the flag, and the deletion block The HDLC frame with the “0” deleted and the flag removed is serially input from the block, and a frame check sequence (hereinafter referred to as FC
Write S. ) Is deleted, the FCS is deleted, the FCS is deleted, the “0” is deleted, and the HDLC frame in which the flag is deleted is serially output, and the FCS is deleted from the FCS deletion block. The output interface block that inputs “0” deletion and serially outputs the HDLC frame from which the flag has been deleted, and outputs the input data, and the deletion block
A holding state for stopping the operation of the FCS deletion block and the output interface block, which are in the subsequent stage of the deletion block when performing the 0 "deletion, and for holding these blocks in the state immediately before the stop. And when the output interface block is outputting the data serially while the output destination is not receiving the data when the deletion block is not performing the "0" deletion, The operation of each of the FCS deletion block, the deletion block, the flag deletion block, and the input interface block, which precedes the output interface block, is stopped, and the state immediately before the stop of these blocks is retained. To hold it to It is configured to include a, a priority processing circuit for controlling to be.

【0012】[0012]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described with reference to the drawings.

【0013】図1は、本発明のHDLCフレーム変換回
路の第1の実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of an HDLC frame conversion circuit of the present invention.

【0014】図1に示す本実施の形態は、複数のビット
を有するパケットデータ13を入力し予め定めた機能を
それぞれ有する複数のブロックにより入力したパケット
データ13を加工してハイレベルデータリンク制御手順
(以後、HDLCと記載する。)フレームに変換するH
DLCフレーム変換回路において、パケットデータ13
を例えばFIFOよりシリアルに入力しこのパケットデ
ータ13をDOUT1としてシリアルに出力する入力イ
ンタフェースブロック1と、入力インタフェースブロッ
ク1よりパケットデータ13をシリアルに入力しこのパ
ケットデータ13に(例えばサイクリックリダンダンシ
ーチェック(以後、CRCと記載する。)演算結果であ
る)フレームチェックシーケンス(以後、FCSと記載
する。)を付加することを示すFCS付加を行いこのF
CS付きパケットデータ13(DOUT2)をシリアル
に出力するFCS付加ブロック2と、FCS付加ブロッ
ク2よりFCS付きパケットデータ13をシリアルに入
力しこのFCS付きパケットデータ13に予め定めた数
の”1”ビットが続いたときにこの予め定めた数続い
た”1”ビットの後に”0”ビットを挿入することを示
す”0”インサーションを行いこの”0”インサーショ
ンしたFCS付きパケットデータ13(DOUT3)を
シリアルに出力するインサーションブロック3と、イン
サーションブロック3より”0”インサーションしたF
CS付きパケットデータ13をシリアルに入力しこの入
力したデータにこのデータの開始を示すスタートフラグ
とこのデータの終了を示すエンドフラグとを付加するこ
とを示すフラグ付加を行いこのフラグを付加し”0”イ
ンサーションしたFCS付きパケットデータ13(DO
UT4)をシリアルに出力するフラグ付加ブロック4
と、フラグ付加ブロック4よりフラグを付加し”0”イ
ンサーションしたFCS付きパケットデータ13をシリ
アルに入力しこの入力したデータをシリアルにDOUT
5として例えばFIFOに出力する出力インタフェース
ブロック5と、入力インタフェースブロック1,FCS
付加ブロック2,インサーションブロック3,フラグ付
加ブロック4及び出力インタフェースブロック5のそれ
ぞれのブロックの動作を、より後段にあるブロック程優
先して行わせるように制御する優先処理回路6とにより
構成されている。
In the present embodiment shown in FIG. 1, the packet data 13 having a plurality of bits is input, and the packet data 13 input by a plurality of blocks each having a predetermined function are processed to perform a high level data link control procedure. (Hereinafter, referred to as HDLC.) H converted into a frame
In the DLC frame conversion circuit, the packet data 13
Is input serially from, for example, a FIFO, and the packet data 13 is serially output as DOUT1, and the packet data 13 is input serially from the input interface block 1 to the packet data 13 (for example, cyclic redundancy check ( Hereinafter, it will be referred to as CRC.) FCS addition indicating that a frame check sequence (hereinafter, referred to as FCS) that is a calculation result will be added will be performed.
The FCS addition block 2 for serially outputting the packet data 13 with CS (DOUT2), and the packet data 13 with FCS from the FCS addition block 2 are serially input, and a predetermined number of "1" bits are input to the packet data 13 with FCS. "0" insertion indicating that a "0" bit is to be inserted after this predetermined number of "1" bits that has been continued for a predetermined number of times, and this "0" inserted packet data with FCS 13 (DOUT3) Insertion block 3 that serially outputs F and the F that was inserted from insertion block 3 by "0"
The packet data 13 with CS is serially input, and a flag indicating that a start flag indicating the start of this data and an end flag indicating the end of this data are added to this input data is added and this flag is added to "0". Inserted packet data with FCS 13 (DO
Flag addition block 4 for serially outputting UT4)
Then, the FCS-added packet data 13 to which a flag is added and "0" is inserted is serially input from the flag addition block 4 and the input data is serially output to DOUT.
5, an output interface block 5 for outputting to a FIFO, and an input interface block 1, FCS
The additional block 2, the insertion block 3, the flag addition block 4, and the output interface block 5 are configured by a priority processing circuit 6 that controls the operation of each block so that a block in a later stage has priority. There is.

【0015】入力インタフェースブロック1は、パケッ
トデータ13を出力するときにこの出力するデータの有
効範囲を示す信号(VALID−OUT1)を出力する
ようにし、FCS付加ブロック2は、FCS付きパケッ
トデータ13を出力するときにこの出力するデータの有
効範囲を示す信号(VALID−OUT2)を出力する
ようにし、インサーションブロック3は、”0”インサ
ーションしたFCS付きパケットデータ13を出力する
ときにこの出力するデータの有効範囲を示す信号(VA
LID−OUT3)を出力するようにし、フラグ付加ブ
ロック4は、フラグを付加し”0”インサーションした
FCS付きパケットデータ13を出力するときにこの出
力するデータの有効範囲を示す信号(VALID−OU
T4)を出力するようにしている。
When the packet data 13 is output, the input interface block 1 outputs a signal (VALID-OUT1) indicating the effective range of the output data, and the FCS addition block 2 outputs the packet data 13 with FCS. When outputting, the signal (VALID-OUT2) indicating the effective range of the output data is output, and the insertion block 3 outputs this when outputting the packet data 13 with FCS inserted with "0". Signal indicating the effective range of data (VA
LID-OUT3) is output, and the flag addition block 4 outputs a signal (VALID-OU) indicating the valid range of the data to be output when outputting the FCS-added packet data 13 with the flag added and "0" inserted.
T4) is output.

【0016】優先処理回路6は、出力インタフェースブ
ロック5がデータをシリアルに出力中に出力先の例えば
FIFOがフルフラグ状態(これ以上書き込むとオーバ
ーフローする状態)でこのデータを受け取れないとき
に、出力インタフェースブロック5がこのフルフラグ状
態をFIFOより受けて”0”として出力したEN5を
受けて、出力インタフェースブロック5より前段にある
入力インタフェースブロック1,FCS付加ブロック
2,インサーションブロック3及びフラグ付加ブロック
4のそれぞれのブロックの動作を停止させ、これらのブ
ロックを停止する直前の状態を保持する保持状態にそれ
ぞれするようにしている。
The priority processing circuit 6 outputs the data when the output interface block 5 is serially outputting the data, and when the output destination, for example, the FIFO, cannot receive the data in a full flag state (a state in which it overflows when data is written any more). 5 receives this full flag state from the FIFO and outputs EN0 which is output as "0", and each of the input interface block 1, the FCS addition block 2, the insertion block 3 and the flag addition block 4 in the preceding stage of the output interface block 5 The operation of each block is stopped, and each block is set to the holding state for holding the state immediately before the stop.

【0017】また、優先処理回路6は、フラグ付加ブロ
ック4がフラグ付加を行っているときにフラグ付加ブロ
ック4より”0”として出力したEN4を受けて、フラ
グ付加ブロック4より前段にある入力インタフェースブ
ロック1,FCS付加ブロック2及びインサーションブ
ロック3のそれぞれのブロックの動作を停止させ、これ
らのブロックを停止する直前の状態を保持する保持状態
にそれぞれするようにしている。
Further, the priority processing circuit 6 receives the EN4 output as "0" from the flag addition block 4 while the flag addition block 4 is adding the flag, and receives the input interface in the stage prior to the flag addition block 4. The operation of each block of the block 1, the FCS addition block 2 and the insertion block 3 is stopped, and each of the blocks is brought into a holding state for holding the state immediately before the block is stopped.

【0018】さらに、優先処理回路6は、インサーショ
ンブロック3が”0”インサーションを行っているとき
にインサーションブロック3より”0”として出力した
EN3を受けて、インサーションブロック3より前段に
ある入力インタフェースブロック1とFCS付加ブロッ
ク2との動作を停止させ、これらのブロックを停止する
直前の状態を保持する保持状態にそれぞれするようにし
ている。
Further, the priority processing circuit 6 receives the EN3 output as "0" from the insertion block 3 while the insertion block 3 is performing "0" insertion, and then the priority processing circuit 6 precedes the insertion block 3. The operation of a certain input interface block 1 and the FCS addition block 2 is stopped, and the states immediately before the blocks are stopped are held.

【0019】また、優先処理回路6は、FCS付加ブロ
ック2がFCS付加を行っているときにFCS付加ブロ
ック2より”0”として出力したEN2を受けて、FC
S付加ブロック2の前段にある入力インタフェースブロ
ック1の動作を停止させ、入力インタフェースブロック
1を停止する直前の状態を保持する保持状態にするよう
にしている。
Further, the priority processing circuit 6 receives the EN2 output as "0" from the FCS addition block 2 while the FCS addition block 2 is performing the FCS addition, and receives the FC
The operation of the input interface block 1 in the preceding stage of the S addition block 2 is stopped so that the state immediately before the input interface block 1 is stopped is held.

【0020】また、優先処理回路6は、出力インタフェ
ースブロック5がフラグを付加し”0”インサーション
したFCS付きパケットデータ13(すなわちHDLC
フレーム14)の出力中でないとき,出力インタフェー
スブロック5がデータ(すなわちHDLCフレーム1
4)の出力中の場合には出力先がこのデータを受け取れ
るとき,フラグ付加ブロック4がフラグ付加を行ってい
ないとき,インサーションブロック3が”0”インサー
ションを行っていないとき及びFCS付加ブロック2が
FCS付加を行っていないときに、すなわち、EN2,
EN3,EN4及びEN5がすべて”1”のときに、入
力インタフェースブロック1がパケットデータ13を例
えばFIFOより入力中にこのFIFOがエンプティ状
態(FIFOよりデータの読み出しができない状態)で
このパケットデータ13が途切れ、入力インタフェース
ブロック1がこのエンプティ状態をFIFOより検知し
てEN1を”0”として出力した場合、この出力したE
N1を受けて、入力インタフェースブロック1の後段に
あるFCS付加ブロック2,インサーションブロック
3,フラグ付加ブロック4及び出力インタフェースブロ
ック5のそれぞれのブロックの動作を停止させ、これら
のブロックを停止する直前の状態を保持する保持状態に
それぞれするようにしている。
In the priority processing circuit 6, the output interface block 5 adds a flag and inserts "0" into the packet data 13 with FCS (that is, HDLC).
When the frame 14) is not being output, the output interface block 5 outputs the data (that is, the HDLC frame 1).
When the output destination can receive this data in the case of outputting 4), when the flag addition block 4 does not perform flag addition, when the insertion block 3 does not perform "0" insertion, and when the FCS addition block is performed. 2 does not add FCS, that is, EN2
When EN3, EN4, and EN5 are all "1", the packet data 13 is in the empty state (a state in which data cannot be read from the FIFO) while the input interface block 1 is inputting the packet data 13 from the FIFO, for example. If the input interface block 1 is interrupted and detects this empty state from the FIFO and outputs EN1 as "0", this output E
In response to N1, the operation of each of the FCS addition block 2, the insertion block 3, the flag addition block 4 and the output interface block 5 in the subsequent stage of the input interface block 1 is stopped, and immediately before stopping these blocks. The holding state is maintained.

【0021】なお、図1には、送信すべきパケットデー
タ13を受け入力インタフェースブロック1にこのパケ
ットデータ13をシリアルに受け渡すFIFOと、出力
インタフェースブロック5からHDLCフレーム14を
シリアルに受け回線に出力するFIFOと、優先処理回
路6の例としてのゲート回路(AND回路,OR回路の
組み合わせ)とを併せて示している。
In FIG. 1, a FIFO for receiving the packet data 13 to be transmitted and serially transmitting the packet data 13 to the input interface block 1 and an output interface block 5 for outputting the HDLC frame 14 to the receiving line are output serially. 2 and a gate circuit (combination of AND circuit and OR circuit) as an example of the priority processing circuit 6 are also shown.

【0022】次に、本実施の形態のHDLCフレーム変
換回路の動作を図2を参照して詳細に説明する。
Next, the operation of the HDLC frame conversion circuit of this embodiment will be described in detail with reference to FIG.

【0023】図2は、図1における各ブロックの出力信
号の関係を示す図である。
FIG. 2 is a diagram showing the relationship between the output signals of the blocks shown in FIG.

【0024】図1において、入力インタフェースブロッ
ク1は、パケットデータ13(例えば、送信を希望する
情報部分のデータであり、このデータにアドレス部と制
御部とを付加しても良い。)を例えばFIFOよりシリ
アルに入力しこのパケットデータ13をDOUT1とし
てシリアルに出力し、パケットデータ13を出力すると
きにこの出力するデータの有効範囲を示す信号(VAL
ID−OUT1)を出力する。そして、入力インタフェ
ースブロック1がパケットデータ13を例えばFIFO
より入力中にこのFIFOがエンプティ状態(FIFO
よりデータの読み出しができない状態)でこのパケット
データ13が途切れたときに、エンプティ状態をFIF
Oより受けEN1を”0”として出力する。エンプティ
状態でないときにはEN1を”1”として出力する。F
CS付加ブロック2は、入力インタフェースブロック1
よりパケットデータ13をシリアルに入力しこのパケッ
トデータ13に例えばサイクリックリダンダンシーチェ
ック(以後、CRCと記載する。)演算結果であるFC
S(例えば2バイト)を入力したパケットデータ13の
末尾に付加することを示すFCS付加を行いこのFCS
付きパケットデータ13(DOUT2)をシリアルに出
力し、出力するときにこの出力するデータの有効範囲を
示す信号(VALID−OUT2)を出力する。そし
て、FCS付加ブロック2がFCS付加を行っていると
きにEN2を”0”として出力する。FCS付加を行っ
ていないときにはEN2を”1”として出力する。イン
サーションブロック3は、FCS付加ブロック2よりF
CS付きパケットデータ13をシリアルに入力しこのF
CS付きパケットデータ13に予め定めた数(例えば5
つ)の”1”ビットが続いたときにこの予め定めた数続
いた”1”ビットの後に”0”ビットを挿入することを
示す”0”インサーションを行いこの”0”インサーシ
ョンしたFCS付きパケットデータ13(DOUT3)
をシリアルに出力し、出力するときにこの出力するデー
タの有効範囲を示す信号(VALID−OUT3)を出
力する。”0”インサーションが多数発生すればその分
だけVALID−OUT3が引き延ばされる。そして、
インサーションブロック3が”0”インサーションを行
っているときにEN3を”0”として出力する。”0”
インサーションを行っていないときにはEN3を”1”
として出力する。フラグ付加ブロック4は、インサーシ
ョンブロック3より”0”インサーションしたFCS付
きパケットデータ13をシリアルに入力しこの入力した
データにスタートフラグとエンドフラグとを付加するこ
とを示すフラグ付加を行いこのフラグを付加し”0”イ
ンサーションしたFCS付きパケットデータ13(DO
UT4)をシリアルに出力し、出力するときにこの出力
するデータの有効範囲を示す信号(VALID−OUT
4)を出力する。そして、フラグ付加ブロック4がフラ
グ付加を行っているときにEN4を”0”として出力す
る。フラグ付加を行っていないときにはEN4を”1”
として出力する。出力インタフェースブロック5は、フ
ラグ付加ブロック4よりフラグを付加し”0”インサー
ションしたFCS付きパケットデータ13(すなわち、
HDLCフレーム14)をシリアルに入力しこの入力し
たデータをシリアルにDOUT5として例えばFIFO
に出力する。そして、このDOUT5を出力中に出力先
の例えばFIFOよりフルフラグ状態を受けるとEN5
を”0”として出力する。FIFOよりフルフラグ状態
を受けていないときにはEN5を”1”として出力す
る。優先処理回路6は、各機能ブロックのEN1、EN
2、EN3、EN4、EN5が同時に’0’となったと
きに、優先順位を、EN1<EN2<EN3<EN4<
EN5とするようにしており、EN1が優先度が一番低
くEN5が優先度が一番高くなっている。例えば’0’
インサーションの発生とフラグ付加とが同時に動作した
とすると、優先順位はEN3<EN4であり、フラグ付
加EN4の方が優先度が高いため、フラグ付加処理を行
った直後に’0’インサーション処理が行われる。その
他の各機能ブロックにおける同時処理も同様に優先順位
に従って行われる。そして、優先処理回路6は、出力イ
ンタフェースブロック5がデータをシリアルに出力中に
出力先の例えばFIFOがフルフラグ状態のときに、出
力インタフェースブロック5が”0”として出力したE
N5を受けて、出力インタフェースブロック5より前段
にある入力インタフェースブロック1,FCS付加ブロ
ック2,インサーションブロック3及びフラグ付加ブロ
ック4のそれぞれのブロックに”0”を出力してそれぞ
れのブロックの動作を停止させ、これらのブロックを停
止する直前の状態を保持する保持状態にそれぞれするよ
うにしている。そして、FIFOのフルフラグ状態が解
除すると出力インタフェースブロック5が”1”として
出力したEN5を受け、出力インタフェースブロック5
より前段にある入力インタフェースブロック1,FCS
付加ブロック2,インサーションブロック3及びフラグ
付加ブロック4のそれぞれのブロックに”1”を出力
し、それぞれのブロックは保持状態が解除され停止する
直前の状態より動作する。また、優先処理回路6は、フ
ラグ付加ブロック4がフラグ付加を行っているときにフ
ラグ付加ブロック4より”0”として出力したEN4を
受けて、フラグ付加ブロック4より前段にある入力イン
タフェースブロック1,FCS付加ブロック2及びイン
サーションブロック3のそれぞれのブロックに”0”を
出力してそれぞれのブロックの動作を停止させ、これら
のブロックを停止する直前の状態を保持する保持状態に
それぞれするようにしている。そして、フラグ付加が完
了するとフラグ付加ブロック4より”1”として出力し
たEN4を受けて、フラグ付加ブロック4より前段にあ
る入力インタフェースブロック1,FCS付加ブロック
2及びインサーションブロック3のそれぞれのブロック
に”1”を出力し、それぞれのブロックは保持状態が解
除され停止する直前の状態より動作する。さらに、優先
処理回路6は、インサーションブロック3が”0”イン
サーションを行っているときにインサーションブロック
3より”0”として出力したEN3を受けて、インサー
ションブロック3より前段にある入力インタフェースブ
ロック1とFCS付加ブロック2との動作を停止させ、
これらのブロックを停止する直前の状態を保持する保持
状態にそれぞれするようにしている。そして、”0”イ
ンサーションが完了するとインサーションブロック3よ
り”1”として出力したEN3を受けて、インサーショ
ンブロック3より前段にある入力インタフェースブロッ
ク1とFCS付加ブロック2とのブロックに”1”を出
力し、これらのブロックは保持状態が解除され停止する
直前の状態より動作する。また、優先処理回路6は、F
CS付加ブロック2がFCS付加を行っているときにF
CS付加ブロック2より”0”として出力したEN2を
受けて、FCS付加ブロック2の前段にある入力インタ
フェースブロック1の動作を停止させ、入力インタフェ
ースブロック1を停止する直前の状態を保持する保持状
態にするようにしている。そして、FCS付加が完了す
るとFCS付加ブロック2より”1”として出力したE
N3を受けて、FCS付加ブロック2の前段にある入力
インタフェースブロック1に”1”を出力し、この入力
インタフェースブロック1は保持状態が解除され停止す
る直前の状態より動作する。また、優先処理回路6は、
出力インタフェースブロック5がフラグを付加し”0”
インサーションしたFCS付きパケットデータ13(す
なわちHDLCフレーム14)の出力中でないとき,出
力インタフェースブロック5がデータ(すなわちHDL
Cフレーム14)の出力中の場合には出力先がこのデー
タを受け取れるとき,フラグ付加ブロック4がフラグ付
加を行っていないとき,インサーションブロック3が”
0”インサーションを行っていないとき及びFCS付加
ブロック2がFCS付加を行っていないときに、すなわ
ち、EN2,EN3,EN4及びEN5がすべて”1”
のときに、入力インタフェースブロック1がパケットデ
ータ13を例えばFIFOより入力中にこのFIFOが
エンプティ状態(FIFOよりデータの読み出しができ
ない状態)でこのパケットデータ13が途切れ、入力イ
ンタフェースブロック1がこのエンプティ状態をFIF
Oより検知してEN1を”0”として出力した場合、こ
の出力したEN1を受けて、入力インタフェースブロッ
ク1の後段にあるFCS付加ブロック2,インサーショ
ンブロック3,フラグ付加ブロック4及び出力インタフ
ェースブロック5のそれぞれのブロックの動作を停止さ
せ、これらのブロックを停止する直前の状態を保持する
保持状態にそれぞれするようにしている。そして、FI
FOのエンプティ状態が解除すると入力インタフェース
ブロック1より”1”として出力したEN1を受けて、
入力インタフェースブロック1の後段にあるFCS付加
ブロック2,インサーションブロック3,フラグ付加ブ
ロック4及び出力インタフェースブロック5のそれぞれ
のブロックに”1”を出力し、それぞれのブロックは保
持状態が解除され停止する直前の状態より動作する。
In FIG. 1, the input interface block 1 stores packet data 13 (for example, data of an information portion desired to be transmitted, and an address portion and a control portion may be added to this data), for example, a FIFO. When the packet data 13 is serially input, the packet data 13 is serially output as DOUT1, and when the packet data 13 is output, a signal (VAL) indicating the effective range of the data to be output.
ID-OUT1) is output. Then, the input interface block 1 sends the packet data 13 to the FIFO, for example.
This FIFO is in the empty state (FIFO
When this packet data 13 is interrupted in a state where the data cannot be read out more), the empty state is set to FIFO.
The received EN1 is output as "0" from O. When not in the empty state, EN1 is output as "1". F
The CS addition block 2 is the input interface block 1
Then, the packet data 13 is serially input, and the packet data 13 is, for example, a cyclic redundancy check (hereinafter referred to as CRC) calculation result FC.
This FCS is performed by adding FCS indicating that S (for example, 2 bytes) is added to the end of the input packet data 13.
The attached packet data 13 (DOUT2) is serially output, and when output, a signal (VALID-OUT2) indicating the effective range of the output data is output. Then, when the FCS addition block 2 is performing FCS addition, EN2 is output as "0". When FCS addition is not performed, EN2 is output as "1". Insertion block 3 is F from FCS addition block 2.
The packet data 13 with CS is input serially and this F
A predetermined number of packet data 13 with CS (for example, 5
When the "1" bit continues, the "0" insertion indicating the insertion of the "0" bit after the predetermined number of "1" bits is performed and the "0" inserted FCS is performed. Attached packet data 13 (DOUT3)
Is serially output, and when output, a signal (VALID-OUT3) indicating the effective range of the output data is output. If a large number of "0" insertions occur, VALID-OUT3 is extended correspondingly. And
When the insertion block 3 is performing "0" insertion, EN3 is output as "0". "0"
EN3 is set to "1" when insertion is not performed.
Output as. A flag addition block 4 serially inputs the FCS-added packet data 13 inserted by "0" from the insertion block 3 and adds a flag indicating that a start flag and an end flag are added to the input data, and this flag is added. Packet data with FCS added with "0" inserted (DO
UT4) is output serially, and when output, a signal (VALID-OUT) indicating the effective range of the output data is output.
4) is output. Then, when the flag addition block 4 is performing flag addition, EN4 is output as "0". If no flag is added, set EN4 to "1".
Output as. The output interface block 5 adds the flag from the flag addition block 4 and inserts "0" into the packet data 13 with FCS (that is,
The HDLC frame 14) is serially input, and the input data is serially used as DOUT5, for example, a FIFO.
Output to. When a full flag state is received from the output destination, for example, the FIFO, while outputting this DOUT5, EN5
Is output as "0". When the full flag state is not received from the FIFO, EN5 is output as "1". The priority processing circuit 6 includes EN1 and EN of each functional block.
When 2, EN3, EN4, and EN5 simultaneously become “0”, the priority order is EN1 <EN2 <EN3 <EN4 <
The priority is set to EN5, and EN1 has the lowest priority and EN5 has the highest priority. For example, "0"
If the generation of an insertion and the addition of a flag are performed at the same time, the priority order is EN3 <EN4, and since the addition of the flag EN4 has a higher priority, the '0' insertion process is performed immediately after the flag addition process. Is done. Simultaneous processing in other functional blocks is similarly performed according to the priority order. Then, the priority processing circuit 6 outputs “0” from the output interface block 5 when the output interface block 5 is outputting data serially and the output destination, for example, the FIFO is in the full flag state.
In response to N5, "0" is output to each block of the input interface block 1, the FCS addition block 2, the insertion block 3 and the flag addition block 4 in the preceding stage of the output interface block 5, and the operation of each block is performed. It is made to stop and these blocks are made into the holding state which holds the state just before stopping. Then, when the full flag state of the FIFO is released, the output interface block 5 receives EN5 output as "1", and the output interface block 5 receives
Input interface block 1, FCS in the previous stage
"1" is output to each of the additional block 2, the insertion block 3 and the flag additional block 4, and each block operates from the state immediately before the holding state is released and the block is stopped. Further, the priority processing circuit 6 receives the EN4 output as "0" from the flag addition block 4 while the flag addition block 4 is performing the flag addition, and receives the input interface blocks 1 and 1 in the preceding stage from the flag addition block 4. By outputting "0" to each of the FCS addition block 2 and the insertion block 3, the operation of each block is stopped, and each block is brought into a holding state in which the state immediately before the block is stopped is held. There is. Then, when the flag addition is completed, the EN4 output as "1" from the flag addition block 4 is received, and the input interface block 1, the FCS addition block 2 and the insertion block 3 in the preceding stage to the flag addition block 4 are respectively received. Outputs "1", and each block operates from the state immediately before the retention state is released and the block is stopped. Further, the priority processing circuit 6 receives the EN3 output as "0" from the insertion block 3 while the insertion block 3 is performing "0" insertion, and receives the input interface in the stage preceding the insertion block 3. Stop the operation of block 1 and FCS addition block 2,
Each of these blocks is set to a holding state in which it holds the state immediately before being stopped. When the "0" insertion is completed, the insertion block 3 receives the EN3 output as "1", and the input interface block 1 and the FCS addition block 2 in the block preceding the insertion block 3 receive "1". Is output, and these blocks operate from the state immediately before the retention state is released and the block is stopped. Further, the priority processing circuit 6 is
F when the CS addition block 2 is performing FCS addition
Upon receiving EN2 output as "0" from the CS addition block 2, the operation of the input interface block 1 in the preceding stage of the FCS addition block 2 is stopped, and the state immediately before the input interface block 1 is stopped is held. I am trying to do it. When the FCS addition is completed, the FCS addition block 2 outputs "1" as E.
Upon receiving N3, "1" is output to the input interface block 1 in the preceding stage of the FCS addition block 2, and this input interface block 1 operates from the state immediately before the holding state is released and the operation is stopped. Further, the priority processing circuit 6 is
Output interface block 5 adds a flag to "0"
When the inserted FCS-attached packet data 13 (that is, the HDLC frame 14) is not being output, the output interface block 5 outputs data (that is, HDL).
In the case of outputting the C frame 14), when the output destination can receive this data, when the flag addition block 4 does not add the flag, the insertion block 3
0 "insertion is not performed and FCS addition block 2 is not performing FCS addition, that is, EN2, EN3, EN4 and EN5 are all" 1 ".
At this time, while the input interface block 1 is inputting the packet data 13 from the FIFO, for example, the FIFO is empty (the data cannot be read from the FIFO), the packet data 13 is interrupted, and the input interface block 1 is in the empty state. FIF
When EN1 is output as "0" by detecting from O, the output EN1 is received and the FCS addition block 2, the insertion block 3, the flag addition block 4, and the output interface block 5 in the subsequent stage of the input interface block 1 are received. The operation of each of the blocks is stopped, and each of the blocks is brought into a holding state for holding the state immediately before the stop. And FI
When the empty state of the FO is released, it receives EN1 output as "1" from the input interface block 1,
"1" is output to each block of the FCS addition block 2, the insertion block 3, the flag addition block 4 and the output interface block 5, which are in the subsequent stage of the input interface block 1, and each block is released from the holding state and stopped. Operates from the previous state.

【0025】図3は、本発明のHDLCフレーム変換回
路の第2の実施の形態を示すブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the HDLC frame conversion circuit of the present invention.

【0026】図3に示す本実施の形態は、複数のビット
を有するハイレベルデータリンク制御手順(以後、HD
LCと記載する。)フレームを入力し予め定めた機能を
それぞれ有する複数のブロックにより入力したHDLC
フレーム14を加工して複数のビットを有するパケット
データ13(受信したい情報部分のデータであり、この
データにアドレス部と制御部とを付加しても良い。)に
変換するHDLCフレーム変換回路において、HDLC
フレーム14をシリアルに入力しこのHDLCフレーム
14をDOUT1としてシリアルに出力する入力インタ
フェースブロック7と、入力インタフェースブロック7
よりHDLCフレーム14をシリアルに入力しこの入力
したHDLCフレーム14に含まれるHDLCフレーム
14の開始を示すスタートフラグとこのHDLCフレー
ム14の終了を示すエンドフラグとを削除することを示
すフラグ削除を行いこのフラグを削除したHDLCフレ
ーム14をDOUT2としてシリアルに出力するフラグ
削除ブロック8と、フラグ削除ブロック8よりフラグを
削除したHDLCフレーム14をシリアルに入力しこの
フラグを削除したHDLCフレーム14に予め定めた数
の”1”ビットが続いたときにこの予め定めた数続い
た”1”ビットの後にある”0”ビットを削除すること
を示す”0”デリーションを行いこの”0”デリーショ
ンしフラグを削除したHDLCフレーム14をDOUT
3としてシリアルに出力するデリーションブロック9
と、デリーションブロック9より”0”デリーションし
フラグを削除したHDLCフレーム14をシリアルに入
力しこの入力したデータに含まれる(例えばサイクリッ
クリダンダンシーチェック(以後、CRCと記載す
る。)演算結果である)フレームチェックシーケンス
(以後、FCSと記載する。)を削除することを示すF
CS削除を行いこのFCS削除し”0”デリーションし
フラグを削除したHDLCフレーム14をDOUT4と
してシリアルに出力するFCS削除ブロック10と、F
CS削除ブロック10よりFCS削除し”0”デリーシ
ョンしフラグを削除したHDLCフレーム14をシリア
ルに入力しこの入力したデータをDOUT5としてシリ
アルに出力する出力インタフェースブロック11と、デ
リーションブロック9で、”0”デリーションを行って
いるときにデリーションブロック9より後段にあるFC
S削除ブロック10と出力インタフェースブロック11
との動作を停止させ、これらのブロックを停止する直前
の状態を保持する保持状態にそれぞれするように制御
し、デリーションブロック9が”0”デリーションを行
っていないときに出力インタフェースブロック11がデ
ータをシリアルに出力中に出力先がこのデータを受け取
れないときに、出力インタフェースブロック11より前
段にあるFCS削除ブロック10,デリーションブロッ
ク9,フラグ削除ブロック8及び入力インタフェースブ
ロック7のそれぞれのブロックの動作を停止させ、これ
らのブロックを停止する直前の状態を保持する保持状態
にそれぞれするように制御する優先処理回路とにより構
成されている。
The present embodiment shown in FIG. 3 is a high-level data link control procedure (hereinafter referred to as HD) having a plurality of bits.
It describes as LC. ) HDLC input by inputting a frame and inputting by a plurality of blocks each having a predetermined function
In an HDLC frame conversion circuit that processes a frame 14 and converts it into packet data 13 having a plurality of bits (data of an information part to be received, and an address part and a control part may be added to this data), HDLC
An input interface block 7 for serially inputting the frame 14 and serially outputting the HDLC frame 14 as DOUT1, and an input interface block 7
Further, the HDLC frame 14 is serially input, and the start flag indicating the start of the HDLC frame 14 and the end flag indicating the end of the HDLC frame 14 included in the input HDLC frame 14 are deleted and the flag is deleted. A flag deletion block 8 that serially outputs the flag-deleted HDLC frame 14 as DOUT2 and a flag deletion block 8 that serially inputs the flag-deleted HDLC frame 14 and a predetermined number of the flag-deleted HDLC frame 14 When the "1" bit of "0" is continued, "0" deletion indicating that the "0" bit after the predetermined number of "1" bits is deleted is performed, and the "0" deletion flag is set. DOUT the deleted HDLC frame 14
Deletion block 9 that outputs serially as 3
Then, the HDLC frame 14 with the "0" deleted and the flag deleted is serially input from the deletion block 9 and is included in the input data (for example, a cyclic redundancy check (hereinafter, referred to as CRC)) operation result. F) indicating that a frame check sequence (hereinafter, referred to as FCS) is deleted.
An FCS deletion block 10 for serially outputting the HDLC frame 14 in which CS deletion is performed, FCS is deleted, “0” is deleted, and a flag is deleted as DOUT4;
In the deletion block 9, the output interface block 11 for serially inputting the HDLC frame 14 in which the FCS is deleted from the CS deletion block 10 and the "0" deletion is performed and the flag is deleted is serially output as DOUT5. FC located after the deletion block 9 when performing 0 ”deletion
S deletion block 10 and output interface block 11
The operation is stopped and these blocks are controlled so as to be in a holding state in which the state immediately before being stopped is held. When the deletion block 9 does not perform "0" deletion, the output interface block 11 When the output destination cannot receive this data while outputting the data serially, the FCS deletion block 10, the deletion block 9, the flag deletion block 8 and the input interface block 7 in the preceding stage of the output interface block 11 are It is configured by a priority processing circuit that stops the operation and controls each of the blocks to be in a holding state that holds the state immediately before the block is stopped.

【0027】フラグ削除ブロック8は、フラグを削除し
たHDLCフレーム14を出力するときにこの出力する
データの有効範囲を示す信号(VALID−OUT2)
を出力するようにし、デリーションブロック9は、”
0”デリーションしフラグを削除したHDLCフレーム
14を出力するときにこの出力するデータの有効範囲を
示す信号(VALID−OUT3)を出力するように
し、FCS削除ブロック10は、FCS削除し”0”デ
リーションしフラグを削除したHDLCフレーム14を
出力するときにこの出力するデータの有効範囲を示す信
号(VALID−OUT4)を出力するようにし、出力
インタフェースブロック11は、FCS削除し”0”デ
リーションしフラグを削除したHDLCフレーム14を
出力するときにこの出力するデータの有効範囲を示す信
号(VALID−OUT5)を出力するようにしてい
る。
The flag deletion block 8 outputs a signal (VALID-OUT2) indicating the valid range of the data to be output when outputting the HDLC frame 14 from which the flag is deleted.
And the deletion block 9 outputs
When outputting the HDLC frame 14 with the deletion of 0 "and the flag deleted, a signal (VALID-OUT3) indicating the valid range of the output data is output, and the FCS deletion block 10 deletes the FCS to" 0 ". A signal (VALID-OUT4) indicating the valid range of the output data is output when outputting the HDLC frame 14 that has been deleted and the flag is deleted, and the output interface block 11 deletes the FCS and deletes "0". When outputting the HDLC frame 14 with the flag deleted, a signal (VALID-OUT5) indicating the effective range of the output data is output.

【0028】なお、図3には、例えば回線より受信すべ
きHDLCフレーム14を受け入力インタフェースブロ
ック7にこのHDLCフレーム14をシリアルに受け渡
すFIFOと、出力インタフェースブロック11からパ
ケットデータ13をシリアルに受けて出力するFIFO
と、優先処理回路12の例としてのゲート回路(AND
回路,OR回路の組み合わせ)とを併せて示している。
In FIG. 3, for example, a FIFO for receiving the HDLC frame 14 to be received from the line and serially receiving the HDLC frame 14 to the input interface block 7, and a packet data 13 from the output interface block 11 are serially received. Output FIFO
And a gate circuit (AND
Circuit and OR circuit combination).

【0029】次に、本実施の形態のHDLCフレーム変
換回路の動作を図4を参照して詳細に説明する。
Next, the operation of the HDLC frame conversion circuit of this embodiment will be described in detail with reference to FIG.

【0030】図4は、図3における各ブロックの出力信
号の関係を示す図である。
FIG. 4 is a diagram showing the relationship between the output signals of the blocks shown in FIG.

【0031】図3において、入力インタフェースブロッ
ク7は、HDLCフレーム14を例えばFIFOよりシ
リアルに入力しこのHDLCフレーム14をDOUT1
としてシリアルに出力する。フラグ削除ブロック8は、
入力インタフェースブロック7よりHDLCフレーム1
4をシリアルに入力しこの入力したHDLCフレーム1
4に含まれるスタートフラグとエンドフラグとを削除す
ることを示すフラグ削除を行いこのフラグを削除したH
DLCフレーム14をDOUT2としてシリアルに出力
し、このDOUT2を出力するときにこの出力するデー
タの有効範囲を示す信号(VALID−OUT2)を出
力する。デリーションブロック9は、フラグ削除ブロッ
ク8よりフラグを削除したHDLCフレーム14をシリ
アルに入力しこのフラグを削除したHDLCフレーム1
4に予め定めた数(例えば5つ)の”1”ビットが続い
たときにこの予め定めた数続いた”1”ビットの後にあ
る”0”ビットを削除することを示す”0”デリーショ
ンを行いこの”0”デリーションしフラグを削除したH
DLCフレーム14をDOUT3としてシリアルに出力
し、このDOUT3を出力するときにこの出力するデー
タの有効範囲を示す信号(VALID−OUT3)を出
力する。そして、デリーションブロック9が”0”デリ
ーションを行っているときにEN3を”0”として出力
する。”0”デリーションを行っていないときにはEN
3を”1”として出力する。FCS削除ブロック10
は、デリーションブロック9より”0”デリーションし
フラグを削除したHDLCフレーム14をシリアルに入
力しこの入力したデータに含まれるFCSを削除するこ
とを示すFCS削除を行いこのFCS削除し”0”デリ
ーションしフラグを削除したHDLCフレーム14(す
なわち、パケットデータ13)をDOUT4としてシリ
アルに出力し、このDOUT4を出力するときにこの出
力するデータの有効範囲を示す信号(VALID−OU
T4)を出力する。出力インタフェースブロック11
は、FCS削除ブロック10よりFCS削除し”0”デ
リーションしフラグを削除したHDLCフレーム14を
シリアルに入力しこの入力したデータをDOUT5(す
なわち、パケットデータ)として例えばFIFOにシリ
アルに出力し、DOUT5を出力するときにこの出力す
るデータの有効範囲を示す信号(VALID−OUT
5)を出力する。そして、このDOUT5を出力中に出
力先の例えばFIFOよりフルフラグ状態(これ以上書
き込むとオーバーフローする状態)を受けるとEN5
を”0”として出力する。FIFOよりフルフラグ状態
を受けていないときにはEN5を”1”として出力す
る。優先処理回路12は、EN3とEN5とが同時に’
0’となったときに、優先順位を、EN3>EN5とす
るようにしており、EN3の方が優先度が高くなってい
る。例えば、’0’デリーションの発生とFIFOより
のフルフラグ状態の検出とが同時に動作したとすると、
優先順位はEN3>EN5であり、’0’デリーション
の方が優先度が高いため、’0’デリーション処理を即
座に行う。優先処理回路12は、デリーションブロック
9が”0”デリーションを行っているときにデリーショ
ンブロック9より”0”として出力したEN3を受け
て、デリーションブロック9より後段にあるFCS削除
ブロック10と出力インタフェースブロック11とに”
0”を出力してこれらのブロックの動作を停止させ、こ
れらのブロックを停止する直前の状態を保持する保持状
態にそれぞれするようにしている。そして、”0”デリ
ーションが完了するとデリーションブロック9より”
1”として出力したEN3を受けて、デリーションブロ
ック9より後段にあるFCS削除ブロック10と出力イ
ンタフェースブロック11との各ブロックに”1”を出
力し、それぞれのブロックは保持状態が解除され停止す
る直前の状態より動作する。そして、優先処理回路12
は、デリーションブロック9が”0”デリーションを行
っていないとき(EN3が”1”のとき)に、出力イン
タフェースブロック11がデータをシリアルに出力中に
出力先のFIFOがこのデータを受け取れないとき(F
IFOがフルフラグ状態のとき)に、出力インタフェー
スブロック11が”0”として出力したEN5を受け、
出力インタフェースブロック11より前段にあるFCS
削除ブロック10,デリーションブロック9,フラグ削
除ブロック8及び入力インタフェースブロック7のそれ
ぞれのブロックに”0”を出力してそれぞれのブロック
の動作を停止させ、これらのブロックを停止する直前の
状態を保持する保持状態にそれぞれするようにしてい
る。そして、FIFOのフルフラグ状態が解除すると出
力インタフェースブロック11が”1”としてEN5を
出力しこの出力したEN5を受け、出力インタフェース
ブロック11より前段にあるFCS削除ブロック10,
デリーションブロック9,フラグ削除ブロック8及び入
力インタフェースブロック7のそれぞれのブロックに”
1”を出力し、それぞれのブロックは保持状態が解除さ
れ停止する直前の状態より動作する。
In FIG. 3, the input interface block 7 serially inputs the HDLC frame 14 from, for example, a FIFO, and inputs the HDLC frame 14 to DOUT1.
As serial output. The flag deletion block 8 is
HDLC frame 1 from input interface block 7
4 is serially input and this input HDLC frame 1
The flag indicating deletion of the start flag and the end flag included in No. 4 is deleted, and this flag is deleted.
The DLC frame 14 is serially output as DOUT2, and when the DOUT2 is output, a signal (VALID-OUT2) indicating the effective range of the output data is output. The deletion block 9 serially inputs the flag-deleted HDLC frame 14 from the flag deletion block 8 and deletes the flag from the HDLC frame 1
When a predetermined number (for example, 5) of "1" bits is continued to 4, "0" deletion indicating that the "0" bit following the predetermined number of "1" bits is deleted And delete this flag by deleting this "0" H
The DLC frame 14 is serially output as DOUT3, and when this DOUT3 is output, a signal (VALID-OUT3) indicating the effective range of the output data is output. Then, when the deletion block 9 is performing "0" deletion, EN3 is output as "0". EN when not performing "0" deletion
3 is output as "1". FCS deletion block 10
Deletes "0" from the deletion block 9 and serially inputs the HDLC frame 14 from which the flag has been deleted, and performs FCS deletion indicating that the FCS included in the input data is deleted. The HDLC frame 14 (that is, the packet data 13) from which the deletion is performed and the flag is deleted is serially output as DOUT4, and when the DOUT4 is output, a signal (VALID-OU) indicating the valid range of the output data is output.
T4) is output. Output interface block 11
Is serially input to the HDLC frame 14 in which the FCS has been deleted from the FCS deletion block 10 and the flag has been deleted, and the flag has been deleted. Is output, a signal (VALID-OUT) indicating the effective range of the output data is output.
5) is output. When a full flag state (a state of overflowing when writing more than this) is received from the output destination, for example, FIFO, while outputting this DOUT5, EN5
Is output as "0". When the full flag state is not received from the FIFO, EN5 is output as "1". In the priority processing circuit 12, EN3 and EN5 are simultaneously set to '
When it becomes 0 ', the priority is set to EN3> EN5, and EN3 has a higher priority. For example, if the generation of the '0' deletion and the detection of the full flag state from the FIFO operate at the same time,
The priority order is EN3> EN5, and since the “0” deletion has a higher priority, the “0” deletion process is immediately performed. The priority processing circuit 12 receives the EN3 output as “0” from the deletion block 9 while the deletion block 9 is performing “0” deletion, and receives the FCS deletion block 10 located after the deletion block 9. And output interface block 11
By outputting "0", the operation of these blocks is stopped, and each block is set to the holding state that holds the state immediately before the stop. And when the "0" deletion is completed, the deletion block is completed. From 9 "
In response to EN3 output as "1", "1" is output to each block of the FCS deletion block 10 and the output interface block 11 that are subsequent to the deletion block 9, and the respective blocks are released from the holding state and stopped. It operates from the state immediately before, and the priority processing circuit 12
When the deletion block 9 is not performing "0" deletion (when EN3 is "1"), the output interface block 11 is outputting data serially and the output destination FIFO cannot receive this data. When (F
When the IFO is in the full flag state), the output interface block 11 receives EN5 output as "0",
FCS in front of output interface block 11
"0" is output to each block of the deletion block 10, the deletion block 9, the flag deletion block 8 and the input interface block 7 to stop the operation of each block, and the state immediately before stopping these blocks is retained. Each is set to the holding state. Then, when the full flag state of the FIFO is released, the output interface block 11 outputs EN5 as "1", receives the output EN5, and receives the output EN5.
In each block of the deletion block 9, the flag deletion block 8 and the input interface block 7,
1 "is output, and each block operates from the state immediately before the retention state is released and the block is stopped.

【0032】[0032]

【発明の効果】以上説明したように、本発明のHDLC
フレーム変換回路によれば、パケットデータをHDLC
フレームに変換する場合、入力インタフェースブロック
によりパケットデータを入力し、FCS付加ブロックに
より、入力インタフェースブロックよりパケットデータ
を受けFCSを付加し、インサーションブロックによ
り、FCS付加ブロックよりFCS付きパケットデータ
を入力し”0”インサーションをし、フラグ付加ブロッ
クにより、インサーションブロックより”0”インサー
ションしたFCS付きパケットデータを入力しスタート
フラグとエンドフラグとを付加してHDLCフレームに
し、出力インタフェースブロックによりHDLCフレー
ムを出力する。そして、優先処理回路により、入力イン
タフェースブロック,FCS付加ブロック,インサーシ
ョンブロック,フラグ付加ブロック及び出力インタフェ
ースブロックのそれぞれのブロックの動作を、より後段
にあるブロック程優先して行わせるように制御する。ま
た、HDLCフレームをパケットデータに変換する場
合、入力インタフェースブロックにより、HDLCフレ
ームを入力し、フラグ削除ブロックにより、入力インタ
フェースブロックよりHDLCフレームを入力しスター
トフラグとエンドフラグとを削除し、デリーションブロ
ックにより、フラグ削除ブロックよりフラグを削除した
HDLCフレームを入力し”0”デリーションを行い、
FCS削除ブロックにより、デリーションブロックよ
り”0”デリーションしフラグを削除したHDLCフレ
ームを入力しFCSを削除し、出力インタフェースブロ
ックによりパケットデータを出力し、優先処理回路によ
り、デリーションブロックで、”0”デリーションを行
っているときにデリーションブロックより後段にあるF
CS削除ブロックと出力インタフェースブロックとの動
作を停止させ、これらのブロックを停止する直前の状態
を保持する保持状態にそれぞれするように制御し、デリ
ーションブロックが”0”デリーションを行っていない
ときに出力インタフェースブロックがデータをシリアル
に出力中に出力先がこのデータを受け取れないときに、
出力インタフェースブロックより前段にあるFCS削除
ブロック,デリーションブロック,フラグ削除ブロック
及び入力インタフェースブロックのそれぞれのブロック
の動作を停止させ、これらのブロックを停止する直前の
状態を保持する保持状態にそれぞれするように制御す
る。このため、変換するデータをこの変換回路に入力す
れば、この変換回路とこの変換回路の外部とのやりとり
なしで変換結果が得られるので、HDLCフレームにし
て送信すべきパケットデータを外部より入力して回線に
出力したり回線からの受信データ(HDLCフレーム)
をパケットデータにしたものを外部に渡すまでの処理速
度が遅くならず、この変換回路の外部にあるプロセッサ
のパフォーマンスが低下しない。
As described above, the HDLC of the present invention
According to the frame conversion circuit, the packet data is HDLC
When converting to a frame, the input interface block inputs the packet data, the FCS addition block receives the packet data from the input interface block and adds FCS, and the insertion block inputs the FCS addition packet data from the FCS addition block. "0" insertion is performed, the flag addition block inputs the packet data with FCS inserted by "0" from the insertion block, the start flag and the end flag are added to make an HDLC frame, and the output interface block makes an HDLC frame. Is output. Then, the priority processing circuit controls the operation of each block of the input interface block, the FCS addition block, the insertion block, the flag addition block, and the output interface block so that the blocks in the later stages are preferentially performed. When converting an HDLC frame into packet data, the input interface block inputs the HDLC frame, the flag deletion block inputs the HDLC frame from the input interface block, deletes the start flag and the end flag, and deletes the deletion block. Therefore, the HDLC frame from which the flag has been deleted is input from the flag deletion block, and "0" deletion is performed.
The FCS deletion block inputs the HDLC frame that has been deleted by "0" from the deletion block and deletes the flag to delete the FCS, and the output interface block outputs the packet data. When the 0 "deletion is being performed, the F that follows the deletion block
When the deletion block does not perform "0" deletion by controlling the operations of the CS deletion block and the output interface block so that they are held in the states immediately before they are stopped. When the output interface block is outputting data serially and the output destination cannot receive this data,
The operation of each of the FCS deletion block, the deletion block, the flag deletion block, and the input interface block, which precedes the output interface block, is stopped, and each of the blocks is brought into a holding state in which it retains the state immediately before being stopped. To control. For this reason, if the data to be converted is input to this conversion circuit, the conversion result can be obtained without interaction between this conversion circuit and the outside of this conversion circuit. Therefore, packet data to be transmitted as an HDLC frame is input from the outside. Output to the line or received data from the line (HDLC frame)
The processing speed until the packet data is passed to the outside is not slowed down, and the performance of the processor outside the conversion circuit is not deteriorated.

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

【図1】本発明のHDLCフレーム変換回路の第1の実
施の形態を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of an HDLC frame conversion circuit of the present invention.

【図2】図1における各ブロックの出力信号の関係を示
す図である。
FIG. 2 is a diagram showing a relationship of output signals of respective blocks in FIG.

【図3】本発明のHDLCフレーム変換回路の第2の実
施の形態を示すブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the HDLC frame conversion circuit of the present invention.

【図4】図3における各ブロックの出力信号の関係を示
す図である。
FIG. 4 is a diagram showing a relationship of output signals of each block in FIG.

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

1 入力インタフェースブロック 2 FCS付加ブロック 3 インサーションブロック 4 フラグ付加ブロック 5 出力インタフェースブロック 6 優先処理回路 7 入力インタフェースブロック 8 フラグ削除ブロック 9 デリーションブロック 10 FCS削除ブロック 11 出力インタフェースブロック 12 優先処理回路 13 パケットデータ 14 HDLCフレーム 1 Input interface block 2 FCS additional block 3 Insertion block 4 Flag addition block 5 Output interface block 6 Priority processing circuit 7 Input interface block 8 flag deletion block 9 deletion block 10 FCS deletion block 11 Output interface block 12 Priority processing circuit 13 packet data 14 HDLC frame

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のビットを有するパケットデータを
入力し予め定めた機能をそれぞれ有する複数のブロック
により前記入力した前記パケットデータを加工してハイ
レベルデータリンク制御手順(以後、HDLCと記載す
る。)フレームに変換するHDLCフレーム変換回路に
おいて、 前記パケットデータをシリアルに入力しこのパケットデ
ータをシリアルに出力する入力インタフェースブロック
と、 前記入力インタフェースブロックより前記パケットデー
タをシリアルに入力しこのパケットデータにフレームチ
ェックシーケンス(以後、FCSと記載する。)を付加
することを示すFCS付加を行いこのFCS付きパケッ
トデータをシリアルに出力するFCS付加ブロックと、 前記FCS付加ブロックより前記FCS付きパケットデ
ータをシリアルに入力しこのFCS付きパケットデータ
に予め定めた数の”1”ビットが続いたときにこの予め
定めた数続いた”1”ビットの後に”0”ビットを挿入
することを示す”0”インサーションを行いこの”0”
インサーションした前記FCS付きパケットデータをシ
リアルに出力するインサーションブロックと、 前記インサーションブロックより前記”0”インサーシ
ョンした前記FCS付きパケットデータをシリアルに入
力しこの入力したデータにこのデータの開始を示すスタ
ートフラグとこのデータの終了を示すエンドフラグとを
付加することを示すフラグ付加を行いこのフラグを付加
し前記”0”インサーションした前記FCS付きパケッ
トデータをシリアルに出力するフラグ付加ブロックと、 前記フラグ付加ブロックより前記フラグを付加し前記”
0”インサーションした前記FCS付きパケットデータ
をシリアルに入力しこの入力したデータをシリアルに出
力する出力インタフェースブロックと、 前記入力インタフェースブロック,前記FCS付加ブロ
ック,前記インサーションブロック,前記フラグ付加ブ
ロック及び前記出力インタフェースブロックのそれぞれ
のブロックの動作を、より後段にあるブロック程優先し
て行わせるように制御する優先処理回路と、 を備えたことを特徴とするHDLCフレーム変換回路。
1. A high level data link control procedure (hereinafter referred to as HDLC) by inputting packet data having a plurality of bits and processing the inputted packet data by a plurality of blocks each having a predetermined function. ) In an HDLC frame conversion circuit for converting into a frame, an input interface block for serially inputting the packet data and outputting this packet data serially, and inputting the packet data serially from the input interface block to a frame for the packet data An FCS addition block that performs FCS addition indicating that a check sequence (hereinafter referred to as FCS) is added and serially outputs this FCS-added packet data, and the FCS-added packet data from the FCS addition block. "0" indicating that a "0" bit is inserted after this predetermined number of "1" bits when a predetermined number of "1" bits continue in the packet data with FCS. "Insert and do this" 0 "
An insertion block for serially outputting the inserted packet data with FCS, and serially inputting the "0" inserted packet data with FCS from the insertion block and starting the data with this input data. A flag addition block for adding a start flag shown and an end flag showing the end of this data, and adding this flag and outputting the "0" inserted packet data with FCS serially; The flag is added from the flag addition block
An output interface block for serially inputting the 0 ”insertion packet data with FCS and serially outputting the input data, and the input interface block, the FCS addition block, the insertion block, the flag addition block, and the An HDLC frame conversion circuit, comprising: a priority processing circuit that controls the operation of each block of the output interface block so that the block in the subsequent stage has priority.
【請求項2】 前記パケットデータを出力するときにこ
の出力するデータの有効範囲を示す信号を出力する前記
入力インタフェースブロックと、 前記FCS付きパケットデータを出力するときにこの出
力するデータの有効範囲を示す信号を出力する前記FC
S付加ブロックと、 前記”0”インサーションした前記FCS付きパケット
データを出力するときにこの出力するデータの有効範囲
を示す信号を出力する前記インサーションブロックと、 前記フラグを付加し前記”0”インサーションした前記
FCS付きパケットデータを出力するときにこの出力す
るデータの有効範囲を示す信号を出力する前記フラグ付
加ブロックと、 を備えたことを特徴とする請求項1記載のHDLCフレ
ーム変換回路。
2. When the packet data is output, the input interface block that outputs a signal indicating the effective range of the data to be output, and the effective range of the data to be output when the packet data with FCS are output are set. The FC that outputs a signal indicating
S addition block, the insertion block that outputs a signal indicating the valid range of the output data when outputting the packet data with FCS inserted by the "0", and the flag by adding "0" The HDLC frame conversion circuit according to claim 1, further comprising: the flag addition block that outputs a signal indicating a valid range of the output data when the inserted packet data with FCS is output.
【請求項3】 前記優先処理回路は、前記出力インタフ
ェースブロックが前記データを前記シリアルに出力中に
出力先がこのデータを受け取れないときに、前記出力イ
ンタフェースブロックより前段にある前記入力インタフ
ェースブロック,前記FCS付加ブロック,前記インサ
ーションブロック及び前記フラグ付加ブロックのそれぞ
れのブロックの動作を停止させ、これらの前記ブロック
を前記停止する直前の状態を保持する保持状態にそれぞ
れするようにしたことを特徴とする請求項1又は2記載
のHDLCフレーム変換回路。
3. The priority processing circuit, wherein when the output interface block is outputting the data serially and the output destination cannot receive the data, the input interface block in a stage preceding the output interface block, The operation of each of the FCS-added block, the insertion block, and the flag-added block is stopped, and each of these blocks is placed in a holding state for holding the state immediately before the stopping. The HDLC frame conversion circuit according to claim 1.
【請求項4】 前記優先処理回路は、前記フラグ付加ブ
ロックが前記フラグ付加を行っているときに、前記フラ
グ付加ブロックより前段にある前記入力インタフェース
ブロック,前記FCS付加ブロック及び前記インサーシ
ョンブロックのそれぞれのブロックの動作を停止させ、
これらの前記ブロックを前記停止する直前の状態を保持
する保持状態にそれぞれするようにしたことを特徴とす
る請求項1、2又は3記載のHDLCフレーム変換回
路。
4. The priority processing circuit, when the flag addition block is performing the flag addition, each of the input interface block, the FCS addition block, and the insertion block in a stage preceding the flag addition block. Stop the operation of the block
The HDLC frame conversion circuit according to claim 1, 2 or 3, wherein each of the blocks is set to a holding state for holding the state immediately before the stop.
【請求項5】 前記優先処理回路は、前記インサーショ
ンブロックが前記”0”インサーションを行っていると
きに、前記インサーションブロックより前段にある前記
入力インタフェースブロックと前記FCS付加ブロック
との動作を停止させ、これらの前記ブロックを前記停止
する直前の状態を保持する保持状態にそれぞれするよう
にしたことを特徴とする請求項1、2、3又は4記載の
HDLCフレーム変換回路。
5. The priority processing circuit, when the insertion block is performing the "0" insertion, performs the operation of the input interface block and the FCS addition block in the preceding stage of the insertion block. The HDLC frame conversion circuit according to claim 1, 2, 3 or 4, wherein the blocks are stopped and each of the blocks is set to a holding state for holding the state immediately before the stopping.
【請求項6】 前記優先処理回路は、前記FCS付加ブ
ロックが前記FCS付加を行っているときに、前記FC
S付加ブロックの前段にある前記入力インタフェースブ
ロックの動作を停止させ、前記入力インタフェースブロ
ックを前記停止する直前の状態を保持する保持状態にす
るようにしたことを特徴とする請求項1、2、3、4又
は5記載のHDLCフレーム変換回路。
6. The priority processing circuit, when the FCS addition block is performing the FCS addition,
The operation of the input interface block in the preceding stage of the S addition block is stopped, and the input interface block is brought into a holding state for holding the state immediately before the stop. 4. The HDLC frame conversion circuit described in 4 or 5.
【請求項7】 前記優先処理回路は、前記出力インタフ
ェースブロックが前記フラグを付加し前記”0”インサ
ーションした前記FCS付きパケットデータの出力中で
ないとき,前記出力インタフェースブロックが前記デー
タの出力中の場合には前記出力先がこのデータを受け取
れるとき,前記フラグ付加ブロックが前記フラグ付加を
行っていないとき,前記インサーションブロックが前
記”0”インサーションを行っていないとき及び前記F
CS付加ブロックが前記FCS付加を行っていないとき
に、前記入力インタフェースブロックが前記パケットデ
ータの入力中にこのパケットデータが途切れた場合、前
記入力インタフェースブロックの後段にある前記FCS
付加ブロック,前記インサーションブロック,前記フラ
グ付加ブロック及び前記出力インタフェースブロックの
それぞれのブロックの動作を停止させ、これらの前記ブ
ロックを前記停止する直前の状態を保持する保持状態に
それぞれするようにしたことを特徴とする請求項6記載
のHDLCフレーム変換回路。
7. The priority processing circuit is configured such that when the output interface block is not outputting the packet data with FCS added with the flag and the "0" insertion, the output interface block is outputting the data. In this case, when the output destination can receive this data, when the flag addition block does not perform the flag addition, when the insertion block does not perform the "0" insertion, and when the F
If the packet data is interrupted while the input interface block is inputting the packet data when the CS addition block is not performing the FCS addition, the FCS at the subsequent stage of the input interface block
The operation of each block of the additional block, the insertion block, the flag addition block, and the output interface block is stopped, and each of these blocks is brought into a holding state for holding the state immediately before the stopping. The HDLC frame conversion circuit according to claim 6.
【請求項8】 複数のビットを有するハイレベルデータ
リンク制御手順(以後、HDLCと記載する。)フレー
ムを入力し予め定めた機能をそれぞれ有する複数のブロ
ックにより前記入力した前記HDLCフレームを加工し
て複数のビットを有するパケットデータに変換するHD
LCフレーム変換回路において、 前記HDLCフレームをシリアルに入力しこのHDLC
フレームをシリアルに出力する入力インタフェースブロ
ックと、 前記入力インタフェースブロックより前記HDLCフレ
ームをシリアルに入力しこの入力した前記HDLCフレ
ームに含まれるHDLCフレームの開始を示すスタート
フラグとこのHDLCフレームの終了を示すエンドフラ
グとを削除することを示すフラグ削除を行いこのフラグ
を削除した前記HDLCフレームをシリアルに出力する
フラグ削除ブロックと、 前記フラグ削除ブロックより前記フラグを削除した前記
HDLCフレームをシリアルに入力しこのフラグを削除
した前記HDLCフレームに予め定めた数の”1”ビッ
トが続いたときにこの予め定めた数続いた”1”ビット
の後にある”0”ビットを削除することを示す”0”デ
リーションを行いこの”0”デリーションし前記フラグ
を削除した前記HDLCフレームをシリアルに出力する
デリーションブロックと、 前記デリーションブロックより前記”0”デリーション
し前記フラグを削除した前記HDLCフレームをシリア
ルに入力しこの入力したデータに含まれるフレームチェ
ックシーケンス(以後、FCSと記載する。)を削除す
ることを示すFCS削除を行いこのFCS削除し前記”
0”デリーションし前記フラグを削除した前記HDLC
フレームをシリアルに出力するFCS削除ブロックと、 前記FCS削除ブロックより前記FCS削除し前記”
0”デリーションし前記フラグを削除した前記HDLC
フレームをシリアルに入力しこの入力したデータをシリ
アルに出力する出力インタフェースブロックと、 前記デリーションブロックで、前記”0”デリーション
を行っているときに前記デリーションブロックより後段
にある前記FCS削除ブロックと前記出力インタフェー
スブロックとの動作を停止させ、これらの前記ブロック
を前記停止する直前の状態を保持する保持状態にそれぞ
れするように制御し、前記デリーションブロックが前
記”0”デリーションを行っていないときに前記出力イ
ンタフェースブロックが前記データを前記シリアルに出
力中に出力先がこのデータを受け取れないときに、前記
出力インタフェースブロックより前段にある前記FCS
削除ブロック,前記デリーションブロック,前記フラグ
削除ブロック及び前記入力インタフェースブロックのそ
れぞれのブロックの動作を停止させ、これらの前記ブロ
ックを前記停止する直前の状態を保持する保持状態にそ
れぞれするように制御する優先処理回路と、 を備えたことを特徴とするHDLCフレーム変換回路。
8. A high-level data link control procedure (hereinafter referred to as HDLC) frame having a plurality of bits is input, and the input HDLC frame is processed by a plurality of blocks each having a predetermined function. HD for converting to packet data with multiple bits
In the LC frame conversion circuit, the HDLC frame is serially input and
An input interface block that outputs a frame serially, a start flag that serially inputs the HDLC frame from the input interface block and that indicates the start of an HDLC frame included in the input HDLC frame, and an end that indicates the end of this HDLC frame. And a flag deletion block that deletes the flag indicating that the flag has been deleted and serially outputs the HDLC frame from which the flag has been deleted, and the HDLC frame from which the flag has been deleted from the flag deletion block that is serially input to this flag "0" deletion indicating that when a predetermined number of "1" bits continues in the deleted HDLC frame, a "0" bit following the predetermined number of "1" bits is deleted Do this "0" Delhi And a deletion block for serially outputting the HDLC frame with the flag deleted, and the HDLC frame with the "0" deletion and the flag deleted, serially input from the deletion block to the input data. The FCS deletion indicating that the included frame check sequence (hereinafter referred to as FCS) is deleted is performed, and the FCS is deleted.
The HDLC with 0 "deletion and the flag removed
The FCS deletion block that outputs a frame serially, and the FCS deletion block that deletes the FCS from the FCS deletion block
The HDLC with 0 "deletion and the flag removed
An output interface block that serially inputs a frame and serially outputs the input data; and an FCS deletion block that is located after the deletion block when the "0" deletion is performed in the deletion block. And the output interface block are stopped, and these blocks are controlled so as to be in a holding state for holding the state immediately before the stop, and the deletion block performs the "0" deletion. If the output interface block is not outputting the data while the output interface block is outputting the data serially when there is no such data, the FCS in the preceding stage to the output interface block
The operation of each block of the deletion block, the deletion block, the flag deletion block, and the input interface block is stopped, and these blocks are controlled to be in a holding state that holds the state immediately before the stop. An HDLC frame conversion circuit, comprising: a priority processing circuit.
【請求項9】 前記フラグを削除した前記HDLCフレ
ームを出力するときにこの出力するデータの有効範囲を
示す信号を出力する前記フラグ削除ブロックと、 前記”0”デリーションし前記フラグを削除した前記H
DLCフレームを出力するときにこの出力するデータの
有効範囲を示す信号を出力する前記デリーションブロッ
クと、 前記FCS削除し前記”0”デリーションし前記フラグ
を削除した前記HDLCフレームを出力するときにこの
出力するデータの有効範囲を示す信号を出力する前記F
CS削除ブロックと、 前記FCS削除し前記”0”デリーションし前記フラグ
を削除した前記HDLCフレームを出力するときにこの
出力するデータの有効範囲を示す信号を出力する前記出
力インタフェースブロックと、 を備えたことを特徴とする請求項8記載のHDLCフレ
ーム変換回路。
9. The flag deletion block that outputs a signal indicating the effective range of the output data when outputting the HDLC frame in which the flag is deleted; and the deletion of the flag by performing the “0” deletion. H
When outputting the DLC frame, when outputting the deletion block that outputs a signal indicating the effective range of the data to be output, and when outputting the HDLC frame in which the FCS is deleted, the "0" is deleted, and the flag is deleted. The F that outputs a signal indicating the effective range of the data to be output
A CS deletion block; and an output interface block that outputs a signal indicating a valid range of the output data when the HDLC frame in which the FCS is deleted, the "0" is deleted, and the flag is deleted is output. The HDLC frame conversion circuit according to claim 8, wherein
JP2000235967A 2000-08-03 2000-08-03 HDLC frame conversion circuit Expired - Fee Related JP3434787B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000235967A JP3434787B2 (en) 2000-08-03 2000-08-03 HDLC frame conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000235967A JP3434787B2 (en) 2000-08-03 2000-08-03 HDLC frame conversion circuit

Publications (2)

Publication Number Publication Date
JP2002051102A JP2002051102A (en) 2002-02-15
JP3434787B2 true JP3434787B2 (en) 2003-08-11

Family

ID=18728089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000235967A Expired - Fee Related JP3434787B2 (en) 2000-08-03 2000-08-03 HDLC frame conversion circuit

Country Status (1)

Country Link
JP (1) JP3434787B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635661B (en) * 2009-08-14 2011-09-14 烽火通信科技股份有限公司 Switching HDLC bus

Also Published As

Publication number Publication date
JP2002051102A (en) 2002-02-15

Similar Documents

Publication Publication Date Title
JPH0795231A (en) Inter-lan connecting device
US7474672B2 (en) Frame alteration logic for network processors
JP2005525737A (en) Crosspoint switch with serializer and deserializer functions
JP2001134527A (en) Adapter for bus switch, bridge for bus switch, bus switch, and bus switch system
US8031730B2 (en) System and method for transmitting a sequence of messages in an interconnection network
JP2010211322A (en) Network processor, reception controller, and data reception processing method
JP3434787B2 (en) HDLC frame conversion circuit
CN111722827A (en) Efficient DDR access method and application
KR20220135562A (en) Serial communication method and system for memory access
JP7107277B2 (en) repeater
JP4212508B2 (en) Packet generator
KR20220032612A (en) Apparatus and method for processing flush requests within a packet network
US8073999B2 (en) Data input-output control apparatus
JPH0458646A (en) Buffer management system
JP4479064B2 (en) Information input / output device
JP4604354B2 (en) Information input / output device
JP3799741B2 (en) Bus controller
JP2576262B2 (en) Information processing device
JP3202769B2 (en) Burst read processing device
JPH04291435A (en) Computer system
US20040236881A1 (en) Method for processing consistent data sets
JP3183959B2 (en) How to raise data
JPH0326136A (en) Reception fifo control circuit
CN114281748A (en) Safety database, safety data processing system and method
JPS6294037A (en) Token ring communication system

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030506

R150 Certificate of patent or registration of utility model

Ref document number: 3434787

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100530

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110530

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110530

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120530

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120530

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130530

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140530

Year of fee payment: 11

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees