JPH0514445A - Isdn line reception processing unit - Google Patents

Isdn line reception processing unit

Info

Publication number
JPH0514445A
JPH0514445A JP3160222A JP16022291A JPH0514445A JP H0514445 A JPH0514445 A JP H0514445A JP 3160222 A JP3160222 A JP 3160222A JP 16022291 A JP16022291 A JP 16022291A JP H0514445 A JPH0514445 A JP H0514445A
Authority
JP
Japan
Prior art keywords
layer
processing
processing unit
frame
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3160222A
Other languages
Japanese (ja)
Inventor
Shintaro Nagai
真太郎 長井
Shinzo Doi
晋三 土居
Kiyomi Isaka
清美 井坂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3160222A priority Critical patent/JPH0514445A/en
Publication of JPH0514445A publication Critical patent/JPH0514445A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To reduce the memory capacity while a layer 2 does not increase power consumption of a processing section as required or over by selecting a frequency of an operating clock. CONSTITUTION:An HDLC frame controller 4 receives a data from a layer 1 processing section 1, sends the data to a memory 5 of the layer 2 while composing a layer 2 frame and generates a write address to store the data of the layer 2 frame to the layer 2 memory 5. The layer 2 memory 5 stores the layer 2 frame and a layer 2 control program and a program variable data. A memory monitor section 6 checks total number of the layer 2 frame stored in the layer 2 memory 5 just after the end of reception of the layer 2 frame and gives a command of processing of high speed operating clock to a clock control section 7 till one frame or over is released when the number is 3 or over. The clock control section 7 selects a low speed operating clock or a high speed clock for a layer 2 CPU 8.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はISDN基本インタフェ
ースの回線受信処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line reception processing device having an ISDN basic interface.

【0002】[0002]

【従来の技術】従来のISDN回線受信処理装置は、図
3のように、レイヤ1処理部31と、レイヤ2処理部3
2と、レイヤ3処理部33とにより構成されており、レ
イヤ2処理部32は、HDLCフレームコントローラ3
4と、レイヤ2メモリ35と、レイヤ2CPU36と、
レイヤ3インタフェース37とにより構成されていた。
またレイヤ3処理部33は、レイヤ2インタフェース3
8と、レイヤ3メモリ39と、レイヤ3CPU40と、
上位インタフェース41とにより構成されていた。すな
わちCCITTの勧告に従い、レイヤ1処理部31とレ
イヤ2処理部32とレイヤ3処理部33とがシーケンシ
ャルに接続されており、レイヤ2処理部32のHDLC
フレームコントローラ34は、レイヤ1処理部31から
の可変長のパケット形式のデータを受信する。レイヤ3
処理部33のレイヤ2インタフェース38は、レイヤ2
処理部32からのデータを受信する。レイヤ3処理部3
3の上位インタフェース41は、上位アプリケーション
にデータを送信する。
2. Description of the Related Art A conventional ISDN line reception processing apparatus, as shown in FIG. 3, is a layer 1 processing section 31 and a layer 2 processing section 3.
2 and a layer 3 processing unit 33, and the layer 2 processing unit 32 includes the HDLC frame controller 3
4, a layer 2 memory 35, a layer 2 CPU 36,
And the layer 3 interface 37.
In addition, the layer 3 processing unit 33 uses the layer 2 interface 3
8, a layer 3 memory 39, a layer 3 CPU 40,
And the upper interface 41. That is, according to the CCITT recommendation, the layer 1 processing unit 31, the layer 2 processing unit 32, and the layer 3 processing unit 33 are sequentially connected, and the HDLC of the layer 2 processing unit 32 is connected.
The frame controller 34 receives the variable-length packet format data from the layer 1 processing unit 31. Layer 3
The layer 2 interface 38 of the processing unit 33 is the layer 2
The data from the processing unit 32 is received. Layer 3 processing unit 3
The upper interface 41 of No. 3 transmits data to the upper application.

【0003】このISDN回線受信処理装置において、
ISDN回線から上位アプリケーションへとデータの受
信を行なう場合、ISDN回線からレイヤ1処理部31
にデータが渡され、レイヤ1処理部31で最小7オクテ
ットから最大268オクテットまでの可変長のパケット
形式のデータであるレイヤ2フレームにフォーマット変
換されて、16kビット/秒の伝達速度でレイヤ2処理
部32のHDLCフレームコントローラ34に渡され
る。HDLCフレームコントローラ34は、レイヤ2フ
レーム中のフラグ・チェック・シーケンスの検査を行な
う。このレイヤ2フレームのフラグ・チェック・シーケ
ンスに対する正当性は、レイヤ2フレームの受信が完了
した時点で判明する。フラグ・チェック・シーケンスの
検査中、伝送されてくるレイヤ2フレームは、レイヤ2
メモリ35に一旦格納され、検査の結果レイヤ2フレー
ムの正当性が確認された後、レイヤ2処理部32におい
てLAPD状態遷移処理が行なわれ、レイヤ2フレーム
中の情報フィールドのデータのうち、レイヤ3フレーム
となるものは、レイヤ3インタフェース37からレイヤ
3処理部33のレイヤ2インタフェース38を介してレ
イヤ3メモリ39に送られ、レイヤ3処理部33にて処
理される。
In this ISDN line reception processing device,
When data is received from the ISDN line to the host application, the layer 1 processing unit 31 is connected from the ISDN line.
Data is passed to the layer 1, and the layer 1 processing unit 31 performs format conversion into a layer 2 frame which is data of a variable length packet format from a minimum of 7 octets to a maximum of 268 octets, and performs a layer 2 processing at a transmission speed of 16 kbit / sec. It is passed to the HDLC frame controller 34 of the unit 32. The HDLC frame controller 34 checks the flag check sequence in the layer 2 frame. The legitimacy of the flag check sequence of the layer 2 frame becomes clear when the reception of the layer 2 frame is completed. During the check of the flag check sequence, the transmitted Layer 2 frame is
After being temporarily stored in the memory 35 and the result of the inspection confirming the legitimacy of the layer 2 frame, the LAPD state transition process is performed in the layer 2 processing unit 32, and layer 3 of the information field data in the layer 2 frame is processed. A frame is sent from the layer 3 interface 37 to the layer 3 memory 39 via the layer 2 interface 38 of the layer 3 processing unit 33 and processed by the layer 3 processing unit 33.

【0004】ところで、データの受信が連続的に発生す
る場合、レイヤ2メモリ35には、レイヤ1処理部31
からフラグ・チェック・シーケンスを検査しながら入力
されているレイヤ2フレームと、レイヤ2処理部32で
LAPD状態遷移処理が行なわれているレイヤ2フレー
ムと、レイヤ3処理部33へと出力されているレイヤ2
フレームとの合計3フレームが同時に存在することにな
る。さらに、レイヤ2CPU36によるLAPD状態遷
移処理時間に対してレイヤ1処理部31から受信してい
るレイヤ2フレームのデータ量が少ない場合、レイヤ1
処理部31から2フレーム目以降の受信を受け付けてレ
イヤ2メモリ35に格納しなければならなくなる。そし
てレイヤ2メモリ35は、処理の高速化のため、レイヤ
2フレームの最大長にバッファ管理領域を加えた固定長
のバッファを、格納すべき各レイヤ2フレーム毎に用意
していた。
By the way, when data is continuously received, the layer 1 memory 31 is stored in the layer 2 memory 35.
To the layer 3 processing unit 33, the layer 2 frame input while checking the flag check sequence, the layer 2 frame for which the LAPD state transition processing is performed by the layer 2 processing unit 32, and the layer 3 processing unit 33. Layer 2
A total of 3 frames including frames will be present at the same time. Furthermore, when the data amount of the layer 2 frame received from the layer 1 processing unit 31 is small with respect to the LAPD state transition processing time by the layer 2 CPU 36, the layer 1
The reception of the second and subsequent frames from the processing unit 31 must be accepted and stored in the layer 2 memory 35. In order to speed up the processing, the layer 2 memory 35 has prepared a fixed-length buffer obtained by adding the buffer management area to the maximum length of the layer 2 frame for each layer 2 frame to be stored.

【0005】[0005]

【発明が解決しようとする課題】上記従来のISDN回
線受信処理装置では、レイヤ2メモリ35に2フレーム
目以降の受信データを格納するために、そのフレーム数
に応じた数の固定長バッファを余分に設けていたので、
固定長バッファの数が相当大きな数になり、レイヤ2メ
モリ35のメモリ容量が大きかった。このため、特に近
年要望されているレイヤ1処理部31とレイヤ2処理部
32との1チップ化に際して、チップ面積の減少を困難
にするという問題があった。
In the above-mentioned conventional ISDN line reception processing device, in order to store the received data of the second and subsequent frames in the layer 2 memory 35, a fixed length buffer of the number corresponding to the number of frames is additionally provided. Because it was installed in
The number of fixed length buffers is considerably large, and the memory capacity of the layer 2 memory 35 is large. Therefore, there has been a problem that it is difficult to reduce the chip area when the layer 1 processing unit 31 and the layer 2 processing unit 32, which have been recently demanded, are integrated into one chip.

【0006】ところで、レイヤ2CPU36によるLA
PD状態遷移処理の速度を高速にすれば、レイヤ2メモ
リ35に格納すべき2フレーム目以降の受信データのフ
レーム数が減少し、レイヤ2メモリ35のメモリ容量を
小さくできるのであるが、この場合レイヤ2CPU36
の消費電力が大きくなり、この結果、レイヤ1処理部3
1とレイヤ2処理部32との1チップ化に際して、チッ
プ面積の減少が困難になってしまう。
By the way, the LA by the layer 2 CPU 36
When the speed of the PD state transition process is increased, the number of frames of received data after the second frame to be stored in the layer 2 memory 35 is reduced, and the memory capacity of the layer 2 memory 35 can be reduced. Layer 2 CPU 36
Power consumption increases, and as a result, the layer 1 processing unit 3
When the 1 and the layer 2 processing unit 32 are integrated into one chip, it becomes difficult to reduce the chip area.

【0007】本発明はかかる事情に鑑みて成されたもの
であり、レイヤ2処理部の消費電力を必要以上に大きく
することなく、メモリの容量を低減できるISDN回線
受信処理装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an ISDN line reception processing apparatus capable of reducing the memory capacity without increasing the power consumption of the layer 2 processing section more than necessary. To aim.

【0008】[0008]

【課題を解決するための手段】請求項1の発明は、IS
DN基本インタフェースのレイヤ1処理を行なうレイヤ
1処理部と、LAPD状態遷移処理を行なうレイヤ2処
理部と、レイヤ3処理を行なうと共に上位アプリケーシ
ョンへデータの送信を行なうレイヤ3処理部とがシーケ
ンシャルに接続されたISDN回線受信処理装置におい
て、レイヤ2処理部に、LAPD状態遷移処理の速度を
決定する動作クロックの周波数を切り換えるクロック制
御手段と、メモリの使用量を監視して未使用領域が一定
量未満のときに前記クロック制御手段に対して前記動作
クロックの高速化を指示するメモリ監視手段とを設けた
ことを特徴としている。
The invention according to claim 1 is an IS
A layer 1 processing unit for performing the layer 1 processing of the DN basic interface, a layer 2 processing portion for performing the LAPD state transition processing, and a layer 3 processing portion for performing the layer 3 processing and transmitting data to the upper application are sequentially connected. In the ISDN line reception processing device, the layer 2 processing unit has a clock control means for switching the frequency of the operation clock that determines the speed of the LAPD state transition processing, and the unused area is less than a certain amount by monitoring the used amount of the memory. In this case, memory monitoring means for instructing the clock control means to speed up the operation clock is provided.

【0009】請求項2の発明は、ISDN基本インタフ
ェースのレイヤ1処理を行なうレイヤ1処理部と、LA
PD状態遷移処理を行なうレイヤ2処理部と、レイヤ3
処理を行なうと共に上位アプリケーションへデータの送
信を行なうレイヤ3処理部とがシーケンシャル接続され
たISDN回線受信処理装置において、レイヤ2処理部
に、LAPD状態遷移処理の速度を決定する動作クロッ
クの周波数を切り換えるクロック制御手段と、受信デー
タの種別からその受信データに関するLAPD状態遷移
処理の処理量を予測してそれが一定量以上になる場合に
その受信データに関する処理を行なう期間中前記クロッ
ク制御手段に対して動作クロックの高速化を指示する処
理量予測手段とを設けたことを特徴としている。
According to a second aspect of the present invention, a layer 1 processing section for performing layer 1 processing of the ISDN basic interface and an LA
Layer 2 processing unit for performing PD state transition processing, and Layer 3
In the ISDN line reception processing device in which the processing is performed and the layer 3 processing unit that transmits data to the upper application is sequentially connected, the frequency of the operation clock that determines the speed of the LAPD state transition processing is switched to the layer 2 processing unit. The clock control means and the clock control means during the period during which the processing amount of the LAPD state transition processing for the received data is predicted from the type of the received data and the processing amount for the received data exceeds a certain amount. It is characterized in that a processing amount predicting means for instructing speeding up of the operation clock is provided.

【0010】[0010]

【作用】請求項1の発明において、クロック制御手段
は、LAPD状態遷移処理の速度を決定する動作クロッ
クの周波数を切り換える。メモリ監視手段は、メモリの
使用量を監視して、未使用領域が一定量未満のときに、
クロック制御手段に対して動作クロックの高速化を指示
する。
In the invention of claim 1, the clock control means switches the frequency of the operation clock which determines the speed of the LAPD state transition processing. The memory monitoring means monitors the memory usage, and when the unused area is less than a certain amount,
Instructing the clock control means to speed up the operation clock.

【0011】請求項2の発明において、クロック制御手
段は、LAPD状態遷移処理の速度を決定する動作クロ
ックの周波数を切り換える。処理量予測手段は、受信デ
ータの種別からその受信データに関するLAPD状態遷
移処理の処理量を予測して、それが一定量以上になる場
合、その受信データに関する処理を行なう期間中、クロ
ック制御手段に対して動作クロックの高速化を指示す
る。
According to the second aspect of the invention, the clock control means switches the frequency of the operation clock which determines the speed of the LAPD state transition processing. The processing amount predicting means predicts the processing amount of the LAPD state transition processing regarding the received data from the type of the received data, and when the processing amount exceeds a certain amount, the processing amount predicting means informs the clock control means during the period for performing the processing regarding the received data. On the other hand, it instructs to speed up the operation clock.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。 (実施例1)図1は本発明の実施例1におけるISDN
回線受信処理装置のブロック図で、このISDN回線受
信処理装置は、レイヤ1処理部1と、レイヤ2処理部2
と、レイヤ3処理部3とにより構成されている。レイヤ
2処理部2は、HDLCフレームコントローラ4と、レ
イヤ2メモリ5と、メモリ監視部6と、クロック制御部
7と、レイヤ2CPU8と、レイヤ3インタフェース9
とにより構成されている。レイヤ3処理部3は、レイヤ
2インタフェース11と、レイヤ3メモリ12と、レイ
ヤ3CPU13と、上位インタフェース14とにより構
成されている。レイヤ1処理部1は、ISDN基本イン
タフェースのレイヤ1処理を行なう。レイヤ2処理部2
は、LAPD状態遷移処理を行なう。レイヤ3処理部3
は、ISDN基本インタフェースのレイヤ3処理を行な
うと共に、上位アプリケーションへデータの送信を行な
う。HDLCフレームコントローラ4は、レイヤ1処理
部1からデータを受信し、レイヤ2フレームを構成して
レイヤ2メモリ5へ送信すると共に、レイヤ2フレーム
のデータをレイヤ2メモリ5へ格納するための書き込み
アドレスを発生する。レイヤ2メモリ5は、レイヤ2フ
レームとレイヤ2制御プログラムとプログラム変数デー
タとを格納する。メモリ監視部6は、レイヤ2フレーム
の受信完了直後にレイヤ2メモリ5に格納されているレ
イヤ2フレームの総数を調べ、その数が3個以上の場
合、そのうちの1個以上のフレームが解放されるまでの
間、クロック制御部7に動作クロックの高速化を指示す
る。クロック制御部7は、レイヤ2CPU8の動作クロ
ックを低速用の2MHzと高速用の8MHzとに切り換
える。レイヤ2CPU8は、レイヤ2制御プログラムに
よりレイヤ2処理の制御を行なう。レイヤ3インタフェ
ース9は、レイヤ2インタフェース11へのデータの送
信を行なう。レイヤ2インタフェース11は、レイヤ2
処理部2から情報フィールドのデータを受信し、情報フ
ィールドのデータをレイヤ3メモリ12へ格納するため
の書き込みアドレスを発生する。レイヤ3メモリ12
は、データとISDN回線より受信される情報フィール
ドデータとレイヤ3制御プログラムとプログラム変数デ
ータとを格納する。レイヤ3CPU13は、レイヤ3制
御プログラムによりレイヤ3処理の制御を行なう。上位
インタフェース14は、上位アプリケーションにデータ
の送信を行なう。
Embodiments of the present invention will now be described in detail with reference to the drawings. (Embodiment 1) FIG. 1 shows the ISDN in Embodiment 1 of the present invention.
In the block diagram of the line reception processing device, the ISDN line reception processing device includes a layer 1 processing unit 1 and a layer 2 processing unit 2.
And a layer 3 processing unit 3. The layer 2 processing section 2 includes an HDLC frame controller 4, a layer 2 memory 5, a memory monitoring section 6, a clock control section 7, a layer 2 CPU 8 and a layer 3 interface 9.
It is composed of and. The layer 3 processing unit 3 includes a layer 2 interface 11, a layer 3 memory 12, a layer 3 CPU 13, and a higher-level interface 14. The layer 1 processing unit 1 performs the layer 1 processing of the ISDN basic interface. Layer 2 processing unit 2
Performs LAPD state transition processing. Layer 3 processing unit 3
Performs the layer 3 processing of the ISDN basic interface and transmits the data to the upper application. The HDLC frame controller 4 receives the data from the layer 1 processing unit 1, forms a layer 2 frame and transmits it to the layer 2 memory 5, and at the same time, a write address for storing the data of the layer 2 frame in the layer 2 memory 5. To occur. The layer 2 memory 5 stores a layer 2 frame, a layer 2 control program, and program variable data. The memory monitoring unit 6 checks the total number of layer 2 frames stored in the layer 2 memory 5 immediately after the reception of the layer 2 frame, and if the number is 3 or more, one or more of the frames are released. Until then, the clock control unit 7 is instructed to speed up the operation clock. The clock control unit 7 switches the operation clock of the layer 2 CPU 8 between 2 MHz for low speed and 8 MHz for high speed. The layer 2 CPU 8 controls the layer 2 processing by the layer 2 control program. The layer 3 interface 9 transmits data to the layer 2 interface 11. The layer 2 interface 11 is a layer 2
The information field data is received from the processing unit 2, and a write address for storing the information field data in the layer 3 memory 12 is generated. Layer 3 memory 12
Stores the data, the information field data received from the ISDN line, the layer 3 control program, and the program variable data. The layer 3 CPU 13 controls the layer 3 processing by the layer 3 control program. The host interface 14 transmits data to the host application.

【0013】次に動作を説明する。ISDN回線から上
位アプリケーションへのデータ受信時には、ISDN回
線からのデータは、レイヤ1処理部1でレイヤ2フレー
ムに構成され、レイヤ2処理部2のHDLCフレームコ
ントローラ4に1オクテット毎に送信される。これによ
りHDLCフレームコントローラ4は、レイヤ2メモリ
5の書き込みアドレスを巡回的に発生する一方、レイヤ
2CPU8を割り込みによりウエイト(待機)状態にし
てレイヤ2処理部2のバスを開放し、書き込みアドレス
の示すレイヤ2メモリ5の位置に、受信した1オクテッ
トのデータを格納する。また、レイヤ2フレームの最終
オクテットをレイヤ2メモリ5に格納する時、フラグ・
チェック・シーケンスの正当性が確認された場合、割り
込みによりレイヤ2CPU8とメモリ監視部6とに対
し、格納されるレイヤ2フレームの最終アドレスとレイ
ヤ2フレームの受信完了とを通知する。これによりメモ
リ監視部6は、レイヤ2メモリ5に格納されているレイ
ヤ2フレームの総数を調べ、レイヤ1処理部1から受信
を完了したものと、LAPD状態遷移処理を行なってい
るものと、レイヤ3処理部3へ送信しているものとの合
計3個となっている場合、そのうちの1個以上のフレー
ムが解放されるまでの間、クロック制御部7に動作クロ
ックの高速化を指示する。これによりクロック制御部7
は、レイヤ2CPU8に供給する動作クロックの周波数
を2MHzから8MHzに切り換える。またレイヤ2C
PU8は、HDLCフレームコントローラ4からレイヤ
2フレームの受信完了を通知する割り込みを受けると、
レイヤ2メモリ5の内容を参照しつつ、格納されたレイ
ヤ2フレームに対してLAPD状態遷移処理を行なう。
そしてLAPD状態遷移処理後、レイヤ2フレームがレ
イヤ3処理部3に送信すべき情報フィールドを持つ場
合、レイヤ3インタフェース9を介してレイヤ3処理部
3のレイヤ2インタフェース11に情報フィールドのデ
ータの送信を行なう。レイヤ2CPU8が、クロック制
御部7から8MHzの動作クロックを供給されている場
合、レイヤ1処理部1からの2フレーム目のレイヤ2フ
レームのデータ量が最小であっても、その受信を完了す
る以前に、LAPD状態遷移処理中のレイヤ2フレーム
の処理を完了してレイヤ3処理部3への送信を行ない、
レイヤ2メモリ5の1フレーム分の固定長バッファを解
放することが可能となる。
Next, the operation will be described. When receiving data from the ISDN line to the upper application, the data from the ISDN line is formed into a layer 2 frame by the layer 1 processing unit 1 and is transmitted to the HDLC frame controller 4 of the layer 2 processing unit 2 every 1 octet. As a result, the HDLC frame controller 4 cyclically generates the write address of the layer 2 memory 5, while putting the layer 2 CPU 8 in a wait state by an interrupt to open the bus of the layer 2 processing unit 2 to indicate the write address. The received data of 1 octet is stored in the position of the layer 2 memory 5. Also, when storing the last octet of the layer 2 frame in the layer 2 memory 5, a flag
When the validity of the check sequence is confirmed, an interrupt notifies the layer 2 CPU 8 and the memory monitoring unit 6 of the final address of the layer 2 frame to be stored and the reception completion of the layer 2 frame. As a result, the memory monitoring unit 6 checks the total number of layer 2 frames stored in the layer 2 memory 5, and the reception from the layer 1 processing unit 1 is completed, the LAPD state transition process is performed, and the layer When the total number of packets transmitted to the processing unit 3 is three, the clock control unit 7 is instructed to speed up the operation clock until one or more frames among them are released. As a result, the clock controller 7
Switches the frequency of the operation clock supplied to the layer 2 CPU 8 from 2 MHz to 8 MHz. Layer 2C
When the PU 8 receives from the HDLC frame controller 4 an interrupt for notifying reception of the layer 2 frame,
The LAPD state transition process is performed on the stored layer 2 frame while referring to the contents of the layer 2 memory 5.
After the LAPD state transition process, when the layer 2 frame has an information field to be transmitted to the layer 3 processing unit 3, the information field data is transmitted to the layer 2 interface 11 of the layer 3 processing unit 3 via the layer 3 interface 9. Do. When the layer 2 CPU 8 is supplied with the operation clock of 8 MHz from the clock controller 7, even if the data amount of the layer 2 frame of the second frame from the layer 1 processor 1 is the minimum, before the reception thereof is completed. To the layer 3 processing unit 3 after completing the processing of the layer 2 frame during the LAPD state transition processing,
It is possible to release the fixed length buffer for one frame of the layer 2 memory 5.

【0014】レイヤ3処理部3のレイヤ2インタフェー
ス11がレイヤ2処理部2のレイヤ3インタフェース9
から情報フィールドのデータを受信した場合、レイヤ2
インタフェース11は、レイヤ3メモリ12の連続した
情報フィールドのデータの格納領域に対する書き込みア
ドレスを巡回的に発生し、レイヤ3CPU13を割り込
みによりウエイト状態にしてレイヤ3処理部3のバスを
開放し、書き込みアドレスの示すレイヤ3メモリ12の
位置に、受信した情報フィールドの1オクテットのデー
タを格納する。さらに、情報フィールドの先頭オクテッ
トを格納する時には、割り込みによりレイヤ3CPU1
3に対して格納される情報フィールドの先頭アドレスを
通知し、また情報フィールドの最終オクテットを格納す
る時には、割り込みによりレイヤ3メモリ12に対して
格納される情報フィールドの最終アドレスを通知する。
続いてレイヤ2インタフェース11は、レイヤ3インタ
フェース9から情報フィールド送信終了通知を受信した
場合、割り込みによりレイヤ3CPU13に対して情報
フィールドの受信完了を通知する。これによりレイヤ3
CPU13は、レイヤ3メモリ12を参照しつつ、格納
された情報フィールドに対し処理を行ない、必要に応じ
て情報フィールドのデータを、上位インタフェース14
を介して上位アプリケーションに送信する。
The layer 2 interface 11 of the layer 3 processing section 3 is replaced with the layer 3 interface 9 of the layer 2 processing section 2.
Layer 2 when receiving information field data from
The interface 11 cyclically generates a write address for the data storage area of the continuous information field of the layer 3 memory 12, puts the layer 3 CPU 13 in a wait state by an interrupt, releases the bus of the layer 3 processing unit 3, and writes the write address. The 1-octet data of the received information field is stored in the position of the layer 3 memory 12 indicated by. Furthermore, when storing the first octet of the information field, the layer 3 CPU 1 is interrupted by an interrupt.
3 is notified of the head address of the information field to be stored, and when the last octet of the information field is stored, the last address of the information field to be stored is notified to the layer 3 memory 12 by an interrupt.
Subsequently, when the layer 2 interface 11 receives the information field transmission end notification from the layer 3 interface 9, the layer 2 interface 11 notifies the layer 3 CPU 13 of the reception completion of the information field by an interrupt. Layer 3
The CPU 13 processes the stored information field while referring to the layer 3 memory 12, and stores the data of the information field in the upper interface 14 as necessary.
To higher-level application via.

【0015】このように、レイヤ2CPU8に供給する
動作クロックを切り換えるので、レイヤ2CPU8の消
費電力を必要以上に大きくすることなく、レイヤ2フレ
ームを格納するためのレイヤ2メモリ5の固定長バッフ
ァを4個以下に抑えることができる。 (実施例2)図2は本発明の実施例2におけるISDN
回線受信処理装置のブロック図で、このISDN回線受
信処理装置は、レイヤ1処理部1と、レイヤ2処理部2
と、レイヤ3処理部3とにより構成されている。レイヤ
2処理部2は、HDLCフレームコントローラ4と、レ
イヤ2メモリ5と、クロック制御部7と、レイヤ2CP
U8と、レイヤ3インタフェース9と、処理量予測部1
6とにより構成されている。レイヤ3処理部3は、レイ
ヤ2インタフェース11と、レイヤ3メモリ12と、レ
イヤ3CPU13と、上位インタフェース14とにより
構成されている。処理量予測部16は、レイヤ2フレー
ムの受信完了直後にレイヤ2フレームの制御フィールド
を調べ、そのフレームの種別がLAPD状態遷移処理量
の多いIフレーム(情報フレーム)であった場合に、そ
のフレームに対するLAPD状態遷移処理が完了するま
での間、クロック制御部7に動作クロックの高速化を指
示する。なお、図1に示す構成要素と同一の構成要素に
は、同一の符号を付してその説明を省略する。
Since the operation clock supplied to the layer 2 CPU 8 is switched in this manner, the fixed length buffer of the layer 2 memory 5 for storing the layer 2 frame is set to 4 without storing the power consumption of the layer 2 CPU 8 more than necessary. It can be kept below. (Embodiment 2) FIG. 2 shows the ISDN in Embodiment 2 of the present invention.
In the block diagram of the line reception processing device, the ISDN line reception processing device includes a layer 1 processing unit 1 and a layer 2 processing unit 2.
And a layer 3 processing unit 3. The layer 2 processing unit 2 includes an HDLC frame controller 4, a layer 2 memory 5, a clock control unit 7, and a layer 2CP.
U8, layer 3 interface 9, and processing amount prediction unit 1
6 and 6. The layer 3 processing unit 3 includes a layer 2 interface 11, a layer 3 memory 12, a layer 3 CPU 13, and a higher-level interface 14. The processing amount prediction unit 16 checks the control field of the layer 2 frame immediately after the completion of receiving the layer 2 frame, and if the type of the frame is an I frame (information frame) with a large amount of LAPD state transition processing, the frame The clock control unit 7 is instructed to speed up the operation clock until the LAPD state transition processing is completed. The same components as those shown in FIG. 1 are designated by the same reference numerals, and the description thereof will be omitted.

【0016】次に動作を説明する。ISDN回線から上
位アプリケーションへのデータ受信時には、ISDN回
線からのデータは、レイヤ1処理部1でレイヤ2フレー
ムに構成され、レイヤ2処理部2のHDLCフレームコ
ントローラ4に1オクテット毎に送信される。これによ
りHDLCフレームコントローラ4は、レイヤ2メモリ
5の書き込みアドレスを巡回的に発生する一方、レイヤ
2CPU8を割り込みによりウエイト(待機)状態にし
てレイヤ2処理部2のバスを開放し、書き込みアドレス
の示すレイヤ2メモリ5の位置に受信した1オクテット
のデータを格納する。また、レイヤ2フレームの最終オ
クテットをレイヤ2メモリ5に格納する時、フラグ・チ
ェック・シーケンスの正当性が確認された場合、割り込
みによりレイヤ2CPU8と処理量予測部16とに対し
て格納されるレイヤ2フレームの最終アドレスとレイヤ
2フレームの受信完了とを通知する。これにより処理量
予測部16は、レイヤ2メモリ10に格納されたレイヤ
2フレームの制御フィールドを調べ、そのフレームの種
別がLAPD状態遷移処理量の多いIフレーム(情報フ
レーム)であった場合に、そのフレームに対するLAP
D状態遷移処理が完了するまでの間、クロック制御部7
に動作クロックの高速化を指示する。これによりクロッ
ク制御部7は、レイヤ2CPU8に供給する動作クロッ
クの周波数を2MHzから8MHzに切り換える。また
レイヤ2CPU8は、HDLCフレームコントローラ4
からレイヤ2フレームの受信完了を通知する割り込みを
受けると、レイヤ2メモリ5の内容を参照しつつ、格納
されたレイヤ2フレームに対してLAPD状態遷移処理
を行なう。そしてLAPD状態遷移処理後、レイヤ2フ
レームがレイヤ3処理部3に送信すべき情報フィールド
を持つ場合、レイヤ3インタフェース9を介してレイヤ
3処理部3のレイヤ2インタフェース11に情報フィー
ルドのデータの送信を行なう。レイヤ2CPU8が、ク
ロック制御部7から8MHzの動作クロックを供給され
ている場合、レイヤ1処理部1からの2フレーム目のレ
イヤ2フレームの受信を完了する以前に、LAPD状態
遷移処理中のレイヤ2フレームのデータ量が最小であっ
ても、その処理を完了してレイヤ3処理部3への送信を
行ない、レイヤ2メモリ5の固定長バッファを解放する
ことが可能となる。
Next, the operation will be described. When receiving data from the ISDN line to the upper application, the data from the ISDN line is formed into a layer 2 frame by the layer 1 processing unit 1 and is transmitted to the HDLC frame controller 4 of the layer 2 processing unit 2 every 1 octet. As a result, the HDLC frame controller 4 cyclically generates the write address of the layer 2 memory 5, while putting the layer 2 CPU 8 in a wait state by an interrupt to open the bus of the layer 2 processing unit 2 to indicate the write address. The received 1-octet data is stored in the position of the layer 2 memory 5. Further, when the final octet of the layer 2 frame is stored in the layer 2 memory 5, if the validity of the flag check sequence is confirmed, the layer stored in the layer 2 CPU 8 and the processing amount prediction unit 16 by the interrupt. The final address of 2 frames and the reception completion of the layer 2 frame are notified. Accordingly, the processing amount prediction unit 16 checks the control field of the layer 2 frame stored in the layer 2 memory 10, and when the type of the frame is an I frame (information frame) with a large amount of LAPD state transition processing, LAP for that frame
Until the D state transition process is completed, the clock controller 7
Instruct to speed up the operation clock. As a result, the clock control unit 7 switches the frequency of the operation clock supplied to the layer 2 CPU 8 from 2 MHz to 8 MHz. Also, the layer 2 CPU 8 is the HDLC frame controller 4
When receiving an interrupt notifying that the reception of the layer 2 frame is completed, the LAPD state transition process is performed on the stored layer 2 frame while referring to the contents of the layer 2 memory 5. After the LAPD state transition process, when the layer 2 frame has an information field to be transmitted to the layer 3 processing unit 3, the information field data is transmitted to the layer 2 interface 11 of the layer 3 processing unit 3 via the layer 3 interface 9. Do. When the layer 2 CPU 8 is supplied with the operation clock of 8 MHz from the clock controller 7, the layer 2 under the LAPD state transition process is completed before the reception of the second layer 2 frame from the layer 1 processor 1 is completed. Even if the data amount of the frame is the minimum, it is possible to complete the processing and perform the transmission to the layer 3 processing unit 3 to release the fixed length buffer of the layer 2 memory 5.

【0017】レイヤ3処理部3のレイヤ2インタフェー
ス11がレイヤ2処理部2のレイヤ3インタフェース9
から情報フィールドのデータを受信した場合、レイヤ2
インタフェース11は、レイヤ3メモリ12の連続した
情報フィールドのデータの格納領域に対する書き込みア
ドレスを巡回的に発生し、レイヤ3CPU13を割り込
みによりウエイト状態にしてレイヤ3処理部3のバスを
開放し、書き込みアドレスの示すレイヤ3メモリ12の
位置に、受信した情報フィールドの1オクテットのデー
タを格納する。さらに、情報フィールドの先頭オクテッ
トを格納する時には、割り込みによりレイヤ3CPU1
3に対して格納される情報フィールドの先頭アドレスを
通知し、また情報フィールドの最終オクテットを格納す
る時には、割り込みによりレイヤ3メモリ12に対して
格納される情報フィールドの最終アドレスを通知する。
続いてレイヤ2インタフェース11は、レイヤ3インタ
フェース9から情報フィールド送信終了通知を受信した
場合、割り込みによりレイヤ3CPU13に対して情報
フィールドの受信完了を通知する。これによりレイヤ3
CPU13は、レイヤ3メモリ12を参照しつつ、格納
された情報フィールドに対して処理を行ない、必要に応
じて情報フィールドのデータを、上位インタフェース1
4を介して上位アプリケーションに送信する。
The layer 2 interface 11 of the layer 3 processing section 3 is replaced with the layer 3 interface 9 of the layer 2 processing section 2.
Layer 2 when receiving information field data from
The interface 11 cyclically generates a write address for the data storage area of the continuous information field of the layer 3 memory 12, puts the layer 3 CPU 13 in a wait state by an interrupt, releases the bus of the layer 3 processing unit 3, and writes the write address. The 1-octet data of the received information field is stored in the position of the layer 3 memory 12 indicated by. Furthermore, when storing the first octet of the information field, the layer 3 CPU 1 is interrupted by an interrupt.
3 is notified of the head address of the information field to be stored, and when the last octet of the information field is stored, the last address of the information field to be stored is notified to the layer 3 memory 12 by an interrupt.
Subsequently, when the layer 2 interface 11 receives the information field transmission end notification from the layer 3 interface 9, the layer 2 interface 11 notifies the layer 3 CPU 13 of the reception completion of the information field by an interrupt. Layer 3
The CPU 13 processes the stored information field while referring to the layer 3 memory 12, and stores the data of the information field in the upper interface 1 as necessary.
4 to the upper application.

【0018】このように、レイヤ2CPU8に供給する
動作クロックを切り換えるので、レイヤ2CPU8の消
費電力を必要以上に大きくすることなく、レイヤ2フレ
ームを格納するためのレイヤ2メモリ5の固定長バッフ
ァを4個以下に抑えることができる。なお上記実施例
1,2ではクロック制御部7によりレイヤ2CPU8に
供給する動作クロックの周波数を2MHzと8MHzと
に切り換えたが、これらの周波数はこのように限定され
るものではなく、各種設計条件に応じて適宜決定すれば
よい。
Since the operation clock supplied to the layer 2 CPU 8 is switched in this way, the fixed length buffer of the layer 2 memory 5 for storing the layer 2 frame is set to 4 without storing the power consumption of the layer 2 CPU 8 more than necessary. It can be kept below. Although the frequencies of the operation clocks supplied to the layer 2 CPU 8 are switched between 2 MHz and 8 MHz by the clock control unit 7 in the first and second embodiments, these frequencies are not limited to the above and may be set according to various design conditions. It may be appropriately determined depending on the situation.

【0019】また上記実施例2では処理量予測部16に
よりフレームの種類が情報フレームであることを判断し
て動作クロックの周波数を2MHzから8MHzに切り
換えたが、処理量予測部16による処理量の予測はこれ
に限るものではなく、他の各種手段を採用し得る。
In the second embodiment, the processing amount predicting unit 16 determines that the type of the frame is an information frame and switches the frequency of the operation clock from 2 MHz to 8 MHz. The prediction is not limited to this, and various other means may be adopted.

【0020】[0020]

【発明の効果】以上説明したように本発明によれば、レ
イヤ2処理部に、LAPD状態遷移処理の速度を決定す
る動作クロックの周波数を切り換えるクロック制御手段
と、メモリの使用量を監視して未使用領域が一定量未満
のときにクロック制御手段に対して動作クロックの高速
化を指示するメモリ監視手段とを設けたので、レイヤ2
処理部の消費電力を必要以上に大きくすることなく、メ
モリの容量を低減できる。したがって装置をチップ化す
る場合、チップ面積を良好に低減することができるとい
う優れた効果を奏する。
As described above, according to the present invention, the layer 2 processing section monitors the amount of memory used and the clock control means for switching the frequency of the operation clock that determines the speed of the LAPD state transition processing. Since the memory monitoring means for instructing the clock control means to speed up the operation clock when the unused area is less than a certain amount is provided, the layer 2
The capacity of the memory can be reduced without increasing the power consumption of the processing unit more than necessary. Therefore, when the device is made into a chip, there is an excellent effect that the chip area can be favorably reduced.

【0021】また、レイヤ2処理部に、LAPD状態遷
移処理の速度を決定する動作クロックの周波数を切り換
えるクロック制御手段と、受信データの種別からその受
信データに関するLAPD状態遷移処理の処理量を予測
してそれが一定量以上になる場合にその受信データに関
する処理を行なう期間中クロック制御手段に対して動作
クロックの高速化を指示する処理量予測手段とを設ける
ことによっても、上記と同様の効果を得ることができ
る。
Further, the layer 2 processing section predicts the processing amount of the LAPD state transition processing relating to the received data from the clock control means for switching the frequency of the operation clock which determines the speed of the LAPD state transition processing, and the type of the received data. If the processing amount predicting means for instructing the clock control means to speed up the operation clock is provided during the period when the processing relating to the received data is performed when the amount becomes a certain amount or more, the same effect as above can be obtained. Obtainable.

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

【図1】本発明の実施例1におけるISDN回線受信処
理装置のブロック図である。
FIG. 1 is a block diagram of an ISDN line reception processing device according to a first embodiment of the present invention.

【図2】本発明の実施例2におけるISDN回線受信処
理装置のブロック図である。
FIG. 2 is a block diagram of an ISDN line reception processing device according to a second embodiment of the present invention.

【図3】従来のISDN回線受信処理装置のブロック図
である。
FIG. 3 is a block diagram of a conventional ISDN line reception processing device.

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

1 レイヤ1処理部 2 レイヤ2処理部 3 レイヤ3処理部 5 レイヤ2メモリ 6 メモリ監視部 7 クロック制御部 16 処理量予測部 1 Layer 1 processing unit 2 Layer 2 processing unit 3 Layer 3 processing unit 5 Layer 2 memory 6 Memory monitoring unit 7 Clock control section 16 Throughput predictor

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ISDN基本インタフェースのレイヤ1
処理を行なうレイヤ1処理部と、LAPD状態遷移処理
を行なうレイヤ2処理部と、レイヤ3処理を行なうと共
に上位アプリケーションにデータの送信を行なうレイヤ
3処理部とがシーケンシャルに接続されたISDN回線
受信処理装置において、前記レイヤ2処理部に、LAP
D状態遷移処理の速度を決定する動作クロックの周波数
を切り換えるクロック制御手段と、メモリの使用量を監
視して未使用領域が一定量未満のときに前記クロック制
御手段に対して前記動作クロックの高速化を指示するメ
モリ監視手段とを設けたことを特徴とするISDN回線
受信処理装置。
1. A layer 1 of ISDN basic interface
An ISDN line reception process in which a layer 1 processing unit for performing processing, a layer 2 processing unit for performing LAPD state transition processing, and a layer 3 processing unit for performing layer 3 processing and transmitting data to a higher-level application are sequentially connected. In the device, the layer 2 processing unit includes a LAP
A clock control means for switching the frequency of the operation clock for determining the speed of the D state transition processing, and a high speed operation clock for the clock control means when the unused area is less than a certain amount by monitoring the memory usage. An ISDN line reception processing device, characterized in that a memory monitoring means for instructing conversion is provided.
【請求項2】 ISDN基本インタフェースのレイヤ1
処理を行なうレイヤ1処理部と、LAPD状態遷移処理
を行なうレイヤ2処理部と、レイヤ3処理を行なうと共
に上位アプリケーションにデータの送信を行なうレイヤ
3処理部とがシーケンシャル接続されたISDN回線受
信処理装置において、前記レイヤ2処理部に、LAPD
状態遷移処理の速度を決定する動作クロックの周波数を
切り換えるクロック制御手段と、受信データの種別から
その受信データに関するLAPD状態遷移処理の処理量
を予測してそれが一定量以上になる場合にその受信デー
タに関する処理を行なう期間中前記クロック制御手段に
対して前記動作クロックの高速化を指示する処理量予測
手段とを設けたことを特徴とするISDN回線受信処理
装置。
2. The ISDN basic interface layer 1
An ISDN line reception processing device in which a layer 1 processing unit for performing processing, a layer 2 processing unit for performing LAPD state transition processing, and a layer 3 processing unit for performing layer 3 processing and transmitting data to a higher-order application are sequentially connected. At the layer 2 processing unit,
Clock control means for switching the frequency of the operation clock that determines the speed of the state transition processing, and predicting the processing amount of the LAPD state transition processing relating to the received data from the type of the received data, and receiving it when it becomes a certain amount or more. An ISDN line reception processing device, comprising: a processing amount predicting means for instructing the clock control means to speed up the operation clock during a period for performing processing relating to data.
JP3160222A 1991-07-01 1991-07-01 Isdn line reception processing unit Pending JPH0514445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3160222A JPH0514445A (en) 1991-07-01 1991-07-01 Isdn line reception processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3160222A JPH0514445A (en) 1991-07-01 1991-07-01 Isdn line reception processing unit

Publications (1)

Publication Number Publication Date
JPH0514445A true JPH0514445A (en) 1993-01-22

Family

ID=15710361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3160222A Pending JPH0514445A (en) 1991-07-01 1991-07-01 Isdn line reception processing unit

Country Status (1)

Country Link
JP (1) JPH0514445A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08130544A (en) * 1994-10-14 1996-05-21 Koninkl Ptt Nederland Nv Buffer read controller for atm receiver
JP2011181987A (en) * 2010-02-26 2011-09-15 Nec Access Technica Ltd Packet relay device, and packet relay method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08130544A (en) * 1994-10-14 1996-05-21 Koninkl Ptt Nederland Nv Buffer read controller for atm receiver
JP2011181987A (en) * 2010-02-26 2011-09-15 Nec Access Technica Ltd Packet relay device, and packet relay method

Similar Documents

Publication Publication Date Title
JP2970596B2 (en) ATM communication device
EP0385429A2 (en) Self-routing switching system having dual self-routing switch module network structure
US5682480A (en) Parallel computer system for performing barrier synchronization by transferring the synchronization packet through a path which bypasses the packet buffer in response to an interrupt
JPH0653994A (en) Data transmission system and communication controller
US6735204B1 (en) ATM cell multiplexing apparatus and ATM cell multiplexing method
JPH0514445A (en) Isdn line reception processing unit
JPH03265334A (en) Multi-channel communication processor
JPH09247209A (en) Flow control system of transport layer protocol for resource reservation channel
JPH09149067A (en) Switching hub
US5125079A (en) Method for controlling the data transmission of a central unit interfacing control circuit and circuit arrangement for the implementation of the method
JP3115801B2 (en) Parallel computer system
JP3591491B2 (en) Duplex queue synchronization method
JP2590743B2 (en) Wireless selective call receiver with data communication function
JPH05292123A (en) Packet exchange system
JPS60183659A (en) Information transfer control system
JPH06334705A (en) Communication controller
JPH10178454A (en) Control method for communication buffer
JP2000049836A (en) Data transmission system for ring-shaped network
JPH11187074A (en) Communication equipment
JP3212280B2 (en) Variable-length cell bus switch
JP2000069091A (en) Buffer managing method, communication equipment and recording medium
JP2000307604A (en) Atm link switching system
JP2000092084A (en) Transmission control method and device for connection data
JPH10164128A (en) Communication processor
JPH11261594A (en) Packet preferential reception processing method