JP2004086295A - Nand type flash memory disk drive and method for logical address detection - Google Patents

Nand type flash memory disk drive and method for logical address detection Download PDF

Info

Publication number
JP2004086295A
JP2004086295A JP2002243300A JP2002243300A JP2004086295A JP 2004086295 A JP2004086295 A JP 2004086295A JP 2002243300 A JP2002243300 A JP 2002243300A JP 2002243300 A JP2002243300 A JP 2002243300A JP 2004086295 A JP2004086295 A JP 2004086295A
Authority
JP
Japan
Prior art keywords
logical address
physical
mapping table
flash memory
ram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002243300A
Other languages
Japanese (ja)
Inventor
Jin-Shian Lin
林 晉賢
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.)
Megawin Technology Co Ltd
Original Assignee
Megawin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Megawin Technology Co Ltd filed Critical Megawin Technology Co Ltd
Priority to JP2002243300A priority Critical patent/JP2004086295A/en
Publication of JP2004086295A publication Critical patent/JP2004086295A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a NAND type flash memory disk drive and a method for logical address detection. <P>SOLUTION: According to the NAND type flash memory disk drive and method for logical address detection, a partial and reverse-direction physical/logical address mapping table is initially constructed by replication in RAM at system startup. Then, the function of the memory disk drive composed of hardware such as a counter and a comparator are utilized to search a partial physical/logical address mapping table in the RAM sequentially, so as to find out a logical address corresponding to a physical address. The present application thereby enables to obtain an effective balance point in terms of speed and space, and prevents the occupation of large space on the precondition that a high processing speed is maintained. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は一種のNAND型フラッシュメモリディスク装置及び論理アドレス検出の方法に係り、特に、半導体ディスク装置を利用して物理/論理アドレスマッピング表(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】
本発明の主要な目的は、一種のNAND型フラッシュメモリディスク装置及び論理アドレス検出の方法を提供することにあり、それは、まず逆向の部分物理/論理アドレスマッピング表を構築し、並びにハードウエアを利用して物理/論理アドレスマッピング表をサーチし、物理アドレスに対応する論理アドレスを得る。
【0008】
本発明のもう一つの目的は、一種のNAND型フラッシュメモリディスク装置及び論理アドレス検出の方法を提供することにあり、それは、ハードウエアの計算に、少量のRAMの使用を組み合わせることにより、多くの空間を増加しない前提の下、半導体ディスク装置の処理速度を高める。
【0009】
【課題を解決するための手段】
請求項1の発明は、NAND型フラッシュメモリディスク装置において、該装置はシステム起動時にまず物理アドレスとそれの対応する論理アドレスの関係を直接複製して部分物理/論理アドレスマッピング表を構築し、このフラッシュメモリディスク装置を利用してサーチ待機論理アドレスがサーチされ、このフラッシュメモリディスク装置が、
続けてアドレス信号を発送する計数器と、
内部に該部分物理/論理アドレスマッピング表を記録し、該アドレス信号に基づき、該部分物理/論理アドレスマッピング表中より対応する論理アドレス信号を得て、並びにそれを伝送する、RAMと、
該論理アドレス信号と、サーチ待機論理アドレスを受け取りこれを比較した後、この二つの論理アドレスが同じであれば、即ち、該サーチ待機論理アドレスとその対応する物理位置を得て、計数器の運転を停止させる、比較器と、
を具えたことを特徴とする、NAND型フラッシュメモリディスク装置としている。
請求項2の発明は、請求項1に記載のNAND型フラッシュメモリディスク装置において、RAM内の部分物理/論理アドレスマッピング表中に必要な論理アドレスがロードされてない時は更に続けてもう一つの部分物理/論理アドレスマッピング表を複製構築することを特徴とする、NAND型フラッシュメモリディスク装置としている。
請求項3の発明は、請求項1に記載のNAND型フラッシュメモリディスク装置において、RAMがSRAMとされたことを特徴とする、NAND型フラッシュメモリディスク装置としている。
請求項4の発明は、請求項1に記載のNAND型フラッシュメモリディスク装置において、サーチ待機論理アドレスが、コンピュータシステムより発送されたものであることを特徴とする、NAND型フラッシュメモリディスク装置としている。
請求項5の発明は、論理アドレス検出の方法において、
システム起動時に物理アドレスとその対応する論理アドレスの関係を、直接複製して一つの部分物理/論理アドレスマッピング表を構築し、並びにそれを一つのRAM中に保存するステップと、
システムがサーチ待機論理アドレスを一つの比較器に伝送する時、まず計数器を利用してアドレス信号を該RAMに発送するステップと、
該RAMが該アドレス信号に基づき、該部分物理/論理アドレスマッピング表中より対応する論理アドレス信号を得て、並びにそれを該比較器に伝送するステップと、
該比較器が該論理アドレス信号及びサーチ待機論理アドレスが同じか否かを対比し、この二つの論理アドレスが同じとなれば、計数器に運転停止させ、こうして該サーチ待機論理アドレス及びその対応する実体位置を得るステップと、
を具えたことを特徴とする、論理アドレス検出の方法としている。
請求項6の発明は、請求項5に記載の論理アドレス検出の方法において、RAM内の部分物理/論理アドレスマッピング表中に必要な論理アドレスがロードされていない時、更に続けてもう一つの部分物理/論理アドレスマッピング表を複製構築することを特徴とする、論理アドレス検出の方法としている。
請求項7の発明は、請求項5に記載の論理アドレス検出の方法において、RAMがSRAMとされたことを特徴とする、論理アドレス検出の方法としている。
【0010】
【発明の実施の形態】
本発明のNAND型フラッシュメモリディスク装置及び論理アドレス検出の方法によると、システム起動時に、まず物理アドレスとそれに対応する論理アドレスの関係を、直接複製して逆向の部分物理/論理アドレスマッピング表を構築し、並びにそれをSRAMに保存する。本発明により構築するのは逆向の部分物理/論理アドレスマッピング表であるため、根本的に最初から最後まで配列する必要はなく、一部のフラッシュメモリの論理アドレス内容をコピーすればよい。システムホストがデータにアクセスする時、まずサーチ待機論理アドレスを比較器に提供し、このとき、一つの計数器が一つのアドレス信号を該SRAMに伝送し、それがアドレス信号に基づき、ビルトインされた部分物理/論理アドレスマッピング表中より対応する論理アドレス信号を取得し、並びにそれを比較器に送り、比較器がこの論理アドレス信号とシステムの提供したサーチ待機論理アドレスを比較し、この二つの論理アドレスが同じとなれば、計数器が運転を停止する。
【0011】
【実施例】
本発明は、まずシステム起動時に、部分逆向アドレスマッピング表(Partial Inverse Address Mapping Table)、即ち部分物理/論理アドレスマッピング表を複製構築し、並びに計数器及び比較器等のハードウエアの作用を利用し、RAM自身の有する連続読み取りの特性を組み合わせ、RAM中の部分物理/論理アドレスマッピング表にあってサーチして、物理アドレスに対応する論理アドレスを得る。
【0012】
フラッシュメモリ中でデータ保存及び読み取りに使用する時、各一つのデータアクセスに供されるブロックはそれぞれ一つの物理アドレスを有し、メモリ中の実際の物理メモリの位置を代表する。図2の(a)に示されるように、各一つのブロックはそれぞれ物理位置とそれに対応する論理アドレスを有し、且つ物理アドレス及び論理アドレスは非線形の対応関係をなす。システム起動時に初期化を行う時、まず図2の(a)に示される関係表に基づき、まず一部の逆向アドレスマッピング表を複製構築し、図2の(b)に示されるように、この逆向アドレスマッピング表を構築する時、物理アドレスの配列順序が主とされ、対応する物理位置を表の内容中に複製し、この関係表の物理アドレス及びその論理アドレスの対応関係を直接複製して物理/論理アドレスマッピング表を形成し、周知の技術のように最初から最後まで一回読み取って一つのアドレスマッピング表を構築する必要がない。この物理/論理アドレスマッピング表を完成した後、それをSRAM内に保存し、システムがサーチ待機論理アドレスを随時サーチできるようにする。
【0013】
システム起動時に、物理アドレス及びそれに対応する論理アドレスの関係を、システムSRAMの大きさに依り、直接複製して図2の(b)に示されるような部分物理/論理アドレスマッピング表を構築し、並びにこの部分物理/論理アドレスマッピング表をSRAM中に保存する。システムホストがデータにアクセスする時、まずサーチ待機論理アドレスを比較器(comparator)14に提供し、図3に示されるように、このとき、一つの計数器(couter)10が順にアドレス信号を該SRAM12に送り、アドレス信号に基づき、SRAM12にビルトインされた部分物理/論理アドレスマッピング表中より対応する論理アドレス信号を取得し、並びにそれを比較器14に送る。
【0014】
比較器14がSRAM12の発生した論理アドレス信号を受け取る時、比較器14はこの論理アドレス信号とシステムの提供するサーチ待機論理アドレスを比較し、もし比較結果がこの二つの論理アドレスが同じことを示すなら、即ち該サーチ待機論理アドレス及びその対応する物理アドレスを得ると、計数器10に運転を停止させる。反対に、もし比較結果がこれら二つの論理アドレスが異なることを示すなら、計数器10が続けて異なるアドレス信号をSRAM12に送り、並びに上述の過程を重複し、同じ論理アドレスを探し出した時に計数器を停止させる。
【0015】
そのうち、上述RAM内の部分物理/論理アドレスマッピング表中にあって、もし必要な論理アドレスがロードされていなければ、更に続けてもう一つの部分物理/論理アドレスマッピング表を複製構築し、並びに上述の過程を重複し、同じ論理アドレスが見つかるまで行って停止する。
【0016】
ここまでで、本発明の精神はすでに説明したが、以下に具体的な例にフローチャートを組み合わせて上述の半導体ディスク装置の作用及び効果を検証し、並びにこの技術に習熟する者がこの例を参考にして十分な知識を得てそれにより実施できるようにする。
【0017】
図4は本発明の論理アドレス検出のフローチャートであり、図示されるように、この論理アドレス検出の方法は以下のステップを含む。まず、ステップS10において、システム起動時に物理アドレスとその対応する論理アドレスの関係を直接複製して部分物理/論理アドレスマッピング表を構築し、並びにそれをRAM中に保存する。
【0018】
システムがステップS12に示されるように、サーチ待機論理アドレスを比較器に伝送する時、比較器がアドレス信号を該RAMに伝送開始し、これはステップS14に示されるとおりである。
【0019】
比較器は該論理アドレス信号を受信すると、この論理アドレス信号をサーチ待機論理アドレスと対比して同じか否かを判断し、これはステップS18に示されるとおりであり、論理アドレス信号とサーチ待機論理アドレスが同じであれば、即ち該サーチ待機論理アドレスとその対応する物理位置を得たことを表示し、この時、計数器は運転を停止し、ステップS20に示されるように、全体のサーチ過程を終了する。反対に、もし論理アドレス信号とサーチ待機論理アドレスが比較器の比較により異なると判断されると、続けてステップS22を実行し、まずアドレスのサーチがRAMの末端まで到達したかを判断し、もしすでにRAMの末端に達していれば、RAM内の該物理/論理アドレスマッピング表中をサーチして必要な論理アドレスがロードされていない時、ステップS10に戻り、新たにもう一つの部分物理/論理アドレスマッピング表を構築し、並びに重複して続くステップを行う。もしサーチがRAMの末端に到達していなければ、ステップS14に戻り、上述のステップを重複し、該サーチ待機論理アドレス及びその対応する物理位置が得られるまで行う。
【0020】
【発明の効果】
本発明の快速構築する逆方向の部分物理/論理アドレスマッピング表はわずかに一部のアドレス関係を複製構築し、ゆえに多過ぎるRAMを占用せず、且つ本発明の構築するのは逆方向の部分物理/論理アドレスマッピング表であるため、根本的に最初から最後まで配列する必要がなく、直接一部のフラッシュメモリの論理アドレス内容を複製すればよく、周知の技術に較べ、快速である。さらに本発明は半導体ディスク装置のハードウエアを利用して該部分物理/論理アドレスマッピング表を快速サーチし、物理アドレスに対応する論理アドレスを得られる。これにより、本発明はハードウエアの計算に少量のRAMの使用を組み合わせることにより、多過ぎる空間を増加しない前提の下で、半導体ディスク装置の処理速度を高め、ゆえに速度と空間の考慮上、有効な平衡点を有し、これにより本発明は速度が速く空間を占有しない長所を有するものとされ、有効にシステムのデータアクセスの性能を高める。
【0021】
以上の実施例は本発明の技術思想と特徴を説明するためのものであり、その目的は、本発明の属する技術の分野における通常の知識を有する者が本発明の内容を了解し並びに実施できるようにすることにある。すなわち、本発明に記載された精神に基づきなしうる均等の変化或いは修飾は、いずれも本発明の請求範囲内に属するものとする。
【図面の簡単な説明】
【図1】図1の(a)及び図1の(b)はそれぞれ周知のメモリ中の物理アドレスと論理アドレスの関係表示図及びこの関係を利用して構築した論理/物理アドレスマッピング表である。
【図2】図2の(a)及び図2の(b)はそれぞれメモリ中の物理アドレスと論理アドレスの関係表示図及び本発明を利用して構築された部分物理/論理アドレスマッピング表である。
【図3】本発明の、半導体論理装置表示図である。
【図4】本発明の論理アドレス検出のフローチャートである。
【符号の説明】
10 計数器
12 SRAM
14 比較器
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a kind of NAND flash memory disk device and a method of detecting a logical address, and more particularly, to a physical / logical address mapping table (Address Mapping Table or Look-Up) using a semiconductor disk device.
Table) and a method for detecting a logical address by using the address mapping table.
[0002]
[Prior art]
In the operating principle of the 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 retrieve the data, it retrieves it 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 accurately transmits the data to the corresponding address. 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 kind of NAND flash memory disk device and a method of logical address detection, which first constructs a reverse partial physical / logical address mapping table and uses hardware. Then, a physical / logical address mapping table is searched to obtain a logical address corresponding to the physical address.
[0008]
It is another object of the present invention to provide a kind of NAND flash memory disk device and a method of logical address detection, which combines hardware calculation with the use of a small amount of RAM to increase the number of RAMs. The processing speed of the semiconductor disk device is increased on the assumption that the space is not increased.
[0009]
[Means for Solving the Problems]
According to a first aspect of the present invention, in a NAND flash memory disk device, at the time of system startup, the relationship between a physical address and its corresponding logical address is directly copied to construct a partial physical / logical address mapping table. The search standby logical address is searched using the flash memory disk device.
A counter for successively sending address signals,
A RAM which internally records the partial physical / logical address mapping table, obtains a corresponding logical address signal from the partial physical / logical address mapping table based on the address signal, and transmits it;
After receiving the logical address signal and the search standby logical address and comparing them, if the two logical addresses are the same, that is, obtain the search standby logical address and its corresponding physical position, and operate the counter. To stop the comparator and
And a NAND-type flash memory disk device.
According to a second aspect of the present invention, in the NAND flash memory disk device according to the first aspect, when a required logical address is not loaded in the partial physical / logical address mapping table in the RAM, another one is continued. This is a NAND flash memory disk device characterized by replicating and constructing a partial physical / logical address mapping table.
According to a third aspect of the present invention, in the NAND flash memory disk device according to the first aspect, the RAM is an SRAM.
According to a fourth aspect of the present invention, there is provided the NAND-type flash memory disk device according to the first aspect, wherein the search standby logical address is sent from a computer system. .
According to a fifth aspect of the present invention, in the method for detecting a logical address,
Building a partial physical / logical address mapping table by directly duplicating the relationship between a physical address and its corresponding logical address at system startup, and storing it in a RAM;
When the system transmits a search standby logical address to one comparator, first, an address signal is sent to the RAM using a counter;
The RAM obtaining a corresponding logical address signal from the partial physical / logical address mapping table based on the address signal, and transmitting it to the comparator;
The comparator compares whether the logical address signal and the search standby logical address are the same, and if the two logical addresses are the same, causes the counter to shut down, thus the search standby logical address and its corresponding logical address. Obtaining an entity position;
And a method of detecting a logical address.
According to a sixth aspect of the present invention, in the method for detecting a logical address according to the fifth aspect, when a necessary logical address is not loaded in the partial physical / logical address mapping table in the RAM, another part is continued. A logical address detection method is characterized by replicating and constructing a physical / logical address mapping table.
According to a seventh aspect of the present invention, there is provided the logical address detecting method according to the fifth aspect, wherein the RAM is an SRAM.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
According to the NAND-type flash memory disk device and the logical address detection method of the present invention, at the time of system startup, first, the relationship between the physical address and the corresponding logical address is directly copied to construct the reverse partial physical / logical address mapping table. And save it in SRAM. Since the reverse partial physical / logical address mapping table is constructed according to the present invention, there is no need to fundamentally arrange from the beginning to the end, and the logical address contents of some flash memories may be copied. When the system host accesses the data, it first provides a search standby logical address to the comparator, where one counter transmits one address signal to the SRAM, which is built in based on the address signal. Obtain the corresponding logical address signal from the partial physical / logical address mapping table and send it to the comparator, which compares this logical address signal with the search standby logical address provided by the system, and If the addresses are the same, the counter stops running.
[0011]
【Example】
According to the present invention, at the time of system startup, a partial reverse address mapping table, that is, a partial physical / logical address mapping table is duplicated and constructed, and the operation of hardware such as a counter and a comparator is used. , Combining the characteristics of the continuous reading of the RAM itself and searching the partial physical / logical address mapping table in the RAM to obtain a logical address corresponding to the physical address.
[0012]
When used for storing and reading data in a flash memory, each one of the blocks provided for data access has one physical address and represents an actual physical memory location in the memory. As shown in FIG. 2A, each one block has a physical location and a corresponding logical address, and the physical address and the logical address have a non-linear correspondence. When initialization is performed at the time of system startup, first, based on the relation table shown in FIG. 2A, a part of the reverse address mapping table is duplicated and constructed, and as shown in FIG. When constructing the reverse address mapping table, the arrangement order of physical addresses is mainly used, the corresponding physical position is duplicated in the contents of the table, and the correspondence between the physical address of this relation table and its logical address is directly duplicated. There is no need to form a physical / logical address mapping table and read once from the beginning to the end to construct one address mapping table as in the known technology. After completing this physical / logical address mapping table, it is stored in the SRAM so that the system can search the logical address for search at any time.
[0013]
At the time of system startup, the relationship between the physical address and the corresponding logical address is directly copied depending on the size of the system SRAM to construct a partial physical / logical address mapping table as shown in FIG. Further, this partial physical / logical address mapping table is stored in the SRAM. When a system host accesses data, first, a search standby logical address is provided to a comparator 14, and at this time, as shown in FIG. 3, one counter 10 sequentially outputs an address signal. The corresponding logical address signal is obtained from the partial physical / logical address mapping table built in the SRAM 12 based on the address signal and sent to the comparator 14 based on the address signal.
[0014]
When the comparator 14 receives the logical address signal generated by the SRAM 12, the comparator 14 compares the logical address signal with the search standby logical address provided by the system, and if the comparison result indicates that the two logical addresses are the same. In other words, when the search standby logical address and the corresponding physical address are obtained, the counter 10 stops the operation. Conversely, if the result of the comparison indicates that these two logical addresses are different, then the counter 10 will continue to send different address signals to the SRAM 12, and will repeat the above process, finding the same logical address when counting. To stop.
[0015]
If the necessary logical address is not loaded in the partial physical / logical address mapping table in the RAM, another partial physical / logical address mapping table is further duplicated and constructed. Are repeated until the same logical address is found.
[0016]
Up to this point, the spirit of the present invention has already been described. Hereinafter, the operation and effect of the above-described semiconductor disk device will be verified by combining a specific example with a flowchart, and those skilled in this technology will refer to this example. To gain sufficient knowledge so that it can be implemented.
[0017]
FIG. 4 is a flowchart of the logical address detection according to the present invention. As shown, the method of the logical address detection includes the following steps. First, in step S10, at the time of system startup, a relationship between a physical address and its corresponding logical address is directly copied to construct a partial physical / logical address mapping table, which is stored in the RAM.
[0018]
When the system transmits the search standby logical address to the comparator as shown in step S12, the comparator starts transmitting the address signal to the RAM, as shown in step S14.
[0019]
Upon receiving the logical address signal, the comparator compares the logical address signal with the search standby logical address to determine whether or not the logical address signal is the same, as shown in step S18. If the addresses are the same, indicating that the search standby logical address and its corresponding physical position have been obtained, the counter stops running, and the entire search process is performed as shown in step S20. To end. Conversely, if it is determined that the logical address signal and the search standby logical address are different by comparison of the comparator, step S22 is subsequently executed to determine whether the address search has reached the end of the RAM. If the end of the RAM has already been reached, the physical / logical address mapping table in the RAM is searched, and if the necessary logical address has not been loaded, the process returns to step S10 and another partial physical / logical Build an address mapping table and perform the steps that follow in duplicate. If the search has not reached the end of the RAM, the process returns to step S14, and the above steps are repeated until the search standby logical address and its corresponding physical location are obtained.
[0020]
【The invention's effect】
The fast-build reverse partial physical / logical address mapping table of the present invention duplicates and builds some of the address relationships, and therefore does not occupy too much RAM, and the present invention builds the reverse Since it is a physical / logical address mapping table, there is no need to fundamentally arrange from the beginning to the end, and it is sufficient to directly copy the logical address contents of a part of the flash memory, which is faster than known techniques. Further, according to the present invention, the partial physical / logical address mapping table can be quickly searched using the hardware of the semiconductor disk device, and a logical address corresponding to the physical address can be obtained. As a result, the present invention enhances the processing speed of the semiconductor disk device by associating the use of a small amount of RAM with the hardware calculation under the assumption that the space does not increase too much. The present invention has the advantage that it is fast and does not occupy space, thereby effectively improving the data access performance of the system.
[0021]
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 addresses and logical addresses in a memory and a partial physical / logical address mapping table constructed using the present invention, respectively. .
FIG. 3 is a schematic diagram of a semiconductor logic device according to the present invention.
FIG. 4 is a flowchart of logical address detection according to the present invention.
[Explanation of symbols]
10 Counter 12 SRAM
14 Comparator

Claims (7)

NAND型フラッシュメモリディスク装置において、該装置はシステム起動時にまず物理アドレスとそれの対応する論理アドレスの関係を直接複製して部分物理/論理アドレスマッピング表を構築し、このフラッシュメモリディスク装置を利用してサーチ待機論理アドレスがサーチされ、このフラッシュメモリディスク装置が、
続けてアドレス信号を発送する計数器と、
内部に該部分物理/論理アドレスマッピング表を記録し、該アドレス信号に基づき、該部分物理/論理アドレスマッピング表中より対応する論理アドレス信号を得て、並びにそれを伝送する、RAMと、
該論理アドレス信号と、サーチ待機論理アドレスを受け取りこれを比較した後、この二つの論理アドレスが同じであれば、即ち、該サーチ待機論理アドレスとその対応する物理位置を得て、計数器の運転を停止させる、比較器と、
を具えたことを特徴とする、NAND型フラッシュメモリディスク装置。
In a NAND flash memory disk device, at the time of system startup, the device first directly duplicates the relationship between a physical address and its corresponding logical address to construct a partial physical / logical address mapping table, and uses this flash memory disk device. The search standby logical address is searched for, and this flash memory disk device is
A counter for successively sending address signals,
A RAM which internally records the partial physical / logical address mapping table, obtains a corresponding logical address signal from the partial physical / logical address mapping table based on the address signal, and transmits it;
After receiving the logical address signal and the search standby logical address and comparing them, if the two logical addresses are the same, that is, obtain the search standby logical address and its corresponding physical position, and operate the counter. To stop the comparator and
A NAND-type flash memory disk device comprising:
請求項1に記載のNAND型フラッシュメモリディスク装置において、RAM内の部分物理/論理アドレスマッピング表中に必要な論理アドレスがロードされてない時は更に続けてもう一つの部分物理/論理アドレスマッピング表を複製構築することを特徴とする、NAND型フラッシュメモリディスク装置。2. The NAND type flash memory disk device according to claim 1, wherein when a required logical address is not loaded in the partial physical / logical address mapping table in the RAM, another partial physical / logical address mapping table is continued. And a NAND flash memory disk device. 請求項1に記載のNAND型フラッシュメモリディスク装置において、RAMがSRAMとされたことを特徴とする、NAND型フラッシュメモリディスク装置。2. The NAND flash memory disk device according to claim 1, wherein the RAM is an SRAM. 請求項1に記載のNAND型フラッシュメモリディスク装置において、サーチ待機論理アドレスが、コンピュータシステムより発送されたものであることを特徴とする、NAND型フラッシュメモリディスク装置。2. The NAND flash memory disk device according to claim 1, wherein the search standby logical address is sent from a computer system. 論理アドレス検出の方法において、
システム起動時に物理アドレスとその対応する論理アドレスの関係を、直接複製して一つの部分物理/論理アドレスマッピング表を構築し、並びにそれを一つのRAM中に保存するステップと、
システムがサーチ待機論理アドレスを一つの比較器に伝送する時、まず計数器を利用してアドレス信号を該RAMに発送するステップと、
該RAMが該アドレス信号に基づき、該部分物理/論理アドレスマッピング表中より対応する論理アドレス信号を得て、並びにそれを該比較器に伝送するステップと、
該比較器が該論理アドレス信号及びサーチ待機論理アドレスが同じか否かを対比し、この二つの論理アドレスが同じとなれば、計数器に運転停止させ、こうして該サーチ待機論理アドレス及びその対応する実体位置を得るステップと、
を具えたことを特徴とする、論理アドレス検出の方法。
In the method of detecting a logical address,
Building a partial physical / logical address mapping table by directly duplicating the relationship between a physical address and its corresponding logical address at system startup, and storing it in a RAM;
When the system transmits a search standby logical address to one comparator, first, an address signal is sent to the RAM using a counter;
The RAM obtaining a corresponding logical address signal from the partial physical / logical address mapping table based on the address signal, and transmitting it to the comparator;
The comparator compares whether the logical address signal and the search standby logical address are the same, and if the two logical addresses are the same, causes the counter to shut down, thus the search standby logical address and its corresponding logical address. Obtaining an entity position;
A method for detecting a logical address, comprising:
請求項5に記載の論理アドレス検出の方法において、RAM内の部分物理/論理アドレスマッピング表中に必要な論理アドレスがロードされていない時、更に続けてもう一つの部分物理/論理アドレスマッピング表を複製構築することを特徴とする、論理アドレス検出の方法。6. The logical address detection method according to claim 5, wherein when a required logical address is not loaded in the partial physical / logical address mapping table in the RAM, another partial physical / logical address mapping table is further continued. A method of detecting a logical address, which comprises constructing a replica. 請求項5に記載の論理アドレス検出の方法において、RAMがSRAMとされたことを特徴とする、論理アドレス検出の方法。6. The logical address detection method according to claim 5, wherein the RAM is an SRAM.
JP2002243300A 2002-08-23 2002-08-23 Nand type flash memory disk drive and method for logical address detection Pending JP2004086295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002243300A JP2004086295A (en) 2002-08-23 2002-08-23 Nand type flash memory disk drive and method for logical address detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002243300A JP2004086295A (en) 2002-08-23 2002-08-23 Nand type flash memory disk drive and method for logical address detection

Publications (1)

Publication Number Publication Date
JP2004086295A true JP2004086295A (en) 2004-03-18

Family

ID=32052092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002243300A Pending JP2004086295A (en) 2002-08-23 2002-08-23 Nand type flash memory disk drive and method for logical address detection

Country Status (1)

Country Link
JP (1) JP2004086295A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100706242B1 (en) 2005-02-07 2007-04-11 삼성전자주식회사 Memory system and run level address mapping table forming method thereof
KR100817087B1 (en) 2007-02-13 2008-03-27 삼성전자주식회사 Method for operating buffer cache of storage device including flash memory
KR100880425B1 (en) * 2007-02-13 2009-01-29 삼성전자주식회사 Non-volatile semiconductor memory device for supporting high speed search in cache memory function
WO2009126542A1 (en) * 2008-04-06 2009-10-15 Fusion Multisystems, Inc. Apparatus, system, and method for efficient mapping of virtual and physical addresses
US8074011B2 (en) 2006-12-06 2011-12-06 Fusion-Io, Inc. Apparatus, system, and method for storage space recovery after reaching a read count limit
US8402201B2 (en) 2006-12-06 2013-03-19 Fusion-Io, Inc. Apparatus, system, and method for storage space recovery in solid-state storage
US9116823B2 (en) 2006-12-06 2015-08-25 Intelligent Intellectual Property Holdings 2 Llc Systems and methods for adaptive error-correction coding
US9495241B2 (en) 2006-12-06 2016-11-15 Longitude Enterprise Flash S.A.R.L. Systems and methods for adaptive data storage
US9600184B2 (en) 2007-12-06 2017-03-21 Sandisk Technologies Llc Apparatus, system, and method for coordinating storage requests in a multi-processor/multi-thread environment

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529880B2 (en) 2005-02-07 2009-05-05 Samsung Electronics Co., Ltd. Address mapping table and method of storing mapping data in the same
KR100706242B1 (en) 2005-02-07 2007-04-11 삼성전자주식회사 Memory system and run level address mapping table forming method thereof
US9734086B2 (en) 2006-12-06 2017-08-15 Sandisk Technologies Llc Apparatus, system, and method for a device shared between multiple independent hosts
US9116823B2 (en) 2006-12-06 2015-08-25 Intelligent Intellectual Property Holdings 2 Llc Systems and methods for adaptive error-correction coding
US11960412B2 (en) 2006-12-06 2024-04-16 Unification Technologies Llc Systems and methods for identifying storage resources that are not in use
US11847066B2 (en) 2006-12-06 2023-12-19 Unification Technologies Llc Apparatus, system, and method for managing commands of solid-state storage using bank interleave
US8074011B2 (en) 2006-12-06 2011-12-06 Fusion-Io, Inc. Apparatus, system, and method for storage space recovery after reaching a read count limit
US11640359B2 (en) 2006-12-06 2023-05-02 Unification Technologies Llc Systems and methods for identifying storage resources that are not in use
US8402201B2 (en) 2006-12-06 2013-03-19 Fusion-Io, Inc. Apparatus, system, and method for storage space recovery in solid-state storage
US11573909B2 (en) 2006-12-06 2023-02-07 Unification Technologies Llc Apparatus, system, and method for managing commands of solid-state storage using bank interleave
US9495241B2 (en) 2006-12-06 2016-11-15 Longitude Enterprise Flash S.A.R.L. Systems and methods for adaptive data storage
KR100817087B1 (en) 2007-02-13 2008-03-27 삼성전자주식회사 Method for operating buffer cache of storage device including flash memory
KR100880425B1 (en) * 2007-02-13 2009-01-29 삼성전자주식회사 Non-volatile semiconductor memory device for supporting high speed search in cache memory function
US8010736B2 (en) 2007-02-13 2011-08-30 Samsung Electronics Co., Ltd. Nonvolatile semiconductor memory device for supporting high speed search in cache memory
US9600184B2 (en) 2007-12-06 2017-03-21 Sandisk Technologies Llc Apparatus, system, and method for coordinating storage requests in a multi-processor/multi-thread environment
US8195912B2 (en) 2007-12-06 2012-06-05 Fusion-io, Inc Apparatus, system, and method for efficient mapping of virtual and physical addresses
WO2009126542A1 (en) * 2008-04-06 2009-10-15 Fusion Multisystems, Inc. Apparatus, system, and method for efficient mapping of virtual and physical addresses

Similar Documents

Publication Publication Date Title
CN107632939B (en) Mapping table for storage device
US20220413706A1 (en) Data Storage Method, Apparatus and Storage System
KR20070070122A (en) Hard disk drive cache memory and playback device
CN108572798B (en) Storage device and method for performing snoop operation for fast data transmission
WO2018171296A1 (en) File merging method and controller
US20200042187A1 (en) Writing same data on a storage system
JP4460967B2 (en) MEMORY CARD, NONVOLATILE SEMICONDUCTOR MEMORY, AND SEMICONDUCTOR MEMORY CONTROL METHOD
TW201729098A (en) Technologies for reducing duplication of stored data
WO2023035646A1 (en) Method and apparatus for expanding memory, and related device
US20040088474A1 (en) NAND type flash memory disk device and method for detecting the logical address
JP2004086295A (en) Nand type flash memory disk drive and method for logical address detection
JP2005222534A (en) Data management apparatus and method used for flash memory
WO2005064617A1 (en) Data write-in method for flash memory
JP2007011872A (en) Memory card and control method therefor
WO2020057479A1 (en) Address mapping table item page management
WO2015058641A1 (en) Hybrid hard disk implementation method and device
CN105786722A (en) NVM erasing and writing control method and system based on heterogeneous hybrid memory
WO2018176811A1 (en) Hard disk write-in method and apparatus
TWI715408B (en) Flash memory controller, memory device and method for accessing flash memory module
CN115168317B (en) LSM tree storage engine construction method and system
US11681638B2 (en) Method of synchronizing time between host device and storage device and system performing the same
US10331385B2 (en) Cooperative write-back cache flushing for storage devices
WO2019041291A1 (en) Information writing method and device
JP2004086300A (en) Flash memory logical address detection method
US10789168B2 (en) Maintaining multiple cache areas