Timing and pixel - based automatic checking system for image and video processing applications to be designed in hdl

The automatic checking system addresses the complexity of error detection in image and video processing algorithms by providing a multilingual, timing and pixel-based solution for FPGA designs, automating error detection and offering detailed feedback, thus enhancing the efficiency of HDL design validation in FPGA implementations.

WO2024191385A1PCT designated stage expired Publication Date: 2024-09-19ASELSAN ELEKTRONIK SANAYI & TICARET ANONIM SIRKETI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/TR2024/050133
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Current image and video processing algorithms for FPGA designs face increasing complexity and error detection challenges, requiring extensive simulation and manual analysis, which is time-consuming and inefficient, especially in real-time applications with varying resolutions and timings.

Method used

A timing and pixel-based automatic checking system that automatically detects errors in HDL designs for FPGA implementation, supporting multiple languages, and provides detailed information on timing and pixel-based issues, including location and time of errors, using a hardware unit, clock pulse generator, input-output video readout block, DUT block, pixel data comparator, assertion notification block, and video timing control block.

Benefits of technology

Enables efficient automatic error detection and detailed user feedback, reducing manual analysis time and improving design validation across various conditions, ensuring accurate pixel-by-pixel and timing comparisons without the need for exhaustive signal examination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure TR2024050133_19092024_PF_FP_ABST
    Figure TR2024050133_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The invention relates to a timing and pixel - based automatic checking system for image and video processing applications that automatically performs timing and pixel - based control of HDL designs to be made for the implementation of algorithms in FPGA and supports multiple languages in both algorithm and HDL designs.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] TIMING AND PIXEL - BASED AUTOMATIC CHECKING SYSTEM FOR IMAGE AND VIDEO PROCESSING APPLICATIONS TO BE DESIGNED IN HDL

[0002] TECHNICAL FIELD

[0003] The invention relates generally to a timing and pixel - based automatic checking system for image and video processing applications to be designed in HDL.

[0004] In particular, the invention relates to a system that automatically performs timing and pixel - based control of HDL designs to be made for the implementation of algorithms in FPGA, supports multiple languages in both algorithm and HDL designs, and can automatically perform timing and pixel - based control of image and I or video processing applications to be designed in HDL in hardware, HDL design and simulation.

[0005] PRIOR ART

[0006] Presently, the increasing performance of image and video processing algorithms with the advancing technology has also increased the processing load and complexity. Especially in recent years, the superior performance of machine learning in academic studies is remarkable. Image and video processing algorithms customized according to the needs are used in academic studies or applications in the industry. It may be necessary to apply one or more algorithms to the image coming from the image source. When HDL design of one or more algorithms is done, simulation environment is used first. Designs verified in the simulation environment are implemented in hardware. In algorithms with low complexity, it is easier to proceed step by step and go in a controlled manner, however, with increasing complexity, error detection becomes more difficult and therefore the time spent increases. In line with the specified requirements, the algorithm needs to be validated under all conditions under which it is expected to work. In addition to all these, along with the extended simulation times, manual detection of possible errors in the signals increases the time cost. As a result of the widespread use of different algorithms in real - time systems, the importance of the simulation and hardware verification phase of the designs to be implemented in the HDL designed FPGA is continuously increasing. The transmission interface and standard of the video from the video source varies depending on the video source. Videos from different video sources and received from different interfaces may have different resolutions and different video timings. Therefore, the designs made and to be made must meet the requirements such as different timings and resolutions in real - time application.

[0007] In the current technique, when the HDL design of the algorithm to be realized on the FPGA is made, simulation steps are followed first. In the simulation and verification steps, HDL designs, i.e. DUT (Design Under Test), are compared with the results obtained from the algorithm in order to evaluate the results on different images. If the results are exactly the same as those of the algorithm, the pixel - based design is successful. However, the success of the pixel - based design does not mean that the whole design is successful. Analyses should also be performed in variable situations such as different video resolutions, different video frequencies and different video timings. All detailed analyzes should be reported and the limits of the design should be determined and documented for the users. Since all these steps are time - consuming and the complexity of the algorithms developed is increasing today, the need for an automated structure has emerged. In order to manually detect possible errors in the design, many signals in the simulation need to be analyzed and observed. For example, if a video with a frequency of 25 Hz is to be processed in a design using a clock pulse with a frequency of 100 MHz, this means that signals are sampled at 10 ns intervals within the 40 ms period of a video frame. In other words, all signals used in the design will be sampled 4 million times during a video frame period. Especially in high complexity designs, it is a time - consuming process to determine which of these samplings has an error.

[0008] As a result of a research on the prior art, a thesis document titled "FPGA IMPLEMENTATION OF REAL TIME DIGITAL VIDEO STABILIZATION" was found. This document mentions comparison and verification of the synchronization of the time and frequency values of the video algorithm on the FPGA with the method obtained with MATLAB in order to ensure video stabilization over FPGA. In the method described in this document, video data is read from a "txt" file and timing control is performed by manually comparing the signal and pixels. In order to simulate the process, the analysis performed with VHDL is manually compared with the analysis performed in MATLAB. In addition, VHDL codes on the FPGA are generated with the same method as MATLAB codes and it is mentioned that the generated method is checked with debugging tools provided by the manufacturers. There is no mention of not having any constraints on resolution and timing here. Also, in the said document, there is no mention of providing detailed information to the user in case of encountering any problem while the comparison of the algorithm and HDL designs is done manually to determine whether there is a timing or pixel - based problem. The user cannot see why, when and where there is a potential problem as a message as a result of automatic control.

[0009] Therefore, improvements are being made in timing and pixel - based automatic checking system in image and video processing applications to be designed in HDL; for this reason, new structures are needed to eliminate the disadvantages mentioned above and to provide solutions to existing systems.

[0010] PURPOSE OF THE INVENTION

[0011] The invention relates to a timing and pixel - based automatic checking system for image and video processing applications to be designed in HDL that meets the requirements mentioned above, eliminates all disadvantages and provides some additional advantages.

[0012] The main purpose of the invention is to provide a timing and pixel - based automatic checking system that automatically performs timing and pixel - based control of HDL designs to be made for the implementation of algorithms in FPGA, supports multiple languages in both algorithm and HDL designs, and provides timing and pixel - based automatic checking system in image and video processing applications to be designed in HDL. One purpose of the invention is to enable automatic control of designs using multiple languages without any resolution and timing constraints.

[0013] Another purpose of the invention is to inform the user of success when the algorithm detects that there is no timing - based and I or pixel - based problem in the comparison of HDL designs and hardware unit output. When any problem is detected, detail information is provided to the user.

[0014] Another purpose of the invention is to enable the user to see why, when and where there is a potential problem as a message as a result of automatic control.

[0015] Another purpose of the invention is to prevent the need to examine the signals one by one to find the problem in comparisons of algorithms, HDL designs and hardware unit output and to automatically detect the problem.

[0016] In order to achieve all the advantages mentioned above and those to be understood from the detailed description below, the present invention is a multilingual timing and pixel - based automatic checking system for use in image or video processing applications to be designed in HDL that automatically detects errors in the image and provides detailed information to the user; the said system comprises the following:

[0017] • A hardware unit that calculates the video information of the input and output image, realizes the design by taking pre - recorded images or images from elements such as cameras, sensors, etc., and sends the said images and statistical information to a control unit and I or contains pre - recorded images,

[0018] • A clock pulse and reset signal generator, generically selected according to the design requirement, that enables verification of the design at different operating frequencies, generates asynchronous resets in accordance with all clock pulses,

[0019] • An input - output video I image readout block that receives video resolution, clock pulse frequency, parallel video timing details, input image directory and algorithm output image directory as input and transmits the image received as input by the algorithm to the DUT input ports as parallel video with the same resolution, • A DUT block that receives video from the input - output video I image readout block as input and generates output parallel video signals,

[0020] • A pixel data comparator that synchronously establishes connection with the algorithm and the hardware unit after the output parallel video signals start to be generated, and then starts to compare the algorithm output image printed as text, the images from the hardware unit and the DUT block pixel - by - pixel, generates an error signal if the compared pixels are not identical, and provides the user of the error with location information and error time,

[0021] • An assertion I notification block that receives the DUT output video signals and hardware unit video statistics information and checks the video line signals and informs the user if there is an error,

[0022] • A video timing control block that receives the DUT output video signals and hardware unit video statistics information and checks the video line signals and video timings and notifies the user if there are errors or not.

[0023] The structural and characteristic features of the invention and all its advantages will be more clearly understood by means of the figures given below and the detailed description written with references to these figures. Therefore, evaluation should be made by taking into consideration these figures and the detailed description.

[0024] BRIEF DESCRIPTION OF THE FIGURES

[0025] In order to best understand the structure of the present invention and its advantages with additional elements, it should be evaluated together with the figures described below.

[0026] Figure 1 is a general block diagram of the timing and pixel - based automatic checking system of the invention.

[0027] Figure 2 is a general flow diagram of the timing and pixel - based automatic checking system of the invention.

[0028] Figure 3 is clock pulse and reset signal generator block diagram.

[0029] Figure 4 is the block diagram of the Input / Output video readout block. Figure 5 is a block diagram of a pixel data comparator.

[0030] Figure 6 is the block diagram of the video line control block.

[0031] Figure 7 is the block diagram of the video timing control block.

[0032] Figure 8 is the flow diagram of Reset synchronization.

[0033] Figure 9 is an example block diagram representation of the timing and pixel - based automatic checking system of the invention.

[0034] REFERENCE NUMBERS

[0035] 1. Clock pulse and reset signal generator

[0036] 2. Input - output video I image readout block

[0037] 3. DUT block

[0038] 4. Pixel data comparator

[0039] 5. Assertion I notification block

[0040] 6. Video timing control block

[0041] 7. Hardware unit

[0042] DETAILED DESCRIPTION OF THE INVENTION

[0043] In this detailed description, the preferred configurations of the timing and pixel - based automatic checking system in image and video processing applications for which the HDL of the invention is to be designed are described only for a better understanding of the subject matter and in a non - limiting manner.

[0044] In the image and video processing applications to be designed in HDL, the timing and pixel - based automatic checking system of invention automatically detects errors and provides detailed information to the user. The information message is printed in one of the areas such as command window or transcript depending on the simulation environment. The user focuses directly on the specific error in the information message instead of searching for the error in the simulation and I or hardware environment. Algorithm and HDL designs, i.e. DUT (Design Under Test) designs, have a multi - language feature so as not to have any restrictions. That is, the algorithm design can be done using software languages such as MATLAB Python etc., while the DUT design can be done using VHDL, Verilog or SystemVerilog. A block diagram of an example implementation of the invention is shown in Figure 9. Here, the input image is transferred from the camera, sensor or computer to an FPGA I FPGA - CPU designed hardware unit (7) via interfaces such as CamLink, SDI, HDMI, DVI, DVI, MIPI or Ethernet. The image received from the interface is converted to parallel video. Parallel video is transmitted as input to the FPGA / FPGA - CPU design. The output image can be monitored through any interface. The video information of the input and output image is calculated in hardware unit (7). The calculated values are transferred to the computer together with the output image. The design input I output image is written to DDR and transferred to the computer via JTAG Master or Ethernet interface. The data from the algorithm, HDL design and hardware are automatically analyzed in the computer in detail and the user notified in case of any error.

[0045] The general block diagram structure of the timing and pixel - based automatic checking system of the invention is shown in Figure 1. The clock pulse and reset signal generator (1), which is generically selected according to the design requirement, enables the design to be verified at different operating frequencies. Algorithm input and output video I image readout block (2) transmits the image received by the algorithm to the DUT input ports as input as parallel video with the same resolution. DUT block (3) receives the parallel video as input. It does not matter how much delay the DUT block (3) gives the parallel output video. The developed control system includes a pixel data comparator (4) that synchronously reads the output image of the algorithm and hardware unit (7) after the DUT block (3) starts generating the output parallel video signals and then starts comparing the three images pixel - by - pixel. In parallel, the video timing control block (6) checks whether the DUT block (3) meets the video timings given in the generic and the video statistics from the hardware unit (7). The pixel data comparator (4) and the assertion I notification block (5) analyze the checks and notify the user via message if an error is detected as a result of the analysis. When the processor detects an error condition, it can either stop the simulation and notify the user or continue the simulation by printing the error as a message. The user is in control of which of the two options is preferred. The image on the hardware unit (7) can be received using interfaces such as SDI, Ethernet, CamLink, HDMI. Previously recorded images can be input to the hardware unit (7) or real - time images such as camera, detector can also be used as input. When it is desired to work with real - time images, the hardware input images are recorded simultaneously to be used in the simulation environment.

[0046] The general flow diagram of the timing and pixel - based automatic checking system for image and video processing applications to be designed in HDL is shown in Figure 2. To summarize briefly; after the automatic control is started in the control system, the DUT block (3) receives the input image used by the algorithm from the input ports to use it. The hardware unit (7), the HDL design and the algorithm use the same input image. If a previously recorded image is to be fed to the hardware unit (7), the image is transferred via interfaces such as Ethernet, SDI, CamLink, HDMI, etc. The output from the hardware unit (7) can be received via Ethernet or by JTAG Master access by recording in DDR. Operation can be performed on a single image or a sequence of streaming images. After the output image is received from the hardware unit (7) and the DUT block (3) generates the output video signals, the algorithm output is read and a pixel - by - pixel comparison is performed with a pixel data comparator (4) and an assertion I notification block (5) is used to check whether the video timings are within the desired range. The data obtained in the automatic diagnostics phase is printed as a message by a processor. The process is completed when all pixels are checked. In other words, the process is completed after the entire image is examined. According to the user's request, the process can be set to be repeated more than once.

[0047] Figure 3 shows the block diagram of the clock pulse and reset generator, which generates asynchronous resets in accordance with all clock pulses that can be used in the generator. The user can select any of the generated clock pulses and asynchronous resets as global clock pulse and global reset signal. Figure 4 shows block diagram of the algorithm I HDL I hardware input - output video I image readout block (2). The input image can be a pre - recorded image or a camera I sensor image. If the camera or sensor images obtained from the system in real time are to be used, the HDL design and algorithm will use the same input image. In the case of pre - recorded images, the images are transferred to the hardware simultaneously. First, the input image is converted to parallel video. The parallel video is sent to the DUT input ports. The same image should be transmitted as input to the algorithm. The algorithm can be run in any software environment such as MATLAB, Python etc. The design in the hardware unit (7) can be FPGA or FPGA - CPU co-design. The critical point is to print the desired part of the control in "text" format. The image to be printed as "text" can be an image to be obtained after any function of the algorithm or the direct output image of the algorithm. In other words, step - by - step checks can also be done automatically. As the output parallel video signals from the DUT block (3) are obtained in the simulation, the image obtained from the algorithm and the hardware unit (7) is read synchronously. Figure 5 shows the block diagram of the pixel data comparator (4), which compares the algorithm output signals obtained synchronously together with the DUT output signals, the hardware unit (7) output signals and the HDL design output signals pixel - by - pixel. The pixel data comparator (4) generates an error signal in case of any error. It also provides the user with detailed information about the location of the pixel in the image. The detailed message is printed in areas such as the command window or the memo pad, depending on the environment in which the simulation is run. In other words, it prints in which video line and in which pixel there is an error. Figure 6 shows the block diagram of the video line assertion I notification block (5), which receives the DUT output video signals, checks the video line signals and sends the necessary message to the user. Here the user can use the video line assertion / notification block (5) with custom settings to debug both successful and unsuccessful cases. At the same time, the video line controls are checked by keeping video statistics information in the hardware unit (7). Figure 7 shows block diagram of the video timing control block (6), which receives the output video signals from the DUT and checks the video line signals and video timings. Evaluations are made using the assertion I notification block (5). The video timing control block (6) checks the video line signals and video timings and informs the user. The user receives precise information about where the video timings are corrupted. The user can use the video timing control block (6) with customized settings to debug both successful and unsuccessful situations. The video timing controls are also checked on the output video in the hardware unit (7).

[0048] In the timing and pixel - based automatic checking system of the invention to be used in image and video processing applications to be designed in HDL, the output of the algorithm, DUT block (3) and hardware unit (7) are compared together with the output of the DUT block (3) synchronously pixel - by - pixel and timing controls are performed. Hata! Ba§vuru kaynagi bulunamadi. In the flow diagram given in Figure 8, the synchronization between the DUT result and the algorithm result is ensured. After the automatic control starts, the output signals produced by the DUT block (3) using the input image are expected. After the output signals are received, the synchronization between the DUT block (3) and the algorithm is ensured with the reset signal. With the logic gate block design that ensures the synchronization between the DUT block (3) and the algorithm, the video line signal received from the output of the DUT block (3) and the active range of the output video of the algorithm passes through the "or" logic gate. Thus, the algorithm video output is not read before the DUT block (3) generates the video line output signal. At the same time, the active range of the algorithm video output also guarantees that the entire algorithm video output will be read. The output of the "or" logic gate is passed through the "and" logic gate with the global reset of the design so that the whole system has a common operating reset. Synchronization with the output image from the hardware unit (7) is also provided simultaneously with the algorithm output image.

[0049] In an exemplary embodiment of the invention, the video resolution, clock pulse frequency, parallel video timing details, hardware image directory, input image directory and algorithm output image directory are given as input to the control system. First, the connections of the control system with the DUT block (3) must be made. After the connections are completed, the control system sends the parallel input video to the DUT block (3) with a global clock pulse and reset signal. The DUT block (3) in the example design of the invention is designed to enhance the edges of the image and the design is made using VHDL. After starting the hardware and simulation verification, the input video is transmitted to the hardware over Ethernet. The timing information of both the input video and the video received by the hardware unit (7) is measured in the hardware unit (7). The output video of the hardware is sent via Ethernet to the computer for use by the automatic controller. Upon receiving the hardware output video, the control system reads the input video image and sends it to the HDL edge enhancement block. The DUT block (3) starts processing the video image received from the input ports at the specified operating frequency. The parallel output video signals produced as a result of the edge enhancement process are received from the input ports of the control system. Here, the DUT reads the algorithm output image obtained from MATLAB and the output image obtained from the hardware unit (7) along with the video output signals. The read image is synchronized to the DUT video signals. A pixel - by - pixel evaluation is performed and if pixels at any position in the image are not identical, an error message is generated. The error message contains the location of the non - identical pixels in the image. As an example of an error condition, the error message contains the information that there is an error at pixel 20 in line 400. The timing of the video signals received from the output ports of the edge enhancement design is evaluated. If potential errors are detected, an error message is generated and the user is informed in detail. After each successful check, the user can restart the automatic checking step by changing the operating frequency, input image and video timings. After simulation and hardware verification, the algorithm edge enhancement design output and the DUT edge enhancement design output match exactly and the video timings are obtained as desired, the user is notified of success. After the start command, the user does not need to wait for the simulation process and examine the signals in detail.

Claims

CLAIMS1. A multilingual timing and pixel - based automatic checking system for use in image or video processing applications that automatically detects errors in the image and provides detailed information to the user; characterized by comprising:• A hardware unit (7) that calculates the video information of the input and output image, realizes the design by taking pre - recorded images or images from elements such as cameras, sensors, etc., and sends the said images and statistical information to a control unit and I or contains pre - recorded images,• A clock pulse and reset signal generator (1) generically selected according to the design requirement, that enables verification of the design at different operating frequencies, generates asynchronous resets in accordance with all clock pulses,• An input - output video I image readout block (2) that receives video resolution, clock pulse frequency, parallel video timing details, input image directory and algorithm output image directory as input and transmits the image received as input by the algorithm to the DUT input ports as parallel video with the same resolution,• A DUT block (3) that receives video from the input - output video I image readout block (2) as input and generates output parallel video signals,• A pixel data comparator (4) that synchronously establishes connection with the algorithm and the hardware unit (7) after the output parallel video signals start to be generated, and then starts to compare the algorithm output image printed as text, the images from the hardware unit (7) and the DUT block (3) pixel - by - pixel, generates an error signal if the compared pixels are not identical, and provides the user of the error with location information and error time,• An assertion I notification block (5) that receives the DUT output video signals and hardware unit (7) video statistics information and checks the video line signals and informs the user if there is an error,• A video timing control block (6) that receives the DUT output video signals and hardware unit (7) video statistics information and checksthe video line signals and video timings and notifies the user if there are errors or not.

2. The timing and pixel - based automatic checking system according to claim 1 , characterized by comprising a logic gate block that passes the signal obtained by passing the video line signal received from the output of the DUT block (3) and the active range of the output video of the system through the "or" logic gate through the "and" logic gate with the global system reset, to guarantee that the entire video output is read out for error detection.