Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6497258B2 - Semiconductor memory device and semiconductor memory device access control method - Google Patents
[go: Go Back, main page]

JP6497258B2 - Semiconductor memory device and semiconductor memory device access control method - Google Patents

Semiconductor memory device and semiconductor memory device access control method Download PDF

Info

Publication number
JP6497258B2
JP6497258B2 JP2015150798A JP2015150798A JP6497258B2 JP 6497258 B2 JP6497258 B2 JP 6497258B2 JP 2015150798 A JP2015150798 A JP 2015150798A JP 2015150798 A JP2015150798 A JP 2015150798A JP 6497258 B2 JP6497258 B2 JP 6497258B2
Authority
JP
Japan
Prior art keywords
bit
data
rearrangement
error
semiconductor memory
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.)
Active
Application number
JP2015150798A
Other languages
Japanese (ja)
Other versions
JP2017033170A (en
Inventor
神谷 彰
彰 神谷
成冨 裕志
裕志 成冨
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.)
Socionext Inc
Original Assignee
Socionext Inc
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 Socionext Inc filed Critical Socionext Inc
Priority to JP2015150798A priority Critical patent/JP6497258B2/en
Publication of JP2017033170A publication Critical patent/JP2017033170A/en
Application granted granted Critical
Publication of JP6497258B2 publication Critical patent/JP6497258B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Description

本明細書で言及する実施例は、半導体記憶装置および半導体記憶装置のアクセス制御方法に関する。   The embodiments referred to in this specification relate to a semiconductor memory device and an access control method for the semiconductor memory device.

従来、半導体記憶装置(例えば、RAM(Random Access Memory)やフラッシュメモリ(Flash Electrically Erasable Programmable Read-Only Memory))には、エラー検出・訂正(ECC:Error checking and Correction)機能が設けられたものがある。   Conventionally, semiconductor memory devices (for example, RAM (Random Access Memory) and flash memory (Flash Electrically Erasable Programmable Read-Only Memory)) are provided with an error checking and correction (ECC) function. is there.

すなわち、エラー検出・訂正回路(ECC回路)を設けることにより、メモリ(例えば、RAM)に誤った値が記録されているのを検出し、正しい値に訂正して出力することができる。なお、ECCは、"Error Correcting Code"または"Error Check and Correct"の略語とされることもある。   That is, by providing an error detection / correction circuit (ECC circuit), it is possible to detect that an incorrect value is recorded in a memory (for example, a RAM), correct it to a correct value, and output it. ECC may be an abbreviation of “Error Correcting Code” or “Error Check and Correct”.

このように、例えば、RAMにおいて、読み出しデータにソフトエラーが発生し、或いは、経年劣化等に起因したデータエラーが発生した場合、そのエラーをECC回路で検出および訂正し、エラー訂正したデータを出力することが可能になる。   In this way, for example, in RAM, when a soft error occurs in read data or a data error due to aging degradation, the error is detected and corrected by the ECC circuit, and the error-corrected data is output. It becomes possible to do.

ところで、従来、ECC機能の簡略化、或いは、冗長となるデータおよび回路の低減を図ることのできる半導体記憶装置として、様々な提案がなされている。   Conventionally, various proposals have been made as a semiconductor memory device capable of simplifying the ECC function or reducing redundant data and circuits.

特開2000−040036号公報JP 2000-040036 A 特許第4160625号公報Japanese Patent No. 4160625

上述したように、ECC機能を有する半導体記憶装置として、例えば、RAMにECC回路を搭載し、RAMからの読み出しデータを、ECC回路を経由して出力することで、エラーデータの検出および訂正を行うものが実用化されている。   As described above, as a semiconductor memory device having an ECC function, for example, an ECC circuit is mounted on a RAM, and read data from the RAM is output via the ECC circuit, thereby detecting and correcting error data. Things are in practical use.

しかしながら、そのような構成のRAMでは、データを読み出す毎にECC回路を経由することになるため、ECC回路を設けずに直接データ読み出しを行うRAMと比較すると、レイテンシが大きくなる。さらに、エラーデータの訂正には、冗長なECCデータを使用するため、例えば、RAMの容量を余計に消費し、実際に使用可能なメモリ容量が低減することになる。   However, since the RAM having such a configuration passes through the ECC circuit every time data is read, the latency is increased as compared with a RAM that directly reads data without providing the ECC circuit. Furthermore, since the redundant ECC data is used for correcting the error data, for example, the RAM capacity is excessively consumed, and the actually usable memory capacity is reduced.

一実施形態によれば、メモリ部と、第1並び替え回路と、第2並び替え回路と、を有する半導体記憶装置が提供される。前記第1並び替え回路は、複数ビットのデータを受け取り、前記データ内のエラーが検出された第1ビットを、エラーが検出されない第2ビットに並び替えて前記メモリ部へ格納する。   According to one embodiment, a semiconductor memory device having a memory unit, a first rearrangement circuit, and a second rearrangement circuit is provided. The first rearrangement circuit receives a plurality of bits of data, rearranges the first bit in which an error is detected in the data into a second bit in which no error is detected, and stores the second bit in the memory unit.

前記第2並び替え回路は、前記メモリ部から読み出されたデータを受け取り、前記第2ビットのデータを、前記第1ビットのデータと並び替えて出力する。前記第1ビットは、前記第2ビットよりも上位のビットであり、前記第2ビットは、前記データの内の最下位ビットであり、前記第1ビットが複数ビット存在する場合、前記第2ビットは、前記最下位ビットから上位に向かって順に選択される。 The second rearrangement circuit receives data read from the memory unit, rearranges the second bit data with the first bit data, and outputs the rearranged data. The first bit is a bit higher than the second bit, the second bit is the least significant bit of the data, and when there are a plurality of the first bits, the second bit Are selected in order from the least significant bit to the higher order.

開示の半導体記憶装置および半導体記憶装置のアクセス制御方法は、レイテンシの増大およびメモリの実際に使用可能なデータ容量の低下を抑えることができるという効果を奏する。   The disclosed semiconductor memory device and the access control method for the semiconductor memory device have an effect of suppressing an increase in latency and a decrease in data capacity that can actually be used in the memory.

図1は、半導体記憶装置の一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of a semiconductor memory device. 図2は、本実施例に係る半導体記憶装置の一例を示すブロック図である。FIG. 2 is a block diagram illustrating an example of the semiconductor memory device according to this embodiment. 図3は、図2に示す半導体記憶装置における処理を説明するためのフローチャート(その1)である。FIG. 3 is a flowchart (part 1) for explaining the process in the semiconductor memory device shown in FIG. 図4は、図2に示す半導体記憶装置における処理を説明するためのフローチャート(その2)である。FIG. 4 is a flowchart (part 2) for explaining the process in the semiconductor memory device shown in FIG. 図5は、図2に示す半導体記憶装置における処理を説明するためのフローチャート(その3)である。FIG. 5 is a flowchart (No. 3) for explaining the process in the semiconductor memory device shown in FIG. 図6は、図2に示す半導体記憶装置における処理の一例を説明するための図(その1)である。FIG. 6 is a diagram (part 1) for explaining an example of processing in the semiconductor memory device shown in FIG. 図7は、図2に示す半導体記憶装置における処理の一例を説明するための図(その2)である。FIG. 7 is a diagram (No. 2) for explaining an example of the process in the semiconductor memory device shown in FIG. 図8は、図2に示す半導体記憶装置における処理の一例を説明するための図(その3)である。FIG. 8 is a diagram (No. 3) for explaining an example of the process in the semiconductor memory device shown in FIG.

まず、本実施例の半導体記憶装置および半導体記憶装置のアクセス制御方法の実施例を詳述する前に、図1を参照して、半導体記憶装置の一例、並びに、その半導体記憶装置における課題を説明する。   First, before describing in detail an embodiment of a semiconductor memory device and an access control method for the semiconductor memory device according to the present embodiment, an example of the semiconductor memory device and problems in the semiconductor memory device will be described with reference to FIG. To do.

図1は、半導体記憶装置の一例を示すブロック図であり、ECC機能を設けたRAMの一例を示すものである。図1に示されるように、半導体記憶装置100は、RAM(メモリ部)101およびエラー検出・訂正回路(ECC回路)102を含む。   FIG. 1 is a block diagram illustrating an example of a semiconductor memory device, and illustrates an example of a RAM provided with an ECC function. As shown in FIG. 1, the semiconductor memory device 100 includes a RAM (memory unit) 101 and an error detection / correction circuit (ECC circuit) 102.

まず、RAM101に対してデータを書き込む場合、書き込みデータ(write)は、RAM101に入力されて書き込まれる。また、RAM101に書き込まれたデータを読み出す場合、RAM101からのデータは、ECC回路102に入力されて、エラーの検出および訂正が行われ、エラー訂正された読み出しデータ(read)がECC回路102から出力される。   First, when data is written to the RAM 101, write data (write) is input to the RAM 101 and written. When reading data written in the RAM 101, the data from the RAM 101 is input to the ECC circuit 102, errors are detected and corrected, and error-corrected read data (read) is output from the ECC circuit 102. Is done.

このように、図1に示す半導体記憶装置100は、RAM101から読み出したデータを、ECC回路102を介して出力することにより、エラー訂正された正しいデータ(read)を出力することができる。ここで、RAM101から読み出したデータのエラーは、例えば、RAM101におけるソフトエラー、或いは、経年劣化等によるデータエラー等の様々な要因により発生する。   As described above, the semiconductor memory device 100 shown in FIG. 1 can output error-corrected correct data (read) by outputting the data read from the RAM 101 via the ECC circuit 102. Here, an error in data read from the RAM 101 occurs due to various factors such as a software error in the RAM 101 or a data error due to deterioration over time.

しかしながら、図1に示す半導体記憶装置100では、例えば、RAM101からデータを読み出す場合、常に、ECC回路102を経由することになり、ECC回路を設けずに直接データ読み出しを行うものよりも、レイテンシが大きくなってしまう。   However, in the semiconductor memory device 100 shown in FIG. 1, for example, when data is read from the RAM 101, the data always passes through the ECC circuit 102, and the latency is higher than that in which data is directly read without providing the ECC circuit. It gets bigger.

さらに、ECC回路102によりエラーデータを訂正するには、冗長なECCデータを使用するため、例えば、RAM101の容量を余計に消費することになる。すなわち、ECCデータを使用することで、実際に使用可能なメモリ容量の低下を来すことになる。なお、このような課題は、RAMに限定されるものではなく、フラッシュメモリを始めとして、他の様々な半導体記憶装置でも同様に存在する。   Further, in order to correct the error data by the ECC circuit 102, redundant ECC data is used, so that, for example, the capacity of the RAM 101 is excessively consumed. That is, by using ECC data, the memory capacity that can actually be used is reduced. Such a problem is not limited to the RAM, and similarly exists in various other semiconductor memory devices including a flash memory.

以下、半導体記憶装置および半導体記憶装置のアクセス制御方法の実施例を、添付図面を参照して詳述する。図2は、本実施例に係る半導体記憶装置の一例を示すブロック図である。   Hereinafter, embodiments of a semiconductor memory device and an access control method for the semiconductor memory device will be described in detail with reference to the accompanying drawings. FIG. 2 is a block diagram illustrating an example of the semiconductor memory device according to this embodiment.

図2に示されるように、半導体記憶装置1は、RAM(メモリ部)11,書き込み側ビット並び替え回路(第1並び替え回路)21、エラー検出回路22および並び替え情報生成回路23を含む。さらに、半導体記憶装置1は、情報格納レジスタ24、情報反映レジスタ25および読み出し側ビット並び替え回路(第2並び替え回路)26を含む。   As shown in FIG. 2, the semiconductor memory device 1 includes a RAM (memory unit) 11, a write side bit rearrangement circuit (first rearrangement circuit) 21, an error detection circuit 22, and a rearrangement information generation circuit 23. Further, the semiconductor memory device 1 includes an information storage register 24, an information reflection register 25, and a read side bit rearrangement circuit (second rearrangement circuit) 26.

書き込み側ビット並び替え回路21は、RAM11に書き込むデータを受け取り、後に詳述するビットの並び替え(データの並び替え)を行って、書き込みデータ(write)をRAM11に出力する。   The write side bit rearrangement circuit 21 receives data to be written in the RAM 11, performs bit rearrangement (data rearrangement) described in detail later, and outputs write data (write) to the RAM 11.

エラー検出回路22は、RAM11から読み出されるデータのエラー検出を行い、並び替え情報生成回路23は、エラー検出回路22の出力に基づいて並び替え情報を生成し、情報格納レジスタ24に保存する。   The error detection circuit 22 detects errors in the data read from the RAM 11, and the rearrangement information generation circuit 23 generates rearrangement information based on the output of the error detection circuit 22 and stores it in the information storage register 24.

ここで、エラー検出および並び替え情報の生成は、常に行ってもよいが、例えば、所定の期間ごとに行うこともできる。なお、エラー検出および並び替え情報の生成を行う期間は、RAM11が使用される環境等に応じて設定することができる。   Here, the error detection and the generation of the rearrangement information may always be performed, but may be performed every predetermined period, for example. Note that the period during which error detection and rearrangement information are generated can be set according to the environment in which the RAM 11 is used.

情報反映レジスタ25は、情報格納レジスタ24に保存された並び替え情報を受け取り、書き込み側ビット並び替え回路21にフィードバックすると共に、読み出し側ビット並び替え回路26に出力する。   The information reflection register 25 receives the rearrangement information stored in the information storage register 24, feeds it back to the write side bit rearrangement circuit 21, and outputs it to the read side bit rearrangement circuit 26.

ここで、RAM11から読み出したデータは、図1を参照して説明したようなECC回路102を経由させることなく、単なるビットの並び替え処理を行う読み出し側ビット並び替え回路26を経由するのみなので高速化することができる。また、エラー検出回路11は、RAM11からのデータ読み出し処理とは、別に動作させてRAM11における不良ビットの特定を行う。   Here, the data read from the RAM 11 does not pass through the ECC circuit 102 as described with reference to FIG. 1, but passes through the read-side bit rearrangement circuit 26 that performs simple bit rearrangement processing, so that the data is read at high speed. Can be Further, the error detection circuit 11 is operated separately from the data reading process from the RAM 11 to specify a defective bit in the RAM 11.

なお、エラー検出回路11により特定された不良ビット情報は、並び替え情報生成回路23に出力され、例えば、次回にRAM11を使用するときのために利用される。すなわち、並び替え情報生成回路23は、例えば、不良ビットが多ビットデータの上位に位置する場合のみ、下位の正常なビットと入れ替えるといった並び替え情報を生成し、情報格納レジスタ24に保存する。   The defective bit information specified by the error detection circuit 11 is output to the rearrangement information generation circuit 23, and is used, for example, when the RAM 11 is used next time. That is, the rearrangement information generation circuit 23 generates rearrangement information such as replacing the lower bits with normal bits only when a defective bit is located in the upper part of the multi-bit data, and stores the rearrangement information in the information storage register 24.

さらに、例えば、次回にRAM11を使用するとき、RAM11に対してデータ書き込みを開始する前に、情報格納レジスタ24に保存されている前回生成した並び替え情報を情報反映レジスタ25にロードする。   Further, for example, when the RAM 11 is used next time, the rearrangement information generated last time stored in the information storage register 24 is loaded into the information reflection register 25 before data writing to the RAM 11 is started.

そして、情報反映レジスタ25にロードされた前回生成した並び替え情報を、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26に出力し、その並び替え情報を反映させる。   Then, the rearrangement information generated last time loaded in the information reflection register 25 is output to the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26 to reflect the rearrangement information.

なお、並び替え情報生成回路23により生成された並び替え情報(前回の並び替え情報)を、例えば、フラッシュメモリ等の不揮発性記憶装置に退避しておき、その不揮発性記憶装置のデータを情報反映レジスタ25にロードするようにしてもよい。この場合、例えば、電源立ち上げ直後からビット並び替え処理を行うことが可能になる。   Note that the rearrangement information (previous rearrangement information) generated by the rearrangement information generation circuit 23 is saved in a nonvolatile storage device such as a flash memory, and the data of the nonvolatile storage device is reflected in the information. You may make it load to the register | resistor 25. FIG. In this case, for example, the bit rearrangement process can be performed immediately after the power is turned on.

ここで、本実施例の適用は、例えば、画像データ等の単ビット不良が全体に対して大きく影響しないデータの処理に限定される。すなわち、本実施例では、後に詳述するように、多ビットデータのうち上位ビットでエラーが生じると、そのエラービットをエラーの生じていない下位ビットに置き替えるといったビット並び替え処理を行うためである。   Here, the application of the present embodiment is limited to, for example, data processing in which single-bit defects such as image data do not significantly affect the whole. That is, in this embodiment, as will be described in detail later, when an error occurs in the upper bits of the multi-bit data, a bit rearrangement process is performed in which the error bits are replaced with lower bits in which no error has occurred. is there.

また、例えば、画像データ等において、エラー検出を行うエラー検出対象ビットは、多ビットデータのうちデータの質に大きく影響する上位ビット(例えば、16ビットデータにおける上位8ビット等)のみとするのが、処理を高速化する上で好ましい。次に、上述した各処理を、図3〜図5を参照して詳述する。   Also, for example, in image data, error detection target bits for error detection are only upper bits (for example, upper 8 bits in 16-bit data) that have a great influence on data quality among multi-bit data. This is preferable for speeding up the processing. Next, each process described above will be described in detail with reference to FIGS.

図3〜5は、図2に示す半導体記憶装置における処理を説明するためのフローチャートである。ここで、図3は、RAM(メモリ部)11へのデータ書き込み処理の一例を説明するためのものであり、図4は、RAM11からのデータ読み出し処理の一例を説明するためのものである。また、図5は、RAM11から読み出したデータに基づいて並び替え情報を生成する処理の一例を説明するためのものである。   3 to 5 are flowcharts for explaining processing in the semiconductor memory device shown in FIG. Here, FIG. 3 is for explaining an example of data writing processing to the RAM (memory unit) 11, and FIG. 4 is for explaining an example of data reading processing from the RAM 11. FIG. 5 is a diagram for explaining an example of processing for generating rearrangement information based on data read from the RAM 11.

まず、図3に示されるように、RAM11へのデータ書き込み処理が開始すると、ステップST11において、ビット並び替え情報を情報格納レジスタから各並び回路に反映し、ステップST12に進む。   First, as shown in FIG. 3, when the data writing process to the RAM 11 is started, the bit rearrangement information is reflected from the information storage register to each arrangement circuit in step ST11, and the process proceeds to step ST12.

すなわち、ステップST11では、情報格納レジスタ24に保存されている並び替え情報を、情報反映レジスタ25にロードし、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26に反映させる。   That is, in step ST11, the rearrangement information stored in the information storage register 24 is loaded into the information reflection register 25 and reflected on the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26.

ステップST12では、ビット並び替え情報(書き込み側)が存在するかどうかを判定し、ビット並び替え情報(書き込み側)が存在しないと判定した場合には、そのままステップST14に進んで、RAMに対してデータ書き込みを行う。   In step ST12, it is determined whether or not the bit rearrangement information (write side) exists. If it is determined that the bit rearrangement information (write side) does not exist, the process proceeds to step ST14, and the RAM is read. Write data.

例えば、RAM11の1回目の書き込み処理、或いは、RAM11の上位ビットには不良が存在しない等により、書き込み側ビット並び替え回路21が処理するビット並び替え情報が存在しない場合、入力された書き込みデータを、そのままRAM11に書き込む。   For example, when there is no bit rearrangement information to be processed by the write side bit rearrangement circuit 21 due to the first write processing of the RAM 11 or no defect in the upper bits of the RAM 11, the input write data is Then, it is written in the RAM 11 as it is.

ステップST12において、ビット並び替え情報(書き込み側)が存在すると判定した場合には、ステップST13に進んで、ビット並び替えを行った後、ステップST14に進んで、ビット並び替えを行ったデータをRAM11に書き込む。   If it is determined in step ST12 that bit rearrangement information (write side) is present, the process proceeds to step ST13, after bit rearrangement, the process proceeds to step ST14, and the data subjected to bit rearrangement is stored in the RAM 11 Write to.

例えば、RAM11の1回目の書き込み処理で上位ビットに不良が検出された等によりビット並び替え情報が存在すれば、書き込み側ビット並び替え回路21は、そのビット並び替え情報に従ってビット並び替え処理を行った後、RAM11にデータを書き込む。そして、ステップST14において、RAM11に対するデータ書き込みを行うと、RAM11へのデータ書き込み処理が終了することになる。   For example, if bit rearrangement information exists due to a defect detected in the upper bits in the first write processing of the RAM 11, the write side bit rearrangement circuit 21 performs bit rearrangement processing according to the bit rearrangement information. After that, the data is written into the RAM 11. In step ST14, when data is written to the RAM 11, the data writing process to the RAM 11 is completed.

次に、図4に示されるように、RAM11からのデータ読み出し処理が開始すると、ステップST21において、エラー検出回路にてRAM読み出しデータをチェックし、ステップST22に進む。   Next, as shown in FIG. 4, when the data read process from the RAM 11 is started, the error read circuit checks the RAM read data in step ST21, and the process proceeds to step ST22.

すなわち、ステップST21では、RAM11から読み出したデータをエラー検出回路22によりチェックし、ステップST22に進んで、読み出しデータにビットエラーがあるかどうかを判定する。   That is, in step ST21, the data read from the RAM 11 is checked by the error detection circuit 22, and the process proceeds to step ST22 to determine whether or not there is a bit error in the read data.

ステップST22において、読み出しデータにビットエラーがないと判定すると、ステップST25に進み、一方、読み出しデータにビットエラーがあると判定すると、ステップST23に進んで、ビットエラーが上位ビットに存在するかどうかを判定する。   If it is determined in step ST22 that there is no bit error in the read data, the process proceeds to step ST25. On the other hand, if it is determined that there is a bit error in the read data, the process proceeds to step ST23 to determine whether a bit error exists in the upper bits. judge.

ステップST23において、ビットエラーが上位ビットに存在しないと判定すると、ステップST25に進み、一方、ビットエラーが上位ビットに存在すると判定すると、ステップST24に進む。   If it is determined in step ST23 that a bit error does not exist in the upper bits, the process proceeds to step ST25, whereas if it is determined that a bit error exists in the upper bits, the process proceeds to step ST24.

ステップST24では、エラー対象ビットと正常ビットの並び替え情報を生成し、情報格納レジスタに保存して、ステップST25に進む。なお、ステップST24におけるエラー対象ビットと正常ビットの並び替え情報の生成に関しては、後に、図6〜図8を参照して詳述する。   In step ST24, rearrangement information of the error target bit and the normal bit is generated, stored in the information storage register, and the process proceeds to step ST25. The generation of the rearrangement information of the error target bit and the normal bit in step ST24 will be described in detail later with reference to FIGS.

そして、ステップST24において、データ読み出しは終了かどうかを判定し、終了していないと判定すれば、ステップST21に戻って同様の処理を繰り返し、そうでなければ、RAM11からのデータ読み出し処理を終了する。   In step ST24, it is determined whether or not the data reading is completed. If it is determined that the data reading is not completed, the process returns to step ST21 to repeat the same processing. Otherwise, the data reading processing from the RAM 11 is terminated. .

さらに、図5に示されるように、RAM11から読み出したデータに基づいて並び替え情報を生成する処理開始すると、ステップST31において、ビット並び替え情報を情報格納レジスタから各並び回路に反映し、ステップST32に進む。   Further, as shown in FIG. 5, when the process of generating the rearrangement information based on the data read from the RAM 11 is started, the bit rearrangement information is reflected from the information storage register to each arrangement circuit in step ST31, and step ST32 is performed. Proceed to

すなわち、ステップST31では、情報格納レジスタ24に保存されている並び替え情報を、情報反映レジスタ25にロードし、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26に反映させる。   That is, in step ST31, the rearrangement information stored in the information storage register 24 is loaded into the information reflection register 25 and reflected in the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26.

ステップST32では、ビット並び替え情報(読み出し側)が存在するかどうかを判定し、ビット並び替え情報(読み出し側)が存在しないと判定した場合には、そのままステップST34に進んで、後段にデータ送信する。   In step ST32, it is determined whether or not the bit rearrangement information (reading side) exists. If it is determined that the bit rearrangement information (reading side) does not exist, the process proceeds to step ST34 as it is and data transmission is performed to the subsequent stage. To do.

例えば、RAM11には不良ビットが存在しない、或いは、RAM11の上位ビットには不良が存在しない等により、読み出し側ビット並び替え回路26が処理するビット並び替え情報が存在しない場合、読み出されたデータを、そのまま後段に出力する。   For example, when there is no defective bit in the RAM 11 or there is no defect in the upper bits of the RAM 11, the read data is read when there is no bit rearrangement information to be processed by the read side bit rearrangement circuit 26. Is output to the subsequent stage as it is.

ステップST32において、ビット並び替え情報(読み出し側)が存在すると判定した場合には、ステップST33に進んで、ビット並び替えを行った後、ステップST34に進んで、後段にデータ送信する。   If it is determined in step ST32 that the bit rearrangement information (reading side) is present, the process proceeds to step ST33 to perform bit rearrangement, and then proceeds to step ST34 to transmit data to the subsequent stage.

例えば、RAM11の上位ビットに不良が存在し、読み出し側ビット並び替え回路26が処理するビット並び替え情報が存在する場合、読み出し側ビット並び替え回路26は、そのビット並び替え情報に従ってビット並び替え処理を行う。   For example, when there is a defect in the upper bits of the RAM 11 and there is bit rearrangement information processed by the read side bit rearrangement circuit 26, the read side bit rearrangement circuit 26 performs a bit rearrangement process according to the bit rearrangement information. I do.

この読み出し側ビット並び替え回路26によるビット並び替え処理に関しては、ステップST24におけるエラー対象ビットと正常ビットの並び替え情報の生成と共に、図6〜図8を参照して、以下に詳述する。   The bit rearrangement processing by the read side bit rearrangement circuit 26 will be described in detail below with reference to FIGS. 6 to 8 together with the generation of the rearrangement information of the error target bit and the normal bit in step ST24.

図6〜図8は、図2に示す半導体記憶装置における処理の一例を説明するための図である。すなわち、図6〜図8は、並び替え情報生成回路23による並び替え情報の生成、並びに、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26による並び替え処理の一例を説明するためのものである。   6 to 8 are diagrams for explaining an example of processing in the semiconductor memory device shown in FIG. That is, FIGS. 6 to 8 illustrate an example of generation of rearrangement information by the rearrangement information generation circuit 23 and rearrangement processing by the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26. Is.

ここで、図6〜図8は、16進数『5555』の書き込みデータを、メモリ部(RAM11)に書き込み/読み出しする場合の処理を説明するためのものであるが、これは単なる一例を示すだけのものであり、様々な変形および変更が可能なのはいうまでもない。なお、16進数『5555』は、2進数『0101010101010101』に対応する。   Here, FIGS. 6 to 8 are for explaining processing when writing / reading the write data of the hexadecimal number “5555” to / from the memory unit (RAM 11), but this is merely an example. It goes without saying that various modifications and changes are possible. The hexadecimal number “5555” corresponds to the binary number “0101010101010101”.

図6は、16進数『5555』に対応する2進数『0101010101010101』を表示するためのメモリ(RAM11)における16ビットデータの格納領域を示す。以下の説明では、16ビットのうち、上位8ビット(bit:「15」〜「8」)に対してエラー検出・対処を実施し、下位8ビット(bit:「7」〜「0」)はエラー検出の対象外として説明する。   FIG. 6 shows a storage area of 16-bit data in the memory (RAM 11) for displaying the binary number “0101010101010101” corresponding to the hexadecimal number “5555”. In the following description, error detection and countermeasures are performed on the upper 8 bits (bit: “15” to “8”) out of 16 bits, and the lower 8 bits (bit: “7” to “0”) are It will be described as not subject to error detection.

具体的に、例えば、YCBCR方式では、「人間の目は明るさの変化には敏感だが、色の変化には鈍感である」という性質に基づいて、色度信号の情報量を減らすことができる。そのような比較的重要度の低くなる画像パラメータに対しては、ある程度の上位ビットにエラー検出を絞っても、画質に与える影響は小さいと考えられる。また、動画では、例えば、毎秒数十フレーム分の1の画像の中に画素のエラーが存在しても、判別するのは難しいことが知られている。   Specifically, for example, in the YCBCR system, the amount of information of the chromaticity signal can be reduced based on the property that “the human eye is sensitive to changes in brightness but insensitive to changes in color”. . For such image parameters that are relatively insignificant, it is considered that the influence on the image quality is small even if error detection is limited to some upper bits. In addition, it is known that in the case of moving images, for example, even if a pixel error exists in an image of several tens of frames per second, it is difficult to determine.

そのため、例えば、画像の連続データに対して、エラービット検出範囲をある程度の上位ビットに絞っても、見た目には気づき難いと考えられる。すなわち、ビットエラーを検出した場合、次のフレームでは、ビットの並び替えが行われるため、ほとんど気にならない。また、静止画において、撮影前のライブビューとして使用する場合も同様のことがいえる。   For this reason, for example, even if the error bit detection range is narrowed to a certain upper bit for continuous data of an image, it is difficult to notice visually. In other words, when a bit error is detected, bit rearrangement is performed in the next frame, so there is little concern. The same applies to a still image used as a live view before shooting.

すなわち、エラー検出および並び替え情報の生成を常に行う場合、例えば、フレーム毎に補正(ビットの並び替え)がかかることで、フレーム内の画素エラーが連続にならず、目立たないことになる。   That is, when error detection and rearrangement information generation are always performed, for example, correction (rearrangement of bits) is performed for each frame, so that pixel errors in the frame are not continuous and are not conspicuous.

また、カメラでは、例えば、撮影前にライブビュー表示がなされるので、その際の画素のエラーは記録に残らず、その面からも問題になることはない。なお、例えば、ライブビューの先頭数フレームが流れれば、最適な状態(全てのエラーが下位ビットにあつまる)に落ち着くため、動画を録画するときや静止画の撮影時には、エラーが目立たない状態になる。   In addition, since the camera performs live view display before shooting, for example, pixel errors at that time are not recorded, and there is no problem from that aspect. For example, if the first few frames of the live view flow, it will settle in the optimal state (all errors are collected in the lower bits), so the error will not be noticeable when recording a video or shooting a still image. Become.

このように、本実施例の適用は、多ビットデータ(例えば、16ビットデータ)のうち、上位ビット(例えば、上位8ビット)はデータ品質に大きく影響するが、下位ビット(例えば、最下位ビット等)はデータ品質に殆ど影響を与えない画像データ等が好ましい。   As described above, in the application of this embodiment, among multi-bit data (for example, 16-bit data), the upper bits (for example, the upper 8 bits) greatly affect the data quality, but the lower bits (for example, the least significant bits) Etc.) is preferably image data that hardly affects the data quality.

また、上述のように、エラー訂正とするビット数(エラー対象ビット)は、さらに減らすことができ、例えば、16ビットのRAMにおけるエラー発生の確率を多く見積もって4ビットとしても、例えば、ライブビュー時に4分割してチェックしておけば、4フレームで最適状態に維持することができる。なお、本実施例の適用は、このようなカメラのライブビューの画像データに限定されるものではない。   In addition, as described above, the number of bits for error correction (error target bits) can be further reduced. For example, even if the probability of error occurrence in a 16-bit RAM is estimated to be 4 bits, If the check is divided into four at times, the optimum state can be maintained in four frames. The application of the present embodiment is not limited to such live view image data of the camera.

このように、例えば、画像データは、ビットエラーが生じても、そのエラーが上位ビットであるほど画質に対する影響が大きく、下位ビットになればなるほど画質に対する影響は小さくなる。これを踏まえて、以下の説明では、16ビットの画像データのうち、画質に対する影響が大きい上位8ビットに対してエラー検出・対処を行うものとする。   Thus, for example, even if a bit error occurs in image data, the higher the bit is, the greater the influence on the image quality, and the lower the bit, the less the influence on the image quality. Based on this, in the following description, it is assumed that error detection and handling are performed on the upper 8 bits of 16-bit image data that have a large influence on image quality.

すなわち、図7および図8では、16ビットのメモリ領域(RAM11)における最上位から2ビット目(bit:「14」)が故障ビット、具体的に、データが『0』に固定の場合を例として説明する。   That is, in FIGS. 7 and 8, the second bit (bit: “14”) from the most significant bit in the 16-bit memory area (RAM 11) is a failure bit. Specifically, the data is fixed to “0”. Will be described.

図7は、RAM11に対する1回目の処理(1回目のアクセス)を示すものであり、RAM11(16ビットのメモリ領域)に対して16進数『5555』を書き込み、その後、読み出しを行った場合を示す。   FIG. 7 shows the first processing (first access) to the RAM 11 and shows a case where the hexadecimal number “5555” is written to the RAM 11 (16-bit memory area) and then read. .

まず、1回目の処理では、図7(a)に示されるように、例えば、16進数『0000』が書き込まれている、或いは、初期状態の16ビットメモリ領域(11)に対して、図7(b)に示されるように、16進数データ『5555』を書き込む。   First, in the first process, as shown in FIG. 7A, for example, a hexadecimal number “0000” is written, or the initial 16-bit memory area (11) is changed to FIG. As shown in (b), hexadecimal data “5555” is written.

このとき、図7(c)に示されるように、最上位から2ビット目(bit:「14」)が故障(『0』に固定)しているため、本来の2進数データ『0101010101010101』は、『0001010101010101』としてメモリ領域に保存される。   At this time, as shown in FIG. 7C, the second bit from the most significant bit (bit: “14”) is faulty (fixed to “0”), so the original binary data “0101010101010101” is , “00010101010101” is stored in the memory area.

さらに、図7(d)に示されるように、読み出しを行うと、メモリ領域からは、最上位から2ビット目のデータが『0』になっている『0001010101010101』が読み出される。なお、この2進数データ『0001010101010101』は、16進数データ『1555』に対応する。   Further, as shown in FIG. 7D, when reading is performed, “0001010101010101” in which the second-bit data from the most significant bit is “0” is read from the memory area. The binary number data “0001010101010101” corresponds to the hexadecimal number data “1555”.

この1回目の処理により、上位ビット(最上位から2ビット目)にエラーがあることを確認することができる。なお、エラービットは、エラー検出回路22(例えば、ECC回路におけるエラー検出部)により検出することができる。或いは、初期処理として、書き込みデータ『5555』と読み出しデータ『1555』の比較を行うことにより、容易にエラービットの検出を行うことができる。   By this first processing, it can be confirmed that there is an error in the upper bits (second bit from the most significant bit). The error bit can be detected by an error detection circuit 22 (for example, an error detection unit in the ECC circuit). Alternatively, the error bit can be easily detected by comparing the write data “5555” and the read data “1555” as the initial process.

そして、1回目の処理で上位ビットの故障を検出すると、その故障の上位ビットを、正常な下位ビットに置き替えるための並び替え情報を生成する。そして、2回目以降の処理(2回目以降のアクセス)で、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26に反映させる。   When a failure of the upper bit is detected in the first process, rearrangement information for replacing the upper bit of the failure with a normal lower bit is generated. Then, it is reflected in the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26 in the second and subsequent processes (second and subsequent accesses).

すなわち、本実施例において、エラー検出回路22は、単にエラービットを検出するだけで、ECC回路のようなエラービットの訂正機能が不要なため、簡単な回路構成で実現可能である。また、読み出しデータを、毎回ECC回路を経由して出力しなくてもよいため、レイテンシの増大を低減することができる。   That is, in the present embodiment, the error detection circuit 22 simply detects an error bit and does not require an error bit correction function like an ECC circuit, and thus can be realized with a simple circuit configuration. Further, since it is not necessary to output read data via the ECC circuit every time, an increase in latency can be reduced.

なお、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26による並び替え情報の反映は、ECC回路によるエラー検出・訂正処理とは異なり、以下に詳述するように、単なるビット(データ)の並べ替えで済むことになる。   The reflection of the rearrangement information by the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26 is different from the error detection / correction processing by the ECC circuit, and is simply a bit (data) as described in detail below. It will be enough to rearrange.

図8は、RAM11に対する2回目以降の処理を示すものである。なお、例えば、1回目の処理で並び替え情報生成回路23により生成された並び替え情報を、例えば、フラッシュメモリ等の不揮発性記憶装置に退避しておけば、その並び替え情報を利用することで最初(起動時)からビットの並べ替えを行うことができる。   FIG. 8 shows the second and subsequent processing for the RAM 11. For example, if the rearrangement information generated by the rearrangement information generation circuit 23 in the first process is saved in a nonvolatile storage device such as a flash memory, the rearrangement information can be used. Bits can be rearranged from the beginning (at startup).

また、図8においても、図7を参照して説明したメモリ領域に対する1回目の処理と同様に、16進数データ『5555』を書き込み、その後、読み出しを行った場合の処理が示されている。   Also in FIG. 8, similarly to the first process for the memory area described with reference to FIG. 7, the process when the hexadecimal data “5555” is written and then read is shown.

まず、2回目以降の処理では、図8(a)〜図8(c)に示されるように、例えば、故障(『0』に固定)している最上位から2ビット目(bit:「14」)のデータ(『1』)を、正常な最下位ビット(bit:「0」)に書き込む。なお、本来、最下位ビットに書き込むデータ(『1』)は、故障している最上位から2ビット目に書き込む。   First, in the second and subsequent processing, as shown in FIGS. 8A to 8C, for example, the second bit (bit: “14” from the most significant bit that has failed (fixed to “0”) is used. ”) Data (“ 1 ”) is written in the normal least significant bit (bit:“ 0 ”). Note that data (“1”) that is originally written to the least significant bit is written to the second bit from the most significant failure.

すなわち、並び替え情報生成回路23は、例えば、エラー検出回路22により検出された最上位から2ビット目がエラービットであるという情報に基づいて、最上位から2ビット目と、最下位ビットの入れ替え(並び替え)を行うための並び替え情報を生成する。   That is, the rearrangement information generation circuit 23 replaces the least significant bit with the second most significant bit based on, for example, information that the second most significant bit detected by the error detection circuit 22 is the error bit. Generate sort information for (sort).

この並び替え情報生成回路23により生成された並び替え情報は、情報格納レジスタ24に保存され、2回目以降の処理を行う場合、情報格納レジスタ24から情報反映レジスタ25にロードされる。   The rearrangement information generated by the rearrangement information generation circuit 23 is stored in the information storage register 24 and is loaded from the information storage register 24 to the information reflection register 25 when the second and subsequent processes are performed.

そして、データを書き込む場合、書き込み側ビット並び替え回路21は、情報反映レジスタ25に保持された並び替え情報に基づいて、最上位から2ビット目と最下位ビットを並び替えてからデータ書き込みを行う。   When data is written, the write side bit rearrangement circuit 21 rearranges the second bit from the most significant bit and the least significant bit based on the rearrangement information held in the information reflection register 25 and then writes the data. .

なお、エラービットが複数、例えば、bit:「14」と「13」の2つ検出された場合には、上述したビット「14」と「0」の並び替えと共に、ビット「13」と「1」の並び替えも行う。   When a plurality of error bits, for example, two bits “14” and “13” are detected, the bits “14” and “0” are rearranged and the bits “13” and “1” are rearranged. "Is also rearranged.

ここで、検出された上位のエラービットを置き替える下位のビット(並び替え用のビット)としては、最下位ビット「0」から上位に向かって「1,2,…」設定(選択)するのが好ましい。ただし、エラー発生確率からすると、通常、最下位ビット「0」による並び替えだけで済むのが大半である。   Here, as lower bits (rearrangement bits) for replacing the detected upper error bits, “1, 2,...” Is set (selected) from the least significant bit “0” to the upper order. Is preferred. However, from the viewpoint of the error occurrence probability, in most cases, only the rearrangement by the least significant bit “0” is usually sufficient.

再び、ビット「14」)のみが不良のときに戻って説明すると、例えば、16進数データ『5555』を書き込む場合、ビット「14」と「0」の並び替えを行った2進数データ『0101010101010101』が書き込まれる。   Again, when only the bit “14”) is defective, for example, when the hexadecimal data “5555” is written, the binary data “010101010101010101” in which the bits “14” and “0” are rearranged is written. Is written.

ここで、図8(d)に示されるように、16ビットのメモリ領域におけるビット「14」(最上位から2ビット目)は、エラービットでそのデータは『0』に固定される。すなわち、図8(e)に示されるように、メモリ領域に保存されたデータは、『0001010101010101』になっている。   Here, as shown in FIG. 8D, the bit “14” (second bit from the most significant bit) in the 16-bit memory area is an error bit and its data is fixed to “0”. That is, as shown in FIG. 8E, the data stored in the memory area is “0001010101010101”.

そして、図8(f)に示されるように、読み出しを行う場合、メモリ領域(RAM11)から読み出されたデータ『0001010101010101』は、読み出し側ビット並び替え回路26に入力され、ビット「14」と「0」の並び替えが行われる。   Then, as shown in FIG. 8 (f), when reading is performed, the data “0001010101010101” read from the memory area (RAM 11) is input to the read-side bit rearrangement circuit 26, and the bit “14” is obtained. Rearrangement of “0” is performed.

すなわち、読み出し側ビット並び替え回路26は、情報反映レジスタ25に保持された並び替え情報に基づいて、書き込み時における並び替えを元に戻すための並び替え、すなわち、ビット「14」と「0」のデータの入れ替えを行って出力する。   That is, the read-side bit rearrangement circuit 26 performs rearrangement for returning the rearrangement at the time of writing based on the rearrangement information held in the information reflection register 25, that is, bits “14” and “0”. Replace the data of and output.

これにより、読み出し側ビット並び替え回路26から出力されるデータ(2進数データ)は『0101010101010100』になる。これは、16進数データ『5554』に対応する。   As a result, the data (binary number data) output from the read side bit rearrangement circuit 26 becomes “0101010101010100”. This corresponds to hexadecimal data “5554”.

このように、情報反映レジスタ25に保持された並び替え情報を、書き込み側ビット並び替え回路21および読み出し側ビット並び替え回路26に反映させることで、16進数データ『5555』を『5554』として読み出すことができる。   As described above, the rearrangement information held in the information reflection register 25 is reflected on the write side bit rearrangement circuit 21 and the read side bit rearrangement circuit 26, whereby the hexadecimal data “5555” is read as “5554”. be able to.

本実施例によれば、書き込み側および読み出し側のビット並び替え回路は、単にビットの並び替え(データの並び替え)を行うのみであるため、例えば、ECC回路を経由してエラーの検出・訂正を行うよりもはるかに高速にデータ読み出しを行うことができる。   According to this embodiment, the write side and read side bit rearrangement circuits simply perform bit rearrangement (data rearrangement). For example, error detection / correction via the ECC circuit. Data can be read out much faster than the above.

また、多ビットデータのうち、影響の小さい下位ビットをエラー検出の対象外とすることで、ECC用のRAMに保存する冗長データを削減することができ、結果的に、搭載RAMの容量を削減することが可能になる。   Also, by excluding lower-order bits that are less affected from multi-bit data from error detection, redundant data stored in the ECC RAM can be reduced, resulting in a reduction in the capacity of the mounted RAM. It becomes possible to do.

すなわち、本実施例によれば、RAMデータの読み出し高速化、並びに、搭載RAMの削減による回路の占有面積の削減および消費電力の低減を図ることができる。さらに、例えば、使用中に経年劣化等でRAMの特定ビットが使えなくなった場合にも、データのビット並び替えにより、次回使用時にデータ品質への影響を抑えることが可能になる。   That is, according to the present embodiment, it is possible to increase the reading speed of the RAM data, reduce the area occupied by the circuit and reduce the power consumption by reducing the mounted RAM. Further, for example, even when a specific bit of the RAM becomes unusable during use due to deterioration over time, the data bit rearrangement can suppress the influence on the data quality at the next use.

なお、本実施例の適用は、RAMに対する書き込み/読み出し処理に限定されるものではなく、フラッシュメモリ等の他の様々な半導体記憶装置に対しても適用することができる。   The application of the present embodiment is not limited to the write / read processing for the RAM, and can be applied to various other semiconductor memory devices such as a flash memory.

さらに、本実施例が適用されるデータとしては、画像データに限定されず、例えば、単ビット不良が全体に対して大きく影響せず、その影響も、多ビットデータのうち上位ビットが大きく下位ビットが小さいといった様々なデータであってもよい。   Furthermore, the data to which the present embodiment is applied is not limited to image data. For example, single-bit defects do not have a significant effect on the whole, and the effect is that the upper bits of the multi-bit data are larger and the lower bits. It may be various data such as small.

以上、実施形態を説明したが、ここに記載したすべての例や条件は、発明および技術に適用する発明の概念の理解を助ける目的で記載されたものであり、特に記載された例や条件は発明の範囲を制限することを意図するものではない。また、明細書のそのような記載は、発明の利点および欠点を示すものでもない。発明の実施形態を詳細に記載したが、各種の変更、置き替え、変形が発明の精神および範囲を逸脱することなく行えることが理解されるべきである。   Although the embodiment has been described above, all examples and conditions described herein are described for the purpose of helping understanding of the concept of the invention applied to the invention and the technology. It is not intended to limit the scope of the invention. Nor does such a description of the specification indicate an advantage or disadvantage of the invention. Although embodiments of the invention have been described in detail, it should be understood that various changes, substitutions, and modifications can be made without departing from the spirit and scope of the invention.

以上の実施例を含む実施形態に関し、さらに、以下の付記を開示する。
(付記1)
メモリ部と、
複数ビットのデータを受け取り、前記データ内のエラーが検出された第1ビットを、エラーが検出されない第2ビットに並び替えて前記メモリ部へ格納する第1並び替え回路と、
前記メモリ部から読み出されたデータを受け取り、前記第2ビットのデータを、前記第1ビットのデータと並び替えて出力する第2並び替え回路と、を有する、
ことを特徴とする半導体記憶装置。
Regarding the embodiment including the above examples, the following supplementary notes are further disclosed.
(Appendix 1)
A memory section;
A first rearrangement circuit that receives a plurality of bits of data, rearranges a first bit in which an error is detected in the data into a second bit in which no error is detected, and stores the first bit in the memory unit;
A second rearrangement circuit that receives data read from the memory unit and outputs the second bit data rearranged with the first bit data;
A semiconductor memory device.

(付記2)
前記第1ビットは、前記第2ビットよりも上位のビットである、
ことを特徴とする付記1に記載の半導体記憶装置。
(Appendix 2)
The first bit is a higher order bit than the second bit.
2. The semiconductor memory device according to appendix 1, wherein:

(付記3)
前記第2ビットは、前記データの内の最下位ビットである、
ことを特徴とする付記2に記載の半導体記憶装置。
(Appendix 3)
The second bit is the least significant bit of the data.
The semiconductor memory device as set forth in Appendix 2, wherein

(付記4)
前記第1ビットが複数ビット存在する場合、
前記第2ビットは、前記最下位ビットから上位に向かって順に選択される、
ことを特徴とする付記3に記載の半導体記憶装置。
(Appendix 4)
When there are a plurality of the first bits,
The second bits are selected in order from the least significant bit to the higher order.
The semiconductor memory device according to appendix 3, wherein

(付記5)
さらに、
前記メモリ部から読み出されたデータを受け取り、前記メモリ部におけるエラーを検出するエラー検出回路を有し、
前記エラー検出回路の出力に基づいて、前記第1および第2並び替え回路が動作する、
ことを特徴とする付記1乃至付記4のいずれか1項に記載の半導体記憶装置。
(Appendix 5)
further,
An error detection circuit for receiving data read from the memory unit and detecting an error in the memory unit;
The first and second rearrangement circuits operate based on the output of the error detection circuit.
The semiconductor memory device according to any one of appendix 1 to appendix 4, which is characterized in that.

(付記6)
さらに、
前記エラー検出回路の出力に基づいて、前記第1および第2並び替え回路の動作を制御する、並び替え情報を生成する並び替え情報生成回路と、
前記並び替え情報生成回路により生成された前記並び替え情報を保存する情報格納レジスタを有する、
ことを特徴とする付記5に記載の半導体記憶装置。
(Appendix 6)
further,
A rearrangement information generation circuit for generating rearrangement information for controlling operations of the first and second rearrangement circuits based on an output of the error detection circuit;
An information storage register for storing the rearrangement information generated by the rearrangement information generation circuit;
The semiconductor memory device according to appendix 5, wherein:

(付記7)
さらに、
前記情報格納レジスタに保存された前記並び替え情報を読み出し、前記第1並び替え回路および前記第2並び替え回路に前記並び替え情報を反映させる情報反映レジスタを有する、
ことを特徴とする付記6に記載の半導体記憶装置。
(Appendix 7)
further,
An information reflecting register that reads out the rearrangement information stored in the information storage register and reflects the rearrangement information in the first rearrangement circuit and the second rearrangement circuit;
The semiconductor memory device according to appendix 6, wherein:

(付記8)
前記複数ビットのデータは、画像データであり、
前記メモリ部は、RAMである、
ことを特徴とする付記1乃至付記7のいずれか1項に記載の半導体記憶装置。
(Appendix 8)
The plurality of bits of data is image data;
The memory unit is a RAM.
8. The semiconductor memory device according to any one of appendix 1 to appendix 7, which is characterized in that.

(付記9)
メモリ部に対する複数ビットのデータを受け取り、前記データの内のエラーが検出された第1ビットを、エラーが検出されない第2ビットに並び替えて前記メモリ部へ格納し、
前記メモリ部から読み出されたデータを受け取り、前記第2ビットのデータを、前記第1ビットのデータと並び替えて出力する、
ことを特徴とする半導体記憶装置のアクセス制御方法。
(Appendix 9)
Receiving a plurality of bits of data for the memory unit, rearranging the first bit in which an error is detected in the data into a second bit in which no error is detected, and storing the second bit in the memory unit;
Receiving data read from the memory unit and outputting the second bit data rearranged with the first bit data;
An access control method for a semiconductor memory device.

(付記10)
前記第1ビットは、前記第2ビットよりも上位のビットである、
ことを特徴とする付記9に記載の半導体記憶装置のアクセス制御方法。
(Appendix 10)
The first bit is a higher order bit than the second bit.
The access control method for a semiconductor memory device according to appendix 9, wherein:

(付記11)
前記第2ビットは、前記データの内の最下位ビットである、
ことを特徴とする付記10に記載の半導体記憶装置のアクセス制御方法。
(Appendix 11)
The second bit is the least significant bit of the data.
12. The access control method for a semiconductor memory device according to appendix 10, wherein:

(付記12)
前記第1ビットが複数ビット存在する場合、
前記第2ビットは、前記最下位ビットから上位に向かって順に選択される、
ことを特徴とする付記11に記載の半導体記憶装置のアクセス制御方法。
(Appendix 12)
When there are a plurality of the first bits,
The second bits are selected in order from the least significant bit to the higher order.
The access control method for a semiconductor memory device according to appendix 11, wherein

(付記13)
さらに、
前記メモリ部から読み出されたデータを受け取り、前記メモリ部におけるエラーを検出し、
前記エラー検出回路の出力に基づいて、前記第1および第2並び替え回路が動作する、
ことを特徴とする付記9乃至付記12のいずれか1項に記載の半導体記憶装置のアクセス制御方法。
(Appendix 13)
further,
Receiving data read from the memory unit, detecting errors in the memory unit;
The first and second rearrangement circuits operate based on the output of the error detection circuit.
13. The access control method for a semiconductor memory device according to any one of appendix 9 to appendix 12, wherein the access control method is used.

(付記14)
前記複数ビットのデータは、画像データであり、
前記メモリ部は、RAMである、
ことを特徴とする付記9乃至付記13のいずれか1項に記載の半導体記憶装置のアクセス制御方法。
(Appendix 14)
The plurality of bits of data is image data;
The memory unit is a RAM.
14. The access control method for a semiconductor memory device according to any one of appendix 9 to appendix 13, which is characterized in that

1,100 半導体記憶装置
11,101 RAM(メモリ部)
21 書き込み側ビット並び替え回路(第1並び替え回路)
22 エラー検出回路
23 並び替え情報生成回路
24 情報格納レジスタ
25 情報反映レジスタ
26 読み出し側ビット並び替え回路(第2並び替え回路)
102 エラー検出・訂正回路
1,100 Semiconductor memory device 11,101 RAM (memory unit)
21 Write side bit rearrangement circuit (first rearrangement circuit)
22 error detection circuit 23 rearrangement information generation circuit 24 information storage register 25 information reflection register 26 read side bit rearrangement circuit (second rearrangement circuit)
102 Error detection / correction circuit

Claims (5)

メモリ部と、
複数ビットのデータを受け取り、前記データ内のエラーが検出された第1ビットを、エラーが検出されない第2ビットに並び替えて前記メモリ部へ格納する第1並び替え回路と、
前記メモリ部から読み出されたデータを受け取り、前記第2ビットのデータを、前記第1ビットのデータと並び替えて出力する第2並び替え回路と、を有し、
前記第1ビットは、前記第2ビットよりも上位のビットであり、
前記第2ビットは、前記データの内の最下位ビットであり、
前記第1ビットが複数ビット存在する場合、
前記第2ビットは、前記最下位ビットから上位に向かって順に選択される、
ことを特徴とする半導体記憶装置。
A memory section;
A first rearrangement circuit that receives a plurality of bits of data, rearranges a first bit in which an error is detected in the data into a second bit in which no error is detected, and stores the first bit in the memory unit;
Receiving said data read out from the memory unit, the data of the second bit, have a, a second rearrangement circuit which outputs instead data and arrangement of the first bit,
The first bit is a bit higher than the second bit;
The second bit is the least significant bit of the data;
When there are a plurality of the first bits,
The second bit is Ru are selected in this order toward the top from the least significant bit,
A semiconductor memory device.
さらに、
前記メモリ部から読み出されたデータを受け取り、前記メモリ部におけるエラーを検出するエラー検出回路を有し、
前記エラー検出回路の出力に基づいて、前記第1および第2並び替え回路が動作する、
ことを特徴とする請求項1に記載の半導体記憶装置。
further,
An error detection circuit for receiving data read from the memory unit and detecting an error in the memory unit;
The first and second rearrangement circuits operate based on the output of the error detection circuit.
The semiconductor memory device according to claim 1 .
前記複数ビットのデータは、画像データであり、
前記メモリ部は、RAMである、
ことを特徴とする請求項1または請求項2に記載の半導体記憶装置。
The plurality of bits of data is image data;
The memory unit is a RAM.
The semiconductor memory device according to claim 1 , wherein:
メモリ部に対する複数ビットのデータを受け取り、前記データの内のエラーが検出された第1ビットを、エラーが検出されない第2ビットに並び替えて前記メモリ部へ格納し、
前記メモリ部から読み出されたデータを受け取り、前記第2ビットのデータを、前記第1ビットのデータと並び替えて出力し、
前記第1ビットは、前記第2ビットよりも上位のビットであり、
前記第2ビットは、前記データの内の最下位ビットであり、
前記第1ビットが複数ビット存在する場合、
前記第2ビットは、前記最下位ビットから上位に向かって順に選択される、
ことを特徴とする半導体記憶装置のアクセス制御方法。
Receiving a plurality of bits of data for the memory unit, rearranging the first bit in which an error is detected in the data into a second bit in which no error is detected, and storing the second bit in the memory unit;
Receives data read from the memory unit, outputs the second bit data rearranged with the first bit data ,
The first bit is a bit higher than the second bit;
The second bit is the least significant bit of the data;
When there are a plurality of the first bits,
The second bit is Ru are selected in this order toward the top from the least significant bit,
An access control method for a semiconductor memory device.
さらに、
前記メモリ部から読み出されたデータを受け取り、前記メモリ部におけるエラーを検出し、
前記エラー検出回路の出力に基づいて、前記第1および第2並び替え回路が動作する、
ことを特徴とする請求項に記載の半導体記憶装置のアクセス制御方法。
further,
Receiving data read from the memory unit, detecting errors in the memory unit;
The first and second rearrangement circuits operate based on the output of the error detection circuit.
The method of controlling access to a semiconductor memory device according to claim 4 .
JP2015150798A 2015-07-30 2015-07-30 Semiconductor memory device and semiconductor memory device access control method Active JP6497258B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015150798A JP6497258B2 (en) 2015-07-30 2015-07-30 Semiconductor memory device and semiconductor memory device access control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015150798A JP6497258B2 (en) 2015-07-30 2015-07-30 Semiconductor memory device and semiconductor memory device access control method

Publications (2)

Publication Number Publication Date
JP2017033170A JP2017033170A (en) 2017-02-09
JP6497258B2 true JP6497258B2 (en) 2019-04-10

Family

ID=57988836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015150798A Active JP6497258B2 (en) 2015-07-30 2015-07-30 Semiconductor memory device and semiconductor memory device access control method

Country Status (1)

Country Link
JP (1) JP6497258B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022067002A (en) * 2020-10-19 2022-05-02 ソニーセミコンダクタソリューションズ株式会社 Memory cell array unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009147624A (en) * 2007-12-13 2009-07-02 Fujifilm Corp Digital camera and image storage method thereof
US9165677B2 (en) * 2011-05-17 2015-10-20 Maxlinear, Inc. Method and apparatus for memory fault tolerance

Also Published As

Publication number Publication date
JP2017033170A (en) 2017-02-09

Similar Documents

Publication Publication Date Title
KR101750662B1 (en) Circuits, apparatuses, and methods for correcting data errors
TWI690933B (en) Variable resistance random-access memory
US8321765B2 (en) Method of reading data in non-volatile memory device
JP3892832B2 (en) Semiconductor memory device
JP5162763B2 (en) Memory access system
US7810016B2 (en) Semiconductor storage device equipped with ECC function
US8140940B2 (en) Method and apparatus for controlling memory
US11557366B2 (en) Memory, memory system, operation method of the memory, and operation of the memory system
JP3935149B2 (en) Semiconductor integrated circuit
JP2011060217A (en) Data storage apparatus, and data writing/reading method
US20080256416A1 (en) Apparatus and method for initializing memory
JP4956230B2 (en) Memory controller
JP4050091B2 (en) Semiconductor memory device
US7075851B2 (en) Semiconductor memory device inputting/outputting data and parity data in burst operation
JP6497258B2 (en) Semiconductor memory device and semiconductor memory device access control method
US20250068511A1 (en) Method and apparatus for applying ecc to memory in artificial neural network based system semiconductor
KR20080114208A (en) Copy-to-Program Method of Nonvolatile Memory Device with Error Correction Function
US10180888B2 (en) Memory sparing on memory modules
JP2004280893A (en) Semiconductor device
JP5361826B2 (en) Recording unit and faulty chip identification method
JP2002244932A (en) Control device
TWI748507B (en) Data access system, and method for operating a data access system
KR20220144129A (en) Memory apparatus and semiconductor system including the same
JP2007257628A (en) Method for error correction and error detection for reading out stored information data and storage control unit therefor
US9519539B2 (en) Monitoring data error status in a memory

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180606

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181211

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190129

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: 20190212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190225

R150 Certificate of patent or registration of utility model

Ref document number: 6497258

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150