JP2003050748A - Buffer memory circuit - Google Patents

Buffer memory circuit

Info

Publication number
JP2003050748A
JP2003050748A JP2001236524A JP2001236524A JP2003050748A JP 2003050748 A JP2003050748 A JP 2003050748A JP 2001236524 A JP2001236524 A JP 2001236524A JP 2001236524 A JP2001236524 A JP 2001236524A JP 2003050748 A JP2003050748 A JP 2003050748A
Authority
JP
Japan
Prior art keywords
address
write
data
read
parity
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
JP2001236524A
Other languages
Japanese (ja)
Inventor
Tatsuya Kubota
達也 久保田
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
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 filed Critical NEC Corp
Priority to JP2001236524A priority Critical patent/JP2003050748A/en
Publication of JP2003050748A publication Critical patent/JP2003050748A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a buffer memory circuit, capable of minimizing malfunction time due to temporary noise, etc., and being automatically restored so as not to exert adverse effects on communications afterwards. SOLUTION: Data quantity in a dual port memory 1 is detected with an address difference detecting part 60 and a buffer capacity monitoring part 61, and the malfunctions of a write address and a read address are detected by comparing the pieces of data quantity with an address control operation comparing part 7. In addition, the malfunctions of the write address and the read address which cannot be detected with an address control part 6 are detected using a parity generating part 3, by adding a parity shifted by one address from write data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通信システム等に
用いられるバッファメモリ回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer memory circuit used in a communication system or the like.

【0002】[0002]

【従来の技術】図10は従来例のバッファメモリ回路を
示すブロック図である。バッファメモリ回路701は送
信データを一度デュアルポートメモリ702に書き込
み、その書き込んだデータサイズを送信データサイズ通
知により送信制御部703に通知して送信の要求を行
う。送信制御部703は送信回線の制御を行った後にリ
ード側アドレスカウンタ704に送信タイミング信号を
送る。リード側アドレスカウンタ704はこの送信タイ
ミング信号に従って要求した送信データサイズ分のデー
タをデュアルポートメモリ702から読み出し、送信制
御部703に渡すことによってデータ送信を行う。70
5はライト側アドレスカウンタ、706はデータサイズ
カウンタ&保持回路、707は送信データ生成部を示
す。
2. Description of the Related Art FIG. 10 is a block diagram showing a conventional buffer memory circuit. The buffer memory circuit 701 once writes the transmission data to the dual port memory 702, notifies the transmission control unit 703 of the written data size by the transmission data size notification, and requests the transmission. The transmission control unit 703 sends a transmission timing signal to the read side address counter 704 after controlling the transmission line. The read side address counter 704 performs data transmission by reading the data of the requested transmission data size from the dual port memory 702 according to this transmission timing signal and passing it to the transmission control unit 703. 70
Reference numeral 5 is a write side address counter, 706 is a data size counter & holding circuit, and 707 is a transmission data generator.

【0003】[0003]

【発明が解決しようとする課題】従来のバッファメモリ
回路では、デュアルポートメモリのリード側アドレスカ
ウンタが外部からの一時的な雑音等により誤動作した場
合、書き込み側から読み出し側に読み出しデータサイズ
しか通知していないために、データを書き込んだアドレ
スと読み出すアドレスが不一致となってしまう。この誤
動作が発生した場合にはその誤動作を延々と続けてしま
う。その結果、この送信バッファ回路を使用してDHL
C等のブロック化されたデータを送信しても、デュアル
ポートメモリに書き込んだアドレスと異なるアドレスの
データを読み出してしまうために、送信バッファ回路以
降の受信側ではパケットが全てエラーとなってしまうと
いう欠点があった。更に、その誤動作を自己復旧できな
いために、一時的な雑音による誤動作がそれ以降雑音が
ないにも拘わらず、通信の全てをエラーとしてしまう問
題があった。
In the conventional buffer memory circuit, when the read side address counter of the dual port memory malfunctions due to temporary noise from the outside, the write side notifies the read side only of the read data size. Therefore, the address where the data is written and the address where the data is read do not match. When this malfunction occurs, the malfunction continues endlessly. As a result, using this transmission buffer circuit, DHL
Even if a block of data such as C is transmitted, data at an address different from the address written in the dual port memory is read, so that all packets will be in error on the receiving side after the transmission buffer circuit. There was a flaw. Further, since the malfunction cannot be self-recovered, there is a problem that the malfunction due to the temporary noise causes all the communication to be an error although there is no noise thereafter.

【0004】本発明は、上記従来の問題点に鑑みなされ
たもので、その目的は、一時的な雑音等による誤動作時
間を最小限に抑えることができ、それ以降の通信に悪影
響を及ぼさないように自己復旧することが可能なバッフ
ァメモリ回路を提供することにある。
The present invention has been made in view of the above conventional problems, and an object thereof is to minimize a malfunction time due to a temporary noise or the like so as not to adversely affect communication thereafter. Another object of the present invention is to provide a buffer memory circuit capable of self-recovery.

【0005】[0005]

【課題を解決するための手段】本発明は、上記目的を達
成するため、書き込みデータを書き込みクロックに同期
してデュアルポートメモリに書き込み、前記書き込みク
ロックとは異なる読み出しクロックに同期して前記デュ
アルポートメモリからデータを読み出すバッファメモリ
回路において、前記書き込みデータに対しパリティ演算
を行い、得られた垂直パリティを書き込みデータに付加
する手段と、書き込みデータとは1アドレスずれたデー
タに対しパリティ演算を行い、書き込みデータとは1ア
ドレスずらしたパリティを書き込みデータに付加する手
段と、前記デュアルポートメモリから読み出されたデー
タから垂直パリティを作成し、作成したパリティと読み
出しデータに含まれている垂直パリティとを比較する手
段と、前記読み出しデータから1アドレスずらしたパリ
ティを作成し、作成したパリティと読み出しデータに含
まれている1アドレスずらしたパリティとを比較する手
段と、前記垂直パリティが一致し、且つ、1アドレスず
らしたパリティが不一致であった時に書き込みアドレス
及び読み出しアドレスの誤動作を検出する手段とを備え
たことを特徴としている。
In order to achieve the above object, the present invention writes write data in a dual port memory in synchronization with a write clock, and synchronizes in a dual port memory with a read clock different from the write clock. In a buffer memory circuit for reading data from a memory, a means for performing a parity operation on the write data and adding the obtained vertical parity to the write data, and a parity operation for the data shifted by one address from the write data, The write data includes a means for adding a parity shifted by one address to the write data, a vertical parity created from the data read from the dual port memory, and the created parity and the vertical parity included in the read data. Means for comparing and the reading A means for creating a parity shifted by one address from data and comparing the created parity with a parity shifted by one address included in the read data is the same as the vertical parity, and the parity shifted by one address does not match. And a means for detecting a malfunction of the write address and the read address.

【0006】また、本発明は、上記目的を達成するた
め、書き込みデータを書き込みクロックに同期してデュ
アルポートに書き込み、前記書き込みクロックとは異な
る読み出しクロックに同期して前記デュアルポートメモ
リからデータを読み出すバッファメモリ回路において、
書き込みアドレスと読み出しアドレスの差分から前記デ
ュアルポートメモリのデータ量を算出する手段と、前記
書き込みアドレスが変化した時に書き込みアドレス値を
出力する手段を含み当該書き込みアドレス値と読み出し
アドレス値に基づいて前記デュアルポートメモリのデー
タ量を監視する手段と、前記データ量算出手段で得られ
たデータ量と前記監視手段で得られたデータ量とを比較
することにより書き込みアドレス及び読み出しアドレス
の誤動作を検出する手段とを備えたことを特徴としてい
る。
To achieve the above object, the present invention writes write data to a dual port in synchronization with a write clock, and reads data from the dual port memory in synchronization with a read clock different from the write clock. In the buffer memory circuit,
The dual port memory includes means for calculating a data amount of the dual port memory from a difference between a write address and a read address, and means for outputting a write address value when the write address changes, based on the write address value and the read address value. Means for monitoring the data amount of the port memory, and means for detecting a malfunction of the write address and the read address by comparing the data amount obtained by the data amount calculating means with the data amount obtained by the monitoring means. It is characterized by having.

【0007】[0007]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

【0008】(第1の実施形態)図1は本発明のバッフ
ァメモリ回路の第1の実施形態の構成を示すブロック図
である。図1において、1はデータを格納するデュアル
ポートメモリ1、2は書き込みアドレス14を書き込み
クロック12により生成する書き込み制御部、3はデュ
アルポートメモリ1への書き込みデータに付加するパリ
ティを生成するパリティ生成部、4はデュアルポートメ
モリ1から読み出されたデータのパリティを照合するパ
リティ照合部、5はデュアルポートメモリ1への読み出
しアドレス16を読み出しクロック18により生成する
読み出し制御部である。
(First Embodiment) FIG. 1 is a block diagram showing a configuration of a buffer memory circuit according to a first embodiment of the present invention. In FIG. 1, reference numeral 1 is a dual port memory 1 for storing data, 2 is a write control unit for generating a write address 14 by a write clock 12, and 3 is a parity generation for generating a parity to be added to write data to the dual port memory 1. Reference numeral 4 denotes a parity collating unit that collates the parity of data read from the dual port memory 1, and 5 a read control unit that generates a read address 16 for the dual port memory 1 by a read clock 18.

【0009】また、61は後述するように書き込みアド
レス14と読み出しアドレス16に基づいてデュアルポ
ートメモリ1内のデータ蓄積量を監視するバッファ蓄積
容量監視部、60は書き込みアドレス14と読み出しア
ドレス16の差分からデュアルポートメモリ1内のデー
タ蓄積量を算出するアドレス差分検出部である。
Further, 61 is a buffer storage capacity monitoring unit for monitoring the data storage amount in the dual port memory 1 based on the write address 14 and the read address 16 as will be described later, and 60 is the difference between the write address 14 and the read address 16. Is an address difference detection unit that calculates the data storage amount in the dual port memory 1.

【0010】更に、7は書き込み制御部2と読み出し制
御部5及びアドレス制御部6の誤動作検出、あるいは復
旧動作を行うためのリセット信号を生成するために、ア
ドレス差分検出部60で算出されたメモリ1内のデータ
蓄積量19とバッファ蓄積容量監視部61で監視したメ
モリ1内のデータ蓄積量20を比較するアドレス制御動
作比較部、8はこの比較結果が不一致の時、あるいは誤
動作監視用パリティエラー22の発生時にリセット信号
を生成する誤動作復旧部である。
Further, 7 is a memory calculated by the address difference detection unit 60 in order to generate a reset signal for detecting a malfunction of the write control unit 2, the read control unit 5, and the address control unit 6 or performing a recovery operation. An address control operation comparison unit that compares the data storage amount 19 in 1 with the data storage amount 20 in the memory 1 monitored by the buffer storage capacity monitoring unit 61. Reference numeral 8 indicates a parity error when this comparison result does not match or a malfunction error monitoring parity error. 22 is a malfunction recovery unit that generates a reset signal when 22 occurs.

【0011】次に、本実施形態の動作を図2〜図7を用
いて説明する。図2はパリティ付加部3の構成例を示す
ブロック図である。パリティ付加部3はアドレス制御部
6では検出できないような書き込みアドレス及び読み出
しアドレスの誤動作を検出できるようにパリティを生成
する。図3はデュアルポートメモリ1へのデータ書き込
み例を示す。デュアルポートメモリ1に書き込むデータ
を例えば8ビット(7〜0ビット目)とすると、デュア
ルポートメモリ1のアドレス毎の監視用に垂直パリティ
(8ビット目)をパリティ生成部300で作成し、雑音
等の誤動作監視用に書き込むデータとは1アドレスずら
したパリティ(9ビット目)をレジスタ301により生
成し、デュアルポートメモリ1に書き込む。
Next, the operation of this embodiment will be described with reference to FIGS. FIG. 2 is a block diagram showing a configuration example of the parity adding unit 3. The parity adding unit 3 generates a parity so that a malfunction of a write address and a read address that cannot be detected by the address control unit 6 can be detected. FIG. 3 shows an example of writing data to the dual port memory 1. If the data to be written in the dual port memory 1 is, for example, 8 bits (7th to 0th bits), vertical parity (8th bit) for monitoring for each address of the dual port memory 1 is created by the parity generation unit 300, and noise etc. The parity (9th bit) shifted by one address from the data to be written for malfunction monitoring is generated by the register 301 and written in the dual port memory 1.

【0012】具体的には、例えば、図3に示すようにn
+1アドレスのデータを例にとると、n+1アドレスの
0〜7ビットのデータに対してパリティ演算を行い、そ
の結果を8ビット目に垂直パリティとして書き込む。ま
た、n+1アドレスの1つ前のnアドレスの0〜8ビッ
トのデータに対してパリティ演算を行い、その結果を9
ビット目に書き込む。これは、書き込むデータとは1ア
ドレスずらしたパリティである。
Specifically, for example, as shown in FIG.
Taking the data of the +1 address as an example, a parity operation is performed on the 0 + 1 to 7-bit data of the n + 1 address, and the result is written in the 8th bit as vertical parity. In addition, a parity operation is performed on the 0 to 8 bit data of the n address immediately before the n + 1 address, and the result is 9
Write in the bit. This is parity to which data to be written is shifted by one address.

【0013】このような方法では、例えば、雑音等によ
り読み出しアドレス16が“5”から“6”にならずに
“7”に飛んだような誤動作が発生した場合、パリティ
照合部4ではデュアルポートメモリ1から読み出したデ
ータ15に対するパリティ照合結果として、デュアルポ
ートメモリ1の8ビット目に書き込んだ垂直パリティで
はエラーを検出することができない。しかし、デュアル
ポートメモリ1の9ビット目にデータとは1アドレスず
らしたパリティを書き込んでいるため、アドレスの飛び
誤動作に関してもエラーを検出できる。
In such a method, for example, when a malfunction occurs such that the read address 16 jumps from "5" to "6" due to noise or the like to "7", the parity check unit 4 uses the dual port. As a result of the parity collation for the data 15 read from the memory 1, the vertical parity written in the 8th bit of the dual port memory 1 cannot detect the error. However, since the parity shifted by one address from the data is written at the 9th bit of the dual port memory 1, an error can be detected even with respect to an address jump malfunction.

【0014】図4はパリティ照合部4の構成例を示すブ
ロック図である。パリティ生成部4はデュアルポートメ
モリ1から読み出したデータ15からパリティ400を
生成する。これは、データ15の0〜7ビットに対して
パリティ演算を行い、その結果をパリティ400として
出力する。一致検出部41ではパリティ400とデュア
ルポートメモリ1から読み出したデータ15中に含まれ
ている垂直パリティとを比較し、一致検出を行う。
FIG. 4 is a block diagram showing an example of the configuration of the parity collation unit 4. The parity generation unit 4 generates the parity 400 from the data 15 read from the dual port memory 1. This performs a parity operation on 0 to 7 bits of data 15 and outputs the result as parity 400. The coincidence detection unit 41 compares the parity 400 with the vertical parity included in the data 15 read from the dual port memory 1 to perform coincidence detection.

【0015】一方、レジスタ43ではデータとは1アド
レスずらしたパリティ403を生成する。パリティエラ
ー検出部44ではこのパリティ403と読み出したデー
タ15に含まれているパリティ(図3の例では9ビット
目のパリティ)とを比較して一致検出を行う。もし、両
方のパリティが不一致であった時は、パリティエラー警
報を誤動作復旧部22に出力する。但し、パリティエラ
ー検出部44は垂直パリティエラーを示すレジスタ42
の出力402が“1”の時にパリティエラーを検出した
時には、雑音等によりカウンタが誤動作したのではない
ため、誤動作監視用パリティエラー警報22を出力しな
い。
On the other hand, the register 43 generates the parity 403 which is shifted by one address from the data. The parity error detection unit 44 compares the parity 403 with the parity included in the read data 15 (the parity of the 9th bit in the example of FIG. 3) to perform coincidence detection. If the two parities do not match, a parity error alarm is output to the malfunction recovery unit 22. However, the parity error detection unit 44 uses the register 42 indicating the vertical parity error.
When the parity error is detected when the output 402 of “1” is “1”, the counter does not malfunction due to noise or the like, and therefore the malfunction monitoring parity error alarm 22 is not output.

【0016】図5はアドレス差分検出部60の構成例を
示すブロック図である。この例は、書き込みクロック1
2と読み出しクロック18とが非同期の場合でも、アド
レス差分を検出できることを可能とするものである。書
き込みクロック12と読み出しクロック18とが非同期
のため、アドレス差分検出部605にてアドレス差分を
検出するためには書き込みアドレス14を読み出しクロ
ック18に同期した信号に変換してから行う必要があ
る。
FIG. 5 is a block diagram showing a configuration example of the address difference detection unit 60. This example shows write clock 1
This makes it possible to detect the address difference even when 2 and the read clock 18 are asynchronous. Since the write clock 12 and the read clock 18 are asynchronous, it is necessary to convert the write address 14 into a signal synchronized with the read clock 18 in order to detect the address difference in the address difference detection unit 605.

【0017】この際、書き込みアドレス14をバイナリ
→グレイコード変換部600によりグレイコード100
に変換し、レジスタ601で書き込みクロック12で叩
いたグレイコード101をレジスタ602(読み出し側
クロック18の逆相で叩いて出力102を得る)、レジ
スタ603で読み出し側クロック18で叩いて読み出し
クロック18に同期した書き込み側アドレス14のグレ
イコード103が得られる。グレイ→バイナリコード変
換部604ではバイナリデータ104を出力し、アドレ
ス差分検出部605でバイナリデータ104と読み出し
アドレス16からデュアルポートメモリ1内のデータ蓄
積量19が出力される。
At this time, the write address 14 is changed to the gray code 100 by the binary → gray code conversion unit 600.
And the gray code 101 hit with the write clock 12 in the register 601 is hit with the register 602 (hit in the opposite phase of the read clock 18 to obtain the output 102), and hit with the read clock 18 in the register 603 to obtain the read clock 18. The Gray code 103 of the synchronized write side address 14 is obtained. The gray → binary code conversion unit 604 outputs the binary data 104, and the address difference detection unit 605 outputs the data accumulation amount 19 in the dual port memory 1 from the binary data 104 and the read address 16.

【0018】図6は4ビットデータの場合のバイナリ→
グレイコード変換部600とグレイ→バイナリコード変
換部604の構成例を示す。図6(b)はバイナリ→グ
レイコード変換部600、図6(c)はグレイ→バイナ
リコード変換部604の一例を示す回路図であり、各々
排他的論理和回路を用いて構成されている。なお、図6
(a)は10進数、2進数、グレイコードの対応を示
す。
FIG. 6 shows a binary in the case of 4-bit data.
A configuration example of the Gray code conversion unit 600 and the Gray-> binary code conversion unit 604 is shown. FIG. 6B is a circuit diagram showing an example of the binary-> Gray code conversion unit 600, and FIG. 6C is an example of a Gray-> Binary code conversion unit 604, each of which is configured using an exclusive OR circuit. Note that FIG.
(A) shows correspondence between a decimal number, a binary number, and a Gray code.

【0019】図7はバッファ蓄積容量監視部61の構成
例を示すブロック図である。レジスタ610は書き込み
アドレス14を読み出しクロック18の立ち上がりで保
持してアドレス変換部611とレジスタ612へ出力デ
ータ200として出力する。アドレス変換部611はレ
ジスタ610の出力データ200から“−1”した値
(但し、出力データ200が“0”の時には、デュアル
ポートメモリ1の最大蓄積値を取る)をアドレス一致検
出部613に出力する。
FIG. 7 is a block diagram showing an example of the structure of the buffer storage capacity monitor 61. The register 610 holds the write address 14 at the rising edge of the read clock 18 and outputs it as output data 200 to the address conversion unit 611 and the register 612. The address conversion unit 611 outputs a value obtained by subtracting “−1” from the output data 200 of the register 610 (however, when the output data 200 is “0”, the maximum accumulated value of the dual port memory 1 is taken) to the address match detection unit 613. To do.

【0020】アドレス一致検出部613はアドレス変換
部611の出力データ201とレジスタ612の出力デ
ータ202との一致検出を行い、一致検出時には出力デ
ータ203は“1”を出力し、不一致の時は“0”を出
力する。レジスタ612はアドレス一致検出部613の
出力データ203が“1”の時、レジスタ610の出力
データ200を読み出しクロック18で保持してレジス
タ出力202をアドレス差分検出部614に出力する。
また、出力データ203が“0”の時は前値を保持す
る。アドレス差分検出部614は読み出しカウンタ値1
6とレジスタ出力202とから差分値204をレジスタ
615に出力する。レジスタ615はアドレス差分検出
部614の出力データ204を読み出しクロック18に
同期させてデュアルポートメモリ1内のデータ蓄積量2
0を出力する。
The address match detection unit 613 detects the match between the output data 201 of the address conversion unit 611 and the output data 202 of the register 612. When the match is detected, the output data 203 outputs "1", and when there is no match, "1" is output. 0 "is output. When the output data 203 of the address coincidence detection unit 613 is “1”, the register 612 holds the output data 200 of the register 610 at the read clock 18 and outputs the register output 202 to the address difference detection unit 614.
When the output data 203 is "0", the previous value is held. The address difference detection unit 614 reads the read counter value 1
6 and the register output 202, the difference value 204 is output to the register 615. The register 615 synchronizes the output data 204 of the address difference detection unit 614 with the read clock 18 and stores the data storage amount 2 in the dual port memory 1.
Outputs 0.

【0021】アドレス制御動作比較部7はアドレス差分
検出部60とバッファ蓄積容量監視部61のブロックに
て検出した2つのデータ量を比較し、不一致である時は
書き込み制御部2、読み出し制御部5及びバッファ蓄積
容量監視部61の誤動作を検出し、アドレス誤動作警報
21を誤動作復旧部8に出力する。誤動作復旧部8はア
ドレス誤動作警報21及びパリティ照合部4からのパリ
ティエラー警報22を検出した場合には、リセット信号
23を書き込み制御部2、読み出し制御部5及びアドレ
ス制御部6に入力することにより復旧動作を行う。
The address control operation comparison unit 7 compares the two data amounts detected in the blocks of the address difference detection unit 60 and the buffer storage capacity monitoring unit 61, and when they do not match, the write control unit 2 and the read control unit 5 Also, the malfunction of the buffer storage capacity monitoring unit 61 is detected, and the address malfunction alarm 21 is output to the malfunction recovery unit 8. When the malfunction recovery unit 8 detects the address malfunction alarm 21 and the parity error alarm 22 from the parity collation unit 4, it inputs the reset signal 23 to the write control unit 2, the read control unit 5 and the address control unit 6. Perform recovery operation.

【0022】ここで、データの書き込みは有効データ制
御信号11で制御され、有効データ制御信号11により
データの書き込みが指示されると、書き込みデータ10
に図3で説明したようにパリティ付加部3でパリティが
付加され、デュアルポートメモリ1に書き込まれる。こ
の時、書き込み制御部2では書き込みクロック12から
書き込みアドレスが生成され、書き込みデータは書き込
みクロック12に同期して生成された書き込みアドレス
に順次書き込まれる。
Here, the writing of data is controlled by the valid data control signal 11, and when the writing of data is instructed by the valid data control signal 11, the write data 10 is written.
As described with reference to FIG. 3, parity is added by the parity adding unit 3 and written in the dual port memory 1. At this time, the write controller 2 generates a write address from the write clock 12, and the write data is sequentially written to the write address generated in synchronization with the write clock 12.

【0023】一方、データを読み出す時は読み出し要求
信号が読み出し制御部5に入力され、読み出し制御部5
では読み出しクロックにより読み出しアドレスを生成す
る。この読み出しアドレスに従いデュアルポートメモリ
1から読み出しクロックに同期してデータが読み出され
る。このデータの書き込み時あるいはデータの読み出し
時にはパリティ照合部4は前述のようにパリティの照合
を行い、パリティの不一致を検出した時はパリティエラ
ー警報を誤動作復旧部22に出力する。また、アドレス
制御動作比較部7ではアドレス差分検出部60とバッフ
ァ蓄積容量監視部61で検出されたデータ量を比較し、
両方のデータ量が不一致であった時はアドレス誤動作警
報を誤動作復旧部22に出力する。誤動作復旧部22は
パリティエラー警報やアドレス誤動作警報を受け取る
と、リセット信号を書き込み制御部2、読み出し部5、
アドレス制御部6に入力し復旧を行う。
On the other hand, when reading data, a read request signal is input to the read control unit 5, and the read control unit 5
Then, the read address is generated by the read clock. Data is read from the dual port memory 1 according to the read address in synchronization with the read clock. When writing data or reading data, the parity collation unit 4 collates the parity as described above, and outputs a parity error alarm to the malfunction recovery unit 22 when a mismatch of the parity is detected. Further, the address control operation comparison unit 7 compares the data amounts detected by the address difference detection unit 60 and the buffer storage capacity monitoring unit 61,
When the two data amounts do not match, an address malfunction alarm is output to the malfunction recovery unit 22. When the malfunction recovery unit 22 receives a parity error warning or an address malfunction warning, the malfunction recovery unit 22 writes a reset signal to the write control unit 2, the read unit 5,
The address is input to the address control unit 6 to restore it.

【0024】(第2の実施形態)図8は本発明のバッフ
ァメモリ回路の第2の実施形態の構成を示すブロック図
である。なお、図8では図1と同一部分は同一符号を付
して説明を省略する。本実施形態ではATM(Asyn
chronaus Transfer Mode)伝送
に関して使用されるATMセルの多重分離処理やCLA
D(Cell Assembly And Disas
sembly)のデセル化処理等に使用されるATM伝
送用として好適なバッファメモリ回路を示している。
(Second Embodiment) FIG. 8 is a block diagram showing the configuration of a second embodiment of the buffer memory circuit of the present invention. In FIG. 8, the same parts as those in FIG. In the present embodiment, ATM (Asyn
ATM cell demultiplexing processing and CLA used for chronous transfer mode transmission
D (Cell Assembly And Disas)
It shows a buffer memory circuit suitable for ATM transmission used for de-cellization processing of "sembly)".

【0025】ATM伝送装置では通常ATMセルヘッダ
に含まれるHECバイトは装置の入出力端において受信
したATMセルに対してセル同期処理を行い、HECバ
イトの終端を行っている。また、出力するATMセルの
ヘッダの最初の4バイトに対して巡回冗長(CRC)演
算を行い、その結果をHECバイトとして付加する処理
を行っている。そのため、ATM装置内部においてはA
TMセルのHECバイト領域を自由に使用することが可
能である。
In the ATM transmission device, the HEC byte normally contained in the ATM cell header is subjected to cell synchronization processing with respect to the ATM cell received at the input / output end of the device to terminate the HEC byte. In addition, a cyclic redundancy (CRC) operation is performed on the first 4 bytes of the header of the output ATM cell, and the result is added as an HEC byte. Therefore, in the ATM device, A
It is possible to freely use the HEC byte area of the TM cell.

【0026】図8を参照すると、パリティ付加部3への
入力段にデュアルポートメモリ1の動作監視用として、
EHCバイトにSN(Sequence Numbe
r)を埋め込む機能を有するHEC上書き部500を設
け、HEC上書き部500の出力データ501に対して
パリティ付加部3にてパリティを付加して、デュアルポ
ートメモリ1に書き込みを行う。
Referring to FIG. 8, in order to monitor the operation of the dual port memory 1 at the input stage to the parity addition unit 3,
SN (Sequence Number) in EHC byte
The HEC overwrite unit 500 having a function of embedding r) is provided, the parity is added to the output data 501 of the HEC overwrite unit 500 by the parity adding unit 3, and the dual port memory 1 is written.

【0027】また、デュアルポートメモリ1の読み出し
側には、読み出したATMセルデータからSN番号エラ
ー(SNの順番が合っていないエラー)を検出するHE
C照合部502が設けられている。HEC照合部502
はSN番号エラーを検出すると、SN番号エラー警報5
03を誤動作復旧部22に入力し、書き込み制御部2、
読み出し制御部5及びバッファ蓄積容量監視部61の復
旧動作を行う。その他の構成は図1と同様である。
On the read side of the dual port memory 1, the HE for detecting an SN number error (error in which the SN order is out of order) is read from the read ATM cell data.
A C matching unit 502 is provided. HEC matching unit 502
Detects an SN number error, SN number error warning 5
03 is input to the malfunction recovery unit 22, and the write control unit 2,
The recovery operation of the read control unit 5 and the buffer storage capacity monitoring unit 61 is performed. Other configurations are the same as those in FIG.

【0028】図9はこのATM伝送用バッファメモリに
入力されるATMセルフォーマットを示したものであ
る。このATMセルは、5バイトのヘッドと48バイト
のペイロードの情報フィールドから構成され、ヘッダの
1バイト目はVPI(Virtual Path Id
entifier)、2バイト目はVPIおよびVCI
(Virtual Channel Identifi
er)、3バイト目はVCI、4バイト目はVCI、P
T(Payload Type)およびCLP(Cel
l Loss Priority)、5バイト目はHE
Cが割り当てられている。
FIG. 9 shows an ATM cell format input to the ATM transmission buffer memory. This ATM cell is composed of a 5-byte head and a 48-byte payload information field. The first byte of the header is a VPI (Virtual Path Id).
2nd byte is VPI and VCI
(Virtual Channel Identity
er) 3rd byte is VCI, 4th byte is VCI, P
T (Payload Type) and CLP (Cel
l Loss Priority) The 5th byte is HE
C is assigned.

【0029】[0029]

【発明の効果】以上説明したように本発明によれば、書
き込みデータに1アドレスずらしたパリティを付加する
ことにより、アドレス制御部では検出できない書き込み
アドレスと読み出しアドレスの誤動作を検出することが
できる。また、2つのブロックでデュアルポートメモリ
のデータ量を検出し、2つのブロックのデータ量を比較
することにより、書き込み制御部や読み出し制御部の誤
動作を検出することができる。従って、書き込みクロッ
クと読み出しクロックが非同期であっても、一時的な雑
音等による誤動作時間を最小限に抑えることができ、そ
れ以降の通信に悪影響を及ぼさないように自己復旧する
ことが可能となる。
As described above, according to the present invention, by adding the parity shifted by one address to the write data, it is possible to detect the malfunction of the write address and the read address which cannot be detected by the address controller. Further, by detecting the data amount of the dual port memory in two blocks and comparing the data amounts of the two blocks, it is possible to detect the malfunction of the write control unit and the read control unit. Therefore, even if the write clock and the read clock are asynchronous, the malfunction time due to a temporary noise or the like can be minimized, and the self-recovery can be performed without adversely affecting the communication thereafter. .

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

【図1】本発明のバッファメモリ回路の第1の実施形態
を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of a buffer memory circuit of the present invention.

【図2】図1のパリティ付加部の一例を示すブロック図
である。
FIG. 2 is a block diagram showing an example of a parity addition unit in FIG.

【図3】図1のデュアルポートメモリへのデータの書き
込み例を説明する図である。
FIG. 3 is a diagram illustrating an example of writing data to the dual port memory in FIG.

【図4】図1のパリティ照合部の一例を示すブロック図
である。
FIG. 4 is a block diagram showing an example of a parity matching unit in FIG.

【図5】図1のアドレス差分検出部の一例を示すブロッ
ク図である。
5 is a block diagram showing an example of an address difference detection unit in FIG.

【図6】図5のバイナリ→グレイ変換部、グレイ→バイ
ナリ変換部の一例を示す回路図である。
6 is a circuit diagram showing an example of a binary → gray conversion unit and a gray → binary conversion unit of FIG. 5;

【図7】図1のバッファ蓄積容量監視部の一例を示すブ
ロック図である。
FIG. 7 is a block diagram showing an example of a buffer storage capacity monitoring unit in FIG.

【図8】本発明の第2の実施形態を示すブロック図であ
る。
FIG. 8 is a block diagram showing a second embodiment of the present invention.

【図9】ATM伝送用バッファメモリに入力されるAT
Mセルフォーマットを示す図である。
FIG. 9 is an AT input to an ATM transmission buffer memory
It is a figure which shows an M cell format.

【図10】従来例のバッファメモリ回路を示すブロック
図である。
FIG. 10 is a block diagram showing a conventional buffer memory circuit.

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

1 デュアルポートメモリ 2 書き込み制御部 3 パリティ付加部 4 パリティ照合部 5 読み出し制御部 6 アドレス制御部 7 アドレス制御動作比較部 8 誤動作復旧部 60 アドレス差分検出部 61 バッファ蓄積容量監視部 500 HEC上書き部 502 HEC照合部 1 dual port memory 2 Write control unit 3 Parity adder 4 Parity check unit 5 Read controller 6 Address control section 7 Address control operation comparison unit 8 Malfunction recovery section 60 Address difference detector 61 Buffer storage capacity monitor 500 HEC overwrite section 502 HEC collator

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 書き込みデータを書き込みクロックに同
期してデュアルポートメモリに書き込み、前記書き込み
クロックとは異なる読み出しクロックに同期して前記デ
ュアルポートメモリからデータを読み出すバッファメモ
リ回路において、前記書き込みデータに対しパリティ演
算を行い、得られた垂直パリティを書き込みデータに付
加する手段と、書き込みデータとは1アドレスずれたデ
ータに対しパリティ演算を行い、書き込みデータとは1
アドレスずらしたパリティを書き込みデータに付加する
手段と、前記デュアルポートメモリから読み出されたデ
ータから垂直パリティを作成し、作成したパリティと読
み出しデータに含まれている垂直パリティとを比較する
手段と、前記読み出しデータから1アドレスずらしたパ
リティを作成し、作成したパリティと読み出しデータに
含まれている1アドレスずらしたパリティとを比較する
手段と、前記垂直パリティが一致し、且つ、1アドレス
ずらしたパリティが不一致であった時に書き込みアドレ
ス及び読み出しアドレスの誤動作を検出する手段とを備
えたことを特徴とするバッファメモリ回路。
1. A buffer memory circuit for writing write data to a dual-port memory in synchronization with a write clock and reading data from the dual-port memory in synchronization with a read clock different from the write clock. A means for performing a parity operation and adding the obtained vertical parity to the write data, and a parity operation are performed on the data that is one address away from the write data, and the write data is 1
Means for adding parity shifted in address to write data, means for creating vertical parity from the data read from the dual port memory, and means for comparing the created parity with the vertical parity included in the read data, A parity that shifts one address from the read data, compares the generated parity with a parity that is shifted by one address included in the read data, and the parity that matches the vertical parity and shifts one address. And a means for detecting an erroneous operation of a write address and a read address when the two do not match.
【請求項2】 前記検出手段は、誤動作を検出した時は
書き込みアドレスを作成する書き込み制御部、読み出し
アドレスを作成する読み出し制御部をリセットすること
を特徴とする請求項1に記載のバッファメモリ回路。
2. The buffer memory circuit according to claim 1, wherein the detection unit resets a write control unit that creates a write address and a read control unit that creates a read address when a malfunction is detected. .
【請求項3】 更に、ATMセルヘッダに含まれている
HECバイトにSNを書き込むHEC上書き部と、前記
デュアルポートメモリから読み出されたATMセルデー
タからSN番号エラーを検出する手段とを有することを
特徴とする請求項1に記載のバッファメモリ回路。
3. An HEC overwrite unit for writing SN in an HEC byte included in an ATM cell header, and means for detecting an SN number error from ATM cell data read from the dual port memory. The buffer memory circuit according to claim 1, wherein the buffer memory circuit is a buffer memory circuit.
【請求項4】 前記SN番号エラー検出手段は、SN番
号エラーを検出した時は書き込みアドレスを作成する書
き込み制御部、読み出しアドレスを作成する読み出し制
御をリセットすることを特徴とする請求項3に記載のバ
ッファメモリ回路。
4. The SN number error detection means resets a write control unit that creates a write address and a read control that creates a read address when an SN number error is detected. Buffer memory circuit.
【請求項5】 書き込みデータを書き込みクロックに同
期してデュアルポートに書き込み、前記書き込みクロッ
クとは異なる読み出しクロックに同期して前記デュアル
ポートメモリからデータを読み出すバッファメモリ回路
において、書き込みアドレスと読み出しアドレスの差分
から前記デュアルポートメモリのデータ量を算出する手
段と、前記書き込みアドレスが変化した時に書き込みア
ドレス値を出力する手段を含み当該書き込みアドレス値
と読み出しアドレス値に基づいて前記デュアルポートメ
モリのデータ量を監視する手段と、前記データ量算出手
段で得られたデータ量と前記監視手段で得られたデータ
量とを比較することにより書き込みアドレス及び読み出
しアドレスの誤動作を検出する手段とを備えたことを特
徴とするバッファメモリ回路。
5. A buffer memory circuit for writing write data to a dual port in synchronism with a write clock and reading data from the dual port memory in synchronism with a read clock different from the write clock. The data amount of the dual port memory is calculated based on the write address value and the read address value, including means for calculating the data amount of the dual port memory from the difference and means for outputting the write address value when the write address changes. And a means for detecting a malfunction of the write address and the read address by comparing the data amount obtained by the data amount calculating means with the data amount obtained by the monitoring means. Buffalo Mori circuit.
【請求項6】 前記検出手段は、書き込みアドレス、読
み出しアドレスの誤動作を検出した時は書き込みアドレ
スを作成する書き込み制御部、読み出しアドレスを作成
する読み出し制御部をリセットすることを特徴とする請
求項5に記載のバッファメモリ回路。
6. The detection unit resets a write control unit that creates a write address and a read control unit that creates a read address when a malfunction of a write address and a read address is detected. The buffer memory circuit described in 1.
【請求項7】 更に、ATMセルヘッダに含まれている
HECバイトにSNを書き込むHEC上書き部と、前記
デュアルポートメモリから読み出されたATMセルデー
タからSN番号エラーを検出する手段とを有することを
特徴とする請求項5に記載のバッファメモリ回路。
7. An HEC overwrite unit for writing SN in an HEC byte included in an ATM cell header, and means for detecting an SN number error from ATM cell data read from the dual port memory. The buffer memory circuit according to claim 5, wherein the buffer memory circuit is a buffer memory circuit.
【請求項8】 前記SN番号エラー検出手段は、SN番
号エラーを検出した時は書き込みアドレスを作成する書
き込み制御部、読み出しアドレスを作成する読み出し制
御をリセットすることを特徴とする請求項7に記載のバ
ッファメモリ回路。
8. The SN number error detection means resets a write control unit for creating a write address and a read control for creating a read address when an SN number error is detected. Buffer memory circuit.
JP2001236524A 2001-08-03 2001-08-03 Buffer memory circuit Pending JP2003050748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001236524A JP2003050748A (en) 2001-08-03 2001-08-03 Buffer memory circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001236524A JP2003050748A (en) 2001-08-03 2001-08-03 Buffer memory circuit

Publications (1)

Publication Number Publication Date
JP2003050748A true JP2003050748A (en) 2003-02-21

Family

ID=19067774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001236524A Pending JP2003050748A (en) 2001-08-03 2001-08-03 Buffer memory circuit

Country Status (1)

Country Link
JP (1) JP2003050748A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014002222A1 (en) * 2012-06-28 2014-01-03 三菱電機株式会社 Read request processing device
JP2014016892A (en) * 2012-07-10 2014-01-30 Nec Corp Semiconductor memory device and method of controlling the same

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014002222A1 (en) * 2012-06-28 2014-01-03 三菱電機株式会社 Read request processing device
JP5623677B2 (en) * 2012-06-28 2014-11-12 三菱電機株式会社 Read request processing device
CN104471549A (en) * 2012-06-28 2015-03-25 三菱电机株式会社 Read request processing device
TWI492237B (en) * 2012-06-28 2015-07-11 Mitsubishi Electric Corp Read request processing device
US9465691B2 (en) 2012-06-28 2016-10-11 Mitsubishi Electric Corporation Read request processing apparatus
CN104471549B (en) * 2012-06-28 2017-06-16 三菱电机株式会社 Read requests processing unit
JP2014016892A (en) * 2012-07-10 2014-01-30 Nec Corp Semiconductor memory device and method of controlling the same

Similar Documents

Publication Publication Date Title
US5557621A (en) ATM switch and control method thereof
JP3357973B2 (en) AAL1 processing method and apparatus
US8089861B1 (en) Data verification using signature
US20090183051A1 (en) Memory System with Cyclic Redundancy Check
US5914954A (en) Buffer control system
JP2002354027A (en) Reassembling means, circuit emulation service device, and atm synchronous control method
US6446235B1 (en) Cumulative error detecting code
JP2003050748A (en) Buffer memory circuit
CA2152567C (en) Approach to directly performing asynchronous transfer mode (atm) adaptation layer 5 reassembly
JP2989669B2 (en) Method and device for controlling memory
US6061352A (en) ATM cell receiver system with source clock recovery
US5777985A (en) Apparatus and method for absorbing an arrival time delay fluctuation of a fixed length packet, and ATM switching system
CN101145117B (en) Method and apparatus for treating error detection
JPH11284641A (en) Error correcting circuit
KR100271521B1 (en) Aal1 receiving apparatus for cbr
JPH04249447A (en) Atm transmission equipment
KR970008678B1 (en) Header data error check circuit for sar-pdu in the all-1 type of the receiver
JP3192901B2 (en) Variable speed data transmitting device and variable speed data receiving device
KR0124176B1 (en) Header Data Error Checking Circuit of Split and Reassembly Protocol Data Unit in Asynchronous Transfer Mode Adaptive Layer-1 Type of Receiver
JPH04207734A (en) Cell transmitting/receiving equipment
JPH04362825A (en) Data length correction system at atm terminal equipment
JPH0879267A (en) Transmission convergence sub-layer multiplex generation /termination device
KR970005732B1 (en) Cyclic redundancy check code provider for atm
KR940008314A (en) Parallel Asynchronous Cell Header Error Detection Circuit
JP3025955B2 (en) ATM transmission buffer memory operation monitoring method and circuit

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040421

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050822