JPH05300198A - Communication data counting device - Google Patents

Communication data counting device

Info

Publication number
JPH05300198A
JPH05300198A JP4099177A JP9917792A JPH05300198A JP H05300198 A JPH05300198 A JP H05300198A JP 4099177 A JP4099177 A JP 4099177A JP 9917792 A JP9917792 A JP 9917792A JP H05300198 A JPH05300198 A JP H05300198A
Authority
JP
Japan
Prior art keywords
communication data
ram
communication
data
address
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
JP4099177A
Other languages
Japanese (ja)
Inventor
Yuji Hashimoto
裕司 橋本
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 JP4099177A priority Critical patent/JPH05300198A/en
Publication of JPH05300198A publication Critical patent/JPH05300198A/en
Pending legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To provide a device for counting the number of the appearances at respective communication data at a high speed. CONSTITUTION:The device is provided with a RAM 11, communication LSI 12, communication data transfer circuit 13 for setting the communication data to the address of the RAM 11 by the data read requesting signal s1 of the communication LSI 12 and increment circuit 14 for reading the contents of the RAM 11 by the data read requesting signal s1 to make them incremental, and writing the incremented value to the read address. At every communication data reception, the communication data are made to be the address of the RAM 11, the increment circuit 14 is operated, and the number of the appearances is counted by received respective communication data classifications.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、通信データの統計を必
要とするデータ端末装置、またはデータモニタ装置に用
いられる通信データ・カウント装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication data counting device used in a data terminal device or a data monitor device that requires statistics of communication data.

【0002】[0002]

【従来の技術】近年、各種通信装置にマイクロコンピュ
ータを利用して、通信データの出現数を高速度でカウン
トすることが要望されている。
2. Description of the Related Art In recent years, it has been desired to count the number of appearances of communication data at high speed by utilizing a microcomputer for various communication devices.

【0003】以下に従来の通信データ・カウント装置に
ついて、図面を参照しながら説明する。
A conventional communication data counting device will be described below with reference to the drawings.

【0004】図4に示すように従来の通信データ・カウ
ント装置は、通信回線18と装置とのインタフェースを
とる通信LSI33と、プログラムを格納するROM3
2と、通信データのバッファとワークエリアとなるRA
M35と、通信データの出現数をカウントするCPU3
1から構成されている。そして、高速通信に対応する場
合、通信LSI33からRAM35へ通信データを転送
するダイレクト・メモリ・アクセス・コントローラ(以
下、DMACと略す)34を設け実現していた。
As shown in FIG. 4, the conventional communication data counting device includes a communication LSI 33 for interfacing the communication line 18 with the device, and a ROM 3 for storing a program.
2 and RA as a communication data buffer and work area
M35 and CPU3 that counts the number of appearances of communication data
It is composed of 1. In order to support high-speed communication, a direct memory access controller (hereinafter abbreviated as DMAC) 34 that transfers communication data from the communication LSI 33 to the RAM 35 is provided and realized.

【0005】以上のように構成された通信データ・カウ
ント装置について、以下その動作を説明する。まず、R
AM35に通信データが取り込まれたときから処理が開
始され、はじめに、RAM35に取り込まれた通信デー
タをCPU31のアドレスレジスタに格納する。つぎ
に、間接アドレッシングモードを利用した加算命令によ
って、アドレスレジスタに格納されている値が示す内容
をインクリメントする。RAM35に通信データが取り
込まれるたびに、上記処理を繰り返し、通信データの出
現数をCPU31によってカウントしていた。
The operation of the communication data counting device configured as described above will be described below. First, R
The processing is started when the communication data is loaded into the AM 35, and first, the communication data loaded into the RAM 35 is stored in the address register of the CPU 31. Next, the content indicated by the value stored in the address register is incremented by the addition instruction using the indirect addressing mode. Every time the communication data is taken into the RAM 35, the above process is repeated and the number of appearances of the communication data is counted by the CPU 31.

【0006】[0006]

【発明が解決しようとする課題】しかしながら上記従来
の構成では、通信データをカウントするために要するC
PU処理の時間が、カウント可能な通信データの通信速
度を低くするという問題点を有していた。
However, in the above-mentioned conventional configuration, C required for counting communication data is required.
The PU processing time has a problem of decreasing the communication speed of countable communication data.

【0007】本発明は上記従来の問題点を解決するもの
で、通信データの出現数を高速度でカウントすることに
より通信データの通信速度を高めることが可能な通信デ
ータ・カウント装置を提供することを目的とする。
The present invention solves the above-mentioned conventional problems, and provides a communication data counting device capable of increasing the communication speed of communication data by counting the number of appearances of communication data at a high speed. With the goal.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に本発明の通信データ・カウント装置は、RAMと通信
LSIと、通信LSIのデータ読みだし要求信号により
RAMのアドレスに通信データを設定する通信データ転
送回路と、前記データ読みだし要求信号によりRAMの
内容を読みだし、インクリメントし、そのインクリメン
トした値を読みだしたアドレスに書き込むインクリメン
ト回路からなる構成を有している。
In order to achieve the above object, a communication data counting device of the present invention sets a communication data to a RAM address by a RAM, a communication LSI, and a data read request signal of the communication LSI. It comprises a communication data transfer circuit and an increment circuit for reading the contents of the RAM in response to the data read request signal, incrementing it, and writing the incremented value in the read address.

【0009】[0009]

【作用】本発明は上記した構成において、通信データ受
信ごとに、通信データをRAMのアドレスにしインクリ
メント回路を動作させ、RAMの内容をインクリメント
する。通信データを受信するごとに上記動作を繰り返す
ことによって、受信した通信データ別にその出現数を高
速度でカウントすることとなる。
According to the present invention, in the above structure, each time communication data is received, the communication data is set to the address of the RAM and the increment circuit is operated to increment the content of the RAM. By repeating the above operation each time communication data is received, the number of appearances of each received communication data is counted at a high speed.

【0010】[0010]

【実施例】以下本発明の一実施例について、図面を参照
しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0011】図1に示すように、本実施例の通信データ
・カウント装置10は、RAM11と通信回線18と本
装置とのインタフェースをとる通信LSI12と、通信
LSIからのデータ読みだし要求信号s1によりRAM
11のアトレスに通信データを設定する通信データ転送
回路13と、データ読みだし要求信号s1によりRAM
11の内容を読みだしてインクリメントし、そのインク
リメントした値を読みだしたアドレスに書き込むインク
リメント回路14から構成される。
As shown in FIG. 1, the communication data counting device 10 of the present embodiment uses a RAM 11, a communication line 18, a communication LSI 12 for interfacing with this device, and a data read request signal s1 from the communication LSI. RAM
A communication data transfer circuit 13 for setting communication data to the address 11, and a RAM by the data read request signal s1
It is composed of an increment circuit 14 which reads out and increments the contents of 11, and writes the incremented value into the read address.

【0012】以上のように構成された通信データ・カウ
ント装置10について、以下その動作を、図1と図2を
用いて説明する。まず、通信LSI12から通信データ
を受信したことを知らせるデータ読みだし要求信号s1
がオンになると、ダイレクト・メモリ・アクセス・コン
トローラが通信LSI12からメモリへ通信データを転
送することと同様にデータ転送回路13は通信LSI1
2のデータ読みだし信号s2をオンすることにより、通
信LSI12から通信データを取りだし、RAM11の
アドレスaに通信データをセットする。また、データ読
みだし要求信号s1がオンになると、インクリメント回
路14も動作を開始する。RAMコントロール回路17
がRAM11のチップセレクト信号s3とアウトプット
イネーブル信号s4をオンにすると、上記で説明した通
りRAM11のアドレスaとして通信データの値が設定
されていることから、RAM11よりそれまでの出現数
nが取りだされる。その出現数を+1の加算回路15に
通しn+1とし、そのデータをラッチ部16で一時的に
格納する。そして、RAMコントロール回路17がRA
M11のチップセレクト信号s3とライトイネーブル信
号s5をオンにすると、ラッチ部16に取り込まれてい
る出現数n+1がRAM11に書き込まれる。以上に
て、1つの通信データのカウントを終了する。
The operation of the communication data counting device 10 configured as described above will be described below with reference to FIGS. 1 and 2. First, a data read request signal s1 notifying that communication data has been received from the communication LSI 12
When is turned on, the data transfer circuit 13 causes the communication LSI 1 to operate in the same manner as the direct memory access controller transfers communication data from the communication LSI 12 to the memory.
By turning on the data reading signal s2 of No. 2, the communication data is taken out from the communication LSI 12, and the communication data is set to the address a of the RAM 11. Further, when the data read request signal s1 is turned on, the increment circuit 14 also starts operating. RAM control circuit 17
When the chip select signal s3 and the output enable signal s4 of the RAM 11 are turned on, the value of the communication data is set as the address a of the RAM 11 as described above. Be issued. The number of appearances is passed through the addition circuit 15 of +1 to be n + 1, and the data is temporarily stored in the latch unit 16. Then, the RAM control circuit 17
When the chip select signal s3 and the write enable signal s5 of M11 are turned on, the number of appearances n + 1 captured in the latch section 16 is written in the RAM 11. Thus, the counting of one communication data is completed.

【0013】つぎに図3に示すように、本発明の通信デ
ータ・カウント装置10を利用した一実施例のシステム
は、システム全体の制御を行うCPU21と、外部との
信号の入出力を行うI/O25と、プログラムを格納す
るROM26と、ワークエリアとなるRAM27と、通
信データ・カウント装置10とCPUバスとの接続と切
り離しを行いRAM11のデータの読みだし,書き込み
をCPU21で可能とするためのトライステートバッフ
ァ22,23,24から構成されている。カウントを開
始する前に、CPU21より通信データ・カウント装置
10内のRAM11をすべて0にイニシャライズする。
そののち、通信データのカウントを開始する信号s6を
オンにすることによって、データ読みだし要求信号s1
が動作可能となるようにし、通信データ・カウント装置
10がカウントを開始する。カウントの終了は、カウン
トイネーブル信号s6をオフにすることによって行う。
そして、たとえば、通信データ0100の出現数を知る
場合、CPU21はRAM11の0100番地のデータ
を読むことによって行うことができる。
Next, as shown in FIG. 3, the system of one embodiment using the communication data counting device 10 of the present invention is a CPU 21 for controlling the entire system and an I / O for inputting / outputting signals to / from the outside. / O25, a ROM 26 for storing a program, a RAM 27 as a work area, and a connection and disconnection between the communication data counting device 10 and the CPU bus to allow the CPU 21 to read and write data in the RAM 11. It is composed of tri-state buffers 22, 23 and 24. Before starting the counting, the CPU 21 initializes all the RAM 11 in the communication data counting device 10 to zero.
After that, by turning on the signal s6 that starts counting the communication data, the data read request signal s1
Are enabled and the communication data counting device 10 starts counting. The count is ended by turning off the count enable signal s6.
Then, for example, when knowing the number of appearances of the communication data 0100, the CPU 21 can do this by reading the data at the address 0100 of the RAM 11.

【0014】[0014]

【発明の効果】以上の実施例から明らかなように、本発
明の通信データ・カウント装置によれば、1つの通信デ
ータのカウントに要する時間は通信LSIの通信データ
の読みだし時間+RAMのアクセス時間の2倍(リード
サイクルとライトサイクルの和)+ゲート遅延の時間と
なり、通信データを高速度でカウントすることができ、
したがってカウント可能な通信データの通信速度を向上
させる優れた通信データ・カウント装置を実現できるも
のである。
As is apparent from the above embodiments, according to the communication data counting apparatus of the present invention, the time required to count one communication data is the communication data read time of the communication LSI + RAM access time. 2 times (sum of read cycle and write cycle) + gate delay time, and communication data can be counted at high speed.
Therefore, it is possible to realize an excellent communication data counting device that improves the communication speed of countable communication data.

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

【図1】本発明の一実施例の通信データ・カウント装置
のブロック図
FIG. 1 is a block diagram of a communication data counting device according to an embodiment of the present invention.

【図2】同装置の動作タイミングチャートFIG. 2 is an operation timing chart of the device.

【図3】同実施例の通信データ・カウント装置を利用し
たシステムのブロック図
FIG. 3 is a block diagram of a system using the communication data counting device of the same embodiment.

【図4】従来の通信データ・カウント装置のブロック図FIG. 4 is a block diagram of a conventional communication data counting device.

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

10 通信データ・カウント装置 11 RAM 12 通信LSI 13 通信データ転送回路 14 インクリメント回路 10 communication data / counting device 11 RAM 12 communication LSI 13 communication data transfer circuit 14 increment circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 RAMと、通信LSIと、LSIのデー
タ読みだし要求信号によりRAMのアドレスに通信デー
タを設定する通信データ転送回路と、前記データ読みだ
し要求信号により前記RAMの内容を読みだしてインク
リメントし、そのインクリメントした値を読みだしたア
ドレスに書き込むインクリメント回路を設け、通信デー
タ受信ごとに、通信データを前記RAMのアドレスにし
前記インクリメント回路を動作させ、受信した通信デー
ダ別に出現数を高速度でカウントするように配された通
信データ・カウント装置。
1. A RAM, a communication LSI, a communication data transfer circuit for setting communication data to an address of the RAM by a data read request signal of the LSI, and a content of the RAM read by the data read request signal. An increment circuit is provided for incrementing and writing the incremented value to the read address. Whenever communication data is received, the communication data is set to the address of the RAM and the increment circuit is operated to increase the number of appearances for each received communication data at high speed. Communication data counting device arranged to count in.
JP4099177A 1992-04-20 1992-04-20 Communication data counting device Pending JPH05300198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4099177A JPH05300198A (en) 1992-04-20 1992-04-20 Communication data counting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4099177A JPH05300198A (en) 1992-04-20 1992-04-20 Communication data counting device

Publications (1)

Publication Number Publication Date
JPH05300198A true JPH05300198A (en) 1993-11-12

Family

ID=14240373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4099177A Pending JPH05300198A (en) 1992-04-20 1992-04-20 Communication data counting device

Country Status (1)

Country Link
JP (1) JPH05300198A (en)

Similar Documents

Publication Publication Date Title
US6519689B2 (en) Method and system for processing pipelined memory commands
US5732284A (en) Direct memory access (DMA) controller utilizing a delayed column address strobe (CAS) signal
KR920002831B1 (en) Data transfer control system
US6292853B1 (en) DMA controller adapted for transferring data in two-dimensional mapped address space
JP3058430B2 (en) Key scan device
JPH05300198A (en) Communication data counting device
JPH04360425A (en) Semiconductor storage device
JP2953169B2 (en) Data processing device
JPS61265653A (en) Direct memory access system
KR20000065450A (en) Bus Interface System and Bus Interface Method using the system
JPH0736806A (en) Dma system
JP2533958B2 (en) Data preceding set device
JP2570271B2 (en) Semiconductor memory controller
JP2884620B2 (en) Digital image processing device
JPH0317756A (en) Storage access system
JPS6021654A (en) Buffer memory
JPH06161945A (en) Memory data transfer device
JPH07200456A (en) External device interface for cpu
JPS6369326A (en) Data converter
JPH02153451A (en) Bus control system
KR20030049448A (en) Extension apparatus and method for memory bus
JPH10116247A (en) Microcomputer
JPS62226359A (en) Peripheral module access system
JPS63142446A (en) Address generating system
JPS62111343A (en) Channel control circuit