JPS6120455A - Frame signal receiving device - Google Patents

Frame signal receiving device

Info

Publication number
JPS6120455A
JPS6120455A JP14028884A JP14028884A JPS6120455A JP S6120455 A JPS6120455 A JP S6120455A JP 14028884 A JP14028884 A JP 14028884A JP 14028884 A JP14028884 A JP 14028884A JP S6120455 A JPS6120455 A JP S6120455A
Authority
JP
Japan
Prior art keywords
unit length
register
counter
area
frame signal
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
JP14028884A
Other languages
Japanese (ja)
Inventor
Mitsugi Anezaki
姉崎 貢
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP14028884A priority Critical patent/JPS6120455A/en
Publication of JPS6120455A publication Critical patent/JPS6120455A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L13/00Details of the apparatus or circuits covered by groups H04L15/00 or H04L17/00
    • H04L13/02Details not particular to receiver or transmitter
    • H04L13/08Intermediate storage means

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To receive a variable frame signal of an optional length without a complicated chain processing by designating an address in a unit length area by a counter for counting a byte number of a receiving frame signal, reading out the next dead area number when a value of the counter concerned reaches the byte number of the unit length area, and writing continuously the receiving frame signal in the designated unit length area. CONSTITUTION:A receiving frame signal inputted from a serial data input terminal IN is written in an address designated by a counter 3 of a unit length area designated by a register 2. When a count value of the counter 3 reaches a byte number of a unit length area of a receiving buffer BUFF, it is informed to a control circuit 4 by a count end signal 102, the counter 3 is cleared, and also the next area number is read out of a first-in/first-out register 1 and set to the register 2.

Description

【発明の詳細な説明】 発明の属する技術分野 本発明は、伝送路から受信される可変長のフレーム信号
を受信するためのフレーム信号受信装置に関する。
TECHNICAL FIELD The present invention relates to a frame signal receiving device for receiving variable length frame signals received from a transmission path.

従来技術 従来、可変長のフレーム信号を受信するためには、あら
かじめ最大フレーム長の受信バッファを複数面用意し、
受信したフレーム信号の長短に拘らず、1つの受信フレ
ーム信号を1面の受信バッファに格納するようにしてい
る。このため、短いフレーム信号が連続して受信される
ような場合には、受信バッファが有効に使用されず、ま
た受信パンファ面数の不足により、フレーム信号の再送
を必要とする回数が増大して伝送効率を低下させるとい
う欠点がある。
Conventional technology Conventionally, in order to receive variable length frame signals, multiple receive buffers with the maximum frame length are prepared in advance.
Regardless of the length of the received frame signal, one received frame signal is stored in one side of the reception buffer. For this reason, when short frame signals are received continuously, the receive buffer is not used effectively, and the number of times frame signals need to be retransmitted increases due to the insufficient number of receive breadths. It has the disadvantage of reducing transmission efficiency.

上記欠点を解決するために、受信バッファを基本単位長
の複数エリアに分割し、複数の基本単位長エリアをチェ
イニングすることによって最大長フレームの受信を可能
とし、受信バッファの有効利用を行なうものもある。し
かし、この場合は、1つのチェイニング中の単位長の受
信バツフアーで、受信データがセットされなかった部分
を、次のフレーム受信のためにチェイニングし直してお
く必要がある。このため、瞬間的に短いフレーム信号が
連続して受信されるようなときには、ソフトウェアの処
理が間に合わないで、空の受信バツフアーがあるにも拘
らずフレーム信号を受信できない状態が発生するという
問題がある。
In order to solve the above drawbacks, the reception buffer is divided into multiple areas of basic unit length, and by chaining the multiple basic unit length areas, it is possible to receive the maximum length frame, and the reception buffer is used effectively. There is also. However, in this case, it is necessary to re-chain the part of the unit-length reception buffer during one chaining in which reception data is not set for reception of the next frame. For this reason, when short frame signals are received continuously, the software processing may not be able to keep up with the processing time, resulting in a situation where frame signals cannot be received even though there is an empty reception buffer. be.

発明の目的 本発明の目的は、上述の従来の欠点を解決し、複雑なチ
ェイニング処理を行なわないで、短いフレーム信号が連
続して受信される場合にも受信へソファを有効に使用す
ることができるフレーム信号受信装置を提供することに
ある。
OBJECTS OF THE INVENTION An object of the present invention is to solve the above-mentioned conventional drawbacks, and to effectively use a sofa for reception even when short frame signals are continuously received without performing complicated chaining processing. The object of the present invention is to provide a frame signal receiving device that can perform the following functions.

発明の構成 本発明のフレーム信号受信装置は、基本単位長のデータ
を格納できる複数の単位長エリアに分割された受信バッ
ファと、受信フレーム信号のバイト数をカウントするた
めのカウンタと、前記受信バッファの空エリア番号を格
納するためのファーストイン令ファーストアウト−レジ
スタと、該ファーストイン・ファーストアウト書レジス
タの出力を格納するレジスタと、前記カウンタのカウン
ト値が前記受信バッファの単位長エリアのバイト数に達
したとき又は1つの受信フレーム信号の転送を完rした
とき前記ファーストイン・ファーストアウト・レジスタ
に格納されている次の空エリア番号を読出して+iij
記レジスタにセットする制御回路とを備えて、前記レジ
スタの出力によって肋記受信へソファの単位長エリアを
指定し前記カウンタの出力によって単位長エリア内のア
ドレスを指定することを特徴とする。
Structure of the Invention The frame signal receiving device of the present invention includes a receiving buffer divided into a plurality of unit length areas capable of storing data of a basic unit length, a counter for counting the number of bytes of a received frame signal, and the receiving buffer. a first-in command first-out register for storing the empty area number of the register, a register for storing the output of the first-in/first-out register, and a count value of the counter is the number of bytes of the unit length area of the receive buffer. or when the transfer of one received frame signal is completed, the next empty area number stored in the first-in/first-out register is read out and +iij
and a control circuit for setting the register, the output of the register designates a unit length area of the sofa for receiving the register, and the output of the counter designates an address within the unit length area.

発明の実施例 次に、本発明について、図面を参照して詳細に説明する
Embodiments of the Invention Next, the present invention will be described in detail with reference to the drawings.

図は、本発明の一実施例を示すブロック図である。すな
わち、受信バッファBUFFは、基本単位長のデータを
格納できる複数の単位長エリアに分割され、各単位長エ
リアの番号は、レジスタ2の出力によって指定され、単
位長エリア内のバイトアドレスはカウンタ3の出力によ
って指定される。
The figure is a block diagram showing one embodiment of the present invention. That is, the reception buffer BUFF is divided into a plurality of unit length areas that can store data of basic unit length, the number of each unit length area is specified by the output of register 2, and the byte address within the unit length area is determined by counter 3. specified by the output of

ファーストインψファーストアウトeレジスタlは、受
信バッファBUFFの空の単位長エリアの番号を格納す
るためのレジスタで、プロセッサCPυからデータバス
DBによって、あらかじめ空単位長エリアの番号が順次
セットされていて、先に入力された番号を最初に出力し
て、レジスタ2にセットする。
The first-in ψ first-out e register l is a register for storing the number of the empty unit length area of the reception buffer BUFF, and the number of the empty unit length area is sequentially set in advance by the data bus DB from the processor CPυ. , the number input earlier is output first and set in register 2.

シリアルデータ入力端子INから入力された受信フレー
ム信号が、シリアル/パラレル変換部6によって8ピツ
)(1バイト)ずつの並列データ(バイトデータ) D
Tに変換されて受信バッファBUFFに供給され、受信
バッファB[IFFは、バイトデータDTを、シリアル
/パラレル変換部6から入力される有込み信号畦によっ
て、レジスタ2によって指定される単位長エリアのカウ
ンタ3によって指定される番地に書込む、単位長エリア
を例えば256バイトとすると、カウンタ3によって8
ビツトの下位アドレスALを出力し、レジスタ2の出力
する8ビツトの1−位アドレスA)lによって空の単位
長エリアを指定することができる。カウンタ3は、1バ
イトのデータを書込むごとに、シリアル/パラレル変換
部6から入力されるカウントアツプ信号101によつ−
(カウントアツプされて、次の下位アドレスを指定する
The received frame signal input from the serial data input terminal IN is converted into parallel data (byte data) of 8 bits (1 byte) by the serial/parallel converter 6
The byte data DT is converted into data T and supplied to the reception buffer BUFF, and the reception buffer B [IFF converts the byte data DT into a unit length area designated by the register 2 by the input signal line input from the serial/parallel converter 6. For example, if the unit length area to be written to the address specified by counter 3 is 256 bytes, counter 3 will write 8 bytes.
A lower bit address AL is output, and an empty unit length area can be specified by the 8-bit 1st-place address A)l output from the register 2. The counter 3 receives a count-up signal 101 input from the serial/parallel converter 6 every time one byte of data is written.
(The count is increased and the next lower address is specified.

カウンタ30カウント値が受信バッファBtlFFの単
位長エリアのバイト数(25B)に達すると、カウント
終了信号102によって制御回路4に通知され、制御回
路4はカウンタクリア信号103によってカウンタ3を
クリアすると共に、制御信号201によってファースト
イン−ファーストアウト中レジスタ1から次のエリア番
号(上位アドレス)を読出してレジスタ2にセットさせ
る。この動作中、制御回路4はシリアル/パラレル変換
部6にウェイト信号303を出力して、受信バッファ8
υFFへの書込みに対してウェイトをかける。なお、フ
ァーストイン・ファーストアウト書レジスタ1からデー
タが読出せない場合は、受信バッファBUFFに空エリ
アが無いことを示し、内蔵するステータスレジスタ5に
エラーをセットし、かつ信号線INTによってプロセッ
サCP[Iに通知する。また、シリアル/パラレル変換
部6からフレーム受信エラー信号302が入力されたと
きも、同様にエラーセット等の処理を行なう、なお、C
TLはプロセッサCPUから制御回路4への制御信号で
ある。
When the count value of the counter 30 reaches the number of bytes (25B) in the unit length area of the reception buffer BtlFF, the control circuit 4 is notified by the count end signal 102, and the control circuit 4 clears the counter 3 by the counter clear signal 103, and The control signal 201 reads the next area number (higher address) from the first-in/first-out register 1 and sets it in the register 2. During this operation, the control circuit 4 outputs the wait signal 303 to the serial/parallel converter 6 and
Add weight to writes to υFF. Note that if data cannot be read from the first-in/first-out register 1, it indicates that there is no empty area in the reception buffer BUFF, sets an error in the built-in status register 5, and reads the signal from the processor CP[ by the signal line INT. Notify I. Furthermore, when the frame reception error signal 302 is input from the serial/parallel converter 6, processing such as error setting is similarly performed.
TL is a control signal sent from the processor CPU to the control circuit 4.

また、1フレームの受信が終了したときは、シリアル/
パラレル変換部6からフレーム受信終了信号301を制
御回路4に出力し、制御回路4はカウンタクリア信号1
03によってカウンタ3をクリアし、制御信号201に
よってファーストイン拳ファーストアウトeレジスタ1
から次の空エリア番号(上位アドレス)を読出してレジ
スタ2にセットすると共に、信号線INTによってプロ
セッサCPUにフレーム信号の受信終了およびフレーム
長を報告する。ファーストイン・ファーストアウトレジ
スタlに格納された空エリア番号が無いときは、受信バ
ッファBUFFが満杯で受信バッファ面が得られないこ
とを示し、この間においては、受信フレームは無視され
る。ファーストインeファーストアウトΦレジスタlと
、レジスタ2と、カウンタ3と、制御回路4と、シリア
ル/パラレル変換部6とで、フレーム受信部RXを構成
している。
Also, when the reception of one frame is completed, the serial/
The parallel converter 6 outputs the frame reception end signal 301 to the control circuit 4, and the control circuit 4 outputs the counter clear signal 1.
03 clears the counter 3, and the control signal 201 clears the first-in first-out e register 1.
The next vacant area number (higher address) is read from the register 2 and set in the register 2, and the completion of frame signal reception and the frame length are reported to the processor CPU via the signal line INT. When there is no empty area number stored in the first-in/first-out register l, it indicates that the receive buffer BUFF is full and the receive buffer surface cannot be obtained, and during this time, the received frame is ignored. The first-in e-first-out Φ register l, the register 2, the counter 3, the control circuit 4, and the serial/parallel converter 6 constitute a frame receiver RX.

プロセッサCPuは、制御回路4からの報告によってフ
レームの受信されたこと、および使用された受信バッフ
ァBUFFの単位長エリア数を知り、また、使用された
単位長エリア番号はあらかじめファーストイン・ファー
ストアウト・レジスタlにセットした番号を記憶させた
内部メモリを参照して知ることが可能である。
The processor CPU learns from the report from the control circuit 4 that a frame has been received and the number of unit length areas of the reception buffer BUFF that have been used, and the unit length area numbers that have been used are determined in advance by first-in, first-out, first-in, first-out, etc. It is possible to know the number set in register l by referring to the internal memory in which it is stored.

そして、受信フレーム信号に対して所定の処理を行ない
、処理終了後不要となった単位長エリアの番号を再びフ
ァーストイン・ファーストアウトレジスタ1にセットす
る。
Then, predetermined processing is performed on the received frame signal, and after the processing is completed, the number of the unit length area that is no longer needed is set in the first-in/first-out register 1 again.

本実施例では、複雑なチェイニング処理を行なうことな
く、可変長のフレーム信号を受信することが可能であり
、受信バッファ8UFFが効率的に使用されてフレーム
信号の受信不能によるフレーム再送回数を減少させるこ
とができるという効果がある。
In this embodiment, it is possible to receive variable length frame signals without performing complicated chaining processing, and the receive buffer 8UFF is used efficiently, reducing the number of frame retransmissions due to the inability to receive frame signals. It has the effect of being able to

発明の効果 以上のように、本発明においては、受信バッファを基本
単位長ごとの複数の単位長エリアに区切って、空の単位
長エリアの番号をファーストイン・ファーストアウト・
レジスタにセットしておき、受信フレーム信号のバイト
数をカウントするカウンタによって前記単位長エリア内
のアドレスを指定し、該カウンタの値が前記単位長エリ
アのバイト数に達したとき前記ファーストインeファー
ストアウト・レジスタから次の空エリア番号を読出して
、該番号によって指定された単位長エリアに受信フレー
ム信号を引続いて書込むように構成したから、複雑なチ
ェイン処理を行なわない噛で、任意長の可変フレーム信
号を受信することが可能であり、また、短いフレーム信
号が連続して受信されるような場合においても受信バッ
ファを侑効に使用し、受信バッファの不足によるフレー
ムの再送回数を減少させることができるという効果があ
る。
Effects of the Invention As described above, in the present invention, the reception buffer is divided into a plurality of unit length areas for each basic unit length, and the numbers of empty unit length areas are assigned as first-in, first-out, first-in, first-out, etc.
The address in the unit length area is specified by a counter that is set in a register and counts the number of bytes of the received frame signal, and when the value of the counter reaches the number of bytes in the unit length area, the first in e first Since the configuration is configured so that the next empty area number is read from the out register and the received frame signal is successively written to the unit length area specified by the number, it is possible to write the received frame signal to any length without performing complicated chain processing. It is possible to receive variable frame signals, and even when short frame signals are received continuously, the receive buffer can be used effectively, reducing the number of frame retransmissions due to lack of receive buffer. It has the effect of being able to

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

図は本発明の一実施例を示すブロック図である。 図において、1:ファーストモノ書ファーストアウトe
レジスタ、2:レジスタ、3:カウンタ、4:制御回路
、5ニステータスレジスタ、6:シリアル/パラレル変
換部、101:カウントアツプ信号、102:カウント
終了信号、103:カウンタクリア信号、201:制御
信号、301:フレーム受信路r信号、302:フレー
ム受信エラー信号、303−ウェイト信号、BUFF 
:受信バッファ、AH:上位アドレス、^L−下位アド
レス、DT:へイトデータ、WR+書込み信号、DB:
データへス、INT :信号線、IN=シリアルデータ
入力端子、 CPU:プロセッサ、RX°フレーム受イ
i:+部。
The figure is a block diagram showing one embodiment of the present invention. In the diagram, 1: First book first out e
Register, 2: Register, 3: Counter, 4: Control circuit, 5 status register, 6: Serial/parallel converter, 101: Count up signal, 102: Count end signal, 103: Counter clear signal, 201: Control signal , 301: Frame reception path r signal, 302: Frame reception error signal, 303-Wait signal, BUFF
: Receive buffer, AH: Upper address, ^L-lower address, DT: Hate data, WR + write signal, DB:
data, INT: signal line, IN=serial data input terminal, CPU: processor, RX° frame reception i: + section.

Claims (1)

【特許請求の範囲】[Claims] 基本単位長のデータを格納できる複数の単位長エリアに
分割された受信バッファと、受信フレーム信号のバイト
数をカウントするためのカウンタと、前記受信バッファ
の空エリア番号を格納するためのファーストイン・ファ
ーストアウト・レジスタと、該ファーストイン・ファー
ストアウト・レジスタの出力を格納するレジスタと、前
記カウンタのカウント値が前記受信バッファの単位長エ
リアのバイト数に達したとき又は1つの受信フレーム信
号の転送を完了したとき前記ファーストイン・ファース
トアウト・レジスタに格納されている次の空エリア番号
を読出して前記レジスタにセットする制御回路とを備え
て、前記レジスタの出力によつて前記受信バッファの単
位長エリアを指定し前記カウンタの出力によつて単位長
エリア内のアドレスを指定することを特徴とするフレー
ム信号受信装置。
A reception buffer divided into a plurality of unit length areas that can store data of a basic unit length, a counter for counting the number of bytes of a received frame signal, and a first-in area number for storing the empty area number of the reception buffer. a first-out register; a register that stores the output of the first-in first-out register; and when the count value of the counter reaches the number of bytes of the unit length area of the receive buffer or transfer of one receive frame signal. and a control circuit that reads the next empty area number stored in the first-in/first-out register and sets it in the register when the first-in/first-out register is completed, and the unit length of the receive buffer is determined by the output of the register. A frame signal receiving device characterized in that an area is specified and an address within the unit length area is specified by the output of the counter.
JP14028884A 1984-07-06 1984-07-06 Frame signal receiving device Pending JPS6120455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14028884A JPS6120455A (en) 1984-07-06 1984-07-06 Frame signal receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14028884A JPS6120455A (en) 1984-07-06 1984-07-06 Frame signal receiving device

Publications (1)

Publication Number Publication Date
JPS6120455A true JPS6120455A (en) 1986-01-29

Family

ID=15265296

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14028884A Pending JPS6120455A (en) 1984-07-06 1984-07-06 Frame signal receiving device

Country Status (1)

Country Link
JP (1) JPS6120455A (en)

Similar Documents

Publication Publication Date Title
US6925512B2 (en) Communication between two embedded processors
JP2720957B2 (en) Packet buffer device
US4733390A (en) Data transmission system
US5151999A (en) Serial communications controller for transfer of successive data frames with storage of supplemental data and word counts
US7484028B2 (en) Burst-capable bus bridges for coupling devices to interface buses
JPH0744567B2 (en) Communication interface device
JPS58105344A (en) Buffer memory controlling system
JPS6120455A (en) Frame signal receiving device
EP1027781B1 (en) Apparatus and method for depacketizing and aligning packetized input data
KR100487199B1 (en) Apparatus and method for data transmission in dma
JPS63258140A (en) General purpose asynchronous receiver-transmitter
US6282203B1 (en) Packet data transmitting apparatus, and method therefor
JPH0471060A (en) Semiconductor integrated circuit
JPS6153985B2 (en)
JP2937218B2 (en) Buffer memory management method for data link protocol controller
JPH1063617A (en) Serial communication device
JP2000003332A (en) Bi-directional bus size conversion circuit
JPH0353736A (en) Reception buffer control system
JPS59151231A (en) Selective reception system
JPH0713910A (en) Adaptor for transfer of data block of variable size to other adapetors via system bus
JPS62225050A (en) Comunication control unit
JP2789654B2 (en) Buffer control method
JPH04306755A (en) Fifo buffer device
JPS6051751B2 (en) Communication control device
JPH04262448A (en) Data transfer apparatus