CN109918312A - A kind of verification method of the embedded FLASH programming module based on RISC_V - Google Patents

A kind of verification method of the embedded FLASH programming module based on RISC_V Download PDF

Info

Publication number
CN109918312A
CN109918312A CN201910224306.8A CN201910224306A CN109918312A CN 109918312 A CN109918312 A CN 109918312A CN 201910224306 A CN201910224306 A CN 201910224306A CN 109918312 A CN109918312 A CN 109918312A
Authority
CN
China
Prior art keywords
uart
module
flash
sequence
sequencer
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.)
Granted
Application number
CN201910224306.8A
Other languages
Chinese (zh)
Other versions
CN109918312B (en
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.)
Weihai Excellent Micro Technology Co Ltd
Original Assignee
Weihai Excellent Micro 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 Weihai Excellent Micro Technology Co Ltd filed Critical Weihai Excellent Micro Technology Co Ltd
Priority to CN201910224306.8A priority Critical patent/CN109918312B/en
Publication of CN109918312A publication Critical patent/CN109918312A/en
Application granted granted Critical
Publication of CN109918312B publication Critical patent/CN109918312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present invention relates to software verification method fields, more particularly, to a kind of verification method of embedded FLASH programming module based on RISC_V.A kind of verification method of the embedded FLASH programming module based on RISC_V, chip verification platform is implemented in building, and it is layered by Virtual_sequencer and the sequence function of general character is concentrated in corresponding sequencer, the ReferenceModule of the order close coupling of the testcase, difference FLASH that are frequently necessary to modification is concentrated in the different files of UART authentication module, various FLASH programming verifyings are completed by the taskuart_flash_command that various sequence are formed by calling.The beneficial effect is that: provide a kind of reusability, scalability it is strong by UART to the chip verification platform of the embedded FLASH chip functions module being programmed, normally upgrade to the software of user and use bring great convenience.

Description

A kind of verification method of the embedded FLASH programming module based on RISC_V
Technical field
The present invention relates to software verification method fields, program more particularly, to a kind of embedded FLASH based on RISC_V The verification method of module.
Background technique
In the prior art, commonly using the SOC chip based on RISV_V has using embedded FLASH, for this containing embedding Enter the SOC chip of formula FLASH, usual FLASH as software I MAGE storage equipment and exist;So in the production period of product Between just need to be programmed the FLASH inside SOC, in addition when system software needs to update, it is also desirable to FLASH carry out two Secondary programming, traditional UART authentication module realize the proof scheme programmed by UART to Embedded flash with UART's The programming instruction close coupling that ReferenceModule module and FLASH are supported, chip use the embedded FLASH of different manufacturers When programming for embedded FLASH, the FLASH of these producers supports different programming instructions, at this moment needs to verify UART The ReferenceModule module of module makes very big modification, and if needs several functions different in a chips If UART interface authentication module, the code of several groups of different UART authentication modules is write using existing UART authentication module, It is stored under different catalogues, to change the code in several catalogues, such code simultaneously if there is general function modification Maintenance it is very inconvenient.
A kind of reusability, the strong chip functions mould being programmed by UART to embedded FLASH of scalability are provided The verification method of block becomes urgent need in the prior art.
Summary of the invention
The verification method of the purpose of the present invention is to provide a kind of embedded FLASH programming module based on RISC_V, this Invention the technical solution adopted is that: building implement chip verification platform, and by Virtual_sequencer layering general character Sequence function concentrates in corresponding sequencer, the order for the testcase, difference FLASH for being frequently necessary to modification The ReferenceModule of close coupling is concentrated in the different files of UART authentication module, by calling by various sequence The taskuart_flash_command of composition completes various FLASH programming verifyings;
Wherein, implement the following module composition of chip verification platform:
Module 1--test_case;
Module 2-- design USB_PD_DUT to be measured;
Module 3--Virtual_sequencer, virtual sequencer;
Module 4-- FLASH_ENV;
The Reference_Module of module 5--FLASH_ENV;
The Scoreboard of module 6--FLASH_ENV;
Module 7--UART_ENV;
The transmission agent of module 8--UART_ENV;
The sequence of module 9--UART_ENV transmission agent;
The drive of module 10--UART_ENV transmission agent;
The reception agen of module 11--UART_ENV;
The monitoring module MONITOR of the reception agent of module 12--UART_ENV;
The library module 13-- Sequence;
Verification step are as follows:
Step 1.test_case chooses the sequence that this test needs to use from the library sequence and forms one Virtual_sequence and send it to virtual_sequencer;
These sequence are sent to UART_Sequencer by associated order by step 2.vritual_sequencer.Then UART_Sequencer gives the sequence received connected UART_driver;
The excitation that step 3. UART_driver generation meets UART protocol sends data to DUT;
Same data are sent to FLASH_RM while sending data to DUT by step 4.UART_driver;
Step 5.FLASH_RM generates after receiving the data that UART_driver is sent according to FLASH instruction definition desired Value of feedback, and these values of feedback are sent to FLASH_Scoreboard;
Step 6. refers to that DUT generates feedback according to FLASH instruction definition after receiving the instruction and data that UART_driver is sent Value;
Step 7. refers to DUT and value of feedback is sent to UART_monitor by UART interface;
The value of feedback received from DUT is sent to FLASH_Scoreboard by step 8.UART_monitor.Finally it is expected number It is compared according to real data in FLASH_Scoreboard module.
Specifically, the Embedded flash programing function verifying for implementing chip can at random and the generation of automation meets FLASH Instruction definition and the data of UART protocol requirement are simultaneously applied to chip;
Specifically, the Embedded flash programing function verifying that the method implements chip can automatically generate the correct chip feedback phase Hope data.
Specifically, the acquisition chip that the Embedded flash programing function verifying that the method implements chip can automate issues Various data, and automate and verification environment generate correct expected data be compared.
The invention has the advantages that: provide a kind of reusability, scalability it is strong by UART to embedded The chip verification platform for the chip functions module that FLASH is programmed normally upgrades to the software of user and use is brought greatly Convenience.
Detailed description of the invention
Fig. 1 is system structure diagram of the invention;
Wherein, module 1- test case layer test;Module 3-Virtual_sequencer;Module 4- FLASH_ENV;Module 5- FLASH_RM;Module 6-FLASH_SCB, module 7-UART_ENV;Module 9-UART_SEQUENCER, module 10-UART_ The library DRIVER, module 12-UART_MONITOR, module 13-Sequence.
Specific embodiment
Below in conjunction with drawings and examples, the present invention is further illustrated.
A kind of verification method of embedded FLASH programming module based on RISC_V of the invention, building are implemented chip and are tested Platform is demonstrate,proved, and is layered by Virtual_sequencer and the sequence function of general character is concentrated on corresponding sequencer In, the ReferenceModule of the order close coupling of the testcase, difference FLASH that are frequently necessary to modification is concentrated on UART In the different files of authentication module, completed respectively by calling by the taskuart_flash_command that various sequence are formed Kind FLASH programming verifying;
Wherein, implement the following module composition of chip verification platform:
Module 1--test_case;
Module 2-- design USB_PD_DUT to be measured;
Module 3--Virtual_sequencer, virtual sequencer;
Module 4-- FLASH_ENV;
The Reference_Module of module 5--FLASH_ENV;
The Scoreboard of module 6--FLASH_ENV;
Module 7--UART_ENV;
The transmission agent of module 8--UART_ENV;
The sequence of module 9--UART_ENV transmission agent;
The drive of module 10--UART_ENV transmission agent;
The reception agen of module 11--UART_ENV;
The monitoring module MONITOR of the reception agent of module 12--UART_ENV;
The library module 13-- Sequence;
Verification step are as follows:
Step 1.test_case chooses the sequence that this test needs to use from the library sequence and forms one Virtual_sequence and send it to virtual_sequencer;
These sequence are sent to UART_Sequencer by associated order by step 2.vritual_sequencer.Then UART_Sequencer gives the sequence received connected UART_driver;
The excitation that step 3. UART_driver generation meets UART protocol sends data to DUT;
Same data are sent to FLASH_RM while sending data to DUT by step 4.UART_driver;
Step 5.FLASH_RM generates after receiving the data that UART_driver is sent according to FLASH instruction definition desired Value of feedback, and these values of feedback are sent to FLASH_Scoreboard;
Step 6. refers to that DUT generates feedback according to FLASH instruction definition after receiving the instruction and data that UART_driver is sent Value;
Step 7. refers to DUT and value of feedback is sent to UART_monitor by UART interface;
The value of feedback received from DUT is sent to FLASH_Scoreboard by step 8.UART_monitor.Finally it is expected number It is compared according to real data in FLASH_Scoreboard module.
Specifically, the Embedded flash programing function verifying for implementing chip can at random and the generation of automation meets FLASH Instruction definition and the data of UART protocol requirement are simultaneously applied to chip;
Specifically, the Embedded flash programing function verifying that the method implements chip can automatically generate the correct chip feedback phase Hope data.
Specifically, the acquisition chip that the Embedded flash programing function verifying that the method implements chip can automate issues Various data, and automate and verification environment generate correct expected data be compared.
Brief description is made to a specific embodiment of the invention with reference to the accompanying drawing.
The verification method of the present invention provides a kind of embedded FLASH programming module based on RISC_V.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.
Chip verification platform of the present invention is as shown in Fig. 1, and chip verification platform specifically includes that module 1- test case layer test;Module 3-Virtual_sequencer;Module 4- FLASH_ENV;Module 5-FLASH_RM;Module 6-FLASH_SCB; Module 7-UART_ENV;Module 9-UART_SEQUENCER;Module 10-UART_DRIVER;Module 12-UART_MONITOR;Mould The library block 13-Sequence.
1-Test_case layers of module are test case layer, each test_case different verifying of exampleization according to actual needs Environment env and virtual sequence.Different test can be given by the different parameter of modification config file configuration DUT and verification environment, the sequence for the suitable current use-case that different test can choose from sequence lib, Virtual sequence is formed, very simple and flexible can construct different test cases using this verification platform;
Module 4-FLASH_ENV includes module 6-FLASH_Scoreboard and module 5-FLASH_ReferenceModule Two modules, module 5-FLASH_ReferenceModule are responsible for according to the instruction definition of corresponding FLASH and from UART_ The instruction that Driver is received generates anticipatory data and gives FLASH_Scoreboard;Module 6--FLASH_ Scoreboard is responsible for receiving the real data issued from the FLASH_RM expected data come and the DUT come from UART_MON simultaneously It is compared;
Module 7-UART_ENV, includes module 8-UART_tx_agent and module 11-UART_rx_agent, and module 7 is mainly negative Duty receives sequence and gives DUT at UART interface signal the data conversion in sequence, and receives the UART of DUT Signal data simultaneously gives FLASH_SCB these data;
Module 8-UART_tx_agent includes module 9-UART_tx_sequencer and module 10-UART_tx_driver two A module, module 8-UART_tx_agent are responsible for receiving sequence and the data conversion in sequence at UART interface Signal gives DUT;Module 9-UART_tx_sequencer is responsible for receiving the sequence from virtual_sequencer And sequence is given connected UART_driver;
Module 10-UART_tx_driver, the excitation that responsible generation meets UART protocol send data to DUT.
Module 11-UART_rx_agent is responsible for receiving the UART signal data of DUT and gives FLASH_ these data SCB;Comprising module 12-UART_ MONITOR, it is responsible for receiving the UART signal data of DUT and gives FLASH_ these data SCB;
Module 3-virtual sequencer is for managing all sequencer and virtual in platform concentratedly The module of sequence, the benefit of centralized management can successively execute different in the same function body Virtualsequence, so as to avoid the confusion of the multiple virtual sequence execution sequences of complicated use-case bring, side Just the sequencing between personal management difference virtual sequence is verified.
Below according to the course of work for explaining chip verification platform shown in dotted line in attached drawing 1:
Step 1.test_case chooses the sequence that this test needs to use from the library sequence and forms one Virtual_sequence and send it to virtual_sequencer.
These sequence are sent to UART_Sequencer by associated order by step 2.vritual_sequencer, Then UART_Sequencer gives the sequence received connected UART_driver.
The excitation that step 3. UART_driver generation meets UART protocol sends data to DUT.
Same data are sent to FLASH_RM while sending data to DUT by step 4.UART_driver.
Step 5.FLASH_RM generates the phase according to FLASH instruction definition after receiving the data that UART_driver is sent The value of feedback of prestige, and these values of feedback are sent to FLASH_Scoreboard.
Step 6. refers to that DUT is generated after receiving the instruction and data that UART_driver is sent according to FLASH instruction definition Value of feedback.
Step 7. refers to DUT and value of feedback is sent to UART_monitor by UART interface.
The value of feedback received from DUT is sent to FLASH_Scoreboard by step 8.UART_monitor.The most later period Data and real data are hoped to be compared in FLASH_Scoreboard module.
The present invention is not limited to the above-described embodiments, anyone should learn make under the inspiration of the present invention with the present invention With same or similar technical solution, fall within the scope of protection of the present invention.
Technology not described in detail in the present invention, shape, construction portion are well-known technique.

Claims (4)

1. a kind of verification method of the embedded FLASH programming module based on RISC_V, it is characterised in that: building is implemented chip and tested Platform is demonstrate,proved, and is layered by Virtual_sequencer and the sequence function of general character is concentrated on corresponding sequencer In, the ReferenceModule of the order close coupling of the testcase, difference FLASH that are frequently necessary to modification is concentrated on UART In the different files of authentication module, completed respectively by calling by the taskuart_flash_command that various sequence are formed Kind FLASH programming verifying;
Wherein, implement the following module composition of chip verification platform:
Module 1--test_case;
Module 2-- design USB_PD_DUT to be measured;
Module 3--Virtual_sequencer, virtual sequencer;
Module 4-- FLASH_ENV;
The Reference_Module of module 5--FLASH_ENV;
The Scoreboard of module 6--FLASH_ENV;
Module 7--UART_ENV;
The transmission agent of module 8--UART_ENV;
The sequence of module 9--UART_ENV transmission agent;
The drive of module 10--UART_ENV transmission agent;
The reception agen of module 11--UART_ENV;
The monitoring module MONITOR of the reception agent of module 12--UART_ENV;
The library module 13-- Sequence;
Verification step are as follows:
Step 1.test_case chooses the sequence that this test needs to use from the library sequence and forms one Virtual_sequence and send it to virtual_sequencer;
These sequence are sent to UART_Sequencer by associated order by step 2.vritual_sequencer, then UART_Sequencer gives the sequence received connected UART_driver;
The excitation that step 3. UART_driver generation meets UART protocol sends data to DUT;
Same data are sent to FLASH_RM while sending data to DUT by step 4.UART_driver;
Step 5.FLASH_RM generates after receiving the data that UART_driver is sent according to FLASH instruction definition desired Value of feedback, and these values of feedback are sent to FLASH_Scoreboard;
Step 6. refers to that DUT generates feedback according to FLASH instruction definition after receiving the instruction and data that UART_driver is sent Value;
Step 7. refers to DUT and value of feedback is sent to UART_monitor by UART interface;
The value of feedback received from DUT is sent to FLASH_Scoreboard by step 8.UART_monitor, finally it is expected number It is compared according to real data in FLASH_Scoreboard module.
2. a kind of verification method of embedded FLASH programming module based on RISC_V according to claim 1, feature Be: implement chip the verifying of Embedded flash programing function can generation that is random and automating meet FLASH instruction definition and The data of UART protocol requirement are simultaneously applied to chip.
3. a kind of verification method of embedded FLASH programming module based on RISC_V according to claim 1, feature Be: the Embedded flash programing function verifying that the method implements chip can automatically generate correct chip feedback expected data.
4. a kind of verification method of embedded FLASH programming module based on RISC_V according to claims 1 and 2, Be characterized in that: the acquisition chip that the Embedded flash programing function verifying that the method implements chip can automate issues various Data, and correct expected data automate and that verification environment generates is compared.
CN201910224306.8A 2019-03-22 2019-03-22 RISC _ V based embedded FLASH programming module verification method Active CN109918312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910224306.8A CN109918312B (en) 2019-03-22 2019-03-22 RISC _ V based embedded FLASH programming module verification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910224306.8A CN109918312B (en) 2019-03-22 2019-03-22 RISC _ V based embedded FLASH programming module verification method

Publications (2)

Publication Number Publication Date
CN109918312A true CN109918312A (en) 2019-06-21
CN109918312B CN109918312B (en) 2022-07-12

Family

ID=66966482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910224306.8A Active CN109918312B (en) 2019-03-22 2019-03-22 RISC _ V based embedded FLASH programming module verification method

Country Status (1)

Country Link
CN (1) CN109918312B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221766A1 (en) * 2011-02-24 2012-08-30 Winbond Electronics Corp. Flash memory apparatus with serial interface and reset method thereof
CN104765671A (en) * 2015-04-17 2015-07-08 浪潮电子信息产业股份有限公司 Method for verifying uart module by using reusable layered verification platform
WO2016197768A1 (en) * 2016-01-04 2016-12-15 中兴通讯股份有限公司 Chip verification method, device, and system
CN107704351A (en) * 2017-10-18 2018-02-16 盛科网络(苏州)有限公司 The verification method and device of a kind of chip
CN108763743A (en) * 2018-05-28 2018-11-06 天津芯海创科技有限公司 Verification platform, method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221766A1 (en) * 2011-02-24 2012-08-30 Winbond Electronics Corp. Flash memory apparatus with serial interface and reset method thereof
CN104765671A (en) * 2015-04-17 2015-07-08 浪潮电子信息产业股份有限公司 Method for verifying uart module by using reusable layered verification platform
WO2016197768A1 (en) * 2016-01-04 2016-12-15 中兴通讯股份有限公司 Chip verification method, device, and system
CN107704351A (en) * 2017-10-18 2018-02-16 盛科网络(苏州)有限公司 The verification method and device of a kind of chip
CN108763743A (en) * 2018-05-28 2018-11-06 天津芯海创科技有限公司 Verification platform, method and electronic equipment

Also Published As

Publication number Publication date
CN109918312B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN104155972B (en) Mechanical engineering electronic controller parameter debugging method
CN104142676B (en) For testing the test device of virtual controlling instrument
CN101986278B (en) Automatic testing method and system for electronic equipment
CN105159170B (en) A kind of control feature suitable for more star concurrent testings
CN109039824A (en) A kind of car-mounted terminal wireless telecommunication protocol automation test macro and method
CN104102514B (en) A kind of firmware upgrade method and its device
CN106313038B (en) A kind of real-time control debugging system and adjustment method
CN102998613A (en) Test system and method capable of realizing parallel testing of circuit board
CN108804322A (en) Automated testing method, device, computer equipment and storage medium
CN107390110A (en) A kind of method, apparatus and system tested automatically PCBA
CN105898490A (en) Upgrading method for remote controller, television and remote controller
CN106054058A (en) System and method capable of performing testing and temperature control on multiple Sigma-Delta ADC chips
CN109991955A (en) A kind of entire car controller test method, device and equipment
CN102088384B (en) Standardized multifunctional LXI (LAN based extensions for instrumentation) equipment
CN104063242A (en) Method applicable to parameter upgrading in whole production process of inertial measurement unit
CN107122219A (en) The acquisition methods and device of installation file
CN109783340A (en) Test code programming method, IP test method and the device of SoC
CN108345449A (en) A kind of information processing method, device, storage medium and computer equipment
CN108399303A (en) A kind of analogy method and device of charging pile
CN110571927A (en) Four-remote signal parameter checking method
CN110535494A (en) A kind of bluetooth equipment Auto-Test System and method
CN109918312A (en) A kind of verification method of the embedded FLASH programming module based on RISC_V
CN110134557A (en) A kind of verification method and its system read Flash interface data and infuse mistake at random
CN108337668B (en) A kind of Bluetooth label configurator
CN109885817A (en) The generation method and system of instruction are infused in a kind of spacecraft payload

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
GR01 Patent grant
GR01 Patent grant