CN108153480A - A kind of data processing method based on NAND flash, storage device - Google Patents
A kind of data processing method based on NAND flash, storage device Download PDFInfo
- Publication number
- CN108153480A CN108153480A CN201611102796.7A CN201611102796A CN108153480A CN 108153480 A CN108153480 A CN 108153480A CN 201611102796 A CN201611102796 A CN 201611102796A CN 108153480 A CN108153480 A CN 108153480A
- Authority
- CN
- China
- Prior art keywords
- firmware
- execution module
- storage device
- operation execution
- specific operation
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/064—Management of blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention discloses a kind of data processing method based on NAND flash, storage device, wherein, this method is applied to the storage device based on NAND flash, which includes firmware, the method includes:The firmware operation execution module in storage device is configured in firmware, so as to specific operation of the firmware operation execution module based on the configuration execution firmware, wherein, the specific operation includes tabling look-up and sorting;When the firmware operation execution module completes the specific operation, firmware reads the implementing result of the specific operation from the firmware operation execution module.The embodiment of the present invention instead of firmware by being completed a large amount of specific operations that are simple and repeating by the hardware in storage device, and firmware only needs that the hardware is carried out simply to be configured can be realized, not only it will not increase too many hardware logic, but also can effectively shorten the operating time, so as to economize on resources.
Description
Technical field
The present embodiments relate to memory technology more particularly to a kind of data processing method based on NAND flash,
Storage device.
Background technology
NAND Flash are one kind of Flash memories, belong to non-volatile memory device (Non-volatile Memory
Device).In the storage device based on NAND flash, NAND flash are also stored with a large amount of in addition to storing user data
Management data, management and address mapping table including block etc..In the storage device course of work, internal firmware has very much
It the operations, although these operations are simple, very time-consuming, waste of resource such as tables look-up, sort.
Invention content
The embodiment of the present invention provides a kind of data processing method based on NAND flash, storage device, existing to solve
In technology storage device cause to take due to the specific operation of internal firmware, waste of resource the problem of.
In a first aspect, an embodiment of the present invention provides a kind of data processing method based on NAND flash, applied to base
In the storage device of NAND flash, the storage device includes firmware, and this method includes:
The firmware operation execution module in storage device is configured in firmware, so as to the firmware operation execution module base
The specific operation of firmware is performed in the configuration, wherein, the specific operation includes tabling look-up and sorting;
When the firmware operation execution module completes the specific operation, firmware is read from the firmware operation execution module
Take the implementing result of the specific operation.
Preferably, the firmware operation execution module includes register;Correspondingly,
The firmware carries out the firmware operation execution module configuration and includes:The firmware matches the register
It puts.
Preferably, described when the firmware operation execution module completes the specific operation, firmware is from the firmware operation
The implementing result of the specific operation is read in execution module, including:
When the firmware operation execution module completes the specific operation with interrupt mode, firmware is held in the firmware operation
The implementing result of the specific operation is read in the processing of row modules interrupts from the register of firmware operation execution module;Or
When the firmware operation execution module completes the specific operation with inquiry mode, firmware inquires the firmware operation
Whether execution module has completed the specific operation, and when inquiring completion, from the register of firmware operation execution module
Read the implementing result of the specific operation.
Second aspect, the embodiment of the present invention additionally provide a kind of storage device based on NAND flash, and the storage is set
It is standby to include firmware, wherein, the storage device includes:
Firmware operation execution module performs the specific operation of firmware for the configuration based on the firmware, wherein, the spy
Fixed operation includes tabling look-up and sorting.
Preferably, the firmware operation execution module includes register.
The embodiment of the present invention instead of firmware by being completed simple by the hardware in storage device and being repeated a large amount of specific
Operation, and firmware only needs that the hardware is carried out simply to be configured can be realized, and will not only increase too many hardware logic, but also can
Effectively to shorten the operating time, so as to economize on resources.
Description of the drawings
Fig. 1 is the flow chart of the data processing method based on NAND flash in the embodiment of the present invention one;
Fig. 2 is the structure diagram of the storage device based on NAND flash in the embodiment of the present invention two.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than entire infrastructure are illustrated only in description, attached drawing.
Embodiment one
The flow chart of the data processing method based on NAND flash that Fig. 1 is provided for the embodiment of the present invention one, this method
It can be performed by the storage device based on NAND flash, which includes firmware and NAND flash memories.
The method of the embodiment of the present invention one specifically includes:
The firmware operation execution module in storage device is configured in S110, firmware, so as to firmware operation execution module
The specific operation of firmware is performed based on configuration, wherein, the specific operation includes tabling look-up and sorting.
In the storage device based on NAND flash, in addition to storing user data in NAND flash memories, also
A large amount of management data, the management including block, address mapping table etc..In the storage device course of work, firmware has very much
The operations such as table look-up, sort, although these operations are simple time-consuming.Therefore, the embodiment of the present invention by these operation switch to by
Firmware operation execution module in NAND flash storage devices performs, i.e., switchs to be completed by hardware by software operation, from
And save time and resource that software handles these operations.
Preferably, the firmware operation execution module includes register, such as including 7 registers, the number of register
It can be determined by the operation of storage device scale and firmware, the present invention is not limited in any way this.
Include correspondingly, the firmware carries out the firmware operation execution module in NAND flash storage devices configuration:
The register is configured in firmware.By configuration register, completed to table look-up and sorted etc. simple and repeat by register
Specific operation.
S120, the specific operation is completed when firmware operation execution module, firmware is read from firmware operation execution module
The implementing result of the specific operation.
Specifically, S120 can further comprise:
When firmware operation execution module completes specific operation with interrupt mode, firmware is at firmware operation execution module interruption
The implementing result of specific operation is read in reason from the register of firmware operation execution module;Or
When firmware operation execution module completes specific operation with inquiry mode, whether firmware inquiry firmware operation execution module
Specific operation is completed, and when inquiring completion, holding for specific operation is read from the register of firmware operation execution module
Row result.
Above-mentioned interrupt mode and inquiry mode are firmwares by the way that two kinds to firmware operation execution module of realization are configured not
Same application method.
In one embodiment, as a kind of example, firmware is achievable by being configured to firmware operation execution module
Operation can include:Register (such as control register) start-up operation in firmware operation execution module is set;Firmware behaviour is configured
Make the register in execution module;The number of searches of designation date;Instruction search initial address and search end address;Indicated number
According to matching value;Instruction carries out data prediction etc..
The embodiment of the present invention instead of firmware by being completed simple by the hardware in storage device and being repeated a large amount of specific
Operation, and firmware only needs that the hardware is carried out simply to be configured can be realized, and will not only increase too many hardware logic, but also can
Effectively to shorten the operating time, so as to economize on resources.
Embodiment two
Fig. 2 is the structure diagram of the storage device based on NAND flash in the embodiment of the present invention two.Such as Fig. 2 institutes
To show, the storage device 1 based on NAND flash includes firmware 11 and firmware operation execution module 12, wherein,
Firmware operation execution module 12 performs the specific operation of firmware 11 for the configuration based on firmware 11, wherein, it is described
Specific operation includes tabling look-up and sorting.
Preferably, firmware operation execution module 12 include register, for example, register 1, register 2 ..., register
N, it is preferred that N 7.
Storage device provided in an embodiment of the present invention based on NAND flash can perform any embodiment of the present invention and provide
The data processing method based on NAND flash, have the corresponding function module of execution method and advantageous effect.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (5)
1. a kind of data processing method based on NAND flash, described to deposit applied to the storage device based on NAND flash
It stores up equipment and includes firmware, which is characterized in that the method includes:
The firmware operation execution module in the storage device is configured in the firmware, so that the firmware operation performs mould
Block performs the specific operation of firmware based on the configuration, wherein, the specific operation includes tabling look-up and sorting;
When the firmware operation execution module completes the specific operation, firmware reads institute from the firmware operation execution module
State the implementing result of specific operation.
2. data processing method according to claim 1, which is characterized in that
The firmware operation execution module includes register;Correspondingly,
The firmware carries out the firmware operation execution module configuration and includes:The register is configured in the firmware.
3. data processing method according to claim 2, which is characterized in that described when the firmware operation execution module is complete
Into the specific operation, firmware reads the implementing result of the specific operation from the firmware operation execution module, including:
When the firmware operation execution module completes the specific operation with interrupt mode, firmware performs mould in the firmware operation
The implementing result of the specific operation is read in block interrupt processing from the register of firmware operation execution module;Or
When the firmware operation execution module completes the specific operation with inquiry mode, firmware is inquired the firmware operation and is performed
Whether module has completed the specific operation, and when inquiring completion, is read from the register of firmware operation execution module
The implementing result of the specific operation.
4. a kind of storage device based on NAND flash, the storage device includes firmware, which is characterized in that the storage is set
It is standby to further include:
Firmware operation execution module performs the specific operation of firmware for the configuration based on the firmware, wherein, the specific behaviour
Make to include tabling look-up and sorting.
5. storage device according to claim 4, which is characterized in that the firmware operation execution module includes register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611102796.7A CN108153480A (en) | 2016-12-05 | 2016-12-05 | A kind of data processing method based on NAND flash, storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611102796.7A CN108153480A (en) | 2016-12-05 | 2016-12-05 | A kind of data processing method based on NAND flash, storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108153480A true CN108153480A (en) | 2018-06-12 |
Family
ID=62469656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611102796.7A Pending CN108153480A (en) | 2016-12-05 | 2016-12-05 | A kind of data processing method based on NAND flash, storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108153480A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654855A (en) * | 2011-03-04 | 2012-09-05 | 上海华虹集成电路有限责任公司 | Nandflash controller for programming Nandflash instruction execution |
CN103455437A (en) * | 2012-05-30 | 2013-12-18 | 慧荣科技股份有限公司 | Data storage device and data storage device operation method |
CN105426119A (en) * | 2015-10-28 | 2016-03-23 | 上海新储集成电路有限公司 | Storage apparatus and data processing method |
US20160124740A1 (en) * | 2014-10-30 | 2016-05-05 | Sang Hoon Choi | Data storage device and method for reducing firmware update time and data processing system including the device |
CN105931670A (en) * | 2016-04-22 | 2016-09-07 | 西安电子科技大学 | Nand Flash memory array based storage control apparatus |
-
2016
- 2016-12-05 CN CN201611102796.7A patent/CN108153480A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102654855A (en) * | 2011-03-04 | 2012-09-05 | 上海华虹集成电路有限责任公司 | Nandflash controller for programming Nandflash instruction execution |
CN103455437A (en) * | 2012-05-30 | 2013-12-18 | 慧荣科技股份有限公司 | Data storage device and data storage device operation method |
US20160124740A1 (en) * | 2014-10-30 | 2016-05-05 | Sang Hoon Choi | Data storage device and method for reducing firmware update time and data processing system including the device |
CN105426119A (en) * | 2015-10-28 | 2016-03-23 | 上海新储集成电路有限公司 | Storage apparatus and data processing method |
CN105931670A (en) * | 2016-04-22 | 2016-09-07 | 西安电子科技大学 | Nand Flash memory array based storage control apparatus |
Non-Patent Citations (1)
Title |
---|
杨森标: "《CROMEMCO微型计算机硬件资料汇编(三) 接口技术及芯片汇集》", 30 September 1983, 清华大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200218446A1 (en) | Method and apparatus for memory management | |
CN105159777B (en) | The method for recovering internal storage and device of process | |
CN101154189B (en) | Mapping apparatus and method for non-volatile memory supporting different cell types | |
CN105144120A (en) | Storing data from cache lines to main memory based on memory addresses | |
RU2015121749A (en) | COMPILATOR GENERATING NON-OPERATING CODE | |
EP3543858B1 (en) | Method for checking and compiling system start-up files | |
KR940022250A (en) | Data processor with most recently allocated bit and method of operation | |
CN115599448A (en) | Loading method and device based on linux kernel ko module | |
CN104468419A (en) | Method and system for recovering configuration of interchanger and interchanger | |
US20140289455A1 (en) | Memory Patching Circuit | |
US9223697B2 (en) | Computer reprogramming method, data storage medium and motor vehicle computer | |
CN108153480A (en) | A kind of data processing method based on NAND flash, storage device | |
CN111381905B (en) | Program processing method, device and equipment | |
US9201982B2 (en) | Priority search trees | |
CN103092955B (en) | Checkpointed method, Apparatus and system | |
JP5014871B2 (en) | Program start device, program start method, start processing program, and integrated circuit | |
CN105335095A (en) | Flash file system processing method and apparatus | |
CN104572080A (en) | Method and device for managing photo taking mode | |
CN112463327B (en) | Method and device for quickly switching logic threads, CPU chip and server | |
CN116931954B (en) | Built-in software package compiling construction method, device, equipment and medium | |
KR960042406A (en) | Apparatus and method for improving utilization of limited resources, apparatus and method for improving processor utilization, and portable electronic apparatus | |
JP2009104430A (en) | Flash disk device | |
Stroustrup et al. | Programming | |
JP6525267B2 (en) | Out-of-range reference detection device, method and program | |
CN113076733A (en) | Text matching method, terminal device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200826 Address after: 100083 Beijing City, Haidian District Xueyuan Road No. 30, large industrial building A block 12 layer Applicant after: Beijing Zhaoyi Innovation Technology Co.,Ltd. Address before: 202, room 52, building 2, 100176 North View Garden, Daxing District economic and Technological Development Zone, Beijing Applicant before: BEIJING JINGCUN TECHNOLOGY Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180612 |