CN1731338A - Storage method by simulating portable storage device in computer system - Google Patents

Storage method by simulating portable storage device in computer system Download PDF

Info

Publication number
CN1731338A
CN1731338A CN 200510043043 CN200510043043A CN1731338A CN 1731338 A CN1731338 A CN 1731338A CN 200510043043 CN200510043043 CN 200510043043 CN 200510043043 A CN200510043043 A CN 200510043043A CN 1731338 A CN1731338 A CN 1731338A
Authority
CN
China
Prior art keywords
address
computer system
driving
user interface
address translation
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
CN 200510043043
Other languages
Chinese (zh)
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.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian 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 Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CN 200510043043 priority Critical patent/CN1731338A/en
Publication of CN1731338A publication Critical patent/CN1731338A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention relates to a storage method which simulates a portable storage apparatus on the computer system. The method comprises the following steps: 1) presetting a driver which can in charge of the address change, provide I/O interface read-write operation and a user interface on the computer system; 2) choosing the files from the user interface, using the user interface to register the files as a disk device of the operation system and forming a virtual disk; 3) establishing an address changing layer which can call the virtual disk by the driver.

Description

The storage means of simulating portable storage device on computer system
One, technical field
The present invention relates to a kind of method of emulation storage device, especially a kind of on computer system the storage means of simulating portable storage device.
Two, background technology
Along with science and technology is maked rapid progress, electronic product is superior day by day, so that audiotape is replaced by laser disc (CD), video tape is eliminated by DVD and other people's video equipments, also is unable to escape this destiny as for the computer diskette.Though CD and CD writers can provide more cheap price and bigger storage volume, with USB the Storage Media of interface, not only moulding is light and handy, and carries easily, and is therefore more welcome than general CD.Research report according to Semico Research is pointed out, based on the storage device of USB interface and flash memory (FlashMemory), will grow up fast in the coming years, estimates that market scale will reach 3,800,000,000 dollars in the time of 2006.
Present so-called flash memory also can be divided into NAND Flash and NOR Flash on the framework of internal memory.And the specification of the nearly Smart Media of present portable memory device Card (SMC), Secure Digital Card (SD), Multi Media Card (MMC), Memory Stick Card (MS), Compact FlashType I/II (CF) and IBM Microdrive six kinds of main flows such as (MD), the internal memory of these specifications can operate by translation interface equally, make and computer system can pass through universal serial (Universal Serial Bus, USB) interface carries out the action of access.
One of the application of USB disk and difficulty of test must have combination of hardware to carry out exactly at present, this becomes the bottleneck of system development and test, in addition, because the specification of portable memory device is various, the bitcom design complexities is increased, the versatility of software reduces, and is difficult to design a kind of memory interface of opening, so that unified interface to be provided.
In sum, develop portable memory device at present, how can meet with greatest problem and be portable memory device with all size, do not needing external host, as PDA (PDA (Personal Digital Assistant)), and can on computer system, directly show, even and the portable memory device of entity, performance as the USB disk is just the same, and this becomes the problem that the exploitation portable memory device must solve.
Three, summary of the invention
The present invention is for solving the above-mentioned technical matters that exists in the background technology, and a kind of external host that do not need is provided, can be on computer system simulating portable storage device carry out the storage means of accessing operation
Technical solution of the present invention is: a kind of on computer system the storage means of simulating portable storage device, its special character is: this method may further comprise the steps: 1) preset one and can be responsible for address translation on computer system, driving and user interface of I/O interface read-write operation is provided;
2) user chooses file by this user interface, by user interface this document is registered as a disk unit of operating system, and the success back forms virtual disk;
3) set up an address translation layer by driving,, virtual hard disk is carried out access by the address translation layer.
Above-mentioned steps 3) concrete steps are as follows:
31) computer system is passed to driving with the logical address of virtual disk content to be visited;
32) convert logical bit address to the physics address by driving by the address translation layer;
33) by drive to judge whether effective to obtaining the physics address;
34) effectively then carry out access, the invalid step 35 that then proceeds to obtained physics address);
35) finish access.
Utilize storage means of the present invention, can not have under the situation of portable memory device, simulating portable storage device on computers, the virtual one emulation memory storage that can directly show on computer system, in the access procedure of the enterprising line data of memory storage of this emulation, make the flow process of exploitation portable memory device simplify greatly.
Four, embodiment
Method of the present invention may further comprise the steps:
1) on computer system, presets one and can be responsible for address translation, driving and user interface of I/O interface read-write operation is provided;
2) user chooses file by this user interface, by user interface this document is registered as a disk unit of operating system, and the success back forms virtual disk;
3) set up an address translation layer by driving,, virtual hard disk is carried out access by the address translation layer.
Wherein the concrete steps of address translation are as follows in the step 3):
31) computer system is passed to driving with the logical address of virtual disk content to be visited;
32) convert logical bit address to the physics address by driving by the address translation layer;
33) by drive to judge whether effective to obtaining the physics address;
34) effectively then carry out access, the invalid step 35 that then proceeds to obtained physics address);
35) finish access.
Below in conjunction with specific embodiment the present invention is done further auspicious stating:
With (is example with the Windows system) on the above method flow application system framework, by being responsible for address translation one of Windows system intialization, driving and a user interface of I/O interface read-write operation are provided, the file registration of the user being chosen by user interface by user interface is a disk unit of operating system, the virtual disk that the success back forms, this driving makes the Windows system can discern this virtual disk.In Windows system operation system, this drives to the WDM framework, is operated in the Windows system bottom.When needs are hung virtual disk, notify the input-output device supervisory routine in the Windows system, initiate input-output device is arranged.
When Windows need carry out read-write operation, driving is gone into (I/O) request by the different outputs of conversion upper strata Windows, virtual disk to the portable memory device of different size carries out different parsings, and by a virtual unit layer (FTL layer), carry out the conversion of logical bit address, and filter the read-write content to the physics address.
In computer system carry out emulation the time, utilize file to substitute final hardware layer, this document is virtual disk, just actual portable memory device, the hardware that the access mode complete simulation of the virtual disk of this document institute emulation is relevant, for example flash memory of NAND framework.
Realize the conversion of virtual disk address by driving the address translation layer of setting up, it has comprised the read-write operation to hardware components, any archives economy needs only by the address translation layer and just can operate at the enterprising line access of virtual disk, and need not consider the physical characteristics of hardware.
The flash memory that with the capacity is the NAND framework of 64MB is an example, the characteristic of its hardware is to be made up of 4096 blocks (BLOCK), each block is made up of 32 pages (PAGE) again, every page is 512 bytes (BYTE)+16 bytes, wherein 512 bytes are the storage area of content, and 16 bytes are other additional information (REDUNDANT).According to principle of the present invention, the address translation layer has promptly utilized the additional information section of this 16 byte.So same use file comes this part of emulation, the file that produces a 4096*32* (512+16) byte comes the real simulation nand flash memory, reaches the effect the same with operational hardware.
The most important conversion that function is exactly logical address and physical address of address translation layer, transfer process is followed the universal standard to reach the compatibility (as the stocking system of digital camera) with other system, and analogue system is followed this standard equally and carried out the address translation action.
Equally the flash memory with the NAND framework of above-mentioned 64MB is an example, the additional information of 16 words, 16 bytes (B00~B15) wherein, B15 ~ B12 is a reserve bytes, B11 is a data mode, B10 is the block state, B09 ~ B08 and B04 ~ B03 are the logical address block message, and B07 ~ B05 and B02 ~ B00 are the error recovery coding checkout value (ECC proof test value) of this page data.Foundation when carrying out address translation is exactly B09 ~ B08 and B04 ~ B03.
Therefore the invention enables any archives economy as long as just can carry out accessing operation, and need not be concerned about the physical characteristics of hardware by the address translation layer.Under computer system platform, use archives to come ardware features such as The Realization of Simulation portable memory device all size, reach the purpose of emulation, to make things convenient for the exploitation of embedded system.

Claims (2)

1, a kind of on computer system the storage means of simulating portable storage device, it is characterized in that: this method may further comprise the steps:
1) on computer system, presets one and can be responsible for address translation, driving and user interface of I/O interface read-write operation is provided;
2) user chooses file by this user interface, by user interface this document is registered as a disk unit of operating system, and the success back forms virtual disk;
3) set up an address translation layer by driving,, virtual hard disk is carried out access by the address translation layer.
2, according to claim 1 on computer system the storage means of simulating portable storage device, it is characterized in that: the concrete steps of described step 3) are as follows:
31) computer system is passed to driving with the logical address of virtual disk content to be visited;
32) convert logical bit address to the physics address by driving by the address translation layer;
33) by drive to judge whether effective to obtaining the physics address;
34) effectively then carry out access, the invalid step 35 that then proceeds to obtained physics address);
35) finish access.
CN 200510043043 2005-08-02 2005-08-02 Storage method by simulating portable storage device in computer system Pending CN1731338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510043043 CN1731338A (en) 2005-08-02 2005-08-02 Storage method by simulating portable storage device in computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510043043 CN1731338A (en) 2005-08-02 2005-08-02 Storage method by simulating portable storage device in computer system

Publications (1)

Publication Number Publication Date
CN1731338A true CN1731338A (en) 2006-02-08

Family

ID=35963705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510043043 Pending CN1731338A (en) 2005-08-02 2005-08-02 Storage method by simulating portable storage device in computer system

Country Status (1)

Country Link
CN (1) CN1731338A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445691A (en) * 2018-10-16 2019-03-08 深圳忆联信息系统有限公司 A kind of method and device improving FTL algorithm development and verification efficiency

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445691A (en) * 2018-10-16 2019-03-08 深圳忆联信息系统有限公司 A kind of method and device improving FTL algorithm development and verification efficiency

Similar Documents

Publication Publication Date Title
JP6910131B2 (en) Storage device including multiple partitions for multiple mode operation, and its operation method
US8452912B2 (en) Flash-memory system with enhanced smart-storage switch and packed meta-data cache for mitigating write amplification by delaying and merging writes until a host read
TWI421684B (en) Reprogrammable non-volatile memory system and method of operating a non-volatile memory system
TWI435219B (en) Data protecting method, memory controller and portable memory storage device
US20090100212A1 (en) Method, appartus, computer program product, and data structure for providing and utilizing high performance block storage metadata
TWI436212B (en) Data writing method, memory controller and memory storage apparatus
CN1341942A (en) Multifunctional semiconductor storage device
CN1822004A (en) System and method for using a file system to automatically backup a file as a generational file
KR101055324B1 (en) Enhanced Host Interface
CN1916875A (en) Memory management method and system
US20140365724A1 (en) System and method for converting disk partition format
EP1938195A2 (en) Storage of transformed units of data in a memory system having fixed sized storage blocks
Park et al. Atomic write FTL for robust flash file system
CN1577252A (en) Method and equipment for automatic assembling equipment and driving program
CN1731338A (en) Storage method by simulating portable storage device in computer system
CN1687861A (en) Portable secret computer
CN1848101A (en) Computer system for quickly transmitting data inter-different storing devices
CN1637730A (en) Emulation system and emulation method
TWI436209B (en) Memory management table proceesing method, memory controller and memory storage apparatus
CN1435796A (en) Memroy drive device compatible with multiple mobile memory cards
TWI749490B (en) Computer program product and method and apparatus for programming flash administration tables
CN1269017C (en) USB storage drive development method in embedding system
Chen et al. A file-oriented fast secure deletion strategy for shingled magnetic recording drives
US7886310B2 (en) RAID control method and core logic device having RAID control function
CN2854694Y (en) Prolonging service life of internal or external storage by long service life non-volatility storage chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication