JPH04129086A - Stuff circuit - Google Patents

Stuff circuit

Info

Publication number
JPH04129086A
JPH04129086A JP2249150A JP24915090A JPH04129086A JP H04129086 A JPH04129086 A JP H04129086A JP 2249150 A JP2249150 A JP 2249150A JP 24915090 A JP24915090 A JP 24915090A JP H04129086 A JPH04129086 A JP H04129086A
Authority
JP
Japan
Prior art keywords
read
fifo
circuit
data
amount
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
JP2249150A
Other languages
Japanese (ja)
Inventor
Hiroki Yamada
宏樹 山田
Masanori Sawai
澤井 正典
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP2249150A priority Critical patent/JPH04129086A/en
Publication of JPH04129086A publication Critical patent/JPH04129086A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable making a circuit scale small by providing a FIFO outputting a half flag, a PG circuit inputting a read-out clock and half flag of FIFO to output a gate signal, and an AND circuit taking and AND of gate signal and clock to output the read-out clock of FIFO. CONSTITUTION:When the data quantity remained in the FIFO 3 is larger than the half of the storage capacity, the active period of the gate signal (f) is made larger than the average read-out time slot by the PG circuit 4 to increase the data quantity to be read out from the FIFO 3. On the contrary, when the data quantity amount remained in the FIFO 3 is smaller than a half of the storage capacity, the active period of the read-out gate signal (f) is made shorter than the average read-out time slot by the PG circuit 4 to reduce the data quantity to be read out from the FIFO 3. In the AND circuit 5, the AND of the read-out gate signal (f) and read-out clock (g) inputted from a read-out clock input terminal 7 is taken to output the read-out clock (d) of FIFO to the FIFO 3. By this procedure, a count circuit for read/write data quantity is unnecessitated and the circuit scale can be reduced.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は伝送路に非同期なデータをスタッフし伝送する
スタッフ回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a stuffing circuit for stuffing and transmitting asynchronous data onto a transmission path.

従来の技術 従来のスタッフ回路を第3図を参照して説明する。デー
タ入力端子8から入力した入力データhは書き込みクロ
ック入力端子9より入力した書き込みクロックiのタイ
ミングでFIFOIOに書き込まれる。 FIFOIO
はFIFO読み出しクロックにのタイミングで出力伝送
路データjをデータ出力端子13に出力する。読み書き
データ量カウント回路15は書き込みクロックiとFI
FO読みだしクロックkをカウントして書き込んだデー
タ量と読み出したデータ量の差を表すデータ量の差分J
を出力する。データ量の差分ρがデータの書き込み量が
読み出し量より大きいことを表しているとき、PG回路
11はゲート信号mのアクティブの区間を平均読み出し
タイムスロットより長くし、FIFOIOから読みだす
データ量を多くする0反対にデータ量の差分、1データ
の書き込み量が読み出し量より少ないことを表している
とき、PG0回路1はゲート信号mのフクティブの区間
を平均読み出しタイムスロットJり短くし、FIFOI
Oから読み出すデータ量を少なくする。AND回路12
はゲート信号mと読み出しりtツクnのANDをとりF
IFO読み出しクロックkをJ力する。この様にしてF
IFOIOのデータの読み+を量を制御し、書き込み量
と読み出し量を平均す2と一致するようにする。
BACKGROUND OF THE INVENTION A conventional stuff circuit will be explained with reference to FIG. Input data h input from the data input terminal 8 is written to the FIFOIO at the timing of the write clock i input from the write clock input terminal 9. FIFOIO
outputs the output transmission line data j to the data output terminal 13 at the timing of the FIFO read clock. The read/write data amount counting circuit 15 uses the write clock i and the FI
Data amount difference J that represents the difference between the written data amount and the read data amount by counting the FO read clock k
Output. When the data amount difference ρ indicates that the amount of data written is larger than the amount read, the PG circuit 11 makes the active section of the gate signal m longer than the average read time slot, and increases the amount of data read from the FIFOIO. On the other hand, when the difference in data amount, 1, indicates that the write amount of data is less than the read amount, the PG0 circuit 1 shortens the fuction section of the gate signal m by the average read time slot J, and the FIFOI
Reduce the amount of data read from O. AND circuit 12
is the AND of the gate signal m and the readout ttsukn.
Set the IFO read clock k. In this way F
The read amount of IFOIO data is controlled so that the average write amount and read amount equal 2.

発明が解決しようとする課題 しかしながら、従来方式ではFIFO以外にFIFO0
読み書きデータをカウントする回路が必要でJす、回路
規模が大きくなるという欠点があった。
Problems to be Solved by the Invention However, in the conventional system, in addition to FIFO, FIFO0
It requires a circuit to count read and write data, which has the disadvantage of increasing the circuit scale.

本発明は従来の上記実情に鑑みてなされたもσであり、
従って本発明の目的は、従来の技術にe在する上記欠点
を解消し、回路規模を小さくす2ことを可能とした新規
なスタッフ回路を提供す2ことにある。
The present invention was made in view of the above-mentioned conventional circumstances, and
Accordingly, an object of the present invention is to provide a novel stuffing circuit which eliminates the above-mentioned drawbacks existing in the prior art and makes it possible to reduce the circuit scale.

課題を解決するための手段 上記目的を達成する為に、本発明に係るスタッフ回路は
、FIFO内部のデータ量が記憶容量の半分より上か下
かを表すハーフフラグを出力するFIFOと、クロック
及び前記ハーフフラグを入力してFIFOからの出力デ
ータの読み出し量を制御するゲート信号を出力するPG
回路と、前記ゲート信号と前記クロックとのANDをと
りその出力が前記FIFOの読み比しタロツクを出力す
るAND回路とを備えて構成され、FIFO内部のデー
タ量が記憶容量の半分より上の時にはデータの平均読み
出し量より多く読み出し、FIFO内部のデータ量が記
憶容量の半分より下の時にはデータの平均読み出し量よ
り少なく読み出すことによりスタッフ動作を行うことを
特徴としている。
Means for Solving the Problems In order to achieve the above object, the stuffing circuit according to the present invention includes a FIFO that outputs a half flag indicating whether the amount of data inside the FIFO is above or below half of the storage capacity, a clock and A PG that inputs the half flag and outputs a gate signal that controls the amount of output data read from the FIFO.
and an AND circuit that performs an AND operation on the gate signal and the clock, and outputs a tally signal based on the reading of the FIFO, and when the amount of data inside the FIFO is more than half of the storage capacity, It is characterized in that a stuffing operation is performed by reading more data than the average amount of data read, and when the amount of data inside the FIFO is less than half of the storage capacity, reading less than the average amount of data read.

実施例 次に本発明をその好ましい一実施例について図面を参照
しながら具体的に説明する。
Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図であり
、第2図はそのタイミング図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a timing diagram thereof.

第1図、第2図を参照するに、データ入力端子1から入
力した入力データaは書き込みクロック入力端子2より
入力した書き込みクロックbのタイミングでFIFO3
に書き込まれる。FIFO3は、FIFO読み出しクロ
ックdのタイミングで出力データCをデータ出力端子6
に出力すると共に、FIF(3内部のデータ残量が記憶
容量の半分よりも上か下かを示すハーフフラグeも出力
する。 PIFO3内部に残ったデータ量が記憶容量の
半分より上の時には、PG0回路はゲート信号fのアキ
ティブの区間を平均読み出しタイムスロットより長くし
、FIFO3から読み出すデータ量を多くする4反対に
PIFO3内部に残ったデータ量が記憶容量の半分より
下の時には、PG0回路は読みだしゲート信号fのアク
ティブの区間を平均読み已しタイムスロットより短くし
、F I、FO3から読み出すデータ量を少なくする。
Referring to FIGS. 1 and 2, input data a input from data input terminal 1 is transferred to FIFO 3 at the timing of write clock b input from write clock input terminal 2.
will be written to. FIFO3 outputs output data C to data output terminal 6 at the timing of FIFO read clock d.
At the same time, it also outputs a half flag e indicating whether the remaining amount of data inside PIFO3 is above or below half of the storage capacity.When the amount of data remaining inside PIFO3 is above half of the storage capacity, The PG0 circuit makes the active section of the gate signal f longer than the average read time slot to increase the amount of data read from FIFO3.4On the contrary, when the amount of data remaining inside PIFO3 is less than half of the storage capacity, the PG0 circuit increases the amount of data read from FIFO3. The active period of the read gate signal f is made shorter than the average read length time slot to reduce the amount of data read from FI and FO3.

 AND回路5で−は、読み出しゲート信号でと読み出
しクロック入力端子7より入力した読み出しクロックg
とのANDをとり、 FIFO読み呂しタロツクdをF
IFO3に出力する。この様にしてFIFO3のデータ
の読み出し量を制御し、書き込み量と読み出し量を平均
すると一致するようにする。
In the AND circuit 5, - is the read gate signal and the read clock g input from the read clock input terminal 7.
Take AND with FIFO reading and F
Output to IFO3. In this way, the amount of data read from the FIFO 3 is controlled so that the amount of data written and the amount of data read are equal on average.

発明の詳細 な説明したように、本発明によれば、従来方式と比べて
読み書きデータ量カウント回路が必要でなくなり、回路
規模を小さくすることが可能となる。
As described in detail, the present invention eliminates the need for a read/write data amount counting circuit compared to the conventional system, making it possible to reduce the circuit scale.

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

第1図は本発明の一実施例を示すブロック構成図、第2
図は第1図の動作タイミング図、第3図は従来回路のブ
ロック図である。 1・・・データ入力端子、2・・・書き込みクロック入
力端子、3・・・FIFO14・・・PG回路、5・・
・AND回路、6・・・データ出力端子、7・・・読み
出しクロック入力端子、8・・・データ入力端子、9・
・・書き込みクロック入力端子、10・・・FIFOl
ll−・・PG回路、12・・・AND回路、13・・
・データ出力端子、14・・・読み出しクロック入力端
子、15・・・読み書きデータ量カウント回路、a・・
・入力データ、b・・・書き込みクロック、C・・・出
力データ、d・・・FIFO読み出しクロック、e・・
・ハ−フッラグ、f・・・ゲート信号、g・・読み出し
クロック、h・・・入力データ、i・・書き込みクロッ
ク、j・・・出力データ、k・・・FIFO読み出しク
ロック、ρ・・・データ量の差分、m・・・ゲート信号
、n・・・読み比しクロック
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure is an operation timing diagram of FIG. 1, and FIG. 3 is a block diagram of a conventional circuit. 1...Data input terminal, 2...Write clock input terminal, 3...FIFO14...PG circuit, 5...
・AND circuit, 6... data output terminal, 7... read clock input terminal, 8... data input terminal, 9...
...Write clock input terminal, 10...FIFOl
ll-...PG circuit, 12...AND circuit, 13...
・Data output terminal, 14...Read clock input terminal, 15...Read/write data amount count circuit, a...
・Input data, b...Write clock, C...Output data, d...FIFO read clock, e...
・Half flag, f...gate signal, g...read clock, h...input data, i...write clock, j...output data, k...FIFO read clock, ρ... Difference in data amount, m...gate signal, n...reading ratio clock

Claims (2)

【特許請求の範囲】[Claims] (1)、FIFO内部のデータ量が記憶容量の半分より
“上”か“下”かを表すハーフフラグを出力するFIF
Oと、該FIFOの読み出しクロック及び前記ハーフフ
ラグを入力し前記FIFOからの出力データの読み出し
量を制御するゲート信号を出力するPG回路と、前記ゲ
ート信号と前記クロックとのANDをとり前記FIFO
の読み出しクロックを出力するAND回路とを備えたこ
とを特徴とするスタッフ回路。
(1) A FIF that outputs a half flag indicating whether the amount of data inside the FIFO is “above” or “below” half of the storage capacity.
a PG circuit which inputs the read clock of the FIFO and the half flag and outputs a gate signal for controlling the amount of output data read from the FIFO;
and an AND circuit that outputs a read clock.
(2)、前記PG回路は、前記ハーフフラグが前記“上
”を表す場合には前記ゲート信号のアクティブ区間を平
均読み出しタイムスロットより長くして前記FIFOか
ら読み出すデータ量を多くし、前記ハーフフラグが前記
“下”を表す場合には前記ゲート信号のアクティブ区間
を平均読み出しタイムスロットより短くして前記FIF
Oから読み出すデータ量を少なくすることを更に特徴と
する請求項(1)に記載のフタッフ回路。
(2) The PG circuit increases the amount of data read from the FIFO by making the active period of the gate signal longer than the average read time slot when the half flag indicates the "above" state, and increases the amount of data read from the FIFO. represents the "lower", the active period of the gate signal is made shorter than the average read time slot, and the FIF
The flap circuit according to claim 1, further characterized in that the amount of data read from O is reduced.
JP2249150A 1990-09-19 1990-09-19 Stuff circuit Pending JPH04129086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2249150A JPH04129086A (en) 1990-09-19 1990-09-19 Stuff circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2249150A JPH04129086A (en) 1990-09-19 1990-09-19 Stuff circuit

Publications (1)

Publication Number Publication Date
JPH04129086A true JPH04129086A (en) 1992-04-30

Family

ID=17188656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2249150A Pending JPH04129086A (en) 1990-09-19 1990-09-19 Stuff circuit

Country Status (1)

Country Link
JP (1) JPH04129086A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017097940A (en) * 2015-11-26 2017-06-01 ルネサスエレクトロニクス株式会社 Semiconductor device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017097940A (en) * 2015-11-26 2017-06-01 ルネサスエレクトロニクス株式会社 Semiconductor device
US10203892B2 (en) 2015-11-26 2019-02-12 Renesas Electronics Corporation Semiconductor device

Similar Documents

Publication Publication Date Title
CA2154038A1 (en) Video optimized media streamer data flow architecture
JPH04129086A (en) Stuff circuit
JPS55115121A (en) Input and output control unit possible for duplicated recording
JPH01180156A (en) Packet switching circuit
KR890013647A (en) PCM signal editing device
JP2576811B2 (en) Cell transmission control method
JPS57148467A (en) Original reader
JP2740350B2 (en) Timer correction circuit
JPH04200133A (en) Control data generating device
JP2944549B2 (en) Cell processing circuit
JPS5939051B2 (en) data buffer circuit
JPH0388196A (en) Semiconductor memory
JPH07253920A (en) Fifo ram controller
JPH06187123A (en) Data input/output device
JPH01124024A (en) Control circuit in initial state of fifo
JPH0355936A (en) Atm cell processing system
JPH05109262A (en) Memory circuit
JPS6348027A (en) Data reception count circuit
JPS62208719A (en) Serial-parallel converter
JPH04265597A (en) Fifo memory device
JPH04276376A (en) Fifo memory provided with pointer en function
KR950020174A (en) Interface device for data storage of digital compact cassettes
JPH0376558B2 (en)
JPH0434790A (en) Fifo type memory
JP2000200176A (en) Data storage amount monitoring device