CN110134557A - A kind of verification method and its system read Flash interface data and infuse mistake at random - Google Patents
A kind of verification method and its system read Flash interface data and infuse mistake at random Download PDFInfo
- Publication number
- CN110134557A CN110134557A CN201910413377.2A CN201910413377A CN110134557A CN 110134557 A CN110134557 A CN 110134557A CN 201910413377 A CN201910413377 A CN 201910413377A CN 110134557 A CN110134557 A CN 110134557A
- Authority
- CN
- China
- Prior art keywords
- random
- wrong
- data
- mistake
- monitor
- 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
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2215—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test error correction or detection circuits
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Read Only Memory (AREA)
Abstract
The present invention relates to a kind of reading Flash interface data to infuse wrong verification method and its system at random;Wherein, method, comprising: S1 is ordered and infused at random wrong type, and sends a command to NFC execution;S2, monitor monitor read command, while confirming the note mistake type of current read command;S3, judges whether read command needs to infuse mistake;S4 calls the note mistake Data Position inside monitor random, and wrong Data Position is infused in generation, to carry out negating completion note mistake to the data of corresponding position.The present invention carries out note fault reason by the flexible data randomly returned to read operation, all note mistake types can be completely covered, and increase randomness, the error correction of NFC can be verified in larger scope, and implementation is simple, it is easy transplanting, it is general, it being capable of preferably meet demand.
Description
Technical field
The present invention relates to Flash interface data to infuse wrong technical field at random, more specifically refers to a kind of reading Flash interface
Data infuse wrong verification method and its system at random.
Background technique
Currently, NAND Flash controller can to NAND Flash particle carry out read operation, and read operation return data
It is easy corrupt data occurred by external environment influence;The NAND Flash controller (abbreviation NFC) of industry all has centainly
The error correction capability of function, wrong data amount can be repaired within the scope of error correcting capability, and wrong data amount
More than error correcting capability, will not be repaired;When verifying NAND Flash controller read operation, it can be hung outside controller
NAND Flash model is connect, returns to read operation data for simulating Flash, and the data that Flash model returns all are theoretical values
According to so there is no error in data;In this way by the reading data that Flash interface is transmitted to controller be also all correctly, can not
The error correction of controller is verified;In addition, controller often has multiple error correcting capability grades, to controller error correction
It is verified, needs sufficiently to verify each grade, in this way, the range for infusing wrong amount to data is precisely controlled;
Therefore, existing method is unable to satisfy demand.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, provide it is a kind of reading Flash interface data infuse at random mistake
Verification method and its system.
To achieve the above object, the present invention is used in lower technical solution:
A kind of verification method read Flash interface data and infuse mistake at random, comprising the following steps:
S1 is ordered and is infused at random wrong type, and sends a command to NFC execution;
S2, monitor monitor read command, while confirming the note mistake type of current read command;
S3, judges whether read command needs to infuse mistake;If so, into S4;If it is not, then returning to S2;
S4 calls the note mistake Data Position inside monitor random, generates and infuses wrong Data Position, thus to corresponding position
Data carry out negating completion note mistake.
Its further technical solution are as follows: the S1 includes:
S11 is ordered and is infused at random wrong type;
S12 sends a command to NFC execution.
Its further technical solution are as follows: in the S2, further includes: monitor receives random command information.
Its further technical solution are as follows: the monitor is used to detect the interface of NFC and Flash, confirms read command, will read
It orders and is matched with obtained random command information.
Its further technical solution are as follows: the S4 includes:
S41 calls the note mistake Data Position inside monitor random, generates and infuses wrong Data Position;
S42 carries out the data of corresponding position to negate completion note mistake.
A kind of verifying system read Flash interface data and infuse mistake at random, comprising: generate transmission unit, confirmation unit, judgement
Unit, and call and complete unit;
The generation transmission unit for being ordered and being infused wrong type at random, and sends a command to NFC execution;
The confirmation unit monitors read command for monitor, while confirming the note mistake type of current read command;
The judging unit, for judging whether read command needs to infuse mistake;
The calling completes unit, for calling the note mistake Data Position inside monitor random, generates and infuses wrong data bit
It sets, to carry out negating completion note mistake to the data of corresponding position.
Its further technical solution are as follows: the generation transmission unit includes generation module and sending module;
The generation module, for being ordered and being infused wrong type at random;
The sending module is executed for sending a command to NFC.
Its further technical solution are as follows: in the confirmation unit, further includes: monitor receives random command information.
Its further technical solution are as follows: the monitor is used to detect the interface of NFC and Flash, confirms read command, will read
It orders and is matched with obtained random command information.
Its further technical solution are as follows: it includes calling module and completion module that the calling, which completes unit,;
The calling module, for generating and infusing wrong data bit for calling the note mistake Data Position inside monitor random
It sets;
The completion module carries out negating completion note mistake for the data to corresponding position.
Compared with the prior art, the invention has the advantages that: by flexibly randomly to read operation return data into
Row note fault reason, can be completely covered all note mistake types, and increase randomness, can entangle in larger scope to NFC
Wrong function is verified, and implementation is simple, is easy transplanting, general, being capable of preferably meet demand.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Fig. 1 is a kind of flow chart read Flash interface data and infuse wrong verification method at random of the present invention;
Fig. 2 is the application schematic diagram read Flash interface data and infuse wrong verification method at random;
Fig. 3 is a kind of block diagram read Flash interface data and infuse wrong verifying system at random of the present invention.
Specific embodiment
In order to more fully understand technology contents of the invention, combined with specific embodiments below to technical solution of the present invention into
One step introduction and explanation, but not limited to this.
Such as Fig. 1 to specific embodiment shown in Fig. 3, wherein as shown in Figure 1 to Figure 2, the invention discloses a kind of readings
Flash interface data infuses wrong verification method at random, comprising the following steps:
S1 is ordered and is infused at random wrong type, and sends a command to NFC execution;
S2, monitor monitor read command, while confirming the note mistake type of current read command;
S3, judges whether read command needs to infuse mistake;If so, into S4;If it is not, then returning to S2;
S4 calls the note mistake Data Position inside monitor random, generates and infuses wrong Data Position, thus to corresponding position
Data carry out negating completion note mistake.
Wherein, the S1 includes:
S11 is ordered and is infused at random wrong type;
S12 sends a command to NFC execution.
Further, in the S2, further includes: monitor receives random command information.
Wherein, the monitor is used to detect the interface of NFC and Flash, confirm read command, by read command with obtain with
Machine command information is matched.
Wherein, the S4 includes:
S41 calls the note mistake Data Position inside monitor random, generates and infuses wrong Data Position;
S42 carries out the data of corresponding position to negate completion note mistake.
Wherein, it as shown in Fig. 2, the wrong type of order note is random, will be executed for generating NAND Flash controller (NFC)
Order and which read command will infuse mistake, wrong data volume is infused in which order to entangle in range, and wrong data are infused in which order
Amount is more than error correcting capability;NFC is NAND Flash controller, is responsible for executing order;Flash module is the Flash particle of mounting
Simulation model, is responsible for and NFC communication, reception are ordered, return information;Monitor (Monitor) is used to detect NFC's and Flash
Interface confirms read command, and read command is matched with the information being randomly derived from the wrong type of order note;Position is random, for producing
Life needs to infuse wrong location information, is that this reads the beginning of data or tail portion or any random order of this reading data
It sets, then by this note wrong position information to monitor, inversion operation, i.e. institute is carried out by interface data position of the monitor to response
The data of meaning are infused wrong.In this way, it is random by changing, the note mistake mode of various modes can be verified, can also be completed to NAND
All note mistakes of Flash controller error correction are verified.
Wherein, when Nand Flash controller (NFC) carries out read operation to NAND Flash particle, due to by the external world
It is wrong to will cause the data read out for environmental disturbances and influence, so in the industry cycle, can all be added in NAND Flash controller
Error correction, carrying out correction process to the data come of reading back can be by correct data also if error number can entangle in range
Original, and if error number has been more than that can entangle range, NAND Flash controller will inform user by certain mode, should
Data are unreliable;So needing to carry out neatly note mistake to the NAND data come of reading back, error correction could be carried out abundant
Verifying;By taking certain NAND Flash controller as an example, firstly, it is necessary to several Flash orders be executed, wherein including read command and other
It orders, the order having in these read commands carries out note mistake, and some does not need to carry out note mistake;Secondly, needing to infuse wrong reading life
Enable some that can entangle note mistake in range, it is more than error correcting capability that some need, which infuses wrong number,;Finally, needing to infuse wrong read command, it is
It selects to infuse mistake in the beginning emphasis of current read request block, the tail portion emphasis note for being also selected at current read request block is wrong, Huo Zhexuan
Select random site note mistake etc.;3 points set forth above are the note mistake mechanism for verifying NAND Flash controller error correction;This hair
It is bright precisely in order to realize above-mentioned function, by allowing NAND Flash controller to execute mixing order (containing read command) at random,
Randomly choose which read command carries out note fault reason in numerous read commands, then the wrong type of confirmation note belongs to the wrong range of note and can entangle also
It is that can not entangle, detects read command and data using testing mechanism, when the read command detected needs to infuse mistake, just according to the wrong type of note
Corresponding data are carried out with note is wrong, to complete to infuse the complete realization of wrong mechanism.
The data that the present invention can flexibly randomly return to read operation carry out note fault reason, can be completely covered all
Note mistake type, and due to increasing randomness, can in larger scope the error correction to NAND Flash controller into
Row verifying, and implementation is simple, is easy transplanting, it is general.
As shown in figure 3, the invention also discloses a kind of reading Flash interface data to infuse wrong verifying system at random, comprising: raw
At transmission unit 10, confirmation unit 20, judging unit 30, and calls and complete unit 40;
The generation transmission unit 10 for being ordered and being infused wrong type at random, and sends a command to NFC execution;
The confirmation unit 20 monitors read command for monitor, while confirming the note mistake type of current read command;
The judging unit 30, for judging whether read command needs to infuse mistake;
The calling completes unit 40, for calling the note mistake Data Position inside monitor random, generates and infuses wrong data
Position, to carry out negating completion note mistake to the data of corresponding position.
Wherein, the generation transmission unit 10 includes generation module 11 and sending module 12;
The generation module 11, for being ordered and being infused wrong type at random;
The sending module 12 is executed for sending a command to NFC.
Wherein, in the confirmation unit 20, further includes: monitor receives random command information.
Further, the monitor is used to detect the interface of NFC and Flash, confirms read command, by read command with obtain
Random command information matched.
Wherein, it includes calling module 41 and completion module 42 that the calling, which completes unit 40,;
The calling module 41, for generating and infusing wrong data for calling the note mistake Data Position inside monitor random
Position;
The completion module 42 carries out negating completion note mistake for the data to corresponding position.
Wherein, in the present embodiment, to Flash carry out read operation, during read operation to the data read out into
The random note of row is wrong, to reach the verifying for carrying out error correction to controller;Read operation is carried out to Flash, can be primary reading life
Operation is enabled, multiple read command operation is also possible to;Multiple read command operation, can be randomly selected certain one or many read command
It carries out reading data and infuses mistake at random;To needing to carry out the wrong read command of data note, mistake can be infused in this Data Start emphasis, it can also
It is wrong to be infused in the ending emphasis of this data, it can carry out infusing at random in lump-sum data procedures wrong;Mistake is infused to data, infuses mistake
Number can entangle in range in controller, can also can entangle outside range in controller.
It is above-mentioned that technology contents of the invention are only further illustrated with embodiment, in order to which reader is easier to understand, but not
It represents embodiments of the present invention and is only limitted to this, any technology done according to the present invention extends or recreation, by of the invention
Protection.Protection scope of the present invention is subject to claims.
Claims (10)
1. a kind of Flash interface data of reading infuses wrong verification method at random, which comprises the following steps:
S1 is ordered and is infused at random wrong type, and sends a command to NFC execution;
S2, monitor monitor read command, while confirming the note mistake type of current read command;
S3, judges whether read command needs to infuse mistake;If so, into S4;If it is not, then returning to S2;
S4 calls the note mistake Data Position inside monitor random, generates and infuses wrong Data Position, thus to the data of corresponding position
It carries out negating completion note mistake.
2. a kind of Flash interface data of reading according to claim 1 infuses wrong verification method at random, which is characterized in that institute
Stating S1 includes:
S11 is ordered and is infused at random wrong type;
S12 sends a command to NFC execution.
3. a kind of Flash interface data of reading according to claim 1 infuses wrong verification method at random, which is characterized in that institute
It states in S2, further includes: monitor receives random command information.
4. a kind of Flash interface data of reading according to claim 3 infuses wrong verification method at random, which is characterized in that institute
Monitor is stated for detecting the interface of NFC and Flash, read command is confirmed, read command is carried out with obtained random command information
Matching.
5. a kind of Flash interface data of reading according to claim 1 infuses wrong verification method at random, which is characterized in that institute
Stating S4 includes:
S41 calls the note mistake Data Position inside monitor random, generates and infuses wrong Data Position;
S42 carries out the data of corresponding position to negate completion note mistake.
6. a kind of Flash interface data of reading infuses wrong verifying system at random characterized by comprising generate transmission unit, confirmation
Unit, judging unit, and call and complete unit;
The generation transmission unit for being ordered and being infused wrong type at random, and sends a command to NFC execution;
The confirmation unit monitors read command for monitor, while confirming the note mistake type of current read command;
The judging unit, for judging whether read command needs to infuse mistake;
The calling completes unit, for calling the note mistake Data Position inside monitor random, generates and infuses wrong Data Position, from
And the data of corresponding position are carried out to negate completion note mistake.
7. a kind of Flash interface data of reading according to claim 6 infuses wrong verifying system at random, which is characterized in that institute
Stating and generating transmission unit includes generation module and sending module;
The generation module, for being ordered and being infused wrong type at random;
The sending module is executed for sending a command to NFC.
8. a kind of Flash interface data of reading according to claim 6 infuses wrong verifying system at random, which is characterized in that institute
It states in confirmation unit, further includes: monitor receives random command information.
9. a kind of Flash interface data of reading according to claim 8 infuses wrong verifying system at random, which is characterized in that institute
Monitor is stated for detecting the interface of NFC and Flash, read command is confirmed, read command is carried out with obtained random command information
Matching.
10. a kind of Flash interface data of reading according to claim 6 infuses wrong verifying system at random, which is characterized in that institute
Stating calling and completing unit includes calling module and completion module;
The calling module, for generating and infusing wrong Data Position for calling the note mistake Data Position inside monitor random;
The completion module carries out negating completion note mistake for the data to corresponding position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910413377.2A CN110134557A (en) | 2019-05-17 | 2019-05-17 | A kind of verification method and its system read Flash interface data and infuse mistake at random |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910413377.2A CN110134557A (en) | 2019-05-17 | 2019-05-17 | A kind of verification method and its system read Flash interface data and infuse mistake at random |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110134557A true CN110134557A (en) | 2019-08-16 |
Family
ID=67575018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910413377.2A Pending CN110134557A (en) | 2019-05-17 | 2019-05-17 | A kind of verification method and its system read Flash interface data and infuse mistake at random |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134557A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104246A (en) * | 2019-11-25 | 2020-05-05 | 深圳忆联信息系统有限公司 | Method and device for improving verification efficiency of DRAM error detection and correction, computer equipment and storage medium |
CN112613254A (en) * | 2020-11-30 | 2021-04-06 | 天津飞腾信息技术有限公司 | System and method for verifying fault injection of mirror image control module in processor |
CN115329699A (en) * | 2022-10-17 | 2022-11-11 | 北京紫光青藤微系统有限公司 | Error injection method, device and system for Flash simulation model |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103198868A (en) * | 2013-04-16 | 2013-07-10 | 西北核技术研究所 | Fault simulation system and fault analysis method for single event upset |
US20140143617A1 (en) * | 2012-11-20 | 2014-05-22 | International Business Machines Corporation | Flash interface error injector |
CN104536864A (en) * | 2014-12-10 | 2015-04-22 | 山东华芯半导体有限公司 | Fault injection method for Nand Flash simulation model with controllable bit flipping |
CN106992027A (en) * | 2017-04-14 | 2017-07-28 | 广东浪潮大数据研究有限公司 | A kind of Dynamic injection method of simulation Nand bad blocks |
-
2019
- 2019-05-17 CN CN201910413377.2A patent/CN110134557A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140143617A1 (en) * | 2012-11-20 | 2014-05-22 | International Business Machines Corporation | Flash interface error injector |
CN103198868A (en) * | 2013-04-16 | 2013-07-10 | 西北核技术研究所 | Fault simulation system and fault analysis method for single event upset |
CN104536864A (en) * | 2014-12-10 | 2015-04-22 | 山东华芯半导体有限公司 | Fault injection method for Nand Flash simulation model with controllable bit flipping |
CN106992027A (en) * | 2017-04-14 | 2017-07-28 | 广东浪潮大数据研究有限公司 | A kind of Dynamic injection method of simulation Nand bad blocks |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104246A (en) * | 2019-11-25 | 2020-05-05 | 深圳忆联信息系统有限公司 | Method and device for improving verification efficiency of DRAM error detection and correction, computer equipment and storage medium |
CN111104246B (en) * | 2019-11-25 | 2023-08-29 | 深圳忆联信息系统有限公司 | Method, device, computer equipment and storage medium for improving verification efficiency of error detection and correction of DRAM |
CN112613254A (en) * | 2020-11-30 | 2021-04-06 | 天津飞腾信息技术有限公司 | System and method for verifying fault injection of mirror image control module in processor |
CN112613254B (en) * | 2020-11-30 | 2022-01-25 | 飞腾信息技术有限公司 | System and method for verifying fault injection of mirror image control module in processor |
CN115329699A (en) * | 2022-10-17 | 2022-11-11 | 北京紫光青藤微系统有限公司 | Error injection method, device and system for Flash simulation model |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965044B (en) | Electric vehicle charging facility communication data link health state testing device, system and method | |
CN110134557A (en) | A kind of verification method and its system read Flash interface data and infuse mistake at random | |
CN103744761B (en) | Method and system for controlling multiple mobile terminals to automatically execute tasks | |
CN102967815B (en) | Chip testing method, automated testing equipment and system | |
CN108153696A (en) | Embedded system serial port module matching process, device, medium and computer equipment | |
CN105786753A (en) | Method and device for data transmission between master and slave devices on I2C bus | |
CN109976767A (en) | Software burning method and device | |
CN111756858B (en) | Remote development processing system, method and device for embedded equipment | |
CN114124767B (en) | Automatic test method and device for gateway network management strategy | |
CN102024504A (en) | Logic test method and device suitable for reactor protection system | |
CN107704282A (en) | A kind of loading method and device applied to embedded system | |
CN108664012A (en) | Detection method, device and equipment for controller of electric power steering system | |
CN104155882B (en) | A kind of automatic gear-box control unit method for refreshing and system | |
CN101996265A (en) | Verification system and method for memory controller | |
CN107844411A (en) | A kind of method of testing and relevant apparatus | |
CN113901754B (en) | FPGA-based Ethernet MACIP board-level verification structure and method | |
CN104917720B (en) | The method and device of password resetting | |
WO2017080411A1 (en) | Method and apparatus for checking charging parameter and charger | |
CN110096399A (en) | A kind of adjustment method of hardware interface | |
CN113986600B (en) | Test method and device for chip serial interface and chip | |
CN114594973A (en) | Chip firmware burning method, device and system and storage medium | |
CN106841984A (en) | The method of testing and device of a kind of Bluetooth intelligent card | |
CN101807173A (en) | Method for quickly programming more than two SPI equipment | |
CN106530023A (en) | Tax supervising server and anti-suspension method of tax supervising core board | |
CN108803582B (en) | Automatic bus switching system and method suitable for remote fault diagnosis |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190816 |