A multi-layer logic screen generation method and device
Through the multi-layer logic screen generation method and the collaborative work of the host computer and FPGA, the problem of low editing and transmission efficiency of panels with different resolutions is solved, resolution adaptation and efficient image transmission are achieved, and the production efficiency of the display panel is improved.
Patent Information
- Application Number
- CN202110256894.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-03-09
AI Technical Summary
In the production process of display panels, panels with different resolutions need to re-edit images, which is time-consuming and labor-intensive. The transmission and downloading of large-resolution images takes a long time, affecting the production efficiency of the production line.
Using a multi-layer logical screen generation method, the host computer edits the image and simultaneously previews the image. The generated parameter file is sent to the ARM. The ARM reads and preprocesses the drawing parameters, and transfers them to the FPGA step by step for drawing. The FPGA provides feedback after completing the first layer of the screen. Notification to continue drawing the next layer, reducing FPGA resource consumption and data processing pressure, and improving system flexibility.
It achieves resolution adaptation, reduces the repetitive work of re-editing pictures, improves image transmission efficiency, reduces transmission time, and improves the real-time performance of FPGA and the flexibility of the system.
Smart Images

Figure CN112967352B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display panel production and testing, and in particular to a multi-layer logic screen generation method and device. Background Art
[0002] During the production process of display panels, a variety of different images are needed to detect panel defects. However, re-editing images for panels with different resolutions is time-consuming and labor-intensive, and the transmission and download of large-resolution images takes a long time, affecting the production efficiency of the production line. Summary of the invention
[0003] The present invention provides a multi-layer logic picture generation method and device thereof, aiming to realize resolution adaptation, reduce the repeated work of re-editing pictures, improve the transmission efficiency of images, and reduce the transmission time.
[0004] The present invention provides a multi-layer logic screen generation method, comprising the following steps:
[0005] S1. The host computer edits the image and previews it synchronously, generates a parameter file and transmits it to ARM;
[0006] S2. ARM reads the parameter file and sends the drawing parameters and drawing area to FPGA;
[0007] S3. FPGA draws the image according to the drawing parameters and writes the image to the target memory address;
[0008] S4. When FPGA completes drawing a layer of the screen, it sends feedback information to ARM, notifying ARM to continue reading the parameter file content and transmit the next layer of the screen information, and repeat step S2;
[0009] S5. Draw a multi-layer logic screen for multiple operations until there is no remaining content in the parameter file. The screen is completely drawn. ARM sends a command to notify FPGA to switch the displayed frame address to the target memory address just written, and display the drawn content on the display panel.
[0010] ARM acts as the data transmission medium between the host computer and FPGA. ARM pre-processes the parameters that FPGA needs to draw before transmitting them to FPGA for drawing. The FPGA drawing method uses one layer of drawing, and then ARM outputs the next layer of screen data. This operation reduces the pressure of FPGA drawing processing, avoids the problem of slowing down FPGA drawing processing speed, data squeezing or confusion caused by too much data at one time, reduces FPGA resource consumption, and improves the flexibility of the system.
[0011] As a further improvement of the present invention, the step S2 specifically further includes:
[0012] S21.ARM reads the parameter file, converts the scale information into specific coordinate information according to the image resolution, and transmits the coordinate information to FPGA;
[0013] S22.ARM transmits the drawing parameters of the logic screen to the FPGA, and the drawing parameters include border information, target image memory address, and resolution.
[0014] ARM directly transmits the parameters that FPGA can directly read, such as border information, target image memory address, and resolution, to FPGA. For parameters that FPGA cannot directly read, ARM pre-processes the parameters, such as information related to position coordinates, and then transmits the processed data to FPGA, which reduces the trouble of FPGA in data processing and facilitates rapid drawing by FPGA.
[0015] As a further improvement of the present invention, step S3 specifically includes:
[0016] S31 command management module receives the command from ARM, the drawing parameters are sent to the drawing memory address and pixel coordinate generation module;
[0017] S32. The drawing memory address and pixel coordinate generation module generates the image X and Y coordinates of the memory address and the corresponding address according to the resolution, layer starting coordinates, layer length and width in the drawing parameters, and passes them to the logic screen generation module and the layer frame generation module;
[0018] S33. The layer frame generation module generates an image frame, the image frame displays the logical screen inside, and the outer frame displays the lower screen outside;
[0019] S34. The logic screen generation module calculates and draws the logic screen according to the X and Y coordinates of the pixel;
[0020] S35. The logic screen generation module, the drawing memory address and the pixel coordinate generation module are both synchronously output to the memory access arbitration module, and the memory access arbitration module writes the screen to the target memory address.
[0021] Each module in the FPGA is drawn into an image according to the parameters, completing the drawing of the required layer of logic screen and storing it in the memory, making full use of the FPGA drawing function to achieve higher real-time performance.
[0022] As a further improvement of the present invention, the step S32 specifically includes:
[0023] Generation of coordinates and memory addresses: The drawing memory address and pixel coordinate generation module generates an accumulated X coordinate and Y coordinate based on the frame address and resolution information transmitted by the ARM until the coordinates are accumulated to the horizontal or vertical resolution value and then cleared to start counting again; each time the coordinates are cleared, the memory address is incremented by one layer.
[0024] During drawing, when the X coordinate and Y coordinate are accumulated to the top value of the resolution, the drawing of one layer of the image is completed. At the same time, the drawn layer of the image is stored in the memory, the coordinates are cleared to draw the next layer of the image, and the memory address is incremented by one layer to留出 space for storing the next layer of the image. The image data of each layer is stored in sequence, and the FPGA can draw the image orderly and improve the storage speed after the FPGA draws the image.
[0025] As a further improvement of the present invention, the step S33 specifically includes: judging whether the pixel point is inside or outside the outer frame according to the shape of the outer frame:
[0026] S331. Judgment of rectangular outer frame: According to the X and Y coordinate positions of the image and the starting addresses X0, Y0, rectangular length H, and height V in the parameters, when all four conditions of X>X0, X<X0+H, Y>Y0, and Y<Y0+V are satisfied, it is judged that the coordinate is inside the rectangular outer frame, otherwise the coordinate is outside the rectangular outer frame;
[0027] S332. Judgment of circular outer frame: According to the center coordinates X0, Y0, circle radius R, and X and Y coordinate positions of the image; when (X-X0) 2 +(Y-Y0) 2 < R 2 it is judged that the coordinate is inside the circular outer frame, otherwise it is outside the circular outer frame.
[0028] According to the needs of the image, the shape of the image outer frame can be多种多样, but the outer frame data of different shapes can all be represented by coordinates. By judging the position inside and outside the frame through coordinate operations, it can be more accurately positioned, and it is also convenient for data reading with a low error rate.
[0029] As a further improvement of the present invention, in the step S34, the types of the logical screen include: gradient screen, solid color screen, flick screen, checkerboard screen. The logical screen can select a variety of logical screens according to the detection needs, and this method can also adapt to the applications of a variety of different types of screens.
[0030] As a further improvement of the present invention, the step S34 includes: generation of checkerboard screen:
[0031] S341. According to the X and Y coordinate positions of the pixel coordinate generation module, set the starting coordinates X0, Y0 of the checkerboard, the width H of the checkerboard grid in the horizontal direction, the height V of the checkerboard in the vertical direction, color C1, and color C2;
[0032] S342. When X=X0, clear X CNT Counter, X FLAG Set to 0, each time X is updated, X CNT +1 until X CNT Accumulate to H value, then clear X CNT And X FLAG Negate;
[0033] S343. When Y=Y0, clear Y CNT Counter, Y FLAG Set to 0, and set Y to 0 every time Y is updated. CNT +1 until Y CNT Add to V value, then clear Y CNT And Y FLAG Negate;
[0034] S344. FLAG and X FLAG Set the same area to color C1, and set Y FLAG and X FLAG The different areas are set to color C2.
[0035] By calculating the color data within the checkerboard through coordinate calculation, the checkerboard logical image can be drawn more accurately.
[0036] As a further improvement of the present invention, the step S34 includes: generating a gradual picture:
[0037] S345. According to the X and Y coordinate positions of the pixel coordinate generation module, set the starting coordinates X0 and Y0, and the brightness value C of each gradient X , starting color C0, width of each gradient H, gradient direction DIR;
[0038] S346. When X=X0, the color is set to C0, X CNT Set to 0, whenever X changes, X CNT Add one, when X CNT When accumulated to H, X CNT Clear, color value increases or decreases C X ;
[0039] S347. When Y=Y0, the color is set to C0, Y CNT Set to 0, whenever Y changes, Y CNT Add one, when Y CNT When the sum reaches H, Y CNT Clear, color value increases or decreases C Y .
[0040] By calculating the color data of the gradient screen through coordinate calculation, the logical image of the gradient screen can be drawn more accurately.
[0041] The present invention provides a multi-layer logic screen generation device, including a host computer, an ARM processor, an FPGA module, a memory, and a display. The output end of the host computer is connected to the ARM processor through an interface, the ARM processor is connected to the FPGA module and the signals of the two are intercommunication, the memory is connected to the FPGA module and the signals of the two are intercommunication, and the display is connected to the FPGA module and the signals of the two are intercommunication. The ARM processor serves as a data transmission medium between the host computer and the FPGA module, manages the memory address and process of the multi-layer logic screen generation process, and facilitates the FPGA module to quickly draw pictures and output and store images.
[0042] As a further improvement of the present invention, the FPGA module includes a command management module, a drawing address and pixel coordinate generation module, a logic screen generation module, a layer frame generation module, a memory access arbitration module, and a display driver module. One end of the command management module is connected to the ARM processor and receives commands from the ARM processor. The other end of the command management module is connected to the drawing address and pixel coordinate generation module and outputs image parameters to it. The drawing address and pixel coordinate generation module is connected to the layer frame generation module and outputs image parameters and pixel coordinates to it. The drawing address and pixel coordinate generation module is connected to the logic screen generation module and outputs image parameters and pixel coordinates to it. The drawing address and pixel coordinate generation module is connected to the memory access arbitration module and outputs memory addresses to it. The layer frame generation module is connected to the logic screen generation module and outputs parameters within the frame boundary to it. The layer frame generation module is connected to the memory access arbitration module and outputs image data to it. The memory access arbitration module is connected to the display driver module and outputs image pictures to it. Each submodule in the FPGA module completes drawing through the transmission of information data, realizing the drawing function of FPGA.
[0043] The beneficial effects of the present invention are: using ARM to manage memory addresses and processes reduces the resource consumption of FPGA and improves the flexibility of the system. Using FPGA to draw pictures can achieve higher real-time performance. The advantages of ARM and FPGA are comprehensively utilized. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a structural block diagram of a multi-layer logic screen generating device of the present invention;
[0045] Figure 2 It is a structural block diagram of the FPGA module in the present invention;
[0046] Figure 3It is the final effect diagram generated by the chessboard logic screen in the present invention;
[0047] Figure 4 It is the final effect diagram generated by the gradual change logic screen in the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0049] Embodiment 1:
[0050] like Figure 1 As shown, a multi-layer logic screen generation method of the present invention is based on host computer software, FPGA and ARM processor cooperation: comprising the following steps:
[0051] S1. The host computer edits the image and previews it synchronously, generates a parameter file and transmits it to ARM;
[0052] S2. ARM reads the parameter file and sends the drawing parameters and drawing area to FPGA;
[0053] S3. FPGA draws the image according to the drawing parameters and writes the image to the target memory address;
[0054] S4. When FPGA completes drawing a layer of the screen, it sends feedback information to ARM, notifying ARM to continue reading the parameter file content and transmit the next layer of the screen information, and repeat step S2;
[0055] S5. Draw a multi-layer logic screen for multiple operations until there is no remaining content in the parameter file. The screen is completely drawn. ARM sends a command to notify FPGA to switch the displayed frame address to the target memory address just written, and display the drawn content on the display panel.
[0056] The upper computer edits the screen, and simultaneously previews the screen to generate a parameter file. After receiving the parameter file generated by the upper computer, ARM will convert the scale information into specific coordinate information according to the resolution, and transmit the coordinate information to FPGA; at the same time, other specific parameters of the logical screen: border information, target image memory address, resolution, etc. are transmitted to FPGA.
[0057] After FPGA generates a layer of image according to the parameters transmitted by ARM, it sends feedback information to ARM, notifying ARM to continue to transmit the information of the next layer, until the image is completely drawn, and ARM notifies FPGA to switch the address of the display module and switch to the image display. As a transition unit, ARM analyzes the parameters of each layer one by one, and then transmits the layer-by-layer information to FPGA for production in sequence, which can avoid sending too much data at one time to be redundant in FPGA, avoid confusion when FPGA processes and generates images, reduce the computing pressure of FPGA, reduce the resource consumption of FPGA, and improve the flexibility of the system. In addition, the display panel generally does not have video memory, and can only accept one complete frame of image at a time, and cannot transmit the image layer by layer. Therefore, after FPGA generates the layer-by-layer image, it uses the target memory address as a buffer storage. After the multi-layer image is combined at the target memory address, it is uniformly displayed on the display panel, which solves the problem that the display panel cannot transmit the image layer by layer, and also enables the final combined image to be centralized and synchronized to the display panel in real time.
[0058] The step S2 of ARM transmitting information to FPGA specifically includes:
[0059] S21.ARM reads the parameter file, converts the scale information into specific coordinate information according to the image resolution, and transmits the coordinate information to FPGA;
[0060] S22.ARM transmits the drawing parameters of the logic screen to the FPGA, and the drawing parameters include border information, target image memory address, and resolution.
[0061] The host computer transmits the edited parameter file to ARM, which controls FPGA to perform image drawing process and address management. ARM converts the scale into specific coordinates according to the image resolution and scale information in the parameter file, which can achieve resolution adaptation.
[0062] Embodiment 2:
[0063] like Figure 2 As shown, based on the first embodiment, the specific process step S3 of FPGA drawing includes:
[0064] S31 command management module receives the command from ARM, the drawing parameters are sent to the drawing memory address and pixel coordinate generation module;
[0065] S32. The drawing memory address and pixel coordinate generation module generates the image X and Y coordinates of the memory address and the corresponding address according to the resolution, layer starting coordinates, layer length and width in the drawing parameters, and passes them to the logic screen generation module and the layer frame generation module;
[0066] S33. The layer frame generation module generates an image frame. The frame shape can be rectangular, circular, etc. The final effect is that the image frame displays the logical screen inside, and the outer frame is displayed as transparent, that is, the lower screen;
[0067] S34. The logic screen generation module calculates and draws the logic screen according to the X and Y coordinates of the pixel. The specific screen types include: gradient screen, solid color screen, flick screen, checkerboard screen, etc.;
[0068] S35. The logic screen generation module and the drawing memory address and pixel coordinate generation module are synchronously output to the memory access arbitration module, and the memory access arbitration module writes the screen into the target memory address.
[0069] Embodiment three:
[0070] like Figure 1 and Figure 2 As shown, before FPGA draws, ARM first transmits the target memory address of the image to FPGA, and then ARM receives the parameter file sent by the host computer through the network port / USB interface, stores it in the local file system, parses the parameters in the file: border type, border coordinates and size information, and transmits them to FPGA one by one. Among them, the information about position coordinates, ARM converts the proportional relationship into specific coordinates according to the image resolution and then transmits it to FPGA, and FPGA is responsible for the specific drawing work. When FPGA completes the drawing of one layer, it notifies ARM, and ARM continues to read the remaining content in the file and perform the next operation until there is no remaining content in the file. ARM notifies FPGA to switch the displayed frame address to the address of the image just written, and displays the drawn content on the display panel.
[0071] When drawing on FPGA, the various parts of the image are generated as follows:
[0072] Generation of coordinates and memory addresses:
[0073] The memory address and pixel coordinate generation module generates an accumulated X coordinate and Y coordinate according to the frame address and resolution information transmitted by ARM, until the coordinates are accumulated to the horizontal / vertical resolution and then reset to zero and start counting again. Correspondingly, the memory address is also accumulated, so that the image data generated by other modules can correspond to the memory address one by one.
[0074] Outline generated:
[0075] The rectangular outer frame requires parameters: The judgment of the rectangular outer frame can be made according to the X and Y coordinate positions of the pixel coordinate generation module and the starting addresses X0 and Y0 in the parameters, the rectangular length H, and the height V. When all four conditions X > X0, X < X0 + H, Y > Y0, and Y < Y0 + V are satisfied, it is judged that the coordinate is within the rectangular outer frame; otherwise, the coordinate is outside the rectangular outer frame.
[0076] The circular outer frame requires parameters: the center coordinates X0, Y0, the radius R of the circle, and the X and Y coordinate positions of the pixel coordinate generation module. When (X - X0) 2 +(Y - Y0) 2 < R 2 it can be judged that the coordinate is within the circular outer frame; otherwise, it is outside the circular outer frame.
[0077] Logical screen generation:
[0078] Checkerboard screen generation: It requires the starting coordinates of the checkerboard (X0, Y0), the width H of the checkerboard in the horizontal direction, the height V of the checkerboard in the vertical direction, the color C1, the color C2, and the X and Y coordinate positions of the pixel coordinate generation module. When X = X0, clear the X CNT counter, X FLAG set it to 0, and each time X is updated, increment X CNT by 1 until X CNT accumulates to the value of H, then clear X CNT and invert X FLAG Similarly, when Y = Y0, clear the Y CNT counter, Y FLAG set it to 0, and each time Y is updated, increment Y CNT by 1 until Y CNT accumulates to the value of V, then clear Y CNT and invert Y FLAG Then the area where Y FLAG and X FLAG are the same can be set to color C1, and the area where Y FLAG and X FLAG are different can be set to color C2. The final effect is as Figure 3 shown. For a solid-color screen, only the color C1 of the screen needs to be filled into the memory.
[0079] X CNT represents the counter in the horizontal direction, that is, which pixel the pixel is in the horizontal direction. Similarly, Y CNT represents the counter in the vertical direction; X FLAG represents a parity flag bit in the horizontal direction. The first grid is 0, the second grid is 1, the third grid is 0, and so on. Similarly, Y FLAG is the same.
[0080] In the process of generating the chessboard logic screen, each time X and Y are updated, X CNT , Y CNT Accumulate, and when the value reaches the full value, FLAG , Y FLAG The negation operation is simple to implement and does not require the use of multipliers and dividers, which reduces the complexity of the operation process, occupies less logic resources, is fast in operation, and improves the flexibility of the system.
[0081] Gradient screen:
[0082] The starting coordinates X0 and Y0 are required, the X and Y coordinate positions of the pixel coordinate generation module, and the brightness value C of each gradient X , starting color C0, width of each gradient H, gradient direction DIR. Taking horizontal gradient as an example, when X=X0, the color is set to C0, X CNT Set to 0, whenever X changes, X CNT Add one, when X CNT When accumulated to H, X CNT Clear, color value increases or decreases C X The final effect is as follows Figure 4 Similarly, taking vertical gradient as an example, when Y=Y0, the color is set to C0, Y CNT Set to 0, whenever Y changes, Y CNT Add one, when Y CNT When the sum reaches H, Y CNT Clear, color value increases or decreases C Y .
[0083] Among them, X CNT , Y CNT The meaning is the same as the chessboard. DIR indicates the direction, which has only two types: horizontal and vertical. Figure 4 It is a horizontal gradient.
[0084] Use "Whenever X changes, X CNT Add one, when X CNT When accumulated to H, X CNT Clear, color value increases or decreases C X ” or “Whenever Y changes, Y CNT Add one, when Y CNT When the sum reaches H, Y CNT Clear, color value increases or decreases C Y This method is simple to implement in generating gradient images, occupies less logic resources, does not require the use of multipliers and dividers, has fast calculation speed, and improves the flexibility of the system.
[0085] Embodiment 4:
[0086] like Figure 1 and Figure 2 As shown, when a multi-layer logic screen generation method is implemented, a multi-layer logic screen generation device is provided based on the present invention, and the device includes a host computer 1, an ARM processor 2, an FPGA module 3, a memory 4, and a display 5. The output end of the host computer 1 is connected to the ARM processor 2 through an interface, the ARM processor 2 is connected to the FPGA module 3 and the signals of the two are intercommunication, the memory 4 is connected to the FPGA module 3 and the signals of the two are intercommunication, and the display 5 is connected to the FPGA module 3 and the signals of the two are intercommunication.
[0087] Among them, the FPGA module 3 includes a command management module 31, a drawing address and pixel coordinate generation module 32, a logic screen generation module 33, a layer frame generation module 34, a memory access arbitration module 35, and a display driver module 36. One end of the command management module 31 is connected to the ARM processor 2 and receives commands from the ARM processor 2. The other end of the command management module 31 is connected to the drawing address and pixel coordinate generation module 32 and outputs image parameters to it. The drawing address and pixel coordinate generation module 32 is connected to the layer frame generation module 34 and outputs image parameters and pixel coordinates to it. The drawing address and pixel coordinate generation module 32 is connected to the logic screen generation module 33 and outputs image parameters and pixel coordinates to it. The drawing address and pixel coordinate generation module 32 is connected to the memory access arbitration module 35 and outputs a memory address to it. The layer frame generation module 34 is connected to the logic screen generation module 33 and outputs parameters within the frame boundary to it. The layer frame generation module 34 is connected to the memory access arbitration module 35 and outputs image data to it. The memory access arbitration module 35 is connected to the display driver module 36 and outputs an image screen to it.
[0088] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for generating a multi-layer logic screen, characterized in that: It includes the following steps: S1. The host computer edits an image and synchronously previews the image. After generating a parameter file, it transmits the parameter file to the ARM; S2. The ARM reads the parameter file and sends the drawing parameters and the drawing area to the FPGA; S3. The FPGA draws an image according to the drawing parameters and writes the image to the target memory address; S4. When the FPGA finishes drawing one layer of the picture, it sends feedback information to the ARM, notifying the ARM to continue reading the content of the parameter file and transmitting the information of the next layer of the picture, and repeating step S2; The ARM, as a transitional unit, parses the parameters of each layer one by one, and then sequentially transmits the information of each layer to the FPGA for production; S5. Operate multiple times to draw multiple layers of logical pictures until there is no remaining content in the parameter file and the picture is completely drawn. The ARM sends a command to notify the FPGA to switch the displayed frame address to the target memory address just written, and display the drawn content on the display panel; The specific steps of step S3 include: S31. The command management module receives commands from the ARM and sends the drawing parameters to the drawing memory address and pixel coordinate generation module; S32. The drawing memory address and pixel coordinate generation module generates a memory address and the image X and Y coordinates of the corresponding address according to the resolution, layer starting coordinates, and layer length and width in the drawing parameters, and transmits them to the logical picture generation module and the layer outer frame generation module; S33. The layer outer frame generation module generates an image outer frame. The logical picture is displayed inside the image outer frame, and the lower layer picture is displayed outside the outer frame; S34. The logical picture generation module calculates and draws the logical picture according to the X and Y coordinates of the pixels; S35. The logical picture generation module and the drawing memory address and pixel coordinate generation module are synchronously output to the memory access arbitration module, and the memory access arbitration module writes the picture to the target memory address; The specific steps of step S32 include: Generation of coordinates and memory addresses: The drawing memory address and pixel coordinate generation module generates an accumulated X coordinate and Y coordinate according to the frame address and resolution information transmitted by the ARM until the coordinates are accumulated to the horizontal or vertical resolution value and then cleared and restarted; Each time the coordinates are cleared, the memory address is incremented by one layer.
2. The multi-layer logic screen generation method according to claim 1, characterized in that: The specific steps of step S2 also include: S21. The ARM reads the parameter file, converts the scale information into specific coordinate information according to the image resolution, and transmits the coordinate information to the FPGA; S22. The ARM transmits the drawing parameters of the logical picture to the FPGA. The drawing parameters include border information, the target image memory address, and the resolution.
3. The multi-layer logic screen generation method according to claim 1, characterized in that: The specific steps of step S33 include: Judging whether the pixel point is inside or outside the outer frame according to the shape of the outer frame: S331. Rectangle outer frame judgment: According to the X and Y coordinate positions of the image and the starting address X0, Y0, rectangle length H, and height V in the parameters, when all four conditions of X>X0, X<X0+H, Y>Y0, and Y<Y0+V are satisfied, it is judged that the coordinate is inside the rectangle outer frame, otherwise the coordinate is outside the rectangle outer frame; S332. Circular frame judgment: Based on the center coordinates X0, Y0, the radius R, and the X and Y coordinate positions of the image; when (X-X0) 2 +(Y-Y0) 2 <R 2 , it is determined that the coordinate is within the circular outer frame, otherwise it is outside the circular outer frame.
4. The multi-layer logic screen generation method according to claim 1, characterized in that: In the step S34, the types of the logical images include: gradient images, solid color images, flick images, and checkerboard images.
5. The multi-layer logic screen generation method according to claim 4, characterized in that: The step S34 includes: generating a checkerboard screen: S341. According to the X and Y coordinate positions of the pixel coordinate generation module, set the starting coordinates X0 and Y0 of the chessboard, the width H of the horizontal chessboard, the height V of the vertical chessboard, the color C1, and the color C2; S342. When X=X0, clear X CNT Counter, X FLAG Set to 0, each time X is updated, X CNT +1 until X CNT Accumulate to H value, then clear X CNT And X FLAG Negate; S343. When Y=Y0, clear Y CNT Counter, Y FLAG Set to 0, and set Y to 0 every time Y is updated. CNT +1 until Y CNT Add to V value, then clear Y CNT And Y FLAG Negate; S344. FLAG and X FLAG Set the same area to color C1, and set Y FLAG and X FLAG The different areas are set to color C2.
6. The multi-layer logic screen generation method according to claim 4, characterized in that: The step S34 includes: generating a gradual picture: S345. According to the X and Y coordinate positions of the pixel coordinate generation module, set the starting coordinates X0 and Y0, and the brightness value C of each gradient X , starting color C0, width of each gradient H, gradient direction DIR; S346. When X=X0, the color is set to C0, X CNT Set to 0, whenever X changes, X CNT Add one, when X CNT When accumulated to H, X CNT Clear, color value increases or decreases C X ; S347. When Y=Y0, the color is set to C0, Y CNT Set to 0, whenever Y changes, Y CNT Add one, when Y CNT When the sum reaches H, Y CNT Clear, color value increases or decreases C Y .
7. A multi-layer logic screen generation device based on the method according to any one of claims 1 to 6, characterized in that: It includes a host computer, an ARM processor, an FPGA module, a memory, and a display. The output end of the host computer is connected to the ARM processor through an interface, the ARM processor is connected to the FPGA module and the signals of the two are intercommunication, the memory is connected to the FPGA module and the signals of the two are intercommunication, and the display is connected to the FPGA module and the signals of the two are intercommunication.
8. The multi-layer logic screen generating device according to claim 7, characterized in that: The FPGA module includes a command management module, a drawing address and pixel coordinate generation module, a logic screen generation module, a layer frame generation module, a memory access arbitration module, and a display driver module. One end of the command management module is connected to the ARM processor and accepts commands from the ARM processor. The other end of the command management module is connected to the drawing address and pixel coordinate generation module and outputs image parameters to it. The drawing address and pixel coordinate generation module is connected to the layer frame generation module and outputs image parameters and pixel coordinates to it. The drawing address and pixel coordinate generation module is connected to the logic screen generation module and outputs image parameters and pixel coordinates to it. The drawing address and pixel coordinate generation module is connected to the memory access arbitration module and outputs the memory address to it. The layer frame generation module is connected to the logic screen generation module and outputs parameters within the frame boundary to it. The layer frame generation module is connected to the memory access arbitration module and outputs image data to it. The memory access arbitration module is connected to the display driver module and outputs an image screen to it.
Citation Information
Patent Citations
Any-order checker board image assembly generating method based on FPGA
CN104143303A
FPGA (Field Programmable Gata Array) based Flicker picture component generation method
CN104200765A
Logic frame overlapping device and method based on FPGA
CN104900204A
FPGA-based figure signal producing device and method
CN104932124A
Graphics accelerator based on FPGA in military airborne cockpit display system
CN105430303A
