Data verification method and device of audio and video protocol and FPGA (Field Programmable Gate Array) circuit
Through the communication between the FPGA circuit and the daughter card and the host, the straight-through path and the algorithm path are used to verify the audio and video protocol data, which solves the problem of cumbersome verification process in the existing technology, realizes the simultaneous verification of multiple algorithms and coding, and ensures the data authenticity and safety.
Patent Information
- Application Number
- CN202410656420.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Independent verification in existing audio and video protocol data verification methods makes the verification process cumbersome and complicated, and it is impossible to observe and analyze the real data flow, resulting in reduced verification reliability and security.
Through the communication connection between the FPGA circuit and the daughter card and the host, the straight-through path and algorithm path verification of software and hardware data are realized. Multiple coding verification modules and algorithm verification modules are used to perform interface conversion and verification of the data to be verified to ensure the integrity and integrity of the data. Authenticity.
It achieves comprehensive and accurate verification of multiple audio and video protocol data, ensures the reliability and security of verification results, and provides verification results that are closer to actual usage.
Smart Images

Figure CN118540254A
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio and video coding, and in particular to a data verification method, device and FPGA circuit for an audio and video protocol. Background Art
[0002] With the rapid development of Internet technology, audio and video content has become an indispensable part of people's daily life. The demand for high-definition and smooth experience continues to drive the growth of audio and video bandwidth. In this context, the advancement of audio and video coding technology provides strong support for meeting the ever-increasing bandwidth demand. Especially driven by artificial intelligence (AI) technology, the combination of audio and video coding technology and algorithms has not only greatly improved the compression efficiency of audio and video content, but also improved the transmission quality, enabling audio and video content to be better optimized under limited bandwidth conditions.
[0003] Audio and video coding technologies use a variety of algorithms to compress and encode data for storage and transmission. These algorithms may include different types of compression techniques, such as lossy compression and lossless compression, as well as various encoding schemes to represent audio and video data. When the coding technology becomes complex, it may make the data verification process more difficult. Specifically, as the number of algorithms increases, the encoding process becomes more complex, resulting in the verification process requiring understanding and correct application of all these rules.
[0004] In the prior art, data verification of audio and video protocols uses multiple algorithms to independently verify software and hardware. This is because different algorithms may verify different aspects of the data, such as integrity, authenticity, reliability, etc. However, the problem with this method is that when performing independent verification, it is impossible to observe and analyze the actual data flow of the video protocol to be verified, which reduces the reliability and security of data verification. Summary of the invention
[0005] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a data verification method, device and FPGA circuit for an audio and video protocol, so as to solve the problem that the verification process in the existing audio and video protocol data verification is cumbersome and complicated due to the use of independent verification, and the real data flow cannot be observed.
[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a data verification method for an audio and video protocol, the method is applied to an FPGA, the FPGA is communicatively connected with a first subcard and a second subcard, the first subcard is communicatively connected with a first host, and the second subcard is communicatively connected with a second host, the method comprises: receiving data to be verified from the first host through the first subcard; when the data to be verified is software verification data, sending the data to be verified to the second host through the second subcard, so that the second host performs a software data verification operation; when the data to be verified is hardware verification data, performing a hardware verification operation on the data to be verified to generate a hardware verification result, and sending the hardware verification result to the second host through the second subcard.
[0007] In some embodiments of the first aspect of the present application, the functions of the FPGA include a direct path module for transmitting the software verification data and an algorithm path module for performing hardware verification operations and transmitting the results of the hardware verification operations, wherein a plurality of connected coding verification modules and algorithm verification modules are arranged in the algorithm path.
[0008] In some embodiments of the first aspect of the present application, the process of performing a hardware verification operation includes passing the data to be verified through an algorithm path in a preset manner, and the process includes: performing an interface conversion operation on the data to be verified; selecting a corresponding coding verification module and / or algorithm verification module based on the current data to be verified, passing the current data to be verified after the interface conversion operation through the verification path, and using the selected coding verification modules and / or algorithm verification modules in turn to perform hardware verification operations.
[0009] In some embodiments of the first aspect of the present application, the process of performing an interface conversion operation on the data to be verified includes: transmitting the data to be verified received from the first daughter card through a data transmission protocol corresponding to the algorithm path module.
[0010] In some embodiments of the first aspect of the present application, the first subcard receives the data to be verified from the first host through the corresponding driver and USB device; the second subcard sends the data to be verified and / or the hardware verification result to the second host through the corresponding driver and USB device.
[0011] In some embodiments of the first aspect of the present application, the types of data to be verified include: H.264 compression algorithm verification, Scramble encoding verification and 8b / 10b encoding verification.
[0012] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a data verification system for an audio and video protocol, the system comprising a first host, a first subcard, an FPGA, a second subcard and a second host, the system comprising the following interaction process: the first host sends data to be verified to the FPGA through the first subcard; when the data to be verified is software verification data, the FPGA sends the data to be verified to the second host through the second subcard, so that the second host performs a software data verification operation; when the data to be verified is hardware verification data, the FPGA performs a hardware verification operation on the data to be verified to generate a hardware verification result, and the FPGA sends the hardware verification result to the second host through the second subcard.
[0013] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a data verification device for an audio and video protocol, including: a data receiving module: used to receive data to be verified from a first host through the first sub-card; a direct path module: used to send the data to be verified to the second host through the second sub-card when the data to be verified is software verification data, so as to enable the second host to perform a software data verification operation; an algorithm path module: used to perform a hardware verification operation on the data to be verified when the data to be verified is hardware verification data, so as to generate a hardware verification result, and send the hardware verification result to the second host through the second sub-card.
[0014] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides an FPGA circuit so that the FPGA circuit executes the data verification method of the audio and video protocol.
[0015] As described above, the present application relates to the field of audio and video coding, and in particular to a data verification method, device and FPGA circuit for an audio and video protocol. It has the following beneficial effects: The present invention provides a solution that can simultaneously verify audio and video protocol data of multiple different algorithms and encodings. It includes not only the verification of the previous software logic, but also the verification of the hardware logic. In addition, a real data stream is provided during the verification process to ensure that the verification results that are closest to the actual usage are obtained. The present invention can comprehensively and accurately verify audio and video protocol data containing various algorithms and encodings, thereby providing users with more reliable audio and video protocol data verification services. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flow chart showing an embodiment of a method for verifying data of an audio and video protocol of the present application is shown.
[0017] Figure 2 A schematic diagram showing the flow direction of data flow in FPGA in an embodiment of a data verification method for an audio and video protocol of the present application is shown.
[0018] Figure 3 A structural diagram of an embodiment of a data verification system for an audio and video protocol of the present application is shown.
[0019] Figure 4 A structural diagram of an embodiment of a data verification device for an audio and video protocol of the present application is shown. DETAILED DESCRIPTION
[0020] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0021] It should be noted that in the following description, with reference to the accompanying drawings, several embodiments of the present application are described in the accompanying drawings. It should be understood that other embodiments may also be used, and mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used here are only for describing specific embodiments and are not intended to limit the present application. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.
[0022] In this application, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "hold" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0023] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.
[0024] In order to solve the problems in the above-mentioned background technology, the present invention provides a data verification method, device and FPGA circuit of an audio and video protocol, aiming to solve the problem that the verification process is cumbersome and complicated due to the use of independent verification in the existing audio and video protocol data verification, and the real data flow cannot be observed. At the same time, in order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution in the embodiment of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the invention.
[0025] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0026] <1> FPGA circuit: A field-programmable gate array (FPGA) circuit is a reconfigurable integrated circuit that can be reprogrammed as needed to perform specific logic functions.
[0027] <2> Chip hardware verification: Chip hardware verification refers to verifying the correctness and functionality of chip design through simulation or actual testing.
[0028] <3> Chip early software verification: Chip early software verification is the use of software tools to verify the chip's functions and performance before the chip design is completed.
[0029] <4> Device daughter card: A device daughter card is an auxiliary card that plugs into a computer or other device to provide additional functionality or capabilities.
[0030] <5> Scramble coding: Scramble coding is a data coding technology used to confuse data during transmission to improve the security and reliability of data transmission.
[0031] <6> H.264 compression algorithm: H.264 is a video compression algorithm used to compress video data to reduce file size or improve transmission efficiency.
[0032] <7> 8b / 10b encoding: 8b / 10b encoding is a data encoding technique used to encode 8-bit data into 10-bit data for control and error detection during data transmission.
[0033] The embodiment of the present invention provides a data verification method for an audio and video protocol, a system for the data verification method for an audio and video protocol, and an FPGA circuit for implementing the data verification method for an audio and video protocol. As for the implementation of the data verification method for an audio and video protocol, the embodiment of the present invention will illustrate an exemplary implementation scenario of the data verification of the audio and video protocol.
[0034] It should be noted that the data verification method of the audio and video protocol provided by the present invention is applied to an FPGA circuit, wherein the FPGA circuit is connected to the first daughter card and the second daughter card in communication, the first daughter card is connected to the first host in communication, and the second daughter card is connected to the second host in communication. Figure 1 As shown, a flow chart of a data verification method of an audio and video protocol in an embodiment of the present invention is shown. The data verification method of the audio and video protocol in this embodiment mainly includes the following steps:
[0035] Step S11: receiving data to be verified from a first host via the first daughter card.
[0036] In one embodiment of the present invention, the FPGA circuit includes a direct path for transmitting the software verification data and an algorithm path for performing hardware verification operations and transmitting hardware verification operation results, wherein the algorithm path is provided with a plurality of connected coding verification modules and algorithm verification modules.
[0037] In one embodiment of the present invention, the first subcard receives the data to be verified from the first host through the corresponding driver and USB device; the second subcard sends the data to be verified and / or the hardware verification result to the second host through the corresponding driver and USB device.
[0038] In one embodiment of the present invention, the types of the first daughter card and the second daughter card include but are not limited to USB device daughter cards. The USB device daughter card is used to transmit and receive data from the host and is used in conjunction with the host driver. The USB can be a USB2 device or a USB3 device. The present invention does not limit the specific types of USB device daughter cards and is only used for explanation.
[0039] In one embodiment of the present invention, the first host and the second host are used to transmit and receive the data to be verified via USB, so that under the premise of ensuring the integrity of audio and video data processing, certain algorithms or codes can be hardware verified separately on the FPGA through the algorithm path of the FPGA. In particular, when the FPGA is in a direct path, the second host is also used to verify the software algorithm of the data to be verified received via USB, so that on the basis of simulating data transmission, the accuracy of the preliminary verification of the chip algorithm can be guaranteed during the chip design process, thereby improving the efficiency of the chip design and verification process.
[0040] Step S12: when the data to be verified is software verification data, the data to be verified is sent to the second host through the second daughter card, so as to enable the second host to perform a software data verification operation.
[0041] In one embodiment of the present invention, the process of executing a hardware verification operation includes passing the data to be verified through an algorithm path in a preset manner, and the process includes: performing an interface conversion operation on the data to be verified; selecting a corresponding coding verification module and / or algorithm verification module according to the current data to be verified, passing the current data to be verified after the interface conversion operation through the verification path, and using the selected coding verification modules and / or algorithm verification modules in turn to perform hardware verification operations.
[0042] Furthermore, the process of performing an interface conversion operation on the data to be verified includes: converting the data to be verified received from the first daughter card to perform data transmission via a data transmission protocol corresponding to the algorithm path module.
[0043] In one embodiment of the present invention, when the algorithm path is opened, audio and video protocol data to be verified is received from the first host via USB and input into the algorithm path for hardware algorithm coding verification, and the output verification result is sent again to the second host via USB, wherein the first host and the second host can be the same host or two different hosts.
[0044] Step S13: when the data to be verified is hardware verification data, a hardware verification operation is performed on the data to be verified to generate a hardware verification result, and the hardware verification result is sent to the second host through the second daughter card.
[0045] In an embodiment of the present invention, the types of data to be verified include but are not limited to: various video compression algorithms, such as H.264 compression algorithm, various video encryption and decryption compression algorithms, such as Scramble encoding, and 8b / 10b encoding verification.
[0046] In one embodiment of the present invention, the processing of audio and video protocol data usually involves a variety of algorithms and encodings. Based on the data verification method provided by the present invention, soft and hard collaborative processing can be selected in a targeted manner. Exemplarily, when verifying the H.264 compression algorithm, other audio and video algorithms, Scramble encoding, 8b / 10b encoding, etc. can be selected to be verified by software, and the correctness of the H.264 encoding hardware can be verified by the FPGA circuit alone. Another method is to gradually convert most algorithms and encodings to hardware implementations, while decoding is implemented by software. Or the encoding and decoding are completely implemented by hardware, and the software implements a variety of verification modes such as decompression algorithms and verification of the accuracy of the original data. It is worth noting that the above method is not only conducive to the iteration of audio and video algorithms and encodings during chip development, but also conducive to providing accurate data streams for the chip verification process. The data stream refers to data preparation from the first host, and the prepared data to be verified is sent to the FPGA circuit, and after passing through the direct path and algorithm path of the FPGA circuit, it is sent to the second host and all data parsed and verified by the second host.
[0047] like Figure 2 As shown, a schematic diagram of the data flow inside the PGFA circuit in one embodiment of the present invention is shown. The FPGA logic first performs data processing operations on the received data to be verified to realize signal interaction with the first daughter card. For example, data processing operations are performed according to different data bit widths, and the 32-bit data of the daughter card is converted into the required data bit width or multiple channels for transmission through a preset protocol. Subsequently, the received data to be verified is converted through an interface and converted into a standard protocol, wherein the protocol includes but is not limited to standard protocols such as AXI protocol, APB protocol, AHB protocol, etc., to facilitate the connection of algorithms or coding logic. The data after interface conversion passes through the coding verification module and the algorithm verification module once through a preset path, and the verification result is sent to the second host through a USB device after interface conversion and data processing again, so that the second host can parse the verification result. When the pass-through path is opened, the FPGA circuit sends the data after data processing directly to the second host for software verification.
[0048] like Figure 3As shown, a flow chart of the interaction process of a data verification system of an audio and video protocol in an embodiment of the present invention is shown. In this embodiment, the system includes a first host, a first subcard, an FPGA circuit, a second subcard and a second host, and the system includes the following interaction process: the first host sends the data to be verified to the FPGA through the first subcard; when the data to be verified is software verification data, the FPGA circuit sends the data to be verified to the second host through the second subcard to make the second host perform a software data verification operation; when the data to be verified is hardware verification data, the FPGA circuit performs a hardware verification operation on the data to be verified to generate a hardware verification result, and the FPGA circuit sends the hardware verification result to the second host through the second subcard.
[0049] It should be noted that: the data verification system for the audio and video protocol provided in the above embodiment only uses the division of the above program modules as an example when performing data verification of the audio and video protocol. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the system is divided into different program modules to complete all or part of the processing described above. In addition, the data verification system for the audio and video protocol provided in the above embodiment and the data verification method embodiment of the audio and video protocol belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0050] like Figure 4 As shown, a structural schematic diagram of a data verification device for an audio and video protocol in an embodiment of the present invention is shown.
[0051] In this embodiment, the data verification device 400 of the audio and video protocol includes:
[0052] The data receiving module 401 is configured to receive data to be verified from the first host via the first daughter card.
[0053] The software verification module 402 is configured to, when the data to be verified is software verification data, send the data to be verified to the second host through the second daughter card, so as to enable the second host to perform a software data verification operation.
[0054] The hardware verification module 403 is used for performing a hardware verification operation on the data to be verified to generate a hardware verification result when the data to be verified is hardware verification data, and sending the hardware verification result to the second host through the second daughter card.
[0055] It should be noted that: the data verification device for the audio and video protocol provided in the above embodiment only uses the division of the above program modules as an example when performing data verification of the audio and video protocol. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the data verification device for the audio and video protocol provided in the above embodiment and the data verification method embodiment of the audio and video protocol belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0056] In summary, the present application provides a data verification method, device and FPGA circuit for an audio and video protocol. The present invention provides a method for improving the data verification efficiency of an audio and video protocol, by transmitting data to be verified between hosts and setting a direct path for verifying software and an algorithm path for verifying hardware in an FPGA circuit, wherein a plurality of coding verification modules and algorithm verification modules are arranged in the algorithm path, thereby realizing simultaneous verification of a variety of different algorithms and encodings of audio and video protocol data, which includes not only verification of the previous software logic, but also verification of the hardware structure. In addition, a real data stream is also provided during the verification process to ensure that the verification result that is closest to the actual usage is obtained. The present invention can comprehensively and accurately verify audio and video protocol data containing various algorithms and encodings, thereby providing users with more reliable audio and video protocol data verification services. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0057] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A data verification method for an audio and video protocol, It is characterized in that The method is applied to an FPGA, the FPGA is connected to a first daughter card and a second daughter card in communication, the first daughter card is connected to a first host in communication, and the second daughter card is connected to a second host in communication, and the method includes: receiving data to be verified from the first host through the first daughter card; When the data to be verified is software verification data, sending the data to be verified to the second host through the second daughter card to enable the second host to perform a software data verification operation; When the data to be verified is hardware verification data, a hardware verification operation is performed on the data to be verified to generate a hardware verification result, and the hardware verification result is sent to the second host through the second daughter card.
2. The data verification method of the audio and video protocol according to claim 1, It is characterized in that The FPGA function includes a direct path module for transmitting the software verification data and an algorithm path module for performing hardware verification operations and transmitting hardware verification operation results, wherein the algorithm path is provided with a plurality of connected coding verification modules and algorithm verification modules.
3. The data verification method of the audio and video protocol according to claim 2, It is characterized in that The process of performing a hardware verification operation includes passing the data to be verified through the algorithm path module in a preset manner, and the process includes: Performing an interface conversion operation on the data to be verified received from the subcard; Select the corresponding coding verification module and / or algorithm verification module according to the current data to be verified, pass the current data to be verified after the interface conversion operation through the verification path, and use the selected coding verification module and / or algorithm verification module in turn to perform hardware verification operations.
4. The data verification method of the audio and video protocol according to claim 3, It is characterized in that The process of performing the interface conversion operation on the data to be verified includes: transmitting the data to be verified received from the first daughter card through a data transmission protocol corresponding to the algorithm path module.
5. The data verification method of the audio and video protocol according to claim 1, It is characterized in that The first subcard receives the data to be verified from the first host through the corresponding driver and USB device; the second subcard sends the data to be verified and / or the hardware verification result to the second host through the corresponding driver and USB device.
6. The data verification method of the audio and video protocol according to claim 1, It is characterized in that The types of data to be verified include: H.264 compression algorithm verification, Scramble coding verification and 8b / 10b coding verification.
7. A data verification system for audio and video protocols, It is characterized in that The system includes a first host, a first daughter card, an FPGA circuit, a second daughter card and a second host, and the system includes the following interaction process: The first host sends the data to be verified to the FPGA through the first daughter card; when the data to be verified is software verification data, the FPGA sends the data to be verified to the second host through the second daughter card to enable the second host to perform a software data verification operation; when the data to be verified is hardware verification data, the FPGA circuit performs a hardware verification operation on the data to be verified to generate a hardware verification result, and the FPGA sends the hardware verification result to the second host through the second daughter card.
8. A data verification device for an audio and video protocol, It is characterized in that include: A data receiving module: used for receiving data to be verified from the first host through the first daughter card; A direct path module: when the data to be verified is software verification data, sending the data to be verified to the second host through the second daughter card, so as to enable the second host to perform a software data verification operation; Algorithm path module: when the data to be verified is hardware verification data, perform a hardware verification operation on the data to be verified to generate a hardware verification result, and send the hardware verification result to the second host through the second daughter card.
9. An FPGA circuit, It is characterized in that Used to execute the data verification method of the audio and video protocol as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Parameter automated configuration verification platform and method for configurable processing core
CN106970879A
Verification system based on FPGA (Field Programmable Gate Array) and implementation method
CN116050346A
Chip simulation verification system and method and electronic equipment
CN118052194A
