A video module verification method and verification system
By migrating the verification of the video module from the IP module level to the SOC system level, and using the DDR module and test cases to configure the excitation signals, the problem of low verification efficiency in the existing technology is solved, and efficient and fast verification at the SOC system level is achieved.
Patent Information
- Application Number
- CN202111048919.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-09-08
AI Technical Summary
The existing technology cannot quickly converge the verification of video modules in the IP module-level verification environment provided by third parties. Especially when the chip scale continues to expand and verification personnel are limited, it is difficult to achieve rapid verification at the SOC system level.
Migrate the verification of the video module from the IP module level to the SOC system level. By obtaining the test case configuration excitation signal, writing it into the DDR module, obtaining the end-of-run signal and comparing the output data with the standard value, the SOC system-level verification of the video module is achieved.
Efficient and fast verification of video modules at the SOC system level is achieved, and the convergence efficiency and accuracy of verification are improved.
Smart Images

Figure CN113766216B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of video modules, and in particular to a verification method and a verification system for a video module. Background Art
[0002] At present, the verification of video modules is usually carried out at the IP module level, and the IP module level verification environment is provided by a third party. The third-party IP module level verification environment includes UVM randomization verification environment, SV language verification environment, pseudo-instructions, vector language verification environment, etc.
[0003] With the continuous development of process technology and application fields, the scale of chips continues to expand, and there are more and more chip systems and modules. However, the number of verification personnel is limited. Verification of video modules in the IP module-level verification environment provided by a third party cannot achieve rapid convergence of verification of each module on the SOC. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a verification method and verification system for a video module, which transplants the verification of the video module of the system on chip from the IP module level verification environment to the SOC system level, so as to quickly converge the verification of each module on the system on chip.
[0005] An embodiment of the present application provides a method for verifying a video module, wherein the video module is a functional module of a system on a chip;
[0006] The verification method includes:
[0007] Obtain the test case and configure the stimulus signal required to verify the video module according to the test case; the test case is written according to the characteristics of the video module to be verified, and the stimulus signal includes the original data of the video code stream and the expected standard value;
[0008] Write the original data into the DDR module of the system on chip and write the corresponding address in the DDR module, which is accessed by the video module;
[0009] Obtain a signal indicating that the video module has finished running, and write the output data of the video module into the DDR module;
[0010] The output data is compared with the standard value, and the comparison result is used as the verification result.
[0011] In the above technical solution, the stimulus signal configured according to the test case includes the original data and the corresponding standard value. The video module accesses the address where the original data is written by the DDR module, and then the original data starts to run in the video module until the video module runs to the end, and the output data of the video module is compared with the standard value to obtain the verification result. This verification method realizes the verification of the video module at the SOC system level, and has the advantages of efficient and fast convergence of verification at the SOC system level.
[0012] In some optional implementations, the video module includes a decode module or an encoder module; the characteristics of the decode module or the encoder module to be verified include at least one of the following:
[0013] Run multi-frame data with 720P data size and H264 data format;
[0014] Run multi-frame data at 720P data size and H265 data format;
[0015] Run multi-frame data at 1080P data size and H264 data format;
[0016] Run multi-frame data at 1080P data size and H265 data format;
[0017] Run multi-frame data across 4G addresses and in H264 data format;
[0018] Run multiple frames of data with a small size of 177x144 and H264 data format.
[0019] In some optional implementations, the video module includes a jpeg decoding module or a jpeg encoding module; the characteristics of the jpeg decoding module or the jpeg encoding module to be verified include at least one of the following:
[0020] Test pattern with 4K data size and NV12 data format;
[0021] Test multiple data frames with 512x512 data size and NV12 data format.
[0022] In some optional implementations, before writing the original data into the DDR module of the system on chip, the method further includes:
[0023] Initialize the system on chip.
[0024] In some optional implementations, initializing the system on chip includes:
[0025] Initialize the system clock of the video module;
[0026] Initialize the system reset of the video module;
[0027] Initializes the system DDR controller of the video module.
[0028] In some optional implementations, the original data is written into the DDR module of the system on chip, and the corresponding address is written through the DDR backdoor module. After the address is accessed by the video module, the following is also included:
[0029] Initialize the video module.
[0030] In some optional implementations, the original data includes multiple data files, which are written from the DDR backdoor module to different addresses in the DDR module.
[0031] An embodiment of the present application provides a verification system for a video module, wherein the video module is a functional module of a system on a chip, and the video module includes an AXI component;
[0032] The verification system includes:
[0033] An excitation signal generator is used to obtain a test case and configure an excitation signal required for verifying the video module according to the test case; wherein the excitation signal includes the original data of the video code stream and the expected standard value;
[0034] A DDR module of the system on chip, which is used to connect the AXI component; receive the original data and write it to the corresponding address, which is accessed by the video module; obtain a signal indicating the end of the operation of the video module (preferably an interrupt message), and receive the output data of the video module;
[0035] The comparison module is used to receive the standard value, compare the output data with the standard value, and use the comparison result as the verification result.
[0036] The verification system can be used to verify the video module at the SOC system level, and has the advantages of efficient and fast convergence of verification at the SOC system level.
[0037] In some optional embodiments, the method further comprises:
[0038] The bottom function module is used to store the bottom functions for performing related operations on the serial port on the bus, and the bottom functions for the related operations include sending the standard value to the comparison module and sending the original data to the DDR backdoor module;
[0039] The DDR backdoor module is used to write the original data into the DDR module of the system on chip and write the corresponding address in the DDR module, and the address is accessed by the video module.
[0040] In some optional implementations, the video module further includes an APB component, and the verification system further includes:
[0041] The driver module is used to connect with the APB component to call the underlying function and use the CPU module to perform related operations on the video module;
[0042] The CPU module is used for register configuration, loop configuration or polling operation of the video module.
[0043] In some optional implementations, the CPU module adopts the BFM behavior level model, and the drive module adopts the SV drive.
[0044] In some optional implementations, the verification system further includes:
[0045] A clock component of the system on chip, which is used to provide a system clock;
[0046] The reset component of the system on chip is used to provide system reset. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flowchart of a method for verifying a video module provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of the structure of a video module verification system provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of the structure of another video module verification system provided in an embodiment of the present application.
[0051] Icons: 1-system on chip, 2-video module, 21-AXI component, 22-APB component, 3-DDR module, 4-comparison module, 5-stimulus signal generator, 6-DDR backdoor module, 7-low-level function module, 8-driver module, 9-CPU module, 10-clock component, 11-reset component. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0053] The core of the present invention is to provide a video module verification method, which transplants the verification of the video module to the SOC system level for verification, and has the advantages of efficient and rapid convergence of verification at the SOC system level; another core of the present invention is to provide a video module verification system.
[0054] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. For the convenience of description, the verification method of the video module provided in the embodiment of the present application is first described in detail below:
[0055] Please refer to Figure 1 , Figure 1 A flowchart of a method for verifying a video module provided in an embodiment of the present application, wherein the video module is a functional module of a system on a chip; the verification method includes:
[0056] Step S100, obtaining a test case, and configuring an excitation signal required for verifying the video module according to the test case; the test case is compiled according to the characteristics of the video module to be verified, and the excitation signal includes the original data of the video code stream and the expected standard value;
[0057] In step S100, obtaining the test case includes:
[0058] Run the IP module level test case package at the IP module level, including each test case. For mature third-party IP, the test case can pass at one time. If the protocol is relatively new and there are fewer third-party IP users, the test case of the third-party IP may fail to run or the coverage may not meet the requirements. At this time, it is necessary to interact with the third party repeatedly to confirm and upgrade.
[0059] For the video module, a module-level verification environment with pseudo-instructions is used for IP module-level verification. The test cases are written in a non-standard language. At this time, the meaning of each instruction identifier must be sorted out.
[0060] Analyze the verification platform part at the IP module level. The verification platform includes stimulus and check mechanisms. The stimulus part mainly includes configuration interface protocol components, system memory components, clock components, reset components, etc.
[0061] Regression is performed at the IP module level to ensure that the test cases pass and coverage converges. The test cases required for the SOC system level are selected at the IP module level. The selected test cases mainly include: covering all ports of the video module to ensure that the port coverage reaches 100%; covering interrupts; covering the access types of the system memory.
[0062] Transplant the test case pseudo instructions to the SOC system level. The pseudo instruction format is fixed at the IP module level and converted into SOC system-level general tasks using automated scripts.
[0063] Afterwards, the test case is input into the verification system of the video module, in which the verification system first obtains the corresponding stimulus signal according to the test case used at the SOC system level, and the stimulus signal includes the original data of the video code stream and the expected standard value.
[0064] Step S200, writing the original data into the DDR module of the system on chip, and writing the corresponding address into the DDR module, which is accessed by the video module;
[0065] In step S200, the DDR (Double Data Rate, double rate synchronous dynamic random access memory) module memory of the system on chip is used. The DDR module is a built-in memory inside the system on chip, which can ensure the real scene and performance of the video module running in the SOC system on chip, and is easy to use. The memory of the IP module-level verification platform is abandoned, and the pseudo-instructions of the backdoor data in the test case are converted into DDR backdoor pre-stored data instructions at the SOC system level. It is precisely because the DDR module is a part of the SOC system design, and the backdoor access task system of DDR is usually built-in, which is convenient for the verification process of the video module. Similarly, the CPU module configuration path of the SOC system on chip is used here, and the configuration components at the IP module level are abandoned to directly drive the configuration interface of the video module.
[0066] Step S300, obtaining a signal indicating that the video module has finished running, and writing the output data of the video module into the DDR module;
[0067] In step S300, when the video module ends running, the original data will obtain an interrupt signal (ie, a signal indicating that the video module ends running) according to the interrupt agent. At this time, the output of the video module is automatically written into the DDR module.
[0068] Step S400: Compare the output data with the standard value, and use the comparison result as the verification result.
[0069] The verification method of the embodiment of the present application includes original data and corresponding standard values according to the stimulus signal configured by the test case. The video module writes the address of the original data by accessing the DDR module, and then the original data starts to run in the video module until the video module runs to the end, and the output data of the video module is compared with the standard value to obtain the verification result. This verification method realizes the verification of the video module at the SOC system level, and has the advantages of efficient and fast convergence of verification at the SOC system level.
[0070] In some optional implementations, the video module includes a decode module and an encode module, for example, the video module includes vc8000d and vc8000e. The characteristics to be verified for the decode module and the encode module are similar, including: running multiple frames of data with 720P data size and H264 data format; running multiple frames of data with 720P data size and H265 data format; running multiple frames of data with 1080P data size and H264 data format; running multiple frames of data with 1080P data size and H265 data format; running multiple frames of data with cross-4G address and H264 data format; running multiple frames of data with 177x144 small size picture and H264 data format.
[0071] In some optional implementations, the video module includes a jpeg decoding module or a jpeg encoding module, for example, the video module includes vc8000dj and vc8000ej. The jpeg decoding module and the jpeg encoding module have similar characteristics to be verified, including: testing patterns with a 4K data size and NV12 data format; testing multiple data frames with a 512x512 data size and NV12 data format.
[0072] In some optional implementations, before writing the original data into the DDR module of the system on chip, the process further includes: initializing the system on chip.
[0073] In some optional implementations, initializing the on-chip system includes: initializing a system clock of the video module; initializing a system reset of the video module; and initializing a system DDR controller within the video module.
[0074] In the embodiment of the present application, the performance of the video module operation is analyzed, and the performance indicators at the SOC system level are meaningful. On the one hand, a real clock is used, and on the other hand, real DDR storage is used, which can ensure the authenticity of the SOC system-level delay and bandwidth.
[0075] In some optional implementations, the original data is written into the DDR module of the system on chip, and the corresponding address is written through the DDR backdoor module. After the address is accessed by the video module, the video module is initialized.
[0076] In some optional implementations, the original data includes multiple data files, which are written from the DDR backdoor module to different addresses in the DDR module.
[0077] Please refer to Figure 2 , Figure 2 A structural diagram of a verification system for a video module 2 provided in an embodiment of the present application, wherein the video module 2 is a functional module of the system on chip 1, and the video module 2 includes an AXI component; the verification system includes an excitation signal generator 5, a DDR module 3 of the system on chip 1, and a comparison module 4.
[0078] Among them, the excitation signal generator 5 is used to obtain the test case, and the excitation signal required for verifying the video module 2 according to the test case configuration; wherein the excitation signal includes the original data of the video code stream and the expected standard value. The DDR module 3 of the system on chip 1 is used to connect the AXI component 21, AXI is a high-speed AMBA bus interface for high-bandwidth data transmission; receive the original data, and write the corresponding address, the address is accessed by the video module 2; obtain the signal indicating the end of the video module operation (preferably an interrupt message), and receive the output data of the video module 2. The comparison module 4 is used to receive the standard value, and compare the output data with the standard value, and use the comparison result as the verification result.
[0079] In some optional implementations, please refer to Figure 3 , Figure 3 Another verification system for a video module 2 provided in an embodiment of the present application further includes a bottom-level function module 7 and a DDR backdoor module 6.
[0080] The bottom layer function module 7 is used to store the bottom layer functions for performing relevant operations on the serial port on the bus, and the bottom layer functions for the relevant operations include sending the standard value to the comparison module and sending the original data to the DDR backdoor module 6. The DDR backdoor module 6 is used to write the original data into the DDR module 3 of the system on chip 1, and write the corresponding address in the DDR module 3, and the address is accessed by the video module 2.
[0081] In some optional implementations, the video module 2 further includes an APB component 22, where APB is a low-speed bus interface, a type of AMBA bus, and is typically used for module configuration. The verification system of the present application embodiment further includes:
[0082] A driver module 8, which is used to connect with the APB component 22, to call the underlying function and use the CPU module 9 to perform related operations on the video module 2;
[0083] The CPU module 9 is used for register configuration, loop configuration or polling operation of the video module 2 .
[0084] In some optional implementations, the CPU module 9 adopts a BFM (Bus Function Model) behavior model, and the driver module 8 adopts an SV driver. The SV driver calls the underlying function of the APB protocol to complete the driver function layout of the configuration IP. The BFM behavior model is a system-level simulation verification method. Verification based on the BFM behavior model is a typical transaction-level verification with a reasonable definition. Using the BFM behavior model can improve the verification efficiency of the video module and shorten the product cycle.
[0085] In some optional implementations, the verification system of the embodiment of the present application further includes a clock component 10 and a reset component 11 of the system on chip 1. The clock component 10 is used to provide a system clock, and the reset component 11 is used to provide a system reset.
[0086] In some optional real-time modes, the verification system of the video module 2 also includes a performance evaluation component for performing performance evaluation on the encoding or decoding results after encoding or decoding by the video module 2, such as whether the video can be played, whether the image is displayed normally, etc.
[0087] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0088] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0089] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0090] In this article, an IP module refers to a module that is configured to implement a certain function.
[0091] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0092] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for verifying a video module, characterized in that: The video module is a functional module of the system on chip; the video module includes an AXI component and an APB component; the DDR module of the system on chip is connected to the AXI component, and the APB component is connected to the driver module; The verification method comprises: Acquire a test case, and configure an excitation signal required for verifying the video module according to the test case configuration; the test case is compiled according to the characteristics of the video module to be verified, and the excitation signal includes the original data of the video code stream and the expected standard value; Writing the original data into the DDR module of the system on chip and writing a corresponding address in the DDR module, the address being accessed by the video module; Acquire a signal indicating that the operation of the video module has ended, and write the output data of the video module into the DDR module; Comparing the output data with the standard value, and taking the comparison result as the verification result; The verification method further includes: Using the driver module to call the underlying function and using the CPU module of the system on chip to perform relevant operations on the video module; The CPU module performs register configuration, loop configuration or polling operation on the video module; The verification method further includes: A clock component of the system on chip is used to provide a system clock; The reset component of the system on chip is utilized to provide system reset.
2. The verification method according to claim 1, characterized in that: The video module includes a decode module or an encoder module; the characteristics to be verified for the decode module or the encoder module include at least one of the following: Run multi-frame data with 720P data size and H264 data format; Run multi-frame data at 720P data size and H265 data format; Run multi-frame data at 1080P data size and H264 data format; Run multi-frame data at 1080P data size and H265 data format; Run multi-frame data across 4G addresses and in H264 data format; Run multiple frames of data with a small size of 177x144 and H264 data format.
3. The verification method according to claim 1, characterized in that: The video module includes a jpeg decoding module or a jpeg encoding module; the characteristics of the jpeg decoding module or the jpeg encoding module to be verified include at least one of the following: Test pattern with 4K data size and NV12 data format; Test multiple data frames with 512x512 data size and NV12 data format.
4. The verification method according to claim 1, characterized in that: The step of writing the original data into the DDR module of the system on chip and writing the corresponding address through the DDR backdoor module, after the address is accessed by the video module, further comprises: Initialize the video module.
5. The verification method according to claim 1, characterized in that: The original data includes a plurality of data files, which are respectively written into different addresses in the DDR module from the DDR backdoor module.
6. A video module verification system, characterized in that: The video module is a functional module of the system on chip, and the video module includes an AXI component; The verification system comprises: An excitation signal generator, which is used to obtain a test case and configure an excitation signal required for verifying the video module according to the test case; wherein the excitation signal includes the original data of the video code stream and the expected standard value; The DDR module of the system on chip is used to connect to the AXI component; receive raw data and write to a corresponding address, which is accessed by the video module; obtain a signal indicating that the video module has finished running, and receive output data of the video module; A comparison module, which is used to receive the standard value, compare the output data with the standard value, and use the comparison result as the verification result; The video module further includes an APB component, and the verification system further includes: A driver module, the driver module is connected to the APB component, and is used to call the underlying function and use the CPU module of the system on chip to perform relevant operations on the video module; A CPU module, which is used for register configuration, loop configuration or polling operation of the video module; The verification system further comprises: The clock component of the system on chip is used to provide a system clock; The reset component of the system on chip is used to provide system reset.
7. The verification system according to claim 6, characterized in that: Also includes: A bottom-level function module, used to store bottom-level functions for performing related operations on the serial port on the bus, wherein the bottom-level functions for performing related operations include sending a standard value to a comparison module and sending original data to a DDR backdoor module; A DDR backdoor module is used to write the original data into the DDR module of the system on chip and write a corresponding address in the DDR module, and the address is accessed by the video module.
8. The verification system according to claim 6, characterized in that: The CPU module adopts the BFM behavior level model, and the drive module adopts SV drive.
Citation Information
Patent Citations
Simulation test method and system of on-chip system
CN101344899A
Encoding / decoding chip based virtual verification method
CN105550445A
System-on-chip verification method and system
CN106980597A
System and method for verifying SOC chip
CN110865971A
Automated test vector generation for complicated video system verification
US20060126725A1
