Test method for SOPC device of ACTEL company

By counting and configuring the resources of ACTEL's SOPC devices by module, and using the divide-and-conquer method and simulation technology for functional testing, the problem of the lack of effective testing methods in the existing technology is solved, efficient and high-coverage testing is achieved, and the device is ensured quality and reliability.

CN118860752APending Publication Date: 2024-10-29BEIJING ZHENXING METROLOGY & TEST INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310465226.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology lacks effective testing methods to detect and verify SOPC devices produced by ACTEL. In particular, there is a technical gap in testing technology, which makes it difficult to detect the functions and parameters of the device, affecting its quality and reliability assurance.

Method used

By counting the internal resources of SOPC devices by module, writing and compiling resource configuration and test programs, using LiberoSoC software and other development tools to configure and download the FPGA and microcontroller subsystems, and using the divide-and-conquer method and simulation technology to Conduct functional testing to ensure high coverage and efficiency.

Benefits of technology

It achieves efficient testing of ACTEL's SOPC devices, improves test efficiency and fault coverage, provides quality and reliability guarantees, and provides a feasible technical basis for testing methods of similar devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860752A_ABST
    Figure CN118860752A_ABST
Patent Text Reader

Abstract

The invention provides a testing method for an SOPC device of an ACTEL company, and the testing method for the SOPC device comprises the steps: carrying out the statistics of internal resources of the SOPC device according to the internal overall architecture of the SOPC device and modules; performing resource configuration on internal resources of the SOPC device according to modules to generate a corresponding configuration file; according to the configuration file, test program writing and compiling are carried out on the SOPC device according to modules, and a corresponding test project file is generated; downloading internal resources of the SOPC device and a corresponding test project file; and according to the test project file, performing function test on internal resources of the SOPC device according to modules. By means of the technical scheme, the technical problem that in the prior art, a testing method for the SOPC device of the ACTEL company is lacked can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SOPC device testing, and in particular to a SOPC device testing method. Background Art

[0002] Embedded system SOC can be based on FPGA / CPLD or application-specific integrated circuit (ASIC). The development of new ASIC-based SOC devices requires many key factors, including advanced development tools, leading manufacturing technology and semiconductor IP (Intellectual Property) cores. Considering the development of technology, the ASIC-based SOC industry still faces many challenges, which hinders its development. The use of FPGA can make SOC design have significant flexibility, but because the processor core is usually a hard core (cannot be configured), its scalability is minimal. Currently, many companies combine their own configurable FPGAs with configurable processor cores to launch SOPC (Programmable System on Chip) solutions. The internal structure of the SOPC device produced by ACTEL is shown in the figure below. Figure 8 and Fig. 9 shown.

[0003] SOPC (System-on-a-Programmable-Chip) devices, also known as programmable systems on chip, are a flexible and efficient embedded system solution developed on the basis of field programmable gate arrays (FPGAs). SOPC devices have complex functions and combine multiple embedded modules such as FPGA resources and microcontroller subsystems MSS in a single chip, which can meet different application fields and different work requirements. Due to the complex internal structure of the device and multiple functional sub-modules, the development of device test programs has always been a major problem in the aerospace system and even the domestic testing industry. First, due to the limitation of technical level, there has been no research on the SOPC device detection technology of foreign manufacturers before; second, SOPC devices need to be re-explored from structure, principle to development software, especially in terms of testing technology, which requires more systematic research. In this context, studying the test methods of SOPC devices, conducting key technical research, and realizing high coverage testing of devices in terms of functions and parameters can not only fill the technical gap in the field of domestic testing technology for high-performance devices such as SOPC devices in the field of detection technology, but also the technical methods formed by the research can be compatible with the development of testing technology for similar devices, and finally provide quality and reliability assurance for SOPC devices before use. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art.

[0005] The invention provides a test method for an ACTEL SOPC device. The test method for the SOPC device comprises: counting internal resources of the SOPC device by module according to the overall structure of the SOPC device; configuring the internal resources of the SOPC device by module to generate a corresponding configuration file; writing and compiling a test program for the SOPC device by module according to the configuration file to generate a corresponding test engineering file; downloading the internal resources of the SOPC device and the corresponding test engineering file; and performing a function test on the internal resources of the SOPC device by module according to the test engineering file.

[0006] Furthermore, ACTEL's SOPC device includes FPGA resources and microcontroller subsystem MSS resources. FPGA resources include programmable logic resources Versa Tiles composed of multiple inverter structures, phase-locked loops PLL, programmable I / O ports and embedded internal storage modules RAM; microcontroller subsystem MSS resources include Cortex-M3 core processor, I 2 C bus, SPI bus and UART bus submodules.

[0007] Furthermore, a "divide and conquer approach" is adopted to configure the internal resources of SOPC devices by module, write and compile test programs, and perform functional testing.

[0008] Furthermore, the software development tool LiberoSoC software of ACTEL Company is used to configure the internal resources of the SOPC device according to the modules.

[0009] Furthermore, when configuring the programmable logic resources Versa Tiles, the programmable logic unit structure is designed by controlling the internal programming switch, and multiple designed programmable logic units Versa Tiles are cascaded and configured into a test chain.

[0010] Furthermore, the J-LINK download tool is used to download the FPGA resources, and the FLASHPRO4 download tool is used to download the microcontroller subsystem MSS resources.

[0011] Furthermore, the writing and compilation of the test program specifically includes: writing and compiling the test program of the corresponding functional module in the software interface to form a corresponding downloadable file, and then performing timing simulation in the ModelSim software, preprocessing the formed simulation file, and converting it into a corresponding test graphic vector in the device logic function test process.

[0012] Furthermore, the simulation is in the form of functional simulation or timing simulation.

[0013] Furthermore, when performing functional testing on the embedded storage module RAM, all memories are set in parallel and programmed as dual-port RAMs that share addresses and data, and the chip select pins are used to further control the correspondence between the memory data output and the programmable I / O port.

[0014] By applying the technical solution of the present invention, a test method for ACTEL SOPC devices is provided. The SOPC device test method counts the internal resources of the SOPC device by module, and then sequentially performs resource configuration, test program writing and compilation, and functional testing according to the different logical functions of each submodule. The technical solution improves the efficiency of SOPC device testing and ensures a high test fault coverage rate. Compared with the prior art, the technical solution of the present invention can solve the technical problem of the lack of a test method for ACTEL SOPC devices in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification, are used to illustrate the embodiments of the present invention, and together with the text description, explain the principles of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 It is a schematic diagram of the internal structure of a programmable logic unit Versa Tile inside a SOPC device according to a specific embodiment of the present invention;

[0017] Figure 2 It is a configuration connection diagram of the programmable logic resource VersaTiles inside the SOPC device provided according to a specific embodiment of the present invention;

[0018] Figure 3 It is an overall test flow chart for ACTEL SOPC devices provided according to a specific embodiment of the present invention.

[0019] Figure 4 It is a result diagram after compiling the internal programmable logic resources Versa Tiles of the A2F500M3G-FGG256I device according to a specific embodiment of the present invention;

[0020] Figure 5 It is a test flow chart of each module of A2F500M3G-FGG256I provided according to a specific embodiment of the present invention;

[0021] Figure 6 is a schematic diagram of a design of a phase-locked loop (PLL) module provided according to a specific embodiment of the present invention;

[0022] Figure 7 is a schematic diagram of cascading multiple programmable logic units according to a specific embodiment of the present invention;

[0023] Figure 8 This is a schematic diagram of the internal functional modules of ACTEL's SOPC device;

[0024] Fig. 9 This is the relationship diagram of the internal functional modules of ACTEL's SOPC device;

[0025] Fig.10 is a single programmable logic unit Versa Tile logic diagram provided according to a specific embodiment of the present invention;

[0026] Fig.11 It is a SOPC device test source program processing flow chart provided according to a specific embodiment of the present invention;

[0027] Fig.12 It is a schematic diagram of the mutual cascading of multiple programmable logic units Versa Tiles corresponding to the internal SOPC device of model A2F500M3G-FGG256I produced by ACTEL according to a specific embodiment of the present invention;

[0028] Fig.13 It is a simulation file processing flow chart of a SOPC device in ModelSim software according to a specific embodiment of the present invention;

[0029] Fig.14 is a schematic diagram of configuring a programmable logic unit into a three-input lookup table according to a specific embodiment of the present invention;

[0030] Fig.15 It is a schematic diagram of configuring a programmable logic unit into a trigger with a clear (or set) terminal according to a specific embodiment of the present invention;

[0031] Fig.16 It is a schematic diagram of configuring a programmable logic unit into an enable trigger with a clear (or set) terminal according to a specific embodiment of the present invention;

[0032] Fig.17 It is a structural diagram of the internal composition of the microcontroller subsystem MSS provided according to a specific embodiment of the present invention;

[0033] Fig.18 According to a specific embodiment of the present invention, 2 C bus transmission diagram;

[0034] Fig.19It is a schematic diagram of SPI bus transmission according to a specific embodiment of the present invention;

[0035] Fig. 20 It is a schematic diagram of UART bus transmission provided according to a specific embodiment of the present invention;

[0036] Fig.21 is a resource ratio diagram of a programmable I / O port provided according to a specific embodiment of the present invention;

[0037] Fig. 22 is a software compilation diagram of an embedded storage RAM module provided according to a specific embodiment of the present invention;

[0038] Fig.23 It is a schematic diagram of a programmable I / O port of a SOPC device provided according to a specific embodiment of the present invention. DETAILED DESCRIPTION

[0039] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0041] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments do not limit the scope of the present invention. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to the actual proportional relationship. The technology, method and equipment known to those of ordinary skill in the relevant art may not be discussed in detail, but in appropriate cases, the technology, method and equipment should be considered as a part of the specification. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.

[0042] like Figure 3 As shown, according to a specific embodiment of the present invention, a test method for ACTEL's SOPC device is provided, and the SOPC device test method includes: according to the overall architecture inside the SOPC device, counting the internal resources of the SOPC device by module; configuring the internal resources of the SOPC device by module, generating and downloading the corresponding configuration file; writing and compiling the test program for the SOPC device by module according to the configuration file, generating the corresponding test project file; and then implementing the functional test of the internal resources of the SOPC device according to the successfully compiled test project file.

[0043] By applying this configuration mode, a test method for ACTEL SOPC device is provided. The SOPC device test method counts the internal resources of the SOPC device by module, and then performs resource configuration, test program writing and compilation, and functional testing in sequence according to the different logical functions of each submodule. The technical solution improves the efficiency of SOPC device testing and ensures a high test fault coverage rate. Compared with the prior art, the technical solution of the present invention can solve the problem of the lack of a test method for ACTEL SOPC device in the prior art.

[0044] Furthermore, in the present invention, in order to test each functional module unit inside the ACTEL SOPC device, firstly, according to the overall architecture inside the SOPC device, the internal resources of the SOPC device are counted by module. According to the different functions implemented by each functional submodule inside the device, the present invention counts the resource conditions of the corresponding submodules respectively.

[0045] Statistical resources are statistics of the internal resource distribution of the device under test. The content of the statistics should be based on the overall architecture of the SOPC device and adopt a "module-based" statistical method. The present invention relates to the SOPC device of ACTEL Company, including FPGA resources and microcontroller subsystem MSS resources. The FPGA resources include programmable logic resources VersaTiles composed of multiple inverter structures, phase-locked loops PLL, programmable I / O ports and embedded storage modules RAM. The microcontroller subsystem MSS resources include Cortex-M3 core processor, I 2 C bus, SPI bus and UART bus submodules.

[0046] In the process of counting resources, the distribution and corresponding quantity of each functional sub-module inside the SOPC device can be clarified by referring to the technical manual; in addition, after counting the resources of each module according to the manual, it can be further combined with the internal software resource configuration in the software development tool, and the two can be matched to finally determine the internal resources of the SOPC device to be tested, and then complete the statistical resource work of the corresponding module.

[0047] Furthermore, after the internal resources of the SOPC device are counted, the internal resources of the SOPC device are configured according to the modules, and a corresponding configuration file (ie, IP core file) is generated.

[0048] As a programmable system on chip, SOPC devices are blank devices by default before configuration or programming, that is, the devices have no functions. If you want to use the internal functions of the device, you must first use software development tools to configure it into a module with specific functions, and then write Verilog HDL hardware programming language to access and call the internal functional sub-modules and compile the corresponding functional test programs.

[0049] As a specific embodiment of the present invention, after the first step of studying the configuration scheme of related resources inside the SOPC device, the software development tool LiberoSoC software of ACTEL can be used to pre-configure the functional sub-modules inside the SOPC device. Under this software tool, the originally blank device is designed with specific logic functions, and the originally blank SOPC device is designed as programmable logic resources VersaTiles, phase-locked loop PLL, embedded storage RAM module, programmable I / O port, microcontroller subsystem MSS and other resources according to the different internal functional modules of the device. After the configuration is completed, the LiberoSoC software is used to take corresponding download methods (such as Figure 5 As shown), the successfully configured file (i.e., IP core file) is then downloaded to the SOPC device to be tested, thereby completing the configuration of the SOPC device.

[0050] In this embodiment, the resource configuration scheme for each functional submodule is as follows:

[0051] 1) Programmable logic resources VersaTiles

[0052] Since the internal programmable logic resources of the SOPC devices produced by ACTEL are relatively complex, the internal programmable logic unit Versa Tile of the device is different from other programmable logic units in composition structure. In the application process, the programmable logic unit structure can be designed by controlling the internal programming switch, and then multiple designed programmable logic unit Versa Tiles are cascaded and configured into a test chain form (such as Figure 7 In this embodiment, the programmable logic unit corresponding to the SOPC device produced by Actel can be configured into three forms, including a three-input lookup table (such as Fig.14 As shown), triggers with clear (or set) terminals (such as Fig.15 ), and an enable flip-flop with a clear (or set) terminal (such as Fig.16 shown).

[0053] In terms of configuration strategy, when the SOPC device is powered on, the LiberoSoC software development tool is used to set the programmable logic resource Versa Tiles as logic devices with specific functions. During the configuration process, it is only necessary to give an input value (such as data A) at the first programmable logic unit VersaTile, and then the output result of this programmable logic unit (such as value Y) is used as the input data of the subsequent connected programmable logic unit, such as Figure 2 During the design process, multiple programmable logic units VersaTiles are connected in series to form a test chain, such as Figure 7 As shown, by taking the form of superimposing two programmable logic units on each other, it is intended to ultimately achieve cascading all the programmable logic units VersaTiles inside the SOPC device, thereby realizing the functional test of the programmable logic resource Versa Tiles. The schematic diagram of cascading multiple programmable logic units Versa Tiles is as follows Figure 7 shown.

[0054] In the process of configuring the internal programmable logic resources VersaTiles of the device, it is planned to adopt the "divide and conquer method" to implement the testing of the internal programmable logic resources Versa Tiles. Through reasonable design of the configuration program, and during the configuration process, efforts are made to cover every programmable logic unit VersaTile inside the device. Then, functional testing and verification are carried out according to the test scheme mentioned above, thus realizing the functional test development process of the device from "configuration-testing".

[0055] 2) Phase Locked Loop (PLL)

[0056] ACTEL's SOPC devices have different packaging forms, and each type of device contains a different number of phase-locked loops (PLLs). During the configuration process, according to the requirements of the technical manual, ACTEL's software development tool LiberoSoC for SOPC devices is used to perform corresponding form-based configuration. After the configuration is completed, an IP core (Intellectual property core) is generated, thereby completing the preliminary configuration of the phase-locked loop (PLL).

[0057] For the PLL functional submodule inside the device, it should be noted that different configuration strategies should be adopted according to the different positions of the PLL inside the SOPC device. Furthermore, when configuring the PLL outside the microcontroller subsystem MSS, it can be directly configured in the LiberoSoC software development tool; when configuring the PLL inside the microcontroller subsystem MSS, the Cortex-M3 inside the microcontroller subsystem MSS must be accessed during the configuration process, and then the configuration of the PLL must be implemented inside the microcontroller subsystem MSS. It should also be noted that whether it is an external or internal PLL, the PLL must be designed as a clock circuit with functions such as frequency division, frequency multiplication, phase shift, and delay during its configuration process. Later, the clock circuit is examined under the corresponding software development tool to achieve functional test verification of the PLL module.

[0058] 3) Microcontroller Subsystem MSS (Microcontroller Subsystem)

[0059] The microcontroller subsystem MSS integrates the Cortex-M3 core, I 2 C (Inter-Integrated Circuit) bus (synchronous serial bus), SPI (Serial Peripheral Interface) bus (serial peripheral bus), UART (Universal Asynchronnus Receiver / Transmitter) bus (universal asynchronous receiver / transmitter bus) and other functional sub-modules. The microcontroller subsystem MSS contains functional sub-modules such as Fig.17 shown.

[0060] In terms of configuration strategy, the Cortex-M3 core controller is used as the core of the microcontroller subsystem MSS. It is configured as an IP core under the LiberoSoC software development tool, and then the Verilog HDL hardware programming language is used to call and access the Cortex-M3 core. Then, the Keil software is used to test the functions of the Cortex-M3 core. The main content of the test includes verifying the read and write functions of the Cortex-M3 core registers, thereby further realizing the functional test of the Cortex-M3 core.

[0061] In addition, for I 2 C, SPI and UART and other functional sub-modules need to be compiled by using Keil programming software in the Cortex-M3 core environment to implement functional testing of the corresponding functional sub-modules. For example, for FLASH and SRAM functional sub-modules, the function of storing information is further verified by compiling the test source program according to the working mechanism of FLASH and SRAM during the test process; 2 C bus, SPI bus, and UART bus sub-modules, during the test process, data writing, transmission, and reading are performed on the bus according to the bus transmission protocol rules to achieve functional testing of each bus interface.

[0062] 4) Built-in storage module RAM (Random Access Memory)

[0063] According to the device's technical manual, the total capacity of the internal storage module RAM must first be determined. Since different manufacturers have their own corresponding software development tools, for example, ACTEL's supporting software development tool is LiberoSoC software. The storage module RAM is configured within the software, and then the corresponding IP core is generated. Then, the internal storage RAM program is written and compiled using the Verilog HDL hardware description language, and then the corresponding functional implementation is simulated using simulation software, and then the simulated file is preprocessed and converted into a test graphic vector (Pattern).

[0064] For each model of SOPC device produced by ACTEL, the corresponding embedded storage RAM modules are basically the same in structure and function, and can realize dual-end RAM, single-end RAM, FIFO and other functions, and can be configured as 256×18, 512×9, 1k×4, 2k×2, 4k×1Bit application forms.

[0065] 5) Programmable I / O port

[0066] According to the device manual and software tool features of ACTEL, the programmable I / O port of the device is configured in the LiberoSoC software. Since the structure of the programmable I / O port is composed of bidirectional pins, the ability of all I / O pins to work in both directions must be considered during testing. Therefore, when performing logical function tests on the programmable I / O ports, the I / O pins inside the device are further grouped and controlled by the direction control terminal (DIR) to be used as input or output pins respectively. After that, the configured multiple I / O pins are combined. For example, multiple programmable I / O pins can be combined and configured into logic units such as input registers, output controllers, and enable controllers to complete the configuration of the programmable I / O port.

[0067] Furthermore, in the present invention, after completing the configuration of the internal resources of the SOPC device, the test program of the SOPC device is written and compiled according to the module to generate the corresponding test engineering file.

[0068] As a specific embodiment of the present invention, the test program for each functional submodule configured as above is written and compiled as follows:

[0069] 1) Programmable logic resources VersaTiles

[0070] First, according to the configuration file of the programmable logic resource Versa Tiles in the LiberoSoC development software, the corresponding IP core is produced, and the successfully compiled burnable file is configured inside the SOPC device to be tested. At this time, the SOPC device to be tested becomes a logic device with frequency change function. When the burnable file is successfully downloaded, further, under the LiberoSoC software development tool, the Verilog HDL language is used to write and compile the test program for the programmable logic resource Versa Tiles. Then, a simulation file is established in the ModelSim environment, and the simulation graphics are converted and processed to form a test graphic vector. In the later test process, the successfully configured IP core must be downloaded to the SOPC device to be tested. During the test process, the test stimulus is applied and the test output result is determined based on the converted test graphic vector, thereby realizing the functional test of the programmable logic resource VersaTiles.

[0071] 2) Phase Locked Loop (PLL)

[0072] The PLL module inside the ACTEL SOPC device is located in the clock management unit (ClockManagement). For this module, the clock signal can be operated by directly configuring the PLL module in the LiberoSoC software development tool. In the software, since the PLL has been solidified inside the device, this module directly determines the device's signal cycle, operating frequency and other time parameters. During the compilation process, the PLL is configured for frequency division, frequency multiplication, phase shift, and delay, and then the Verilog HDL hardware description language is used to simulate the device's operation under different time periods to achieve functional testing of the PLL.

[0073] 3) Microcontroller Subsystem MSS

[0074] In the present invention, during the test program writing process, the "divide and conquer method" can be adopted to verify the various functional sub-modules inside the microcontroller subsystem MSS, that is, after determining each functional sub-module, the corresponding test method is adopted to carry out test technology research on each functional sub-module, and then the test results of each functional sub-module are summarized to realize the functional test of the microcontroller subsystem MSS.

[0075] In this embodiment, the test strategy to be adopted for each functional submodule of the microcontroller subsystem MSS is as follows:

[0076] a.Cortex-M3 core controller

[0077] The Cortex-M3 core is set in the software development tool LiberoSoC, and the Cortex-M3 module is further called using the Verilog HDL hardware description language. Then, the test program for functions such as register instruction reading and writing is written and compiled using C language in the Keil software development environment, thereby realizing functional testing of the Cortex-M3 core.

[0078] I 2 C bus

[0079] I 2 C bus working principle and transmission protocol Fig.18 As shown. 2 C bus is a synchronous serial bus. 2 C bus test, so usually need to design a data transmission and reception function of I 2 C bus interface, in order to achieve the test system to I 2 C bus interface to send and receive data. In the process of writing the test program, it is necessary to design an I 2 C bus interface for data transmission and reception, and also configures a general-purpose programmable I / O port as an I2 C is the control port for sending and receiving data. This general programmable I / O port is used as the basis for judging whether the data reception is correct. If the received data is correct, it outputs a high level, otherwise it outputs a low level.

[0080] The computer and the device under test are I 2 The two ends of the C bus are accessed through the Cortex-M3 core during configuration. 2 C bus interface address, to achieve the I 2 C bus call, and then according to the I 2 C bus transmission protocol, such as Fig.18 As shown, the mutual communication between the device under test and the computer is simulated. When executing the input and output command operations, the data at the port is collected in real time, and the output result is determined to achieve I 2 C bus (synchronous serial bus) functional test.

[0081] c.SPI bus

[0082] The working principle and transmission protocol of SPI bus are as follows Fig.19 As shown, the SPI bus is a serial peripheral bus. 2 C bus, it can realize full-duplex working mode. The SPI bus consists of four pins, including clock pin CLK, data input pin DATAIN, data output pin DATAOUT, and working mode chip select pin CS. In working mode, the CS selection pin should be selected as low level, and data is sent at the rising or falling edge of the clock, and data is received at the falling or rising edge of the clock. Since there are two data lines, data can be sent and received at the same time. The SOPC device is used as the master (sending instructions) end, and the computer is used as the slave (receiving instructions) end. The configuration process is the same as I 2 The configuration process of the C synchronous serial bus is similar, that is, the address of the SPI bus is accessed through the Cortex-M3 core, and then programming is performed according to the transmission protocol of the SPI bus. In the clock CLK activation mode, the chip select CS is selected, and the Fig.19 According to the transmission protocol specified in the protocol, input instructions, input data, output data and other operations are performed at the same time to detect the communication between the main control and the slave devices, and then the data of the input and output ports are collected and compared with the expected data to realize the functional test of the SPI bus.

[0083] d.UART bus

[0084] The working principle and transmission protocol of UART bus interface are as follows Fig. 20As shown, the UART bus is a universal asynchronous receiving and transmitting data bus. The UART transmission process does not require the support of a clock. After both parties are configured, data transmission and reception can be realized through two data lines, and the data transmission is input with the highest bit first. In addition, for UART transmission, the maximum number of bits of data supported is 9 bits, which is specifically composed of 8 data bits and 1 parity bit, and the UART bus has certain requirements for the data transmission rate, which should be noted during the configuration process. The present invention designs a UART interface. In order to achieve the control of data transmission and reception by the test system to the UART interface, in the process of writing the test program, 2 universal programmable I / O ports are set as the control ports for the UART bus to send and receive data, one universal programmable I / O port is used as the identification bit of whether the data transmission is successful, and the other universal programmable I / O port is used as the judgment basis for whether the data reception is correct. In addition, since the transmission of the UART bus does not require a clock signal, in the absence of a clock signal, the two ends of the UART communication send and receive data asynchronously. During the transmission process, the data transmitted by the UART is organized into data packets. Each data packet consists of a start bit, data bits, parity bits, and a stop bit. Then, based on the UART bus transmission protocol, the communication transmission between the SOPC device and the computer is realized, and the output result of the data port is compared with the expected input data. If the received data is correct, the programmable I / O port outputs a high level, otherwise it outputs a low level, thereby ultimately realizing the functional test of the UART bus.

[0085] 4) Embedded storage module RAM

[0086] ACTEL SOPC devices provide users with a rich internal storage module RAM, and have a flexible programming method, which can realize dual-channel SRAM, FIFO and other functions, and realize synchronous or asynchronous read and write mode. If all functions are fully tested, multiple programming will be performed, and the test time is long. The test of the storage module is to test the quality of the storage unit. Therefore, the present invention tests the internal storage module RAM by programming it as a memory with only one working mode.

[0087] During the test of the internal storage module RAM, the LiberoSoC software development tool will be used to design a dual-port memory. During the test, the internal storage capacity will be processed in blocks. For example, the internal storage RAM can be configured according to a certain ratio first, and then it will be solidified multiple times during the test to achieve full occupancy of the embedded storage module RAM.

[0088] Furthermore, in the LiberoSoC software development tool, the Verilog HDL hardware description language is used to write and compile the test program for the embedded storage RAM module of the SOPC device to be tested according to the above-mentioned block processing method, and the successfully compiled file is subjected to functional simulation or timing simulation (functional simulation is pre-simulation, timing simulation is post-simulation, and one simulation form can be selected in the ModelSim environment), and then the simulated file is processed and converted into a test graphic vector when testing the device.

[0089] Furthermore, in the early stage, since the embedded storage RAM module has been configured through the LiberoSoC software development tool and the corresponding IP core has been generated, the generated IP core is further compiled to generate the corresponding burnable file. Later, the compiled burnable file is downloaded to the SOPC device under test through a downloader. At this time, the SOPC device under test is configured as a logic device with a frequency change function, and then the above-mentioned test graphic vectors are used to realize the functional test of the embedded storage module RAM.

[0090] 5) Programmable I / O port

[0091] To meet the needs of complex systems, SOPC devices provide a large number of programmable I / O port resources. Each I / O pin can be designed as an input, output, or bidirectional pin. Different types of SOPC devices produced by ACTEL have different programmable I / O port resources. The schematic diagram of the programmable I / O port is shown below. Fig.23 As shown in the figure, it can be seen that the programmable I / O port is designed as 2 bidirectional buffers with three-state control and bidirectional control terminals.

[0092] The present invention writes a configuration file of a programmable I / O port in a LiberoSoC software development tool, generates a corresponding IP core, further compiles to generate a burnable file, and configures the compiled burnable file into a SOPC device to be tested. At this time, the SOPC device to be tested becomes a buffer device with a bidirectional function. Since the programmable I / O port test logic and timing are relatively simple, test graphic vectors can be written directly according to expected functions without simulation. Then, according to the resource quantity distribution of the programmable I / O port of the SOPC device to be tested, corresponding test graphic vectors are written, thereby realizing functional testing of the programmable I / O port of the SOPC device to be tested.

[0093] Furthermore, in the present invention, after the writing and compiling of the SOPC device test program is completed, the internal resources of the SOPC device and the corresponding test project files are downloaded.

[0094] The present invention proposes a "classified" downloading method. After the test source program is written and compiled in the LiberoSoC software environment, the compiled test engineering file is further used to download files. Different downloaders are used to download corresponding resources according to the different internal test resources of the SOPC device produced by ACTEL. As a specific embodiment of the present invention, the J-LINK download tool can be used to download FPGA resources, and the FLASHPRO4 download tool can be used to download microcontroller subsystem MSS resources. In the actual configuration process, special attention should be paid to the switching of these two download tools, because different voltage levels correspond to these two modes. The download tools and download methods for different resources proposed by the present invention can completely cover various resources inside the SOPC device of ACTEL, and can simultaneously meet the voltage level requirements of FPGA and microcontroller subsystem MSS testing, so as to test all resources inside the SOPC device.

[0095] Furthermore, in the present invention, after the downloading of the internal resources of the SOPC device and the corresponding test engineering files is completed, the internal resources of the SOPC device are functionally tested by module.

[0096] according to Figure 8 and Fig. 9 As shown in the internal structure diagram of the SOPC device, the SOPC device integrates programmable logic resources Versa Tiles, programmable I / O ports, internal storage RAM, microcontroller subsystem MSS, phase-locked loop PLL, etc. Since the SOPC device has many internal resources and the device has limited programmable I / O ports, it is impossible to cover all resources with a single programming. The present invention adopts a "divide and conquer" test scheme to test each functional submodule inside the device, further decomposes each functional submodule, and implements functional testing of the SOPC device to be tested, thereby solving the problem of complex SOPC testing.

[0097] The relationship between the various resources within the FPGA module is as follows: Fig. 9 The test plan for each internal resource is as follows:

[0098] 1) Programmable logic resources VersaTiles

[0099] According to the structure diagram of the programmable logic unit Versa Tile, Fig.10 As shown in FIG. 1 , and a programmable logic resource diagram after multiple programmable logic unit Versa Tiles are cascaded, as shown in FIG. Figure 2As shown, the programmable logic unit Versa Tile can realize user logic and algorithm functions. Since the number of programmable logic units contained in different models of SOPC devices within ACTEL is different, when carrying out specific tests, the test plan should be studied according to the scale of the internal programmable logic resources. In addition, since the scale of the programmable logic resources and the scale of the programmable I / O ports do not match, the number of programmable logic units Versa Tiles contained in the programmable logic resources is much larger than the programmable I / O ports, so it is impossible to connect each programmable logic unit and the external programmable I / O port for testing. Therefore, in formulating the test plan, the present invention designs a test project to "connect" these programmable logic units in series to form a one-dimensional array for testing. Since it is necessary to connect them in series for many times, in order to observe whether the output result is correct, the output and input of the logic unit need to have a fixed logical relationship, such as Y=A or Y=! A; according to the characteristics of the programmable logic resources of the device under test and the test requirements, each programmable logic unit Versa Tile is designed as a D flip-flop with 3 inputs (including a clock and reset control function) and 1 output, and these flip-flop units are connected in series to form a test project of the programmable logic resource Versa Tiles, such as Fig.12 shown.

[0100] 2) Phase-locked loop (PLL)

[0101] The number of phase-locked loops (PLLs) contained in ACTEL's SOPC devices varies, but the basic schematic diagrams are consistent. By adjusting the clock signal in the phase-locked loop (PLL) module, the input clock can be multiplied or divided, and the clock signal can be delayed or phase shifted. According to the principle of PLL, the phase-locked loop (PLL) module is designed as Figure 6 In the form of, the clock management module unit containing the phase-locked loop PLL is further functionally tested by configuring the IP core and applying the test pattern vector.

[0102] 3) Embedded storage RAM

[0103] The embedded storage RAM of ACTEL's SOPC device has good flexibility. Each RAM can be configured as a dual-channel RAM, a single-channel RAM, a FIFO, or an SRAM. The data mode supports 9 bits, 18 bits, and 36 bits. Comprehensively testing these modes of the storage module will take up a long test time. Therefore, one function and one data mode can be considered for functional verification. At the same time, the matching problem between the user-available I / O pins of the device and the internal storage RAM resources can be considered. It is impossible to connect each internal storage RAM to the external I / O port separately for testing. Therefore, the test strategy adopted by the present invention writes all memories as dual-port RAMs that share addresses and data, and cooperates with the chip select terminal to control which memory data is output to the I / O pin; through this test project, the internal storage RAM module can be fully tested for resources.

[0104] 4) Programmable I / O port

[0105] The schematic diagram of the programmable I / O port is as follows Fig.23 As shown in the figure, each programmable I / O port can be programmed as input, output, tri-state driver, or bidirectional buffer. The programmable I / O port supports two voltage standards: 2.5V and 3.3V. Therefore, in the test project, these features are combined to program the programmable I / O port as a bidirectional logic circuit with control function.

[0106] In addition, SOPC devices have FPGA resources inside, and also integrate microcontroller subsystem MSS, which consists of Cortex-M3 core, I 2 C bus, SPI bus, UART bus and other modules. The relationship between the modules inside the device is as follows: Fig. 9 In the process of testing this part of resources, the present invention first designs the microcontroller subsystem MSS into an IP core that performs different logic functions in the LiberoSoC development environment, further uses the Verilog HDL hardware description language to call the microcontroller subsystem MSS, and then uses the Keil software to write the application program of the corresponding functional submodule, then simulates the function of each functional submodule, converts the simulation graphics into test graphic vectors, and then tests the corresponding functional submodule, thereby finally realizing the functional test of the microcontroller subsystem MSS resources inside the device.

[0107] In combination with the above content, the present invention provides a preferred embodiment of a method for testing each functional unit module inside an Actel company's SOPC device, which mainly includes the following steps.

[0108] Step 1: Study the device technical manual to study the distribution of each functional unit module inside the device;

[0109] Step 2: According to the technical manual of the device to be tested, understand the key basic information of the SOPC device, such as the internal structure, logic resources, device packaging, and device pins, and make a test adapter for the corresponding device model accordingly;

[0110] Step 3: Based on the basic information of key components accumulated in step 2, formulate a configuration plan; usually, the modules inside the SOPC device include programmable logic resources (Versa Tiles), embedded storage RAM modules, programmable I / O ports, phase-locked loops (PLLs), and microcontroller subsystem (MSS) resources. The formulation of the test plan should cover the above-mentioned related resources;

[0111] Step 4: further determine the functional test scheme of the programmable logic resources (Versa Tiles) of the SOPC device;

[0112] Step 5, further determining the functional test scheme of the embedded memory RAM;

[0113] Step 6, further determine the functional test plan of the programmable I / O port;

[0114] Step 7, further determine the functional test plan of the phase-locked loop PLL module;

[0115] Step 8, further determine the functional test plan of the microcontroller subsystem MSS;

[0116] Step 9: Research the software development tools of ACTEL's SOPC devices and determine the configuration scheme for the two major resources inside the SOPC device - FPGA resources and microcontroller subsystem MSS resources.

[0117] Step 10: Based on the above steps, determine the functional test plan for ACTEL's SOPC device. Write and compile the test program for the corresponding unit module in the SOPC device-specific software interface to form a corresponding downloadable file, then perform functional simulation and timing simulation through ModelSim software, pre-process the formed simulation file, and convert it into a test pattern vector (Pattern) for later testing;

[0118] Step 11, by downloading the download file into the SOPC device, the SOPC device is configured; the J-LINK downloader test strategy is adopted for the FPGA resource, and the FLASHPRO4 test strategy is adopted for the microcontroller subsystem MSS, such as Figure 5 As shown, different testing strategies are then formulated for different internal functional sub-modules.

[0119] Furthermore, in step 2, when making an adapter for the SOPC device to be tested, the following points should be noted: (1) Based on the device technical data and the technical specifications of the test system, a hardware test adapter is made to establish the matching relationship between the device pins and the test machine; (2) In the hardware test adapter, full consideration is given to the fact that each functional unit module will have different voltage level requirements during the test of different functional unit modules, and download line positions for different functional unit modules are reserved in advance in the adapter.

[0120] Furthermore, step three is to determine the configuration scheme of the SOPC device to be tested, which specifically refers to: (1) the SOPC device is a programmable system on chip. Before configuration or programming, it is a blank component without any function. Its detection is planned to adopt the process of "configuration-download-test-erase-blank check"; (2) The more detailed the configuration of each functional module unit inside the device, the more specific the structural unit detected. The use of multiple configuration methods can cover the various module units inside the device to the greatest extent. Therefore, the use of multiple real-time configuration methods is the basis for completing the test of all functional module units inside the device.

[0121] Furthermore, step 4 determines the functional test plan of the programmable logic resources (Versa Tiles) of the SOPC device to be tested. The method is as follows: the test plan should be formulated according to the structure of the programmable logic unit (Versa Tile) inside the SOPC device. The SOPC device mentioned in the patent is produced by Actel, and the basic structure of the programmable logic unit inside the device is named Versa Tile (as shown in the figure). Figure 1 As shown in the figure, since there are many programmable logic units inside the SOPC device, and the programmable I / O ports of the device are limited, it is impossible to cover all resources with a single programming. Therefore, a "divide and conquer" test method is adopted for testing. The "divide and conquer" test method is used to achieve multiple configurations and tests of the internal programmable logic units. During the implementation process, the software follows the general principle of "development environment design-functional simulation-converting functional simulation results into test graphic vectors-debugging test programs". During the implementation process, the software development environment needs to be designed first, and then functional simulation is performed on the ModelSim software. After the test graphic vector is generated, it is pre-processed accordingly. Then, during the test process, the test graphic vector is called by the test machine to determine the input and output logic vectors of the corresponding pins in each clock cycle. Finally, the device is tested by applying stimulation through the test equipment (ATE).

[0122] Furthermore, step five is a functional test solution for the embedded storage RAM of the SOPC device to be tested. Since the storage resources inside the memory are very flexible, a flexible configuration solution can be adopted. Considering the limited number of programmable I / Os, the resources of the internal storage RAM cannot be fully covered. Therefore, the adopted test strategy intends to program all memories as dual-port RAMs that share addresses and data, and cooperate with the chip select terminal to control which memory data is output to the I / O port; through this test project, full resource testing of the internal storage RAM module is achieved.

[0123] Furthermore, step six is ​​to formulate a functional test plan for the programmable I / O of the SOPC device to be tested. The test plan should be formulated according to the working principle of the programmable I / O port. Since the programmable I / O port of ACTEL supports two working modes of 2.5V / 3.3V, it needs to be examined separately in the test. ACTEL's SOPC device has two buffers, three-state and bidirectional control terminals. During the test, the programmable I / O port is configured through the LiberoSoC software. Once the configuration is successful, the programmable I / O port is configured as a buffer with a bidirectional function, and then the corresponding download file is downloaded to the inside of the SOPC device. The test project of the programmable I / O port is simpler than other test projects, and there is no need to simulate the test project. During the test, the programmable I / O port can be directly functionally verified by writing a test graphic vector.

[0124] Furthermore, in step seven, the phase-locked loop PLL test scheme of the SOPC device to be tested is set according to the phase-locked loop PLL structure of the SOPC device, by setting the initial cycle, setting the relevant parameters of the clock management unit (CMT) with the phase-locked loop PLL structure, forming a corresponding IP core, and downloading it into the device. Further, a simulation file of the phase-locked loop PLL is established, and the function of the PLL is simulated under the ModelSim simulation software. The simulation form can be selected as functional simulation (pre-simulation) or timing simulation (post-simulation). Either of the two simulation forms can be selected. The simulated file is further processed to form a test graphic vector for later functional verification of the PLL, so as to realize the examination of the frequency division, frequency multiplication, phase shift, time shift and other functions of the phase-locked loop PLL.

[0125] Furthermore, in step eight, the test plan for the microcontroller subsystem MSS adopts a "divide and conquer" test strategy. The MSS is divided into the Cortex-M3 core, I 2C bus, SPI bus, UART bus, and programmable analog resources, a total of 5 functional sub-modules. During the testing process, each functional sub-module is first pre-configured in the LiberoSoC software environment to generate an IP core. During the testing process, it is planned to call the Cortex-M3 core to access each functional sub-module. Furthermore, the test program is written and compiled under the corresponding functional sub-module to implement functional testing of each functional sub-module. Furthermore, the test results of each functional sub-module are summarized to implement the testing of the microcontroller subsystem MSS resources.

[0126] Further, the preprocessing in step 10 specifically refers to preprocessing the simulation graphics generated after compilation using ModelSim simulation software. The purpose of preprocessing is to filter out irregular graphics, thereby filtering out clutter graphics such as burrs and spikes to a large extent, making the simulation graphics smoother and closer to the actual situation.

[0127] Furthermore, in step 10, the programmable logic unit test source program is written and the simulation file is established. The method is as follows: according to the written programmable logic unit test project, a simulation file is established and a simulation is performed in the ModelSim software environment. The simulation results are sorted according to the graphic vector file format recognizable by the test system, and a test graphic vector is generated for the test program. The writing process of the test source program is as follows: Fig.11 As shown, the simulation file is processed as follows Fig.13 shown.

[0128] The SOPC device testing method of the present invention realizes the testing of the internal resources of the SOPC device produced by ACTE1 through the combination of software and hardware. Its beneficial effects are as follows: (1) The realization of this technology supplements the research on the testing technology of complex devices, accumulates relevant experience and the technical research foundation for similar devices; (2) The testing method formed in the research process can be used for the testing of other functional unit modules inside the device and the research on the testing methods of other similar devices, and the formed testing method has good portability.

[0129] The SOPC devices produced by ACTEL contain a large number of embedded storage RAM modules. For example, for a RAM memory containing multiple large capacities, it is easily limited by the number of I / Os, and it is impossible to connect all RAM modules at the same time for testing. Therefore, during testing, the present invention uses software development tools to connect the embedded storage RAM modules in parallel, and then preloads the configured RAM with data. Such a design can write the same content to all parallel memories at the same time when writing to one memory, but it is necessary to design a chip select control terminal to determine which RAM content is output to the I / O port during content verification. This test method can effectively solve the problem of difficult testing of large-capacity storage RAM, and at the same time improve the efficiency of the test.

[0130] In addition, through the study of ACTEL's SOPC device testing methods, the quality and reliability assurance capabilities for more complex devices have been improved, and the benefits are implicit. In addition, the relevant technologies will continue to be expanded in the future to form a draft SOPC device testing specification. The draft can be used to standardize subsequent SOPC device development, and its benefits are long-term.

[0131] In order to have a further understanding of the present invention, program development is carried out for Actel's SOPC device, and the test method of the SOPC device model A2F500M3G-FGG256I is used as an example to illustrate. The formed research theory and test method can be compatible with the test of internal resources of the same series models A2F060TQ144, A2F060CS288, A2F060FG256, A2F200PQ208, A2F200CS288, A2F200FG256, A2F200FG484, A2F500PQ208, and A2F500CS288. At the same time, Actel's software development tool for SOPC devices is LiberoSoC, which has a mutual reference significance for the IP core generation method of the key configuration unit module inside the SOPC device. The software configuration method formed in this invention patent can cover all SOPC devices produced by Actel. The following further describes the SOPC device model A2F500M3G-FGG256I as an example.

[0132] 1. Statistical resources

[0133] The A2F500M3G-FGG256I device is an industrial-grade SOPC device using BGA packaging technology. It integrates programmable logic resources VersaTiles, programmable I / O ports, embedded storage modules RAM, phase-locked loop PLL and microcontroller subsystem MSS. The statistical resource results of each functional submodule are as follows:

[0134] ① Programmable logic resources Versa Tiles: By calling the LiberoSoC software and verifying the device's technical manual, the SOPC device model A2F500M3G-FGG256I contains 11,520 programmable logic units VersaTiles;

[0135] ②Programmable I / O ports: The maximum number of programmable I / O ports for users inside the A2F500M3G-FGG256I SOPC device is 117, including 24 analog input programmable I / O ports, 2 analog output programmable I / O ports, 25 programmable I / O ports of the microcontroller subsystem MSS resources, and 66 programmable I / O ports of FPGA resources;

[0136] ③Embedded storage module RAM: A2F500M3G-FGG256I SOPC device has 24 memory blocks (RAM) embedded inside, and the capacity of each memory block is 4608 bits;

[0137] ④ Phase-locked loop PLL: The device A2F500M3G-FGG256I has a phase-locked loop PLL module inside;

[0138] ⑤ Microcontroller subsystem MSS: The microcontroller subsystem MSS has an embedded Cortex-M3 processor, I 2 C synchronous serial bus, SPI serial peripheral bus, UART universal asynchronous receiver and transmitter bus and other key modules;

[0139] (II) Allocate resources

[0140] ①VersaTile

[0141] The programmable logic unit Versa Tile embedded in ACTEL's SOPC device is the basic unit for realizing user logic functions. Different models of devices contain different numbers of programmable logic units VersaTile, but they all have the same structure. Since the number of programmable logic units VersaTile inside the device is much larger than the external I / O port, a test project needs to be designed to "connect in series" these logic units to form a one-dimensional array for testing. At the same time, since multiple series connections are required, in order to facilitate observation of whether the output results are correct, the output and input of the logic unit need to have a fixed logical relationship, such as Y=A or Y=! A. For example, Figure 2 As shown, the smallest structure of this array is called a programmable logic unit VersaTile.

[0142] The structure of the internal programmable logic unit VersaTile of the device A2F500M3G-FGG256I is as follows Figure 1As shown in the figure, each programmable logic unit has 3 input terminals (each input terminal can be inverted) and 1 output terminal. Therefore, each programmable logic unit Versa Tile can realize a 3-input 1-output logic circuit, or it can be designed as a trigger or latch with clear and reset functions. Based on this feature of the device, in the process of writing the test program, it was decided to design the smallest logic unit Versa Tile as a trigger with a clear function. At the same time, in order to reduce the test time, the trigger can be designed as a multi-way parallel trigger, and these smallest units can be cascaded multiple times to achieve full occupancy of multiple programmable logic units Versa Tiles (exemplary explanation as shown in Figure 7 In the LiberoSoC development software tool, the configuration results of the programmable logic resource Versa Tiles are as follows: Figure 4 shown.

[0143] ②Programmable I / O port

[0144] To meet the needs of complex systems, SOPC devices provide a large number of programmable I / O port resources. Each I / O pin can be programmed as an input, output, or bidirectional pin. Different types of SOPC devices produced by ACTEL have different numbers of programmable I / O ports. The programmable I / O port schematic diagram corresponding to the SOPC device model A2F500M3G-FGG256I is shown in the figure. Fig.23 This type of SOPC device has 66 programmable I / O ports, which are later configured as two bidirectional buffers with three-state control and bidirectional control terminals in the test project.

[0145] By configuring the programmable I / O port of the SOPC device, the corresponding IP core is generated after compiling in the LiberoSoC software development environment. The result of compiling the IP core of the programmable I / O port is as follows: Fig.21 As shown in the figure, in this test project, a total of 66 programmable I / O pins are occupied. The official technical manual of this model device stipulates that the number of programmable I / O pins is 66. Therefore, by comparing the two, the test resource ratio of the programmable I / O port is 100%, which means that 100% of the programmable I / O port tests can be implemented on the device.

[0146] ③Embedded memory RAM

[0147] A2F500M3G-FGG256I SOPC device provides users with a rich set of embedded storage units, and has a flexible programming method, which can realize dual-channel SRAM, FIFO and other functions, and realize synchronous or asynchronous read and write mode. If all functions are fully tested, multiple programming will be performed, and the test time is long. The test of the storage module is to test the quality of the storage unit. Therefore, it is planned to test the embedded memory RAM by programming it as a memory with only one working mode.

[0148] Taking all the above factors into consideration, it is planned to use the LiberoSoC development tool to design a dual-port memory with a size of 4096 bits × 9, and perform multiple solidification during the configuration process. Through the design, the full occupancy of the 24 memory modules embedded in the A2F500M3G-FGG256I chip is achieved. Fig. 22 This is the result of compiling the IP core of the internal storage RAM module under the LiberoSoC software development tool. From the figure, we can see that theoretically, the number of RAM modules of the SOPC device model A2F500M3G-FGG256I is 24, and the number of occupied RAM modules after configuration is also 24, which means that through this configuration, 100% of the embedded storage RAM modules are occupied.

[0149] ④ Phase-locked loop (PLL)

[0150] The internal phase-locked loop (PLL) module of the A2F500M3G-FGG256I SOPC device is nested in the clock management unit CCCS. During the configuration process, different clock cycles are input into the clock management unit, and the input and output pins of the phase-locked loop (PLL) of the device are configured at the same time, thereby realizing the frequency division and frequency multiplication function test of the phase-locked loop (PLL). Figure 6 As shown, it mainly includes the clock input pin CLKIN, clock output pins CLKOUT0, CLKOUT1, CLKOUT2, CLKOUT3, reset pin RST and latch pin LOCKED, etc. In the configuration process of the phase-locked loop PLL, by inputting the clock cycle f at the input pin CLKIN, after configuration, a clock frequency division signal f / 2 or a clock frequency multiplication signal 2f is generated at the CLKOUT0 pin, and then the generated clock signal is compared with the expected generated clock waveform, so as to realize the corresponding functional verification of the clock circuit containing the phase-locked loop PLL.

[0151] ⑤Microcontroller subsystem MSS

[0152] The microcontroller subsystem MSS in this SOPC device integrates the Cortex-M3 core, I 2C bus interface, SPI bus interface, UART bus interface and other functional sub-modules, such as Fig.17 shown.

[0153] The microcontroller subsystem MSS uses the Cortex-M3 core as the research core. The Cortex-M3 core is called to access each functional submodule, and then the corresponding functional submodule is tested. For example, the FLASH and SRAM submodules focus on verifying the storage function of these submodules; for I 2 C bus, SPI bus, UART bus and other units. During the verification process, the bus interface function is used to verify the functions of writing, transmitting and reading data on the bus. It should be emphasized that the microcontroller subsystem MSS of model A2F500M3G-FGG256I integrates two I 2 C bus interface and 2 UART bus interfaces. 2 C bus interface, need to design an I 2 C interface to send and receive data, in order to achieve the test system to I 2 C interface to send data, and also need to set up 2 general programmable I / O ports as I 2 C is the control port for receiving and sending data, and 1 general programmable I / O port is used as the judgment output whether the data reception is correct. If the received data is correct, it outputs a high level, otherwise it outputs a low level; for the UART bus interface, it is necessary to design a UART bus interface. In order to achieve the control of the test system on the data sending and receiving of the UART bus interface, it is necessary to continue to set up 2 general programmable I / O ports as I 2 C is the control port for sending and receiving data, and a general programmable I / O port is used as the judgment output whether the data reception is correct. If the received data is correct, it outputs a high level, otherwise it outputs a low level.

[0154] During the configuration process, the Cortex-M3 core is first configured using the LiberoSoC software, and then the layout and routing are compiled and integrated in the software development tool to generate the IP core and burnable files. The layout and routing results are downloaded to the SOPC device under test through FLASHPRO4.

[0155] (III) Compilation resources

[0156] After counting resources and configuring the corresponding resources in the early stage, an IP core that can be downloaded to the SOPC device is generated. Then the test project is written in Verilog HDL language and compiled in the LiberoSoC development environment. The compilation result is shown in the figure below. Figure 4 It is the result diagram after further compilation after the internal programmable logic resource Versa Tiles is configured to generate the IP core; Fig.21 It is the result diagram after further compiling the generated IP core for the internal programmable I / O port configuration of the SOPC device; Fig. 22 This is the result diagram after compiling the internal storage RAM; Figure 6 It is a diagram for configuring and designing a phase-locked loop (PLL).

[0157] (IV) Download resources

[0158] The SOPC devices produced by ACTEL integrate two major mainstream resources, namely FPGA resources and microcontroller subsystem MSS resources. In the process of downloading resources, the FPGA resources need to use the J-LINK downloader to download the test project files compiled successfully in the software environment to the program memory inside the SOPC device to be tested. At this time, the SOPC device under test becomes a logic device with frequency change function; the microcontroller subsystem MSS resources need to use the FLASHPRO4 downloader to download the test project files compiled successfully in the software environment to the program memory inside the SOPC device to be tested. At this time, the SOPC device under test also becomes a logic device with frequency change function. During the download process, attention should be paid to the power-on and power-off requirements of the device, and attention should be paid to distinguishing the inconsistency between the FPGA voltage level and the ARM voltage level required for testing.

[0159] (V) Testing resources

[0160] like Figure 5 As shown in the figure, testing resources is the last step of the entire SOPC device. In the early stage, the process of counting resources, configuring resources, compiling resources, and downloading resources has been carried out. In the statistical resource part, the testable resources inside the SOPC device to be tested have been counted in detail. Then, according to the compatible development software of the device, the internal resources are configured through the development tool. After the configuration is successful, the IP core that implements the functional module is generated; further, different test plans are determined according to the different resources to be tested. For the resources of the SOPC device, the functional test of the resources to be tested is realized through the Verilog HDL hardware description language in the LiberoSoC environment. For the core resources of the SOPC device, the core resources must first be called and accessed through the Verilog HDL hardware language, and then different test plans are formulated according to the different functional sub-modules embedded in the core structure.

[0161] Furthermore, after the test program is written and compiled in Verilog HDL, the logic function implemented by it is simulated using ModelSim software. The type of simulation is not limited to one, and functional simulation (pre-simulation) or timing simulation (post-simulation) can be selected. After determining to select a simulation form, the simulation result is then processed and converted into a later test graphic vector. During the test process, different IP cores are first downloaded into the device, and then the corresponding test software is started in the test machine. Further, according to the different resources to be tested, the corresponding test graphic vectors are loaded at different voltage levels according to the configuration program written in the early stage under the software, and further, the functional test of each functional sub-module of the device is realized by applying test excitation under the test software.

[0162] In summary, the present invention provides a test method for ACTEL SOPC devices, which improves the efficiency of SOPC device testing and ensures a high test fault coverage by counting the internal resources of the SOPC device by module, configuring the internal resources by module, writing and compiling the test program, and performing functional testing. Compared with the prior art, the technical solution of the present invention can solve the technical problem of the lack of a test method for ACTEL SOPC devices in the prior art.

Claims

1. A test method for ACTEL's SOPC device. It is characterized in that The testing method of the SOPC device comprises: According to the overall architecture of the SOPC device, the internal resources of the SOPC device are counted by module; Perform resource configuration on the internal resources of the SOPC device according to modules and generate corresponding configuration files; Writing and compiling a test program for the SOPC device by module according to the configuration file to generate a corresponding test engineering file; Download the internal resources of the SOPC device and the corresponding test engineering files; The internal resources of the SOPC device are functionally tested by module according to the test engineering file.

2. The method for testing a SOPC device according to claim 1, It is characterized in that ACTEL's SOPC device includes FPGA resources and microcontroller subsystem MSS resources. The FPGA resources include programmable logic resources VersaTiles composed of multiple inverter structures, phase-locked loops PLL, programmable I / O ports and embedded storage modules RAM; the microcontroller subsystem MSS resources include Cortex-M3 core processor, I 2 C bus, SPI bus and UART bus submodules.

3. The method for testing a SOPC device according to claim 1 or 2, It is characterized in that The "divide and conquer method" is adopted to configure the internal resources of the SOPC device according to modules, write and compile the test program, and perform functional testing.

4. The method for testing a SOPC device according to claim 1, It is characterized in that The internal resources of the SOPC device are configured according to modules using LiberoSoC software, a software development tool of ACTEL Company.

5. The method for testing a SOPC device according to claim 2, It is characterized in that When configuring the programmable logic resources VersaTiles, the programmable logic unit structure is designed by controlling the internal programming switches, and a plurality of designed programmable logic units VersaTiles are cascaded and configured into a test chain.

6. The method for testing a SOPC device according to claim 1, It is characterized in that The FPGA resources are downloaded using the J-LINK download tool, and the microcontroller subsystem MSS resources are downloaded using the FLASHPRO4 download tool.

7. The method for testing a SOPC device according to claim 1, It is characterized in that The writing and compilation of the test program specifically includes: writing the test program of the corresponding functional module in the software interface and compiling it to form the corresponding downloadable file, and then simulating it in the ModelSim software, preprocessing the formed simulation file, and converting it into the corresponding test graphic vector in the device logic function test process.

8. The method for testing a SOPC device according to claim 7, It is characterized in that The simulation can be in the form of functional simulation or timing simulation.

9. The method for testing a SOPC device according to claim 1, It is characterized in that When the embedded memory module RAM is functionally tested, all memories are connected in parallel and programmed as dual-port RAMs that share addresses and data, and the chip select pins are used to further control the corresponding relationship between the memory data output and the programmable I / O port.