JP2004086300A - Flash memory logical address detection method - Google Patents
Flash memory logical address detection method Download PDFInfo
- Publication number
- JP2004086300A JP2004086300A JP2002243433A JP2002243433A JP2004086300A JP 2004086300 A JP2004086300 A JP 2004086300A JP 2002243433 A JP2002243433 A JP 2002243433A JP 2002243433 A JP2002243433 A JP 2002243433A JP 2004086300 A JP2004086300 A JP 2004086300A
- Authority
- JP
- Japan
- Prior art keywords
- address
- zone
- logical address
- flash memory
- physical
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 11
- 238000013507 mapping Methods 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims description 35
- 238000012545 processing Methods 0.000 abstract description 5
- 230000005381 magnetic domain Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は一種のフラッシュメモリ論理アドレス検出方法において、特に複数のブロックを一つのゾーン(zone)となし、ゾーンを単位として論理/物理アドレスマッピング表(Address Mapping Table又はLook−Up Table)を製作し、並びにこのアドレスマッピング表により論理アドレスを検出する方法に関する。
【0002】
【従来の技術】
フラッシュメモリの運転原理中にあって、マイクロプロセッサがメモリをデータ保存領域として使用する時、計算の結果及びデータはいずれもここに保存され、もしプログラムが取り出す必要があれば、保存領域より取り出す。データの保存と読み取りの時、マイクロプロセッサは必要な情報にメモリの位置を定義し、位置のバスを透過してアドレスをメモリに伝送し、その後、データが対応するアドレスに正確に伝送されるようにする。メモリに最も重要なことは読み取りの時間であり、これは、マイクロプロセッサが命令を発してからアドレスデータを取得し、メモリが応答後にデータをマイクロプロセッサに伝送し、マイクロプロセッサが確実にデータを受け取るまでの時間である。このプロセスにかかる時間がメモリのアクセス時間である。
【0003】
フラッシュメモリ中、若干のバイトで組成されたブロック(block)を単位としてデータの保存及び読み取りが行われ、各一つのデータアクセスに供されるブロックはいずれも一つの物理アドレス(Physical Address)を具え、これはフラッシュメモリにあって空間順序、例えばSRAM中の物理メモリの位置を代表し、また、各一つのブロックはファイルシステム(FileSystem)の表示する論理アドレス(Logical Address)を具えている。図1の(a)に示されるように、各一つの物理アドレスはそれぞれ対応する論理アドレスを有する。しかし、フラッシュメカニズム中にあって、ファイルシステムデータアクセスに必要な物理アドレス及び論理アドレスは非線形の対応関係とされ、直接物理アドレスから論理アドレスの所在を推論することはできず、周知の技術では、通常、二種類の方式により対応する論理アドレスを得ている。
【0004】
第1種類の方式はシステム起動時に、まず論理/物理アドレスマッピング表を構築し、それは論理アドレスと物理アドレスの間の対応関係を記録する表であり、並びに複数のSRAMが設計されてこのアドレスマッピング表を保存記録する。図1に示されるように、アドレスマッピング表を構築する時、論理アドレスの配列順序がメインとされ、対応する物理アドレス位置が表の格子の内容中に入れられ、もとの論理アドレスが不規則配列とされ、このため最初から最後まで一回配列しなければ、図1の(b)に示されるようなアドレスマッピング表を構築できず、並びにこのアドレスマッピング表はSRAM中に保存され、このような正方向物理/論理アドレスマッピング表は一部分を建立してSRAMを節約したい時にも、メモリ内の論理アドレス内容を最初から最後までサーチし並びに配列しなければならない。システムがデータアクセスする時にまずサーチ待機論理アドレスを提供し、並びにソフトウエアを利用してSRAM中のアドレスマッピング表をサーチし、これにより速やかに論理アドレスに対応する物理アドレスを得ることができる。このように、アドレスマッピング表を利用して論理アドレスをサーチする方式はアドレス変換の時間が短く、処理速度が速いという長所を有するが、大量のSRAMにより全てのアドレス対応関係を記録する必要があり、その占有する空間面積は相当に大きい。且つ現在異なるIC機能が一つの単一システムチップ中に整合されるようになり、SRAMの数が固定され、必要に応じて随時SRAMの数を増加できないため、使用上の制限が形成される。
【0005】
もう一種の論理アドレスより物理アドレスを知る方式は、SRAMがない設計であり、またいかなるアドレスマッピング表も構築する必要がなく、わずかにソフトウエアプログラムを利用して毎回物理アドレスが対応する論理アドレスをサーチする時に、メモリ中の頭からサーチ開始し、必要な論理アドレスをサーチするまでこれを行う。このような方式はSRAMのない設計とされ、ゆえに空間を占有しないが、毎回論理アドレスをサーチする時に頭からサーチ開始する必要があり、サーチが緩慢で、メモリのデータアクセスの速度が相当に遅い。
【0006】
【発明が解決しようとする課題】
これにより、本発明は周知の欠点に対して、上述の二種類の物理アドレス/論理アドレス変換方式中にあって、有効な平衡点を取得し、同時に速度と空間上の問題を考慮して、有効にデータアクセスの性能を高められるようにする。
【0007】
本発明の主要な目的は、一種のフラッシュメモリの論理アドレス検出方法を提供することにあり、それは、ゾーン(zone)を単位とし、まず、位取り因数(Scaled Factor)の論理/物理アドレスマッピング表を構築し、並びに該論理/物理アドレスマッピング表を透過してゾーンアドレスを得て、さらに物理アドレスに対応する論理アドレスをサーチし、有効な投資下で、速度アップを達成できる方法であるものとする。
【0008】
本発明のもう一つの目的は、一種のフラッシュメモリの論理アドレス検出方法を提供することにあり、それは、調整式のRAMを利用し、あまり多くの空間を増加させない前提下で、半導体ディスク装置の処理速度を高める方法であるものとする。
【0009】
【課題を解決するための手段】
請求項1の発明は、フラッシュメモリの論理アドレス検出方法において、
フラッシュメモリ中の複数のブロックを一つのゾーンに設定し、ゾーンを単位とし、システム起動時にまずゾーンアドレスとその対応する論理アドレスの関係に対して、位取り因子アドレスマッピング表を構築し、並びにそれをRAM中に保存するステップと、
システムがサーチ待機論理アドレスをRAMに伝送し、RAMがこのサーチ待機論理アドレスに基づきアドレスマッピング表より対応する物理ゾーンアドレスを取得するステップと、
この物理ゾーン内の各一つのブロックをサーチし、これを該サーチ待機論理アドレスに対応する物理アドレスを取得するまで行うステップと、
を具えたことを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
請求項2の発明は、請求項1に記載のフラッシュメモリの論理アドレス検出方法において、RAMがSRAMとされたことを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
請求項3の発明は、請求項1に記載のフラッシュメモリの論理アドレス検出方法において、フラッシュメモリ内にあってデータの書き込み或いは更新を行う時、新しいデータを同一個のゾーン内に制限することを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
請求項4の発明は、請求項3に記載のフラッシュメモリの論理アドレス検出方法において、ゾーン内に十分な空間がなければ、このゾーン内にもともと有ったデータを新しいデータと共に、全部別の一つのゾーン内に複製することを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
請求項5の発明は、請求項1に記載のフラッシュメモリの論理アドレス検出方法において、ゾーンを2n 個のブロックで組成したことを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
請求項6の発明は、請求項5に記載のフラッシュメモリの論理アドレス検出方法において、nの値を少なくとも6としたことを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
請求項7の発明は、請求項1に記載のフラッシュメモリの論理アドレス検出方法において、位取り因子アドレスマッピング表が論理ゾーンアドレス/物理アドレスマッピング表とされたことを特徴とする、フラッシュメモリの論理アドレス検出方法としている。
【0010】
【発明の実施の形態】
本発明によると、フラッシュメモリ中の複数のブロックを一つのゾーンに設定し、ゾーンを単位とし、システム起動時にまず物理ゾーンアドレスとその対応する論理アドレスの関係に対して、位取り因子アドレスマッピング表を構築し、並びにそれをRAM中に保存する。システムがデータアクセスする時、まずサーチ待機論理アドレスをRAMに提供し、このサーチ待機論理アドレスに基づき、該アドレスマッピング表中より対応する物理ゾーンアドレスを得て、さらにこの物理ゾーン内の各一つのブロックを、該サーチ待機論理アドレスに対応する物理アドレスが得られるまでサーチする。
【0011】
【実施例】
本発明は、複数のブロックを一つのゾーンに設定し、システム起動時に、まず一つのアドレスマッピング表、即ち論理/物理アドレスマッピング表を複製構築し、並びにRAM自身の有する連続読み取りの特性を組み合わせ、RAM中の該アドレスマッピング表をサーチして物理ゾーンを得て、続いて該ゾーン内にあって物理アドレスに対応する論理アドレスをサーチして得る。
【0012】
フラッシュメモリ中でデータ保存及び読み取りを行うのに使用する時、各一つのデータアクセスに供されるブロックはそれぞれ一つの物理アドレスを有し、メモリ中の実際の物理メモリの位置を代表する。本発明は、N個のゾーンを一つのゾーンに設定し、各一つのゾーンはそれぞれ一つの物理ゾーン位置及びそれに対応する論理アドレスを有し、これは図2の(a)に示されるようであり、且つ物理ゾーン及び論理アドレスは非線形の対応関係をなす。システムが起動し初期化される時、まず図2の(a)の関係表に基づき、まず位取り因子(ScaledFactor)の論理/物理アドレスマッピング表を複製構築する。図2の(b)に示されるように、この論理/物理アドレスマッピング表完成の後、それをSRAM内に保存し、システムがサーチ待機論理アドレスを随時サーチできるようにする。このアドレスマッピング表はゾーンを単位として構築され、この位取り因子論理/物理アドレスマッピング表はあまり多くの保存空間を占用する必要がなく、ゆえに使用するSRAMの数を減少できる。
【0013】
そのうち、上述のN個のゾーンで組成されたゾーンに関し、該Nの値は2n とされ、言い換えると、このゾーンは2n 個のブロックで組成される。好ましくは、該nの値は少なくとも6とされる。
【0014】
システム起動時に、もしシステムがオープンシステム、例えば抜き取り式のフラッシュメモリディスクであれば、その他のシステムによりアクセス済みである可能性があり、その論理/物理アドレスの対応は不規則分布とされうる。この時は、磁区のリセットプロセスが必要である。図3に示されるように、論理アドレスの近似の磁区を同一ゾーン(zone)に搬入し、例えば、磁区10〜19を同一ゾーン0とし、磁区40〜49をゾーン1とし、磁区30〜39をゾーンkとする。論理アドレスの近似の磁区を同一ゾーンに搬入し即ち図示されるように磁区12と13をゾーン0に搬入し、磁区40及び46はゾーン1に搬入し、磁区30はゾーンkに搬入する。後日、この抜き取り式のフラッシュメモリディスクを他のシステムに移動してアクセスする時は、論理/物理アドレスはもともと規則的である必要がないため、ゆえに相容性を保持できる。もしシステムがクローズシステム(フラッシュメモリがシステム内に固定されている)であれば、最初から本発明の方法を用い、即ちこのリセットプロセスを省略できる。続いて、システムがまず物理ゾーンアドレス及びそれに対応する論理アドレスの関係から、システムSRAMの大きさに依り、直接図2の(b)に示されるような位取り因子論理/物理アドレスマッピング表を構築し、この論理/物理アドレスマッピング表をSRAM中に保存する。システムホストがデータにアクセスする時は、まずサーチ待機論理アドレス10を提供し、図4に示されるように、この時、サーチ待機論理アドレスの一部情報10に基づき、SRAMにビルトインされた論理/物理アドレスマッピング表12中より対応する物理ゾーン14、例えばゾーン0を取得する。続いて、該物理ゾーン14を取得した後、該ゾーン0の物理ゾーン14内の各一つのブロックを、該サーチ待機論理アドレスに対応する物理アドレスを取得するまでサーチする。
【0015】
このほか、本発明はフラッシュメモリ内にあって書き込んだりデータを更新する時、新たなデータを同一個のゾーン内に制限する。もしこのゾーン内に十分な保存空間がなければ、このゾーン内にもともと有ったデータを新しいデータと共に、全部別の一つのゾーン内に複製し、均一な読み書きの原則に符合させる。
【0016】
ここまでで、本発明の精神はすでに説明したが、以下に具体的な例にフローチャートを組み合わせて上述のフラッシュメモリサーチ過程の説明を補充し、並びにこの技術に習熟する者がこの例を参考にして十分な知識を得てそれにより実施できるようにする。
【0017】
図5は本発明の論理アドレス検出のフローチャートであり、図示されるように、この論理アドレス検出の方法は以下のステップを含む。まず、ステップS10において、システム起動時に前述の方式で、物理ゾーンアドレスとそれと対応する論理アドレスの関係に対して、位取り因子論理/物理アドレスマッピング表を構築し、並びにそれをRAM中に保存する。
【0018】
システムがステップS12に示されるように、サーチ待機論理アドレスをRAMに伝送する時、該RAMは該サーチ待機論理アドレス信号を受信した後、ステップS14に示されるように、即刻、該サーチ待機論理アドレスに基づき、ビルトインされた論理/物理アドレスマッピング表中より該論理アドレスに対応する物理ゾーンを取得する。物理ゾーン取得の後、ステップS16に示されるように、上から下に順に該物理ゾーン内の各一つのブロックをサーチし、並びにステップS18に示されるように、対応する物理アドレスを取得したか否かを対比判断し、もし最終的な物理アドレスを獲得したと判断すれば、この時、サーチを停止し、ステップS20に示されるようにサーチ過程を終了する。反対にまだ探し出せてなければ、続けてステップS16を実行し、物理ゾーン内で対応する物理アドレスが見つかるまで行う。
【0019】
【発明の効果】
本発明の快速構築する位取り因子論理/物理アドレスマッピング表は、ゾーンを単位として構築し、ゆえにわずかに一部のアドレス関係とされ、ゆえに多過ぎるRAMを占用しない。且つまず論理アドレスに対応する物理ゾーンを探し、小範囲の物理ゾーンをサーチするため、処理速度は周知の技術より速い。これにより、本発明はゾーンの観念に少量のRAMの使用を組み合わせることにより、あまり多くの空間を増加しない前提下で、半導体ディスク装置(フラッシュメモリ)の処理速度を高め、ゆえに速度と空間の考慮上、有効な平衡点を有し、有効にシステムのデータアクセスの性能を高める。
【0020】
以上の実施例は本発明の技術思想と特徴を説明するためのものであり、その目的は、本発明の属する技術の分野における通常の知識を有する者が本発明の内容を了解し並びに実施できるようにすることにある。すなわち、本発明に記載された精神に基づきなしうる均等の変化或いは修飾は、いずれも本発明の請求範囲内に属するものとする。
【図面の簡単な説明】
【図1】図1の(a)及び図1の(b)はそれぞれ周知のメモリ中の物理アドレスと論理アドレスの関係表示図及びこの関係を利用して構築した論理/物理アドレスマッピング表である。
【図2】図2の(a)及び図2の(b)はそれぞれメモリ中の物理ゾーンと論理アドレスの関係表示図及び本発明を利用して構築された位取り因子アドレスマッピング表である。
【図3】本発明の、オープンシステムにおいて行う磁区リセットプロセスの表示図である。
【図4】本発明の論理アドレス検出の構造表示図である。
【図5】本発明の論理アドレス検出のフローチャートである。
【符号の説明】
10 サーチ待機論理アドレス
12 論理/物理アドレスマッピング表
14 物理ゾーン[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention provides a method for detecting a logical address of a flash memory, in which a plurality of blocks are defined as one zone, and a logical / physical address mapping table (Address Mapping Table or Look-Up Table) is manufactured for each zone. , And a method of detecting a logical address based on the address mapping table.
[0002]
[Prior art]
In the operation principle of the flash memory, when the microprocessor uses the memory as a data storage area, both the calculation result and the data are stored here, and if the program needs to be retrieved, it is retrieved from the storage area. When storing and reading data, the microprocessor defines the location of the memory in the required information, transmits the address to the memory through the location bus, and then ensures that the data is correctly transmitted to the corresponding address. To Most important to the memory is the time of the read, which is the microprocessor issuing the instruction and then obtaining the address data, the memory transmitting the data to the microprocessor after responding, and the microprocessor receiving the data reliably Until the time. The time required for this process is the memory access time.
[0003]
In the flash memory, data is stored and read in units of blocks each composed of a few bytes, and each block provided for each data access has one physical address (Physical Address). This represents a spatial order in a flash memory, for example, a location of a physical memory in an SRAM, and each one block has a logical address (Logical Address) indicated by a file system (FileSystem). As shown in FIG. 1A, each one physical address has a corresponding logical address. However, in the flash mechanism, the physical address and the logical address required for file system data access are in a non-linear correspondence, and the location of the logical address cannot be directly inferred from the physical address. Usually, corresponding logical addresses are obtained by two types of methods.
[0004]
The first type of method is to first construct a logical / physical address mapping table at system start-up, which is a table for recording the correspondence between logical addresses and physical addresses, and that a plurality of SRAMs are designed to perform this address mapping. Save and record the table. As shown in FIG. 1, when constructing an address mapping table, the arrangement order of logical addresses is main, the corresponding physical address positions are included in the contents of the table grid, and the original logical addresses are irregular. If it is not arranged once from the beginning to the end, an address mapping table as shown in FIG. 1B cannot be constructed, and this address mapping table is stored in the SRAM. Even when it is desired to build a part of the forward physical / logical address mapping table to save SRAM, the logical address contents in the memory must be searched and arranged from beginning to end. When the system accesses data, first, a search standby logical address is provided, and an address mapping table in the SRAM is searched using software, whereby a physical address corresponding to the logical address can be obtained quickly. As described above, the method of searching for a logical address using the address mapping table has the advantages that the address conversion time is short and the processing speed is fast, but it is necessary to record all address correspondences with a large amount of SRAM. Occupies a considerable space area. And now different IC functions are integrated into one single system chip, the number of SRAMs is fixed, and the number of SRAMs cannot be increased at any time as needed, thus limiting the use.
[0005]
The method of knowing the physical address from the other logical address is a design without SRAM, and does not need to construct any address mapping table, and slightly uses a software program to determine the logical address corresponding to the physical address every time. When searching, the search is started from the head in the memory, and the search is performed until a necessary logical address is searched. Such a system is designed without an SRAM and therefore does not occupy space, but it is necessary to start the search each time a logical address is searched from the beginning, the search is slow, and the data access speed of the memory is considerably slow. .
[0006]
[Problems to be solved by the invention]
Thus, the present invention overcomes the well-known drawbacks by obtaining an effective equilibrium point in the above two types of physical address / logical address conversion schemes, and at the same time, considering the speed and space issues, Effectively improve data access performance.
[0007]
SUMMARY OF THE INVENTION It is a primary object of the present invention to provide a method of detecting a logical address of a flash memory, in which a logical / physical address mapping table of a scaled factor is first defined in units of a zone. It is a method of constructing and obtaining a zone address through the logical / physical address mapping table, further searching for a logical address corresponding to a physical address, and achieving a speed-up with effective investment. .
[0008]
It is another object of the present invention to provide a method of detecting a logical address of a flash memory, which utilizes an adjustable RAM and does not increase a lot of space. It is assumed that the processing speed is increased.
[0009]
[Means for Solving the Problems]
According to a first aspect of the present invention, in a method for detecting a logical address of a flash memory,
A plurality of blocks in the flash memory are set as one zone, and a zone is used as a unit. At system startup, first, a scale factor address mapping table is constructed for a relationship between a zone address and its corresponding logical address, and the table is created. Storing in RAM;
The system transmitting a search standby logical address to a RAM, and the RAM obtaining a corresponding physical zone address from an address mapping table based on the search standby logical address;
Searching for each one block in the physical zone and performing this until a physical address corresponding to the search standby logical address is obtained;
And a method for detecting a logical address of a flash memory.
According to a second aspect of the present invention, there is provided the flash memory logical address detecting method according to the first aspect, wherein the RAM is an SRAM.
According to a third aspect of the present invention, in the logical address detection method for a flash memory according to the first aspect, when data is written or updated in the flash memory, new data is limited to the same zone. The method is characterized by a method of detecting a logical address of a flash memory.
According to a fourth aspect of the present invention, in the method for detecting a logical address of a flash memory according to the third aspect, if there is not enough space in the zone, the data originally in the zone together with the new data are all separated into another one. The method is a method of detecting a logical address of a flash memory, which is characterized in that the logical address is duplicated in one zone.
According to a fifth aspect of the present invention, there is provided the logical address detecting method for a flash memory according to the first aspect, wherein the zone is composed of 2n blocks.
According to a sixth aspect of the present invention, in the logical address detecting method for a flash memory according to the fifth aspect, the value of n is at least six.
According to a seventh aspect of the present invention, in the logical address detecting method for a flash memory according to the first aspect, the scale factor address mapping table is a logical zone address / physical address mapping table. Detection method.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
According to the present invention, a plurality of blocks in the flash memory are set in one zone, and a zone is used as a unit. At the time of system startup, a scale factor address mapping table is firstly created for a relationship between a physical zone address and its corresponding logical address. Build and save it in RAM. When the system accesses data, first, a search standby logical address is provided to a RAM, and based on the search standby logical address, a corresponding physical zone address is obtained from the address mapping table. The block is searched until a physical address corresponding to the search standby logical address is obtained.
[0011]
【Example】
According to the present invention, a plurality of blocks are set in one zone, and at the time of system startup, one address mapping table, that is, a logical / physical address mapping table is first replicated and constructed, and the characteristics of continuous reading of the RAM itself are combined. A physical zone is obtained by searching the address mapping table in the RAM, and subsequently a logical address corresponding to the physical address in the zone is obtained.
[0012]
When used to store and read data in flash memory, each one of the blocks provided for data access has a single physical address, and represents the actual physical memory location in the memory. The present invention sets the N zones into one zone, each one zone having one physical zone location and a corresponding logical address, as shown in FIG. 2 (a). In addition, the physical zone and the logical address have a non-linear correspondence. When the system is started up and initialized, first, a logical / physical address mapping table of a scaled factor is copied and constructed based on the relation table of FIG. 2A. After the completion of the logical / physical address mapping table, as shown in FIG. 2B, it is stored in the SRAM so that the system can search the search standby logical address at any time. The address mapping table is constructed in units of zones, and the scale factor logical / physical address mapping table does not need to occupy too much storage space, and thus can reduce the number of SRAMs used.
[0013]
Among them, regarding the zone composed of the above-mentioned N zones, the value of N is 2 n , in other words, this zone is composed of 2 n blocks. Preferably, the value of n is at least 6.
[0014]
At system startup, if the system is an open system, for example, a removable flash memory disk, it may have been accessed by another system, and its logical / physical address correspondence may be irregularly distributed. In this case, a domain reset process is required. As shown in FIG. 3, magnetic domains having approximate logical addresses are carried into the same zone (zone). For example,
[0015]
In addition, the present invention restricts new data within the same zone when writing or updating data in the flash memory. If there is not enough storage space in this zone, the data originally in this zone, together with the new data, are all duplicated in another zone to conform to the uniform read / write principle.
[0016]
Up to this point, the spirit of the present invention has already been described, but the following description is combined with a specific example in combination with a flowchart to supplement the above description of the flash memory search process, and those skilled in the art will refer to this example. And gain sufficient knowledge to be able to implement it.
[0017]
FIG. 5 is a flowchart of the logical address detection according to the present invention. As shown in the figure, the logical address detection method includes the following steps. First, in step S10, a scale factor logical / physical address mapping table is constructed for the relationship between the physical zone address and the corresponding logical address at the time of system startup in the manner described above, and is stored in the RAM.
[0018]
When the system transmits the search standby logical address to the RAM as shown in step S12, the RAM immediately receives the search standby logical address signal and then immediately receives the search standby logical address as shown in step S14. , The physical zone corresponding to the logical address is acquired from the built-in logical / physical address mapping table. After acquiring the physical zone, as shown in step S16, each one block in the physical zone is searched in order from top to bottom, and whether or not the corresponding physical address has been acquired as shown in step S18. Then, if it is determined that the final physical address has been obtained, the search is stopped at this time, and the search process is terminated as shown in step S20. On the other hand, if it has not been found yet, step S16 is continuously executed until the corresponding physical address is found in the physical zone.
[0019]
【The invention's effect】
The fast-building scale factor logical / physical address mapping table of the present invention builds on a zone-by-zone basis, and thus does not occupy too much RAM, with only a small portion of the address relationship. In addition, since the physical zone corresponding to the logical address is searched first, and the physical zone in a small range is searched, the processing speed is higher than that of the known technology. Thus, the present invention enhances the processing speed of the semiconductor disk device (flash memory) on the assumption that not much space is increased by combining the idea of a zone with the use of a small amount of RAM, and therefore, the speed and space considerations. In addition, it has an effective equilibrium point and effectively enhances the data access performance of the system.
[0020]
The embodiments described above are for explaining the technical idea and features of the present invention, and the purpose is to allow a person having ordinary knowledge in the technical field to which the present invention belongs to understand and implement the contents of the present invention. Is to do so. That is, any equivalent changes or modifications that can be made based on the spirit described in the present invention shall fall within the scope of the present invention.
[Brief description of the drawings]
FIGS. 1A and 1B are a display diagram of a relationship between a physical address and a logical address in a well-known memory, and a logical / physical address mapping table constructed by using this relationship. .
FIGS. 2A and 2B are a diagram showing the relationship between physical zones and logical addresses in a memory and a scale factor address mapping table constructed using the present invention, respectively.
FIG. 3 is a view showing a magnetic domain reset process performed in an open system according to the present invention.
FIG. 4 is a diagram showing the structure of logical address detection according to the present invention.
FIG. 5 is a flowchart of logical address detection according to the present invention.
[Explanation of symbols]
10 Search standby
Claims (7)
フラッシュメモリ中の複数のブロックを一つのゾーンに設定し、ゾーンを単位とし、システム起動時にまずゾーンアドレスとその対応する論理アドレスの関係に対して、位取り因子アドレスマッピング表を構築し、並びにそれをRAM中に保存するステップと、
システムがサーチ待機論理アドレスをRAMに伝送し、RAMがこのサーチ待機論理アドレスに基づきアドレスマッピング表より対応する物理ゾーンアドレスを取得するステップと、
この物理ゾーン内の各一つのブロックをサーチし、これを該サーチ待機論理アドレスに対応する物理アドレスを取得するまで行うステップと、
を具えたことを特徴とする、フラッシュメモリの論理アドレス検出方法。In the method of detecting a logical address of a flash memory,
A plurality of blocks in the flash memory are set as one zone, and a zone is used as a unit. At system startup, first, a scale factor address mapping table is constructed for a relationship between a zone address and its corresponding logical address, and the table is created. Storing in RAM;
The system transmitting a search standby logical address to a RAM, and the RAM obtaining a corresponding physical zone address from an address mapping table based on the search standby logical address;
Searching for each one block in the physical zone and performing this until a physical address corresponding to the search standby logical address is obtained;
A method for detecting a logical address of a flash memory, comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002243433A JP2004086300A (en) | 2002-08-23 | 2002-08-23 | Flash memory logical address detection method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002243433A JP2004086300A (en) | 2002-08-23 | 2002-08-23 | Flash memory logical address detection method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2004086300A true JP2004086300A (en) | 2004-03-18 |
Family
ID=32052194
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002243433A Pending JP2004086300A (en) | 2002-08-23 | 2002-08-23 | Flash memory logical address detection method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2004086300A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100706242B1 (en) | 2005-02-07 | 2007-04-11 | 삼성전자주식회사 | How to configure the memory system and its run unit address mapping table |
| JP2008243156A (en) * | 2007-03-29 | 2008-10-09 | Tdk Corp | MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD |
| KR100880425B1 (en) | 2007-02-13 | 2009-01-29 | 삼성전자주식회사 | A method for minimizing or reducing the memory map table search time and a semiconductor memory device accordingly |
| JP2012531655A (en) * | 2009-11-04 | 2012-12-10 | 株式会社日立製作所 | Flash memory module |
| WO2014132346A1 (en) * | 2013-02-27 | 2014-09-04 | 株式会社日立製作所 | Semiconductor storage |
| CN117612592A (en) * | 2024-01-23 | 2024-02-27 | 悦芯科技股份有限公司 | Burst code winding system for vector generator of memory chip tester |
-
2002
- 2002-08-23 JP JP2002243433A patent/JP2004086300A/en active Pending
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100706242B1 (en) | 2005-02-07 | 2007-04-11 | 삼성전자주식회사 | How to configure the memory system and its run unit address mapping table |
| US7529880B2 (en) | 2005-02-07 | 2009-05-05 | Samsung Electronics Co., Ltd. | Address mapping table and method of storing mapping data in the same |
| KR100880425B1 (en) | 2007-02-13 | 2009-01-29 | 삼성전자주식회사 | A method for minimizing or reducing the memory map table search time and a semiconductor memory device accordingly |
| JP2008243156A (en) * | 2007-03-29 | 2008-10-09 | Tdk Corp | MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD |
| JP2012531655A (en) * | 2009-11-04 | 2012-12-10 | 株式会社日立製作所 | Flash memory module |
| WO2014132346A1 (en) * | 2013-02-27 | 2014-09-04 | 株式会社日立製作所 | Semiconductor storage |
| JP6018696B2 (en) * | 2013-02-27 | 2016-11-02 | 株式会社日立製作所 | Semiconductor storage |
| CN117612592A (en) * | 2024-01-23 | 2024-02-27 | 悦芯科技股份有限公司 | Burst code winding system for vector generator of memory chip tester |
| CN117612592B (en) * | 2024-01-23 | 2024-04-26 | 悦芯科技股份有限公司 | Burst scrambling system for vector generator of memory chip tester |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7613870B2 (en) | Efficient memory usage in systems including volatile and high-density memories | |
| US8386698B2 (en) | Data accessing method for flash memory and storage system and controller using the same | |
| US7149890B2 (en) | Initializing system memory | |
| JP4628750B2 (en) | Flash memory device with built-in buffer memory and flash memory system | |
| KR100533682B1 (en) | Data managing device and method for flash memory | |
| US20040109376A1 (en) | Method for detecting logical address of flash memory | |
| JP2007527592A (en) | Method and apparatus for partial refresh of DRAM | |
| WO2010000101A1 (en) | Device and method for extending memory space of embedded system | |
| CN115878507B (en) | System-on-chip memory access method, device and electronic equipment | |
| TW200905555A (en) | Caching of microcode emulation memory | |
| JP2003281079A5 (en) | ||
| TW200304594A (en) | System and method of data replacement in cache ways | |
| JP2004086300A (en) | Flash memory logical address detection method | |
| US9329994B2 (en) | Memory system | |
| JP2004151939A (en) | Storage device | |
| CN100580669C (en) | Cache Implementation Method About File Allocation Table on Flash Storage Medium | |
| JP2004086295A (en) | Nand type flash memory disk drive and method for logical address detection | |
| JP2005222534A (en) | Data management apparatus and method for flash memory | |
| CN110308861B (en) | Storage data preservation method, device, electronic device and readable storage medium | |
| JP3974131B2 (en) | Method and apparatus for controlling cache memory | |
| JP2010026969A (en) | Data processor | |
| JP2014006902A (en) | Emulated electrically erasable memory having address ram for data stored in flash memory | |
| US11321091B2 (en) | Storage devices mapped to registers and mapping methods thereof | |
| JPH04324187A (en) | Dynamic ram | |
| JP4724289B2 (en) | Data processing apparatus and memory access control method for data processing apparatus |