[go: up one dir, main page]

CN117949818A - FPGA-based general MCU chip function verification system and method - Google Patents

FPGA-based general MCU chip function verification system and method Download PDF

Info

Publication number
CN117949818A
CN117949818A CN202410359370.8A CN202410359370A CN117949818A CN 117949818 A CN117949818 A CN 117949818A CN 202410359370 A CN202410359370 A CN 202410359370A CN 117949818 A CN117949818 A CN 117949818A
Authority
CN
China
Prior art keywords
verification
function
mcu chip
board
fpga
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
CN202410359370.8A
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.)
Tianjin University of Technology and Education China Vocational Training Instructor Training Center
Original Assignee
Tianjin University of Technology and Education China Vocational Training Instructor Training Center
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 Tianjin University of Technology and Education China Vocational Training Instructor Training Center filed Critical Tianjin University of Technology and Education China Vocational Training Instructor Training Center
Priority to CN202410359370.8A priority Critical patent/CN117949818A/en
Publication of CN117949818A publication Critical patent/CN117949818A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a general MCU chip function verification system and method based on FPGA, the system mainly includes a main verification board, a function board, an upper computer, a power supply and a testing instrument; the main verification board is connected with the functional board through an interface and used for verifying the functions of the MCU chip; the testing instrument comprises an oscilloscope, a universal meter, a spectrum analyzer and a logic analyzer, and is used for system debugging and auxiliary verification of a testing result; the upper computer is used for compiling and downloading a main verification board program, comparing verification data with MPLAB X IDE engineering test case generation data and generating a verification report. The system verification mode is divided into a full-function automatic verification mode and a key control selection function verification mode, and is applicable to most chip function verification requirements; meanwhile, three modes are provided for obtaining the verification result, so that the accuracy of the verification result is improved; the invention ensures the accuracy and the perfection of the functions of the MCU chip by carrying out the cooperative verification of software and hardware on the MCU chip.

Description

一种基于FPGA的通用MCU芯片功能验证系统及方法A general MCU chip function verification system and method based on FPGA

技术领域Technical Field

本发明涉及集成电路领域,特别是基于FPGA的通用MCU芯片功能验证方法。The present invention relates to the field of integrated circuits, and in particular to a general MCU chip function verification method based on FPGA.

背景技术Background technique

在现代电子设备中,微控制器单元(MCU)芯片被广泛应用于各种应用领域,如嵌入式系统、物联网、工业自动化等。而MCU芯片功能是否完善将直接影响整个应用系统的稳定运行。为获得高品质、高可靠的芯片产品,芯片验证成为贯穿于集成电路设计、制造、生产、保证芯片质量的重要环节。In modern electronic devices, microcontroller unit (MCU) chips are widely used in various application fields, such as embedded systems, Internet of Things, industrial automation, etc. Whether the MCU chip function is perfect will directly affect the stable operation of the entire application system. In order to obtain high-quality and highly reliable chip products, chip verification has become an important link throughout the integrated circuit design, manufacturing, production, and chip quality assurance.

目前对于MCU芯片的功能测试(Functional Test)大多是在晶圆封测厂进行,利用自动测试设备(Automatic Test Equipment-ATE),例如由美国Advantest公司开发的V93000机台,通过探针对待测芯片施加激励信号,测试数据通过PC端显示并保存。但是对于封测后出现的极少数问题芯片,完全依靠封测厂的大型机台测试,即成本高、时间周期长,也不利于问题反馈。Currently, functional tests of MCU chips are mostly conducted in wafer packaging and testing plants, using automatic test equipment (ATE), such as the V93000 machine developed by Advantest, an American company, to apply stimulus signals to the chip under test through probes, and the test data is displayed and saved on the PC. However, for the very few problematic chips that appear after packaging and testing, they rely entirely on large-scale testing machines in packaging and testing plants, which is costly, time-consuming, and not conducive to problem feedback.

目前对于脱离大型测试机台的MCU芯片功能验证专利有很多,但大多都面临如下问题:There are many patents for MCU chip function verification that are separated from large-scale test machines, but most of them face the following problems:

(1)验证结果通常需要人工校验,无法获取验证数据报告。(1) Verification results usually require manual verification, and verification data reports cannot be obtained.

(2)整个系统通常包含多个功能,当需要进行专项功能验证时,往往需要修改系统代码,验证过程极为繁琐。(2) The entire system usually contains multiple functions. When special function verification is required, it is often necessary to modify the system code, and the verification process is extremely cumbersome.

(3)验证结果获取方式单一,当对验证数据存在疑问时,无法对验证结果进行核实。(3) The method for obtaining verification results is single, and when there are doubts about the verification data, the verification results cannot be verified.

(4)待验证芯片与各功能模块集成于同一块电路板中,致使整个验证系统体积庞大,并且当需要扩展其他功能模块时,整个验证系统的硬件将需要重构。(4) The chip to be verified and each functional module are integrated into the same circuit board, which makes the entire verification system bulky. When other functional modules need to be expanded, the hardware of the entire verification system will need to be reconstructed.

综上所述,克服现有芯片功能验证技术所存在的缺陷是本技术领域亟待解决的问题。In summary, overcoming the defects of existing chip function verification technology is an urgent problem to be solved in this technical field.

发明内容Summary of the invention

本发明的目的在于提供一种基于FPGA的通用MCU芯片功能验证系统及方法,发明通过对MCU芯片进行软硬件的协同验证,查找设计中是否存在缺陷,确保MCU芯片功能的准确性和完善性。The purpose of the present invention is to provide a general MCU chip function verification system and method based on FPGA. The invention verifies the software and hardware of the MCU chip to find out whether there are defects in the design and ensure the accuracy and completeness of the MCU chip function.

为了解决上述技术问题,本发明提供一种基于FPGA的通用MCU芯片功能验证系统及方法,包括主验证板、功能板、上位机、电源与测试仪器;In order to solve the above technical problems, the present invention provides a general MCU chip function verification system and method based on FPGA, including a main verification board, a function board, a host computer, a power supply and a test instrument;

所述主验证板与所述功能板通过接口连接用于验证MCU芯片功能;The main verification board is connected to the function board via an interface to verify the function of the MCU chip;

所述电源为整个功能验证系统提供5V、0.5A电源;The power supply provides 5V, 0.5A power for the entire functional verification system;

所述测试仪器包括示波器、万用表、频谱分析仪和逻辑分析仪,用于系统调试与辅助验证测试结果;The test instruments include oscilloscopes, multimeters, spectrum analyzers and logic analyzers, which are used for system debugging and auxiliary verification of test results;

所述上位机用于编译和下载主验证板程序并将验证数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告。The host computer is used to compile and download the main verification board program and compare the verification data with the data generated by the MPLAB X IDE engineering test case to generate a verification report.

基于FPGA的通用MCU芯片功能验证系统,主验证板上包括:FPGA芯片、按键控制电路、电源电路、信号指示灯电路、MCU_SQI电路、USB接口电路、JTAG线束隔离电路、时钟电路、FPGA调试下载电路、MCU芯片接口与功能板接口。The general MCU chip function verification system based on FPGA includes the following on the main verification board: FPGA chip, button control circuit, power circuit, signal indicator circuit, MCU_SQI circuit, USB interface circuit, JTAG harness isolation circuit, clock circuit, FPGA debugging and downloading circuit, MCU chip interface and function board interface.

主验证板中按键控制电路的作用是使系统具备专项功能验证的能力;功能板块内通常集成多个功能模块,操作按键控制电路可选择单独的功能项进行验证。The function of the button control circuit in the main verification board is to enable the system to have the ability to verify special functions; multiple functional modules are usually integrated in the functional module, and the operation button control circuit can select a separate function item for verification.

主验证板中接口电路主要有MCU芯片接口和功能板接口,MCU芯片接口可用于扩展其他同类型芯片,功能板接口可用于扩展其他待验证功能。The interface circuits in the main verification board mainly include the MCU chip interface and the function board interface. The MCU chip interface can be used to expand other chips of the same type, and the function board interface can be used to expand other functions to be verified.

主验证板中信号指示灯电路用于显示验证结果是否通过和验证程序是否下载成功。The signal indicator light circuit in the main verification board is used to display whether the verification result is passed and whether the verification program is downloaded successfully.

基于FPGA的通用MCU芯片功能验证系统,功能板上包括:IIS模块、CAN模块、IRDA模块、TTL模块、LIN模块、ETH模块、SIM模块与MEM模块,各功能模块用于验证MCU芯片的开发功能。The general MCU chip function verification system based on FPGA includes: IIS module, CAN module, IRDA module, TTL module, LIN module, ETH module, SIM module and MEM module on the function board. Each function module is used to verify the development function of the MCU chip.

基于FPGA的通用MCU芯片功能验证系统,验证报告的获取包含如下三种方式:The FPGA-based general MCU chip function verification system can obtain verification reports in the following three ways:

(1)优选的,系统正常工作流程下,通过MCU芯片寄存器内的数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告。(1) Preferably, under the normal working process of the system, the data in the MCU chip register is compared with the data generated by the MPLAB X IDE project test case to generate a verification report.

(2)可选的,通过功能板接口电路直接与上位机连接,上位机软件调试获取验证数据,验证数据与数据手册或MPLAB X IDE工程测试用例产生数据通过人工校验,核对验证结果,生成验证报告。(2) Optionally, the function board interface circuit is directly connected to the host computer, and the host computer software is debugged to obtain verification data. The verification data is manually verified with the data manual or the data generated by the MPLAB X IDE project test case, and the verification results are checked to generate a verification report.

(3)可选的,通过测试仪器获取验证数据或波形,将数据或波形进行统计分析,生成验证报告。(3) Optionally, obtain verification data or waveforms through a test instrument, perform statistical analysis on the data or waveforms, and generate a verification report.

基于FPGA的通用MCU芯片功能验证系统,在默认条件下处于全功能自动验证状态,即按照编译流程自动验证各个功能项,每一个功能项将产生相应的验证报告并保存至工程文件。The FPGA-based general MCU chip function verification system is in a full-function automatic verification state under default conditions, that is, each function item is automatically verified according to the compilation process. Each function item will generate a corresponding verification report and save it to the project file.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

(1)本发明通过MCU芯片与FPGA芯片引脚之间的一一映射,将FPGA芯片作为芯片验证的桥梁,简化了验证平台的硬件结构,缩短验证周期,提高验证效率,同时降低成本,并且FPGA芯片能够实现验证数据的缓存与跨时钟域处理。(1) The present invention uses the FPGA chip as a bridge for chip verification through a one-to-one mapping between the MCU chip and the FPGA chip pins, thereby simplifying the hardware structure of the verification platform, shortening the verification cycle, improving the verification efficiency, and reducing the cost. In addition, the FPGA chip can realize the caching of verification data and cross-clock domain processing.

(2)本发明提供了一种基于FPGA的通用MCU芯片功能验证方法及系统,系统设计全功能自动验证与按键控制功能模块验证两种方式,适用于大多数芯片功能验证需求。系统设计接口电路使整个验证系统扩展性增强,同时使整个验证系统小型化,便于携带或运输。验证结果的获取的多样性,使验证结果更加可靠。MCU芯片寄存器内数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告,使验证结果清晰可见。(2) The present invention provides a general MCU chip function verification method and system based on FPGA. The system is designed with two modes: full-function automatic verification and key control function module verification, which are applicable to most chip function verification requirements. The system design interface circuit enhances the scalability of the entire verification system, and at the same time makes the entire verification system miniaturized, which is easy to carry or transport. The diversity of verification results makes the verification results more reliable. The data in the MCU chip register is compared with the data generated by the MPLAB X IDE engineering test case, and a verification report is generated, making the verification results clearly visible.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明提供的一种基于FPGA的通用MCU芯片功能验证系统结构示意图;FIG1 is a schematic diagram of the structure of a general MCU chip function verification system based on FPGA provided by the present invention;

图2为本发明提供的一种基于FPGA的通用MCU芯片功能验证系统详细结构示意图;FIG2 is a detailed structural diagram of a general MCU chip function verification system based on FPGA provided by the present invention;

图3为本发明提供的一种基于FPGA的通用MCU芯片功能验证系统流程示意图;FIG3 is a flow chart of a general MCU chip function verification system based on FPGA provided by the present invention;

具体实施方式Detailed ways

下面结合说明书附图详细阐述本发明的具体实施方法。The specific implementation method of the present invention is described in detail below with reference to the accompanying drawings.

请参考图1,图1为基于FPGA的通用MCU芯片功能验证系统提供的结构示意图,主要包括主验证板、功能板、上位机、电源与测试仪器;所述主验证板与所述功能板通过接口连接用于验证MCU芯片功能;所述电源为整个功能验证系统提供5V、0.5A电源;所述测试仪器包括示波器、万用表、频谱分析仪和逻辑分析仪,用于系统调试与辅助验证测试结果;所述上位机用于编译和下载主验证板程序并将验证数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告。Please refer to Figure 1, which is a schematic diagram of the structure of a general MCU chip function verification system based on FPGA, which mainly includes a main verification board, a function board, a host computer, a power supply and a test instrument; the main verification board and the function board are connected through an interface to verify the function of the MCU chip; the power supply provides 5V, 0.5A power for the entire function verification system; the test instrument includes an oscilloscope, a multimeter, a spectrum analyzer and a logic analyzer, which are used for system debugging and auxiliary verification of test results; the host computer is used to compile and download the main verification board program and compare the verification data with the data generated by the MPLAB X IDE engineering test case to generate a verification report.

请参考图2,图2为基于FPGA的通用MCU芯片功能验证系统提供的详细结构示意图,示例图2中,主验证板上包括:FPGA芯片、按键控制电路、电源电路、信号指示灯电路、MCU_SQI电路、USB接口电路、JTAG线束隔离电路、时钟电路、FPGA调试下载电路、MCU芯片接口电路与功能板接口电路。功能板上包括:IIS模块、CAN模块、IRDA模块、TTL模块、LIN模块、ETH模块、SIM模块与MEM模块,各功能模块用于验证MCU芯片的开发功能。Please refer to Figure 2, which is a detailed structural diagram of the general MCU chip function verification system based on FPGA. In the example Figure 2, the main verification board includes: FPGA chip, key control circuit, power circuit, signal indicator circuit, MCU_SQI circuit, USB interface circuit, JTAG harness isolation circuit, clock circuit, FPGA debugging and downloading circuit, MCU chip interface circuit and function board interface circuit. The function board includes: IIS module, CAN module, IRDA module, TTL module, LIN module, ETH module, SIM module and MEM module. Each function module is used to verify the development function of the MCU chip.

示例图2中主验证板部分模块的详细说明包括:The detailed description of some modules of the main verification board in Example Figure 2 includes:

(1)主验证板中FPGA芯片,采用Cyclone系列EP1C12Q240C8N芯片,作为待验证MCU芯片与功能板的中间媒介,将MCU芯片引脚与FPGA芯片引脚一一映射,用于发送功能IP验证指令,验证数据缓存与系统的跨时钟域处理。(1) The FPGA chip in the main verification board uses the Cyclone series EP1C12Q240C8N chip as the intermediate medium between the MCU chip to be verified and the function board. The MCU chip pins are mapped one by one to the FPGA chip pins to send functional IP verification instructions and verify data caching and system cross-clock domain processing.

(2)主验证板中按键控制电路,按键控制电路使系统具备专项功能验证,该设计即省去修改代码的繁琐性又使各个模块验证时相互独立。(2) The key control circuit in the main verification board enables the system to have special function verification. This design not only saves the tediousness of code modification, but also makes each module independent during verification.

(3)主验证板中电源电路,采用NCP59744MN2ADJTBG低压差线性稳压芯片,以确保整个验证系统能获得稳定的电源供应。(3) The power supply circuit in the main verification board uses the NCP59744MN2ADJTBG low-voltage dropout linear regulator chip to ensure that the entire verification system can obtain a stable power supply.

(4)主验证板中信号指示灯电路用于显示验证结果是否通过、验证程序是否下载成功。(4) The signal indicator circuit in the main verification board is used to display whether the verification result is passed and whether the verification program is downloaded successfully.

(5)主验证板中MCU_SQI电路,采用SST26VF064B-104I/SM Flash存储芯片,用于存储MCU芯片MPLAB X IDE工程程序。(5) The MCU_SQI circuit in the main verification board uses the SST26VF064B-104I/SM Flash memory chip to store the MCU chip MPLAB X IDE project program.

(6)主验证板中JTAG线束隔离电路,当MPLAB X IDE工程与Quartus ll工程发生冲突时可将线束断开,以确保工程文件的顺利下载。(6) The JTAG harness isolation circuit in the main verification board can disconnect the harness when a conflict occurs between the MPLAB X IDE project and the Quartus II project to ensure smooth downloading of the project files.

(7)主验证板中时钟电路分为MCU时钟与FPGA时钟,在MCU时钟模块内采用集成开关,可进行外部有源24M晶振与外部无源24M晶振的手动切换;FPGA时钟电路设置传入50MHz晶振。(7) The clock circuit in the main verification board is divided into MCU clock and FPGA clock. An integrated switch is used in the MCU clock module to manually switch between an external active 24M crystal oscillator and an external passive 24M crystal oscillator; the FPGA clock circuit is set to input a 50MHz crystal oscillator.

(8)主验证板中验证板FPGA调试下载电路,设置FPGA_ASP与FPGA_JTAG接口,两个接口都可用于下载FPGA程序,但不同点在于ALTERA_ASP接口引脚连接EPCS4非易失性存储芯片,当系统断电程序保存,而ALTERA_JTAG接口下载程序后,断电程序需要重新加载。(8) The FPGA debugging and downloading circuit of the verification board in the main verification board sets the FPGA_ASP and FPGA_JTAG interfaces. Both interfaces can be used to download FPGA programs, but the difference is that the ALTERA_ASP interface pins are connected to the EPCS4 non-volatile storage chip. When the system is powered off, the program is saved. After the ALTERA_JTAG interface downloads the program, the power-off program needs to be reloaded.

(9)主验证板中MCU芯片接口电路,用于待验证MCU芯片与主验证板的连接,该设计可灵活地扩展其他同类型芯片的功能验证。(9) The MCU chip interface circuit in the main verification board is used to connect the MCU chip to be verified with the main verification board. This design can flexibly expand the functional verification of other chips of the same type.

(10)主验证板中功能板接口电路,采用9001-11961C00A连接器,用于主验证板与功能板之间的连接。(10) The function board interface circuit in the main verification board uses a 9001-11961C00A connector to connect the main verification board to the function board.

请参考图3,图3为基于FPGA的通用MCU芯片功能验证系统流程示意图,示例图3中包括:Please refer to Figure 3, which is a schematic diagram of the process flow of a general MCU chip function verification system based on FPGA. Example Figure 3 includes:

步骤1,上位机分别通过Quartus ll工程与MPLAB X IDE工程编译与下载验证程序至FPGA芯片与MCU芯片,当Quartus ll工程与MPLAB X IDE工程顺利下载至主验证板时,主验证板内黄、蓝指示灯出现交替闪烁现象;Step 1: The host computer compiles and downloads the verification program to the FPGA chip and MCU chip through the Quartus II project and MPLAB X IDE project respectively. When the Quartus II project and MPLAB X IDE project are successfully downloaded to the main verification board, the yellow and blue indicators in the main verification board flash alternately.

步骤2,检测是否有功能按键指令输入;Step 2, detecting whether there is a function key command input;

步骤3,当有按键按下时,FPGA芯片向待验证MCU芯片发送按键电路相对应的功能项验证指令;延迟5秒,当没有按键按下时,按照程序编译流程FPGA芯片逐个向待验证MCU芯片发送功能项验证指令;Step 3, when a key is pressed, the FPGA chip sends a function item verification instruction corresponding to the key circuit to the MCU chip to be verified; after a delay of 5 seconds, when no key is pressed, the FPGA chip sends function item verification instructions to the MCU chip to be verified one by one according to the program compilation process;

步骤4,MCU芯片执行相对应的功能项程序并将运行结果反馈至FPGA芯片;Step 4: The MCU chip executes the corresponding function item program and feeds back the operation result to the FPGA chip;

步骤5,FPGA接收指令并驱动控制功能板内相应功能模块运行;Step 5: FPGA receives the instruction and drives the corresponding functional modules in the control function board to run;

步骤6,功能板将验证数据反馈至FPGA芯片,FPGA将数据缓存;或者功能板将验证数据通过数据传输线反馈至上位机;或者功能板将验证数据通过测试线反馈至测试仪器;Step 6: The function board feeds back the verification data to the FPGA chip, and the FPGA caches the data; or the function board feeds back the verification data to the host computer through the data transmission line; or the function board feeds back the verification data to the test instrument through the test line;

步骤7,FPGA将缓存的验证数据反馈给MCU芯片,MCU芯片将数据进行寄存;或者通过调试上位机软件观察验证结果;或者通过调试测试仪器观察验证结果;Step 7, FPGA feeds back the cached verification data to the MCU chip, and the MCU chip stores the data; or observes the verification result by debugging the host computer software; or observes the verification result by debugging the test instrument;

步骤8,MCU芯片寄存器内数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告。Step 8: Compare the data in the MCU chip register with the data generated by the MPLAB X IDE project test case and generate a verification report.

实施例Example

下面结合说明书附图与具体实施方式详细阐述本发明的功能验证实例。The following is a detailed description of the functional verification example of the present invention in conjunction with the accompanying drawings and specific implementation methods.

一种基于FPGA的通用MCU芯片功能验证平台的搭建包括:The construction of a general MCU chip function verification platform based on FPGA includes:

步骤1,硬件配置,通过主验证板上MCU芯片接口连接待验证的MCU芯片,MCU芯片与FPGA芯片的JTAG接口分别与上位机USB接口连接;将主验证板与功能板通过功能验证接口连接,功能板中待验证的功能模块通过调试接口与上位机连接或测试仪器连接,配置5V、0.5A电源;Step 1, hardware configuration, connect the MCU chip to be verified through the MCU chip interface on the main verification board, and connect the JTAG interface of the MCU chip and the FPGA chip to the USB interface of the host computer respectively; connect the main verification board and the function board through the function verification interface, connect the function module to be verified in the function board to the host computer or the test instrument through the debugging interface, and configure a 5V, 0.5A power supply;

步骤2,软件配置,通过上位机Quartus ll工程配置FPGA芯片和MPLAB X IDE工程配置MCU芯片,编译下载工程至主验证板,此时主验证内黄、蓝指示灯出现交替闪烁现象,程序下载成功,驱动控制功能板工作。Step 2, software configuration, configure the FPGA chip through the Quartus II project on the host computer and the MCU chip through the MPLAB X IDE project, compile and download the project to the main verification board. At this time, the yellow and blue indicators in the main verification board flash alternately, the program is downloaded successfully, and the drive control function board works.

验证平台搭建完毕后,系统将自动检测是否有按键控制指令输入,如果系统检测没有按键控制指令输入,Quartus ll工程将运行发送第一个功能(IIS)模块验证指令,MPALAB工程接收来自FPGA的验证指令后,运行第一个功能(IIS)初始化函数与功能验证函数。After the verification platform is built, the system will automatically detect whether there is any key control command input. If the system detects that there is no key control command input, the Quartus ll project will run and send the first function (IIS) module verification command. After the MPALAB project receives the verification command from the FPGA, it runs the first function (IIS) initialization function and function verification function.

上位机MPLAB X IDE软件程序运行结果窗口查看验证进度,打开MPLAB X IDE软件观察窗口查看寄存器数据,默认验证5000个接收数据后自动停止,将寄存器内的每个数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告并存储;同时,数据对比准确率达100%,验证通过,主验证板绿色LED灯亮。Check the verification progress in the MPLAB X IDE software program running result window on the host computer, and open the MPLAB X IDE software observation window to view the register data. By default, the verification stops automatically after 5000 received data are verified. Compare each data in the register with the data generated by the MPLAB X IDE project test case, generate a verification report and store it; at the same time, the data comparison accuracy reaches 100%, the verification is passed, and the green LED light on the main verification board is on.

当IIS功能模块验证完毕,系统会自动跳转验证下一个功能模块,直至所有功能模块验证完毕后停止。When the IIS function module is verified, the system will automatically jump to verify the next function module until all function modules are verified.

如果对自动验证中某一个功能模块的验证结果存在疑问,可以利用按键控制该模块重新验证;还可以通过改变验证数据获取的途径重新获取验证结果;或者两种方式联合使用;这样既不影响其他模块的验证结果,也可以节约验证时间。If there is any doubt about the verification result of a certain functional module in the automatic verification, you can use the button to control the module to re-verify; you can also re-obtain the verification result by changing the way to obtain the verification data; or use the two methods in combination; this will not affect the verification results of other modules and can also save verification time.

以上所述实施例仅是本发明的最优实施方案,但在具体应用中并不只局限于此,需要指出,凡在本发明技术原理的基础上做任何的改进和变形,皆属于本发明的保护范围。The above-described embodiments are only the optimal implementation schemes of the present invention, but are not limited thereto in specific applications. It should be pointed out that any improvements and modifications based on the technical principles of the present invention are within the protection scope of the present invention.

Claims (10)

1.一种基于FPGA的通用MCU芯片功能验证系统,其特征在于,包括主验证板、功能板、上位机、电源与测试仪器;1. A general MCU chip function verification system based on FPGA, characterized by comprising a main verification board, a function board, a host computer, a power supply and a test instrument; 所述主验证板与所述功能板通过接口连接用于验证MCU芯片功能;The main verification board is connected to the function board via an interface to verify the function of the MCU chip; 所述电源为整个功能验证系统提供5V、0.5A电源;The power supply provides 5V, 0.5A power for the entire functional verification system; 所述测试仪器包括示波器、万用表、频谱分析仪和逻辑分析仪,用于系统调试与辅助验证测试结果;The test instruments include oscilloscopes, multimeters, spectrum analyzers and logic analyzers, which are used for system debugging and auxiliary verification of test results; 所述上位机用于编译和下载主验证板程序并将验证数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告。The host computer is used to compile and download the main verification board program and compare the verification data with the data generated by the MPLAB X IDE engineering test case to generate a verification report. 2.如权利要求1所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,主验证板上包括:FPGA芯片、按键控制电路、电源电路、信号指示灯电路、MCU_SQI电路、USB接口电路、JTAG线束隔离电路、时钟电路、FPGA调试下载电路、MCU芯片接口与功能板接口。2. The FPGA-based general MCU chip function verification system as described in claim 1 is characterized in that the main verification board includes: FPGA chip, button control circuit, power supply circuit, signal indicator circuit, MCU_SQI circuit, USB interface circuit, JTAG harness isolation circuit, clock circuit, FPGA debugging and downloading circuit, MCU chip interface and function board interface. 3.如权利要求1所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,功能板上包括:IIS模块、CAN模块、IRDA模块、TTL模块、LIN模块、ETH模块、SIM模块与MEM模块,各功能模块用于验证MCU芯片的开发功能。3. The FPGA-based general MCU chip function verification system as described in claim 1 is characterized in that the function board includes: IIS module, CAN module, IRDA module, TTL module, LIN module, ETH module, SIM module and MEM module, and each function module is used to verify the development function of the MCU chip. 4.如权利要求2所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,按键控制电路,当功能板块内集成多个功能模块时,可通过按键控制电路单独验证芯片的某一个功能项。4. The FPGA-based universal MCU chip function verification system as described in claim 2 is characterized in that when multiple functional modules are integrated in the functional module, a key control circuit can be used to individually verify a certain function item of the chip. 5.如权利要求2所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,信号指示灯电路,信号指示灯电路用于显示验证结果是否通过和验证程序是否下载成功。5. The FPGA-based universal MCU chip function verification system as described in claim 2 is characterized by a signal indicator light circuit, which is used to display whether the verification result is passed and whether the verification program is downloaded successfully. 6.如权利要求2所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,JTAG线束隔离电路,当MPLAB X IDE工程与Quartus ll工程发生冲突时可将线束断开,确保工程文件能够顺利下载。6. The FPGA-based universal MCU chip function verification system as claimed in claim 2, characterized in that the JTAG harness isolation circuit can disconnect the harness when a conflict occurs between the MPLAB X IDE project and the Quartus II project, thereby ensuring that the project file can be downloaded smoothly. 7.如权利要求2所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,接口电路,接口电路主要有MCU芯片接口和功能板接口,MCU芯片接口可用于扩展其他同类型芯片,功能板接口可用于扩展其他待验证功能。7. The FPGA-based general MCU chip function verification system as described in claim 2 is characterized in that the interface circuit mainly includes an MCU chip interface and a function board interface, the MCU chip interface can be used to expand other chips of the same type, and the function board interface can be used to expand other functions to be verified. 8.如权利要求1至7中任意一项所述的基于FPGA的通用MCU芯片功能验证系统,其特征在于,验证系统硬件搭建,包括:8. The FPGA-based universal MCU chip function verification system according to any one of claims 1 to 7, characterized in that the verification system hardware construction includes: 所述主验证板通过电源接口与直流稳压电源连接;The main verification board is connected to a DC regulated power supply via a power interface; 所述主验证板通过MCU芯片接口与待验证的MCU芯片连接;The main verification board is connected to the MCU chip to be verified through the MCU chip interface; 所述上位机通过USB接口与所述主验证板中JTAG接口连接;The host computer is connected to the JTAG interface in the main verification board via a USB interface; 所述功能板通过功能板接口与所述主验证板连接;The function board is connected to the main verification board via a function board interface; 所述功能板中各功能模块通过调试接口与上位机连接或测试仪器连接。Each functional module in the functional board is connected to a host computer or a test instrument via a debugging interface. 9.一种如权利要求8所述的基于FPGA的通用MCU芯片功能验证方法,其特征在于,验证系统处于全自动验证状态,包括:9. A method for verifying the function of a general MCU chip based on FPGA as claimed in claim 8, characterized in that the verification system is in a fully automatic verification state, comprising: 步骤1,所述上位机将检测是否有功能按键指令输入,检测状态将持续5秒,5秒后,没有检测到按键指令输入时,按照程序编译流程FPGA芯片逐个向待验证MCU芯片发送功能项验证指令;Step 1, the host computer will detect whether there is a function key command input, and the detection state will last for 5 seconds. After 5 seconds, if no key command input is detected, the FPGA chip will send function item verification instructions to the MCU chip to be verified one by one according to the program compilation process; 步骤2,所述待验证MCU芯片执行相对应的功能项程序并将运行结果反馈至FPGA芯片,FPGA芯片接收指令并驱动控制功能板内相应功能模块运行;Step 2, the MCU chip to be verified executes the corresponding function item program and feeds back the operation result to the FPGA chip, and the FPGA chip receives the instruction and drives the corresponding function module in the control function board to run; 步骤3,所述功能板将验证数据反馈至FPGA芯片,FPGA芯片将数据进行缓存;Step 3, the function board feeds back the verification data to the FPGA chip, and the FPGA chip caches the data; 步骤4,所述FPGA芯片将缓存的验证数据反馈给MCU芯片,MCU芯片将数据进行寄存;Step 4, the FPGA chip feeds back the cached verification data to the MCU chip, and the MCU chip stores the data; 步骤5,所述MCU芯片寄存器内数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告;Step 5, comparing the data in the MCU chip register with the data generated by the MPLAB X IDE engineering test case to generate a verification report; 上述步骤将在所有验证指令对应的验证项验证完毕后,停止。The above steps will stop after all verification items corresponding to the verification instructions are verified. 10.如权利要求9所述的基于FPGA的通用MCU芯片功能验证方法,其特征在于,验证报告的获取有三种方式:10. The FPGA-based universal MCU chip function verification method according to claim 9, wherein there are three ways to obtain the verification report: (1)系统正常工作流程下,通过MCU芯片寄存器内的数据与MPLAB X IDE工程测试用例产生数据对比,生成验证报告;(1) Under the normal working process of the system, the data in the MCU chip register is compared with the data generated by the MPLAB X IDE project test case to generate a verification report; (2)通过功能板接口电路直接与上位机连接,上位机软件调试获取验证数据,验证数据与数据手册或MPLAB X IDE工程测试用例产生数据通过人工校验,核对验证结果,生成验证报告;(2) Connect directly to the host computer through the function board interface circuit, debug the host computer software to obtain verification data, manually verify the verification data with the data manual or the data generated by the MPLAB X IDE project test case, check the verification results, and generate a verification report; (3)通过测试仪器获取验证数据或波形,将数据或波形进行统计分析,生成验证报告。(3) Obtain verification data or waveforms through test instruments, perform statistical analysis on the data or waveforms, and generate a verification report.
CN202410359370.8A 2024-03-27 2024-03-27 FPGA-based general MCU chip function verification system and method Pending CN117949818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410359370.8A CN117949818A (en) 2024-03-27 2024-03-27 FPGA-based general MCU chip function verification system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410359370.8A CN117949818A (en) 2024-03-27 2024-03-27 FPGA-based general MCU chip function verification system and method

Publications (1)

Publication Number Publication Date
CN117949818A true CN117949818A (en) 2024-04-30

Family

ID=90804120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410359370.8A Pending CN117949818A (en) 2024-03-27 2024-03-27 FPGA-based general MCU chip function verification system and method

Country Status (1)

Country Link
CN (1) CN117949818A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150100298A1 (en) * 2013-10-07 2015-04-09 American Megatrends, Inc. Techniques for validating functionality of backplane controller chips
CN107290646A (en) * 2017-06-09 2017-10-24 苏州迅芯微电子有限公司 The automatically testing platform and method of testing of high-speed ADC chip
CN111428438A (en) * 2020-03-25 2020-07-17 西安微电子技术研究所 Application verification system for vehicle-mounted electronic system MCU
CN114019938A (en) * 2021-10-15 2022-02-08 上海华虹集成电路有限责任公司 Microcontroller chip communication interface test system and method thereof
CN116486892A (en) * 2023-03-31 2023-07-25 航天科工防御技术研究试验中心 Memory function verification and data acquisition system, test method and electronic equipment
CN117195783A (en) * 2023-03-01 2023-12-08 苏州跃之华半导体科技有限公司 Method for verifying chip design
CN117538721A (en) * 2023-08-31 2024-02-09 西安空间无线电技术研究所 A core microwave amplifier chip application verification system and method for aerospace applications

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150100298A1 (en) * 2013-10-07 2015-04-09 American Megatrends, Inc. Techniques for validating functionality of backplane controller chips
CN107290646A (en) * 2017-06-09 2017-10-24 苏州迅芯微电子有限公司 The automatically testing platform and method of testing of high-speed ADC chip
CN111428438A (en) * 2020-03-25 2020-07-17 西安微电子技术研究所 Application verification system for vehicle-mounted electronic system MCU
CN114019938A (en) * 2021-10-15 2022-02-08 上海华虹集成电路有限责任公司 Microcontroller chip communication interface test system and method thereof
CN117195783A (en) * 2023-03-01 2023-12-08 苏州跃之华半导体科技有限公司 Method for verifying chip design
CN116486892A (en) * 2023-03-31 2023-07-25 航天科工防御技术研究试验中心 Memory function verification and data acquisition system, test method and electronic equipment
CN117538721A (en) * 2023-08-31 2024-02-09 西安空间无线电技术研究所 A core microwave amplifier chip application verification system and method for aerospace applications

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张洪太,余后满: "航天器项目管理", 31 March 2018, 北京理工大学出版社, pages: 349 *
来新泉: "混合信号专用集成电路设计", 31 January 2014, 西安电子科技大学出版社, pages: 149 - 150 *
王丹;代雪峰;: "基于FPGA的ARM SoC原型验证平台设计", 微处理机, no. 06, 18 December 2015 (2015-12-18), pages 16 - 18 *

Similar Documents

Publication Publication Date Title
US9959186B2 (en) Debugging in a semiconductor device test environment
US9128150B2 (en) On-chip detection of types of operations tested by an LBIST
CN101995546A (en) Automatic test system and method of programmable logic device on basis of boundary scan
CN100351638C (en) Boundary scan testing device for integrated circuit
CN105738792A (en) PCBA test device and test method
IES20000160A2 (en) A Method and system for testing microprocessor-based boards in a manufacturing environment
CN112131109A (en) Python-based chip automatic verification test system and method
CN114019938A (en) Microcontroller chip communication interface test system and method thereof
CN110907798A (en) Test verification board, test device and method for exchange chip of integrated SoC (System on chip)
US20130060502A1 (en) Thermal scan system
CN103678075B (en) Complex microprocessors method of testing based on automatic vectorization generation technique
CN202693750U (en) IC Test System Based on LABVIEW
di Gruttola Giardino et al. A flexible fpga-based test equipment for enabling out-of-production manufacturing test flow of digital systems
CN117214672A (en) FPGA-based chip burn-in test-oriented test system and method
CN119596122B (en) Universal verification system, device and method suitable for functional performance of FPGA (field programmable Gate array) device
CN117949818A (en) FPGA-based general MCU chip function verification system and method
CN120870819A (en) Chip burn-in test system and method based on field programmable gate array
CN113740570A (en) Tool interface and method thereof
CN118642898A (en) Automatic configuration test system and method for microcontroller
WO2021109049A1 (en) Pcba intelligent automatic test method and system
US6718498B2 (en) Method and apparatus for the real time manipulation of a test vector to access the microprocessor state machine information using the integrated debug trigger
CN202362423U (en) Device of debugging wafer level test scheme in automatic test device final test environment
Ungar et al. IEEE-1149. X standards: achievements vs. expectations
CN100416284C (en) A cable testing device and method
CN101191818A (en) Chip test method, system and apparatus

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: 20240430