JP4025575B2 - Content address memory system - Google Patents
Content address memory system Download PDFInfo
- Publication number
- JP4025575B2 JP4025575B2 JP2002120596A JP2002120596A JP4025575B2 JP 4025575 B2 JP4025575 B2 JP 4025575B2 JP 2002120596 A JP2002120596 A JP 2002120596A JP 2002120596 A JP2002120596 A JP 2002120596A JP 4025575 B2 JP4025575 B2 JP 4025575B2
- Authority
- JP
- Japan
- Prior art keywords
- parity
- data
- error
- bit
- memory system
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Error Detection And Correction (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、故障検出機能を備えた内容アドレスメモリ(以後、CAM:Content Addressable Memoryと呼ぶ)システムに関する。
【0002】
【従来の技術】
従来から、半導体メモリ素子を用いた装置の動作品質を確保するために、メモリ素子のビットエラーの検出が行われている。従来のRAM(Random Access Memory)およびROM(Read Only Memory)等においては、パリティチェックやECC(Error Correction Code)機構を用いて、このビットエラーの検知を行っている。
【0003】
パリティチェックを用いた検知法では、データビットに1ビットのパリティビットを付加することで、データビットとパリティビット中のビットの値が'1'であるビットの数を、奇数若しくは偶数に統一してメモリアレイに書き込み、読み出し時にはデータビットとパリティビット中のビットの値が'1'であるビットの数をチェックすることにより誤りの検出している。
【0004】
また、ECC機構を用いた検知法では、拡張ハミングコードを用いてデータビットよりチェックビットを生成し、データビットとチェックビットとをメモリアレイに書き込み、読み出し時にはメモリアレイから読み出したデータビットとチェックビットとによりシンドロームを生成し、このシンドロームより1ビットの誤り訂正及び2ビットの誤り検出を行う。これらのビットエラー検出方法については、既に数多く発明されており、一般的に広く用いられている。
【0005】
ところで、CAMは、RAM、ROM等のように物理的な位置(アドレス)より内容(データ)を読み出す機能だけでなく、内容(データ)を入力として与え、それと同値なものがメモリアレイ上に存在するかの検索を行い、その一致した物理的な位置(アドレス)や検出信号を出力する機能をも有するものである。
CAMは、非同期転送モード(ATM:Asynchronous Transfer Mode)や、高速IP(Internet Protocol) 等のアドレス変換等に広く利用されるものであり、装置の品質を確保し、信頼性を高めるために、ビットエラーの検出は不可欠である。
【0006】
【発明が解決しようとする課題】
しかし、上記のような特徴を持つCAMでは、メモリアレイ内でビットエラーが発生した場合、正しい内容のデータを入力しても、この入力したデータとビットエラーの発生したデータとは一致しないため、そもそも、その出力を得ることができない。従って、従来のパリティチェックやECC機構を用いた方法のように、アドレスを指定し、読み出したデータに対して演算し、チェックビットと照合することでエラーを検出する等の方法は、CAMのビットエラーの検出に用いることができない。
【0007】
さらに、CAMでは、ビットエラーのあるデータが他の入力と誤って同値と判断され、一致信号やアドレスを誤検出することも有り得る。例えば、このビットエラーの発生が、ハード故障によるものであったとしても、ビットエラーと認識されないため、再び故障したアドレスに対して書き込みを実行してしまうことも有り得る。
【0008】
上記のような機能を有するCAMのビットエラーを検出するために、全アドレスのデータを監視する方法が考えられる。全アドレスを監視するために、例えば、一旦メモリアレイに格納されたデータに関し、アドレス順に全データにアクセスして読み出し、パリティのチェックをするなどの方法が考えられている。しかしながら、この手法は、パリティチェック完了までに時間がかかりすぎるという問題があった。
本発明は上記事情を鑑みてなされたものであり、全アドレスのビットエラーの有無を効率的にチェックできる機能を備えたCAMシステムの提供を目的としたものである。
【0009】
【課題を解決するための手段】
本発明は、メモリアレイ(レジスタアレイ)内の全て、またはチェック対象とした格納データ全てに対して、アドレスを指定することなく、パリティチェックを行うことができるCAMシステムを提供する。
【0010】
本発明は、メモリアレイ(レジスタアレイ)内部の全アドレスの格納データに対し、その書き込み時にパリティチェックを行いビットエラー検出を行うCAMシステム、また、そのエラーが発生しているアドレスに対し、CAMシステム内部で、書き込み時にデータの再書き込みを禁止する制御(以後、書きこみ禁止処理と呼ぶ)や、データ検索時にそのエラーが発生しているアドレスを検出対象外としてマスクする制御(以後、検索マスク処理と呼ぶ)を行うCAMシステム、そして、パリティチェックを行う対象アドレスをCAMシステム内で判定し、そのアドレス内の格納データに対してのみパリティチェックを行う機能を備えたCAMシステムを提供する。
【0011】
例えば、本発明は、エラー検出機能を備えた内容アドレスメモリシステムであって、入力されるデータにエラー訂正符号を付加するパリティ付加手段と、前記エラー訂正符号を付加されたデータを保持するとともに、保持するデータを常時出力するデータ保持部と、前記データ保持部の出力データに付加された前記エラー訂正符号を照合し、パリティエラーを検出したとき、パリティ照合結果信号を出力する、前記データ保持部各々に対応して設けられたパリティ照合手段とを備えることを特徴とする内容アドレスメモリシステムを提供する。
【0012】
【発明の実施の形態】
図1は、第一の実施の形態におけるCAMシステムの構成を示す図である。本図に示すように、本実施の形態におけるCAMシステムは、nビット列入力データに対して1ビットのパリティを付加するパリティ付加部1と、mワード、(n+1)ビットの記憶領域を持つメモリアレイ(レジスタアレイ)であるデータ書き込み、読み出し、検索の制御機能を備えたCAMアレイ部2と、CAMアレイ部2の内部のmワード、(n+1)ビットの格納データ13aに対して、それぞれパリティチェックを行うパリティ照合部3とを備える。尚、パリティ照合部3は、装置構成によって、CAMアレイ部2の内部に備えることも可能である。
【0013】
パリティ付加部1は、例えばnビットの固定ビット入力データ10aより、1ビットのパリティビット11aを演算し、それをnビットの固定ビット入力データ10aに合わせた(n+1)ビットのデータ12aとして、CAMアレイ部2へ入力する。CAMアレイ部2は、データ書き込み時にこの入力データ12aを所定のアドレスに書き込む。所定のアドレスに保持されたデータ13aはパリティ照合部3に入力され、照合結果がパリティ照合結果信号14aとして出力される。
【0014】
CAMアレイ部2のメモリ内の構成を図2に示す。本図に示すように、CAMアレイ部2のメモリ内には、アドレス毎に対応したパリティビット1hとデータ2hとが格納されている。
【0015】
パリティ照合部3の詳細な構成を図3に示す。本図に示すように、パリティ照合部3は、CAMアレイ部2に格納されているmワード、(n+1)ビットの内、全て又はチェック対象とするアドレスのデータ1j(図1におけるデータ13a)を入力として、それぞれmワード毎にパリティビットを除いたnビット2jに対してパリティ演算3jを実行し、その演算結果とパリティビットとを照合4jする。パリティ照合部3はこの照合結果をそれぞれmワード単位でmビットのパリティ照合結果信号5j(図1におけるパリティ照合結果信号14a)として出力することで、上流装置やCAMアレイ部2の内部に対して照合結果を通知する。上流装置やCAMアレイ部2は、その通知を受け、必要に応じて検索マスク処理や書き込み禁止処理を行う。
【0016】
図4は、本実施の形態におけるCAMシステムの主要部の詳細を示す図である。
本実施の形態における、CAMシステムは、入力データに対して、1ビットのパリティを付加するパリティ付加部1と、レジスタアレイ及びその他制御回路を含むCAMアレイ部2とから成る。本実施の形態では、CAMアレイ部2内にレジスタアレイのアドレス毎(5ビット)にパリティチェックを行うパリティ照合部3が含まれるシステムを例にとり、説明する。 また、図1のnビットを8ビット、mワードを32ワードとして説明する。
【0017】
CAMアレイ部2は、パリティ付加部1でパリティビットを付加されたデータを保持するデータ保持部4aを少なくとも1つ有するレジスタアレイ部4と、パリティ照合部3とを備える。なお、本図において、データ保持部4aは、各データごとに9ビット分備えるものである。
【0018】
本図に示すように、レジスタアレイ部4のデータ保持部4aは、自身が保持しているデータの内容が常時出力されるよう構成される。そして、レジスタアレイ部4の各データ保持部4aの出力は、パリティ照合部3に接続されている。つまり、データ保持部4aから常時出力されているデータは、そのままパリティ照合部3に入力され、そこで、パリティの照合が行われる。データ保持部4aの構成は、これに限られない。
【0019】
本実施の形態におけるCAMシステムは、レジスタアレイ部4およびパリティ照合部3が上記のような構成であるため、入力データがレジスタアレイ部4に保持された時点で、保持されている全アドレスのデータに関し、パリティチェックを完了することができる。
【0020】
本実施の形態におけるCAMシステムは、8ビットの入力データDI10b(図1における入力データ10a)、5ビットのアドレス信号ADI12b、8ビットの検索マスク信号MASK、クロックイネーブルCE、検索イネーブルAE、及び、リードライトイネーブルRWを入力信号とし、データ一致信号HIT、5ビットの一致アドレス信号ADO、8ビットのリードデータ信号DO、及び、各アドレス毎(5ビット)にパリティ照合結果を出力する32本のパリティエラー信号PERR20bを出力とする。
まず、8ビットの入力データDI10bに対し、パリティ付加部1にて1ビットのパリティビットを付加する。ここで、パリティ演算には、入力データの'1'の数が奇数になるようにパリティビットを付加する奇数パリティと、入力データの'1'の数が偶数になるようにパリティビットを付加する偶数パリティとがある。ここでは、奇数パリティを採用する。
【0021】
図5に示すように、奇数パリティの場合のパリティビットは、入力データのビット0bit〜7bitについて全て排他的論理和(以下EX-ORと称す)を取り、それを反転した値となる。図6に、本パリティビットを得る回路構成を示す。この回路は、図6に示す通り、EX-OR素子1cを3段とNOT素子2cを1段とによって構成される。図4において、8ビットの入力データDI10bに、この回路により得られたパリティビットを付加したデータ信号11b (図1における入力データ12a)をCAMアレイ部2へ入力する。
【0022】
また、図7は、パリティビットを照合するための回路構成を示す。照合は、各アドレスに格納されているデータのビット0bit〜7bitに対して、図6の演算回路と同構成の回路1dを用いてパリティビットを演算し、得られたパリティビットと各アドレスに格納されているデータのビット8bitとをEX-OR素子2dにて比較することで行う。図4において、本照合で、エラーが発生している場合、得られる値は'1'となるため、各アドレス毎にパリティ照合結果信号15b(図1のパリティ照合結果信号14a)が出力される。このパリティ照合結果信号15bは、後述する保持回路5の入力となる。
【0023】
CAMは、CAMアレイ部2の指示されたアドレスにデータを書き込む書き込みモードと、CAMアレイ部2の指示されたアドレスからデータを読み出す読み出しモードと、与えられたデータと同値なものが保持されているCAMアレイ部2のアドレスを出力する検索モードとを備える。CAMアレイ部2において、書き込みモード、読み込みモード、検索モードは、それぞれ、入力信号クロックイネーブルCE, リードライトイネーブルRW, 検索イネーブルAEによって設定される。
【0024】
書き込みモード時は、入力データ11bは、一旦保持14bされ、アドレス入力ADI12bを受け、さらに書込みイネーブル信号WREN21bが与えられると、アドレスデコーダ6よりデコード値13bが出力され、そのデコード値13bに従い、このアドレスに相当するレジスタアレイ部4に、書き込まれる。レジスタアレイ部4に格納されたデータは常にパリティ照合部3へ入力され、そこにおいて前述の図7に示すパリティビットの照合が行われる。
【0025】
また、データ検索モード時は、入力データDI10bを保持した値23bとレジスタアレイ出力信号22bは、比較回路7に与えられ、検索イネーブル信号SREN26bが'1'で、検索マスク入力信号を保持した値24bが'1'であるとき、比較を実行する。一致が得られれば一致信号28bを後段のエンコード部8へ伝え、結果的には一致アドレス出力ADO27bとして上流装置へ伝えられる。ここで、比較回路7はSREN26bが'0'のときは比較回路停止(一致なしを出力)、検索マスク入力信号を保持した値24bが'1'のときは、そのビットに対応したデータを比較対象外とする操作を行う。
【0026】
ここで、図4の構成においては、パリティチェックの演算タイミングは、保持回路5により決まる。即ち、保持回路5は、本図に示すように、書き込みイネーブル信号WREN16bの反転信号とクロックイネーブルCE17bとをAND演算18bした結果から生成されたパリティチェックイネーブル信号PCHKEN19bが'1'のときのみ、パリティ照合結果信号15bを取り込み、パリティエラー信号PERR20bを出力するよう構成されている。従って、書き込みモード以外であって、パリティ照合結果信号15bが検出されている場合、パリティエラー信号PERR20bは出力される。
【0027】
そして、パリティチェックイネーブル信号PCHKEN19bが'0'のとき、即ち、書きこみモード時には、保持回路5は、パリティ照合結果信号15bを保持し続けるため、その間に演算されたパリティ照合結果信号15bは、保持回路5には取り込まれない。この制御によって、本実施の形態におけるCAMシステムでは、書き込みモード以外のときにパリティチェックの結果を得るという制御が可能となる。
以上の回路動作によって、本実施の形態におけるCAMシステムでは、書き込みモード以外のときに、パリティエラーを検出し、パリティエラー信号PERR20bにより上流装置へ通知することが可能となる。同時に、上流装置では、通知を受けたビットエラーが発生したアドレスに対して、書き込み禁止処理や検索マスク処理等を行うことが可能となる。
【0028】
次に第二の実施の形態について説明する。第二の実施の形態は、パリティエラー信号PERR20bを用い、CAMシステムの内部で、パリティーエラーが発生しているアドレスに対し、書き込み禁止処理、および/または、検索マスク処理を行うなどの制御を実現するものである。
【0029】
第一の実施の形態においては、CAMシステム内部では、書き込みの制御も検索のための比較回路の動作も、パリティエラーの発生にかかわらず、行われている。このため、第一の実施の形態では、パリティ照合部3においてパリティエラーの発生が検出されたアドレスに対する書き込み禁止処理、および/または、検索マスク処理は、上流装置で行わなければならない。
【0030】
そこで、本実施の形態では、CAMシステム内部で、パリティエラーの発生が検出されたアドレスに対する書き込みを禁止処理、および/または、検索マスク処理を行うことを可能とする。
【0031】
まず、パリティエラー発生時に、CAMシステム内部でパリティエラー発生アドレスに対して書き込み禁止処理を実行する方法について説明する。本実施の形態の特徴的な部分を図8に示す。その他の構成は前述の第一の実施の形態の図1から図4に示すものと同じである。
【0032】
本実施の形態では、本図に示すように、パリティ照合部3においてパリティエラーが検出されたアドレスに対し書き込みを制御するため、書き込みイネーブル信号WREN21bとパリティエラー信号PERR20bの反転値とをAND素子3eに入力し、そのAND出力信号をレジスタアレイ部4への書込みイネーブル信号4eとする。
【0033】
本構成によれば、パリティエラー信号PERR20bが出力されていないときのみ、レジスタアレイ部4への書き込みが可能となる。即ち、この書込みイネーブル信号4eを用い、パリティエラー発生時に、CAMシステム内部で、パリティエラーが発生したアドレスに対して書き込みを停止するという制御が可能となる。
【0034】
尚、レジスタアレイ部4の内部で書き込み禁止処理を行う場合は、上流装置でもその禁止アドレスを認識する必要がある。本実施の形態においては、パリティエラー信号PERR20bを同時に上流装置に通知する構成であるため、上流装置は、そのパリティエラー信号により、知ることができる。
【0035】
次に、パリティエラー発生時に、CAMシステム内部でパリティエラー発生アドレスに対して検索マスク処理を実行する方法について説明する。
【0036】
本実施の形態では、図8に示すように、パリティ照合部3においてパリティエラーが検出されたアドレスに対し検索マスク処理をするため、比較回路7に与える検索マスク信号24bとパリティエラー信号PERR20bの反転値とをAND素子9eに入力し、そのAND出力信号を比較回路7に与える。
【0037】
本構成によれば、パリティエラー信号PERR20bが出力されていないときのみ、レジスタアレイ出力信号22bと入力データ23bとの比較が可能となる。即ち、パリティエラー発生時に、ビットエラーのあるレジスタアレイ出力信号22bが、入力データ23bと誤って一致とみなされることを防ぎ、一致アドレスの誤検出を防止することができる。
【0038】
以上に説明したように、本実施の形態では、上流装置の制御によらないで、CAMシステム内部で、パリティエラーの発生が検出されたアドレスに対する書き込みを禁止し、検索対象から外すという制御を行うことができる。
【0039】
次に第三の実施の形態につき説明する。本実施の形態においては、実際に有効なデータが書き込まれたアドレスに対してだけ、パリティチェックを実行する。
【0040】
前述の実施の形態では、パリティチェックを行う対象はレジスタアレイ部4に格納された全データであったが、実際には、未使用データ領域やハードエラーが発生し使用禁止としたアドレスに対して、パリティチェックを行わないよう制御が必要となる場合がある。本実施の形態では、これを実現するために、図9に示すように、書込みフラグ20gとして、レジスタアレイ部4に更に1ビット追加する。その他の構成は、第一の実施例または第二の実施例と同様である。
【0041】
本実施の形態は、この書込みフラグ20gに、上流装置からデータの書き込みが行われた場合にのみ'1'を書き込むことで、これを手がかりに格納データが有効か無効かを判断するものである。上流装置からのこの制御の手順を図10のフローチャートに示す。
【0042】
CAMシステムの電源投入後、上流装置は、最初にレジスタアレイ部4の全アドレスの初期化を行う(ステップ101)。これはまず書込みフラグ20gを'0'に初期化し、全てのデータを無効に設定することを意味する。
【0043】
その後、上流装置は、書込みモードである場合、書き込み先のアドレスが、ハードエラーなどによりパリティエラーが発生し、その通知を受けたアドレスであった場合、書き込みを禁止するため、不要データ削除操作を行い(ステップ103)、書込みフラグ20gを'0'とし(ステップ104)、無効であることを記憶する。書き込み先のアドレスが、そのようなアドレスでなかった場合、通常の書き込み処理とし、書込みフラグ20gに対して'1'を書き込み(ステップ102)、有効なデータがレジスタアレイ部4に格納されたことを記憶する。
【0044】
なお、上流装置は、読込みモード、検索モード時においては、このフラグの書き換えは行わない(ステップ105)。
【0045】
次に、この書込みフラグ20gを用いた回路の動作について説明する。図11に10ビットのデータが格納されたレジスタアレイ部6gと、図7のパリティ照合回路にAND素子13gを追加したパリティ照合部7gとを示す。
【0046】
図7を用いて説明したとおり、レジスタアレイ部4の1つのアドレスが格納されるデータの0〜7bit目までに対して奇数パリティ演算を行い、その結果8gと格納データの8bit目9gとをEX-OR演算する。本実施の形態においては、このEX-OR出力10gと格納データの9bit目11gとをAND13g演算し、その出力をパリティ照合結果信号12gとする。つまり、格納データの9bit目10gが無効データ0'である場合は、たとえ、EX-OR出力10gが'1'であっても'0'にマスクされるよう構成されている。つまり、本実施の形態においては、格納データの9bit目11gが有効データ1'である場合のみ、パリティエラーを示すパリティ照合結果信号12gは検出可能となる。
【0047】
これにより、本実施の形態においては、未使用データ領域やハードエラーが発生し使用禁止としたアドレスを、パリティチェックの対象外とすることができる。
上記第一から第三の実施の形態によるビットエラー検出手段を備えたCAMシステムを用いることで、メモリアレイ(レジスタアレイ)上でビットエラーが発生した場合、その異常を本システム内部、若しくは外部の上流装置に対して通知することができ、またその異常を検知した際に、異常の発生したアドレスを書き込み禁止にし、検索マスクするなどの操作を行うことが可能となる。
【0048】
上記第一から第三の実施の形態では、レジスタアレイの前段にパリティ付加部を設け、後段に各アドレスに対しパリティ照合部を設け、レジスタアレイでは、入力されたデータが常時後段のパリティ照合部に出力されるよう構成する。本構成により、入力されたデータは全てレジスタアレイに書き込まれた時点で、パリティ照合部においてパリティチェックを終えることができる。そして、パリティ照合部でエラーが検出されたアドレスのパリティエラー信号を用い、書き込み禁止処理や検索のマスク処理などを実行することができる。
以上の実施の形態において、レジスタアレイと論理素子等で構成したCAMシステムに適用した例で説明したが、本発明の構成は、例えば半導体メモリ内部に適用することも可能である。図12にその適用例を示す。
【0049】
本図に示すように、ワード選択線1f、ライトビット選択線2f、および、リードビット選択線3fを備え、それらに接続されるメモリ素子4fの集合で構成されるメモリアレイにおいて、各アドレス毎に、リードビット選択線3fより、メモリ素子データを取り出し、それを図7と同等回路で構成されるパリティ照合部5fに入力し、パリティビットの照合を行う。パリティチェック結果は、各アドレス毎に出力する信号PERR(0,1,・・・n)6f、または、その各PERRの全てのOR論理をとったPERRO 7fで出力する。
【0050】
本構成により、本半導体メモリは、各アドレスごとに、出力されたパリティチェック結果を得ることができ、その結果を用い、書き込み禁止、検索マスクなどの処理を行うことが可能となる。
【0051】
【発明の効果】
全アドレスに格納されたデータのビットエラーの有無を効率的にチェックでき、また、エラー発生箇所に対処可能なCAMシステムを得ることができる。
【図面の簡単な説明】
【図1】図1は、第一の実施の形態の構成を示す図である。
【図2】図2は、第一の実施の形態のCAMアレイ部のメモリ内の構成を示す図である。
【図3】図3は、第一の実施の形態のパリティ照合部の構成を示す図である。
【図4】図4は、第一の実施本実施の形態のCAMシステムの主要部を示す図である。
【図5】図5は、パリティビット演算式を示すものである。
【図6】図6は、パリティ付加回路を示す図である。
【図7】図7は、パリティ照合回路を示す図である。
【図8】図8は、第二の実施の形態のCAMシステムの主要部を示す図である。
【図9】図9は、第三の実施の形態のメモリ内の構成を示す図である。
【図10】図10は、第三の実施の形態の制御を表すフローチャートである。
【図11】図11は、第三の実施の形態のCAMシステムの主要部を示す図である。
【図12】図12は、本発明をメモリアレイへ適用した例を示す図である。
【符号の説明】
1:パリティ付加部、2:CAMアレイ部、3:パリティ照合部、4:レジスタアレイ部、5:保持回路、6:アドレスデコーダ、7:比較回路、8:エンコード部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a content address memory (hereinafter referred to as CAM: Content Addressable Memory) system having a failure detection function.
[0002]
[Prior art]
Conventionally, in order to ensure the operation quality of a device using a semiconductor memory element, a bit error of the memory element has been detected. In a conventional RAM (Random Access Memory), ROM (Read Only Memory), and the like, this bit error is detected by using a parity check or ECC (Error Correction Code) mechanism.
[0003]
In the detection method using parity check, by adding one parity bit to the data bit, the number of data bits and the bit value in the parity bit is “1” is unified to an odd number or an even number. Thus, at the time of writing to the memory array and reading, an error is detected by checking the number of bits whose data bits and parity bits have a value of “1”.
[0004]
In the detection method using the ECC mechanism, a check bit is generated from a data bit using an extended Hamming code, the data bit and the check bit are written to the memory array, and at the time of reading, the data bit and the check bit read from the memory array are read. Then, a syndrome is generated, and 1-bit error correction and 2-bit error detection are performed from this syndrome. Many of these bit error detection methods have already been invented and are generally widely used.
[0005]
By the way, CAM gives the contents (data) as an input as well as the function to read the contents (data) from the physical position (address) like RAM, ROM, etc., and something equivalent to it exists in the memory array It also has a function of performing a search as to whether or not to match, and outputting the coincident physical position (address) and detection signal.
CAM is widely used for address transfer, such as asynchronous transfer mode (ATM) and high-speed IP (Internet Protocol). Error detection is essential.
[0006]
[Problems to be solved by the invention]
However, in the CAM having the characteristics as described above, when a bit error occurs in the memory array, even if correct data is input, the input data does not match the data in which the bit error has occurred. In the first place, the output cannot be obtained. Therefore, as in the conventional method using a parity check or ECC mechanism, a method for detecting an error by specifying an address, performing an operation on the read data, and collating it with a check bit, etc. It cannot be used to detect errors.
[0007]
Further, in the CAM, it is possible that data with a bit error is erroneously determined to have the same value as other inputs, and a coincidence signal or address is erroneously detected. For example, even if the occurrence of this bit error is due to a hardware failure, it is not recognized as a bit error, and therefore writing to the failed address may be executed again.
[0008]
In order to detect a bit error of a CAM having the above function, a method of monitoring data of all addresses can be considered. In order to monitor all addresses, for example, with respect to data once stored in the memory array, a method of accessing and reading all data in the order of addresses and checking the parity is considered. However, this method has a problem that it takes too much time to complete the parity check.
The present invention has been made in view of the above circumstances, and an object thereof is to provide a CAM system having a function capable of efficiently checking the presence or absence of bit errors in all addresses.
[0009]
[Means for Solving the Problems]
The present invention provides a CAM system capable of performing a parity check without specifying an address for all of the memory array (register array) or all stored data to be checked.
[0010]
The present invention relates to a CAM system that performs a parity check on data stored in all addresses in a memory array (register array) and detects a bit error at the time of writing, and a CAM system for an address in which the error occurs. Internal control that prohibits rewriting of data at the time of writing (hereinafter referred to as writing prohibition processing), and control that masks the address where the error has occurred at the time of data retrieval (hereinafter referred to as search mask processing) And a CAM system having a function of determining a target address to be subjected to parity check in the CAM system and performing parity check only on stored data in the address.
[0011]
For example, the present invention is a content address memory system having an error detection function, and holds parity adding means for adding an error correction code to input data, and data having the error correction code added thereto, A data holding unit that always outputs data to be held, and the data holding unit that collates the error correction code added to the output data of the data holding unit and outputs a parity check result signal when a parity error is detected There is provided a content address memory system comprising parity check means provided corresponding to each.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a diagram showing a configuration of a CAM system in the first embodiment. As shown in the figure, the CAM system in the present embodiment has a
[0013]
The
[0014]
A configuration in the memory of the
[0015]
A detailed configuration of the
[0016]
FIG. 4 is a diagram showing details of a main part of the CAM system in the present embodiment.
The CAM system in the present embodiment includes a
[0017]
The
[0018]
As shown in the figure, the
[0019]
In the CAM system in the present embodiment, since the
[0020]
The CAM system in the present embodiment includes 8-bit input data DI10b (
First, the
[0021]
As shown in FIG. 5, the parity bits in the case of odd parity take an exclusive OR (hereinafter referred to as EX-OR) for all
[0022]
FIG. 7 shows a circuit configuration for collating parity bits. In the verification, the parity bit is calculated for the
[0023]
The CAM has a write mode for writing data to the address designated by the
[0024]
In the write mode, the
[0025]
In the data search mode, the
[0026]
Here, in the configuration of FIG. 4, the parity check calculation timing is determined by the holding
[0027]
When the parity check enable signal PCHKEN19b is '0', that is, in the write mode, the holding
With the circuit operation described above, the CAM system in the present embodiment can detect a parity error and notify the upstream apparatus by a parity error signal PERR20b in a mode other than the write mode. At the same time, the upstream device can perform write prohibition processing, search mask processing, and the like on the address where the bit error has been received.
[0028]
Next, a second embodiment will be described. In the second embodiment, the parity error signal PERR20b is used, and control such as write prohibition processing and / or search mask processing is performed on the address where the parity error occurs in the CAM system. To do.
[0029]
In the first embodiment, in the CAM system, writing control and comparison circuit operation are performed regardless of the occurrence of a parity error. For this reason, in the first embodiment, the write prohibition process and / or the search mask process for the address where the occurrence of the parity error is detected in the
[0030]
Therefore, in the present embodiment, it is possible to perform a write prohibition process and / or a search mask process for an address where occurrence of a parity error is detected in the CAM system.
[0031]
First, a description will be given of a method of executing a write prohibition process on a parity error occurrence address in the CAM system when a parity error occurs. A characteristic part of the present embodiment is shown in FIG. Other configurations are the same as those shown in FIGS. 1 to 4 of the first embodiment described above.
[0032]
In the present embodiment, as shown in the figure, in order to control writing to the address where the
[0033]
According to this configuration, it is possible to write to the
[0034]
When the write prohibition process is performed inside the
[0035]
Next, a method for executing search mask processing for a parity error occurrence address in the CAM system when a parity error occurs will be described.
[0036]
In this embodiment, as shown in FIG. 8, in order to perform a search mask process on the address where the parity error is detected in the
[0037]
According to this configuration, it is possible to compare the register
[0038]
As described above, in the present embodiment, control is performed so that writing to an address in which the occurrence of a parity error is detected is prohibited and excluded from the search target within the CAM system, without being controlled by the upstream device. be able to.
[0039]
Next, a third embodiment will be described. In the present embodiment, a parity check is executed only for an address where valid data is actually written.
[0040]
In the above-described embodiment, all data stored in the
[0041]
In the present embodiment, '1' is written in the
[0042]
After powering on the CAM system, the upstream device first initializes all addresses in the register array unit 4 (step 101). This means that the
[0043]
After that, if the upstream device is in the write mode, the write destination address is a parity error due to a hardware error or the like, and if it is the address that received the notification, an unnecessary data deletion operation is performed to prohibit writing. (Step 103), the
[0044]
The upstream device does not rewrite this flag in the reading mode and the search mode (step 105).
[0045]
Next, the operation of the circuit using this
[0046]
As explained with reference to FIG. 7, the odd parity operation is performed on the 0th to 7th bits of the data in which one address of the
[0047]
As a result, in this embodiment, unused data areas and addresses that are prohibited from being used due to hardware errors can be excluded from the parity check.
By using the CAM system provided with the bit error detection means according to the first to third embodiments, when a bit error occurs on the memory array (register array), the abnormality is detected inside the system or outside the system. It is possible to notify the upstream device, and when an abnormality is detected, it becomes possible to perform operations such as write prohibition and search masking of the address where the abnormality has occurred.
[0048]
In the first to third embodiments, a parity adding unit is provided in the preceding stage of the register array, and a parity checking unit is provided for each address in the subsequent stage. In the register array, the input data is always in the subsequent stage. To be output to. With this configuration, the parity check can be completed in the parity check unit when all the input data is written to the register array. Then, it is possible to execute a write prohibition process, a search mask process, and the like using the parity error signal of the address where the error is detected by the parity check unit.
In the above-described embodiment, an example in which the present invention is applied to a CAM system including a register array and a logic element has been described. However, the configuration of the present invention can also be applied to a semiconductor memory, for example. FIG. 12 shows an application example thereof.
[0049]
As shown in this figure, in a memory array comprising a word selection line 1f, a write bit selection line 2f, and a read
[0050]
With this configuration, the semiconductor memory can obtain the output parity check result for each address, and can perform processing such as write prohibition and search mask using the result.
[0051]
【The invention's effect】
It is possible to efficiently check for the presence or absence of bit errors in the data stored at all addresses, and to obtain a CAM system that can deal with the location where the error occurred.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration of a first embodiment.
FIG. 2 is a diagram illustrating a configuration in a memory of a CAM array unit according to the first embodiment;
FIG. 3 is a diagram illustrating a configuration of a parity check unit according to the first embodiment;
FIG. 4 is a diagram showing a main part of the CAM system of the first embodiment.
FIG. 5 shows a parity bit arithmetic expression.
FIG. 6 is a diagram illustrating a parity adding circuit.
FIG. 7 is a diagram illustrating a parity check circuit.
FIG. 8 is a diagram illustrating a main part of a CAM system according to a second embodiment.
FIG. 9 is a diagram illustrating a configuration in a memory according to a third embodiment;
FIG. 10 is a flowchart showing the control of the third embodiment.
FIG. 11 is a diagram illustrating a main part of a CAM system according to a third embodiment.
FIG. 12 is a diagram showing an example in which the present invention is applied to a memory array.
[Explanation of symbols]
1: Parity addition unit, 2: CAM array unit, 3: Parity check unit, 4: Register array unit, 5: Holding circuit, 6: Address decoder, 7: Comparison circuit, 8: Encoding unit
Claims (5)
入力されるデータにエラー訂正符号を付加するパリティ付加手段と、
前記エラー訂正符号を付加されたデータを保持するとともに、保持するデータを常時出力するデータ保持部と、
前記データ保持部の出力データに付加された前記エラー訂正符号を照合し、パリティエラーを検出したとき、パリティ照合結果信号を出力する、前記データ保持部各々に対応して設けられたパリティ照合手段とを備えることを特徴とする内容アドレスメモリシステム。A content address memory system with an error detection function,
Parity adding means for adding an error correction code to input data;
A data holding unit that holds the data to which the error correction code is added and that constantly outputs the held data;
Parity check means provided corresponding to each of the data holding units, which checks the error correction code added to the output data of the data holding unit and outputs a parity check result signal when a parity error is detected; A content address memory system comprising:
データ書き込み時以外に、前記パリティ照合手段において検出されたパリティ照合結果信号を取り込み、パリティエラー信号を出力するエラー信号出力手段をさらに備えることを特徴とする内容アドレスメモリシステム。The content address memory system of claim 1,
A content address memory system further comprising error signal output means for taking in a parity check result signal detected by the parity check means and outputting a parity error signal other than when writing data.
前記エラー信号出力手段から出力された前記パリティエラー信号により、前記レジスタアレイの前記パリティエラーが検出された前記データ保持部を書き込み禁止とする書き込み制御手段をさらに備えたことを特徴とする内容アドレスメモリシステム。A content address memory system according to claim 2,
Content address memory further comprising write control means for prohibiting writing to the data holding unit in which the parity error of the register array is detected by the parity error signal output from the error signal output means system.
前記エラー信号出力手段から出力された前記パリティエラー信号により、前記レジスタアレイの前記パリティエラーが検出された前記データ保持部を検索対象外とする検索マスク手段をさらに備えたことを特徴とする内容アドレスメモリシステム。A content address memory system according to claim 2 or 3,
Content addressing means, further comprising: search mask means for excluding the data holding unit in which the parity error of the register array is detected by the parity error signal output from the error signal output means. Memory system.
前記レジスタアレイ内の有効なデータのみパリティチェックを行う対象選別手段をさらに備えたことを特徴とする内容アドレスメモリシステム。A content address memory system according to claim 2, 3 or 4,
A content address memory system further comprising a target selecting means for performing a parity check on only valid data in the register array.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002120596A JP4025575B2 (en) | 2002-04-23 | 2002-04-23 | Content address memory system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002120596A JP4025575B2 (en) | 2002-04-23 | 2002-04-23 | Content address memory system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003316662A JP2003316662A (en) | 2003-11-07 |
JP4025575B2 true JP4025575B2 (en) | 2007-12-19 |
Family
ID=29536776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002120596A Expired - Fee Related JP4025575B2 (en) | 2002-04-23 | 2002-04-23 | Content address memory system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4025575B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10963344B2 (en) | 2019-05-28 | 2021-03-30 | Kabushiki Kaisha Toshiba | Information processing circuitry, information processing method, and non-transitory computer readable medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005353238A (en) | 2004-06-14 | 2005-12-22 | Renesas Technology Corp | Associative memory |
JP2008232063A (en) * | 2007-03-22 | 2008-10-02 | Toyota Motor Corp | Internal combustion engine control system |
CN114999559B (en) * | 2022-08-03 | 2022-11-29 | 合肥康芯威存储技术有限公司 | Method and system for testing memory chip and storage medium |
-
2002
- 2002-04-23 JP JP2002120596A patent/JP4025575B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10963344B2 (en) | 2019-05-28 | 2021-03-30 | Kabushiki Kaisha Toshiba | Information processing circuitry, information processing method, and non-transitory computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
JP2003316662A (en) | 2003-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11921576B2 (en) | Memory device and repair method with column-based error code tracking | |
US6067656A (en) | Method and apparatus for detecting soft errors in content addressable memory arrays | |
US9146809B2 (en) | ECC method for double pattern flash memory | |
JPS6061837A (en) | Error corrector | |
JP2830308B2 (en) | Information processing device | |
JP2519286B2 (en) | Address line test method | |
US20140351673A1 (en) | Dram method, components, and system configurations for error management | |
US12222829B2 (en) | Memory module with dedicated repair devices | |
JP4025575B2 (en) | Content address memory system | |
JPH0594377A (en) | Parity detecting circuit | |
KR20030023762A (en) | Method and circuit arrangement for memory error processing | |
US20070186035A1 (en) | Content-addressable-memory device and method of controlling content addressable memory | |
JP2004054936A (en) | Method and device for detecting bit error in content addressable memory | |
JP6332134B2 (en) | Memory diagnostic circuit | |
US7383492B2 (en) | First-in/first-out (FIFO) information protection and error detection method and apparatus | |
US7321996B1 (en) | Digital data error insertion methods and apparatus | |
JP2010049722A (en) | Content addressable memory data error detecting device and content addressable memory data error detection method, and program | |
US20240420795A1 (en) | One-time-programmable (otp) memory with error detection | |
JPS605022B2 (en) | Storage device error detection device | |
JPH06103469B2 (en) | Memory control circuit | |
CN119296627A (en) | SRAM protection circuit, method and chip | |
JPH06214814A (en) | Illegal memory access detecting system | |
JPH02143352A (en) | Memory error detection and correction system | |
JP2004334707A (en) | Memory inspection device and memory inspection method | |
JPH05225070A (en) | Memory device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20040210 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050404 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20050407 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20071002 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071005 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101012 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |