High-frame-frequency format conversion method and circuit for high-resolution image data
By using two independent RAMs and ping-pong logic operations in a high-resolution image display device, combined with a multi-channel asynchronous FIFO parallel buffer storage structure, the problem of image data grouping and arrangement when driving at a high frame rate is solved, and the image data is realized. Efficient synchronized output and real-time performance.
Patent Information
- Application Number
- CN202410840562.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-06-27
AI Technical Summary
When a high-resolution image display device is driven at a high frame rate, it needs to complete the grouping and rearrangement of image data, and at the same time ensure the synchronous high frame rate driving of multiple grouped image data, which is difficult to effectively implement with existing technology.
Two independent RAMs are used for ping-pong logic operations. The standard image data format is converted into a specific sequential format through group format conversion logic and data sequence reading logic, and a multi-channel asynchronous FIFO parallel buffer storage structure is used to ensure fast image data , reliable temporary storage and synchronous output.
It realizes efficient format conversion and grouping arrangement of image data, ensures the real-time and reliability of high frame rate driving, and reduces the difficulty of designing the display device driving circuit.
Smart Images

Figure CN118660199A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image data format conversion, and in particular to a high frame rate format conversion method and circuit for high-resolution image data. Background Art
[0002] High-resolution image display devices are characterized by large amounts of data. To ensure their high frame rate display capabilities, such as a frame rate of 200fps or above, an effective driving method used by display devices is to group high-resolution display devices into multiple low-resolution sub-image arrays, and drive the sub-array images at a synchronous high frame rate, so that the display device can display high-resolution images at a high frame rate.
[0003] For example, a MEMS display core block has a resolution of 1024×1024 pixels. The display driver circuit is integrated inside the core block, and the group synchronous drive method is used to ensure that the display frame rate reaches 200fps or above. Inside the display core block, all pixels are grouped into 8 sub-image arrays, and the resolution of each sub-image array is 256 (width) × 512 (height). Figure 5 As shown. Therefore, when the MEMS display core block is working, 8 data input channels are provided to the outside, and each data channel corresponds to a sub-array image. At the same time, due to the design of the driving circuit, the input of each sub-array image data cannot be arranged in a row-by-row and point-by-point scanning order from left to right and from top to bottom, but has a specific order requirement, that is, the 256 columns of the sub-array image data are divided into 16 groups, and each continuous 16 columns are a group. The order of data sent to the MEMS display core block is required to be arranged in rows and columns, that is: the 1st row and the 1st column (the 1st group), the 17th row and the 1st column (the 2nd group), the 33rd row and the 3rd column (the 3rd group), ..., the 241st row and the 16th column (the 16th group), the 2nd row and the 2nd column (the 1st group), the 18th row and the 1st column (the 2nd group), ..., the 240th row and the 256th row and the 256th column (the 16th group).
[0004] Therefore, when driving this type of display device at a high frame rate, it is necessary to complete the grouping and rearrangement of image data, and also to ensure synchronous high frame rate driving of multiple grouped image data. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a high frame rate format conversion method for high-resolution image data.
[0006] In order to achieve the above object, the present invention is achieved through the following technical solutions:
[0007] A high frame rate format conversion method for high-resolution image data, comprising:
[0008] S101 obtains two completely independent RAMs as image data caches and respectively as buffers, and the address bus, data bus and control signal of each RAM are respectively connected to the corresponding RAM control logic.
[0009] S102 connects the two RAMs to the ping-pong logic respectively.
[0010] S103: Input the image data into the packet format conversion logic, and generate a control signal, an address signal and a data signal for writing into the RAM of the image data buffer. The packet format conversion logic is used to convert the format of the input sequential image data of the standard image format.
[0011] S104: The data sequential reading logic generates a control signal and an address signal for reading the RAM according to the driving timing requirement, and transmits the control signal and the address signal to the ping-pong logic.
[0012] S105 ping-pong logic control switches the read and write operation functions of the two RAM blocks, converting the written RAM into a read block and converting the read RAM into a write block.
[0013] S106 The ping-pong logic sends the image data of the RAM of the switched read-out block to the data sequential read logic.
[0014] S107 The sequential reading logic sends the image data to the driving circuit interface of the display device.
[0015] Compared with the prior art, the present invention has the following advantages:
[0016] Two independent RAMs are used as memory for image data caching. These two RAMs adopt ping-pong logic operation mode. At any time, one RAM is used as a buffer for receiving data to store received image data, and the other RAM is used as an output data buffer to provide image data to the image display device. When writing data to the RAM for receiving data, the format conversion of the external input image data is completed, and the standard sequential format data from left to right and from top to bottom is converted into a specific grouped data format to meet specific sequence requirements; when outputting data to the display device, the output is read sequentially from the RAM buffer. The above process completes the grouping and rearrangement of image data, ensuring the synchronous high frame rate drive of multiple grouped image data.
[0017] Further preferably, S103 inputs the image data into the packet format conversion logic, and generates a control signal, an address signal, and a data signal written into the RAM of the image data cache, including:
[0018] S201 determines the number of asynchronous FIFOs used and the data depth of each FIFO by a multiplication method, and numbers each FIFO.
[0019] S202 receives and counts the sequential image data, determines the row coordinates and column coordinates in the sequential image data, and writes the row coordinates and column coordinates into the corresponding FIFO for buffering to obtain buffered data.
[0020] S203: When the amount of buffered data in the FIFO reaches the full amount, the FIFO is started to sequentially read out the buffered data, and the read-out rows of the buffered data are counted and numbered, wherein the full amount is the amount of all sub-images contained in each row of image data.
[0021] S204 generates the RAM address signal and the write control signal based on the read FIFO number and the count value of the read row.
[0022] S205 transmits the data signal read out from the FIFO, the address signal of the RAM, and the write control signal to the ping-pong logic.
[0023] By adopting the above technical solution, in view of the fact that the input image data packet structure has a specific sequence requirement, a multi-channel asynchronous FIFO parallel buffer storage structure is adopted, which ensures fast and reliable temporary storage of input data.
[0024] Further preferably, S201 determines the number of asynchronous FIFOs used and the data depth of each FIFO by a product method, and numbers each FIFO, including:
[0025] S301 divides each sub-image in the image data into groups to obtain the number of groups.
[0026] S302 sets each column in the grouped quantity as one data channel, thereby determining the number of data channels in the grouped quantity and obtaining the number of data channels.
[0027] S302 multiplies the number of packets by the number of data channels to obtain the number of asynchronous FIFOs used.
[0028] S304 determines that the data depth of the FIFO is at least twice the number of packets.
[0029] S305 numbers each FIFO.
[0030] By adopting the above technical solution, the input image data is subjected to the data channel and the number of packets to determine the number of asynchronous FIFOs, the data depth and the numbering, so as to convert the format and output the image data in sequence.
[0031] Further preferably, the packet format conversion logic is used to convert the format of the input sequential image data of the standard image format, using a two-layer FIFO method, including:
[0032] The first layer of S401 adopts a multi-channel FIFO grouping format to divide the sequential image data into multiple buffers and write them into their respective FIFOs to obtain multiple channels of image data.
[0033] S402 The second layer adopts a single FIFO mode to take out the multi-channel image data from the first layer multi-channel FIFO and write it into the second layer FIFO.
[0034] By adopting the above technical solution, at the output end of the second-layer FIFO, the address signal and control signal required for writing into the RAM are generated while the image data is read out, so that the image data after grouping conversion can be accurately written into the corresponding RAM.
[0035] Further optimization is that the multi-channel FIFO grouping form is an asynchronous FIFO, and the input and output data widths of the FIFO meet a preset proportional relationship, and the preset proportional relationship is the ratio of the input data width to the output data width.
[0036] By adopting the above technical solution, the proportional relationship between the input and output data widths of the asynchronous FIFO is utilized to complete the data sequence reorganization according to the input data format requirements, so that only the proportional relationship between the input and output data widths of the asynchronous FIFO and the logic of writing to the FIFO can be changed to meet the needs of conversion of different image data formats, which has high flexibility and real-time performance.
[0037] Further optimization is that S105 ping-pong logic controls the switching of the read and write operation functions of the two RAM blocks, converting the written RAM into the read block and converting the read RAM into the write block, including:
[0038] S601 When the packet format conversion logic generates a write control signal and sends it to the ping-pong logic, the ping-pong logic generates an imgwrting valid signal internally to indicate that a RAM write operation is being performed.
[0039] S602 When the data is read sequentially to generate a read control signal and input into the ping-pong logic, the ping-pong logic generates an imgreading valid signal inside to indicate that a RAM write operation is in progress.
[0040] S603 starts the ping-pong logic. If both the write-valid signal and the read-valid signal are in an invalid state, mutually exclusive writeselect and readselect signals are generated to control the exchange of input control signals of the two RAM blocks.
[0041] By adopting the above technical solution, when writing data to one RAM, data is only read from another RAM, thereby ensuring that the input image data can be format converted and read and write controlled in sequence.
[0042] Also disclosed is a high frame rate format conversion circuit for high-resolution image data, which is used for grouping and rearranging high-resolution image data, including: ping-pong logic, RAMA, RAMB, the ping-pong logic is connected to RAMA and RAMB through RAM control logic. Also includes:
[0043] The packet format conversion logic is connected to the ping-pong logic data and is used to convert the format of the input sequential image data in the standard image format and generate the write control signal and address signal of the RAM.
[0044] The data sequential reading logic is connected to the ping-pong logic data and is used to generate a control signal and an address signal for reading the RAM and transmit the control signal and the address signal to the ping-pong logic.
[0045] By adopting the above technical solution, the real-time and reliability of image data format conversion and image data drive output are guaranteed while performing input data packet format conversion. The data sequential reading logic generates a control signal and an address signal for reading RAM according to the driving timing requirements of the back-end display device, wherein the address signal is in a sequential mode and is sent to the ping-pong logic, which is used to control the switching of the logic of the read and write operations of the two RAMs. The ping-pong logic sends the image data read from the RAM to the sequential reading logic, which is sent to the driving circuit interface of the display device. The packet format conversion, ping-pong logic and data sequential reading in the above circuit can be implemented in one FPGA core block.
[0046] Further optimization: the packet format conversion logic includes:
[0047] Write selection logic and connect it to the data source, where the data source is a data source that outputs image data in a standard format.
[0048] The first layer FIFO is a multi-channel format conversion logic, which is connected to the write selection logic data and is used to divide the sequential image data into multiple buffers according to the image data format conversion requirements and write them into their respective FIFOs to obtain multiple channels of image data.
[0049] Multiplexer, connected to the first layer FIFO data.
[0050] The second-layer FIFO is a single format conversion logic, which is respectively connected to the multiplexer and the data sequential reading logic data. The multiplexer is used to read out multiple image data and transmit them to the second-layer FIFO. The second-layer FIFO is used to generate write control signals and address signals.
[0051] The above technical solution adopts a multi-channel asynchronous FIFO parallel buffer storage structure, which not only ensures fast and reliable temporary storage of input data, but also meets the characteristics of the input image data grouping structure.
[0052] Further optimization is that the data sequential reading logic uses FIFO read selection logic.
[0053] The above technical solution ensures that the converted image data is written or read out in a sequential manner, ensuring that the image data meets specific sequential reading and writing requirements.
[0054] It is further optimized to also include: address signal generation logic, connected to the second layer FIFO data, for generating a write address signal.
[0055] By adopting the above technical solution, the grouped image data and the generated write address signal are used together to generate a RAM control logic signal, which provides a sequential basis for the ping-pong logic to perform switching arbitration. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a schematic diagram of circuit module connection in Embodiment 2.
[0057] Figure 2 Schematic diagram of the method process of embodiment 1.
[0058] Figure 3 Schematic diagram of address generation rules for writing DDR3 SDRAM data.
[0059] Figure 4 Schematic diagram of ping-pong logic switching DDR3SDRAM read and write control.
[0060] Figure 5 Schematic diagram of the sub-image array inside the MEMS core block. DETAILED DESCRIPTION
[0061] The following is combined with Figure 1-Figure 5 The present invention is further described in detail.
[0062] Embodiment 1
[0063] A method for converting high-resolution image data into a high frame rate format, such as Figure 1 As shown, including:
[0064] S101 obtains two completely independent RAMs as image data caches and respectively as buffers, and the address bus, data bus and control signal of each RAM are respectively connected to the corresponding RAM control logic.
[0065] S102 connects the two RAMs to the ping-pong logic respectively.
[0066] S103: Input the image data into the packet format conversion logic, and generate a control signal, an address signal and a data signal for writing into the RAM of the image data buffer. The packet format conversion logic is used to convert the format of the input sequential image data of the standard image format.
[0067] S104: The data sequential reading logic generates a control signal and an address signal for reading the RAM according to the driving timing requirement, and transmits the control signal and the address signal to the ping-pong logic.
[0068] S105 ping-pong logic control switches the read and write operation functions of the two RAM blocks, converting the written RAM into a read block and converting the read RAM into a write block.
[0069] S106 The ping-pong logic sends the image data of the RAM of the switched read-out block to the data sequential read logic.
[0070] S107 The sequential reading logic sends the image data to the driving circuit interface of the display device.
[0071] Two independent RAMs are used as memory for image data caching. These two RAMs adopt ping-pong logic operation mode. At any time, one RAM is used as a buffer for receiving data to store received image data, and the other RAM is used as an output data buffer to provide image data to the image display device. When writing data to the RAM for receiving data, the format conversion of the external input image data is completed, and the standard sequential format data from left to right and from top to bottom is converted into a specific grouped data format to meet specific sequence requirements; when outputting data to the display device, the output is read sequentially from the RAM buffer. The above process completes the grouping and rearrangement of image data, ensuring the synchronous high frame rate drive of multiple grouped image data.
[0072] Specifically, S103 in this embodiment inputs the image data into the packet format conversion logic, and generates a control signal, an address signal, and a data signal written into the RAM of the image data cache, including:
[0073] S201 determines the number of asynchronous FIFOs used and the data depth of each FIFO by a multiplication method, and numbers each FIFO.
[0074] S202 receives and counts the sequential image data, determines the row coordinates and column coordinates in the sequential image data, and writes the row coordinates and column coordinates into the corresponding FIFO for buffering to obtain buffered data.
[0075] S203: When the amount of buffered data in the FIFO reaches the full amount, the FIFO is started to sequentially read out the buffered data, and the read-out rows of the buffered data are counted and numbered, wherein the full amount is the amount of all sub-images contained in each row of image data.
[0076] S204 generates the RAM address signal and the write control signal based on the read FIFO number and the count value of the read row.
[0077] S205 transmits the data signal read out from the FIFO, the address signal of the RAM, and the write control signal to the ping-pong logic.
[0078] In view of the fact that the input image data packet structure has specific sequence requirements, a multi-channel asynchronous FIFO parallel buffer storage structure is adopted to ensure fast and reliable temporary storage of input data.
[0079] Specifically, in this embodiment, S201 determines the number of asynchronous FIFOs used and the data depth of each FIFO by a product method, and numbers each FIFO, including:
[0080] S301 divides each sub-image in the image data into groups to obtain the number of groups.
[0081] S302 sets each column in the grouped quantity as one data channel, thereby determining the number of data channels in the grouped quantity and obtaining the number of data channels.
[0082] S302 multiplies the number of packets by the number of data channels to obtain the number of asynchronous FIFOs used.
[0083] S304 determines that the data depth of the FIFO is at least twice the number of packets.
[0084] S305 numbers each FIFO.
[0085] The input image data is determined by the data channel and the number of packets to determine the number of asynchronous FIFOs, the data depth and the numbering, so that the image data is format converted and output in sequence.
[0086] Specifically, the packet format conversion logic in this embodiment is used to convert the format of the input sequential image data in the standard image format, using a two-layer FIFO method, including:
[0087] The first layer of S401 adopts a multi-channel FIFO grouping format to divide the sequential image data into multiple buffers and write them into their respective FIFOs to obtain multiple channels of image data.
[0088] S402 The second layer adopts a single FIFO mode to take out the multi-channel image data from the first layer multi-channel FIFO and write it into the second layer FIFO.
[0089] At the output end of the second-layer FIFO, the address signal and control signal required for writing into the RAM are generated while the image data is read out, so that the image data after grouping conversion can be accurately written into the corresponding RAM.
[0090] Specifically, in this embodiment, the multi-channel FIFO grouping form is an asynchronous FIFO, and the input and output data widths of the FIFO satisfy a preset proportional relationship, which is the ratio of the input data width to the output data width.
[0091] By utilizing the proportional relationship between the asynchronous FIFO input and output data widths, the data order is reorganized according to the input data format requirements. This allows the needs of different image data format conversions to be met by simply changing the proportional relationship between the asynchronous FIFO input and output data widths and the logic of writing to the FIFO, which has high flexibility and real-time performance.
[0092] Specifically, in this embodiment, S105 ping-pong logic control switches the read and write operation functions of the two RAM blocks, converts the RAM to be written into the read block, and converts the read RAM into the write block, including:
[0093] S601 When the packet format conversion logic generates a write control signal and sends it to the ping-pong logic, the ping-pong logic generates an imgwrting valid signal internally to indicate that a RAM write operation is being performed.
[0094] S602 When the data is read sequentially to generate a read control signal and input into the ping-pong logic, the ping-pong logic generates an imgreading valid signal inside to indicate that a RAM write operation is in progress.
[0095] S603 starts the ping-pong logic. If both the write-valid signal and the read-valid signal are in an invalid state, mutually exclusive writeselect and readselect signals are generated to control the exchange of input control signals of the two RAM blocks.
[0096] When writing data to one RAM block, data is only read from another RAM block, thereby ensuring that the input image data can be format converted and read and write controlled in sequence.
[0097] Embodiment 2
[0098] Also disclosed is a high frame rate format conversion circuit for high resolution image data, which is used to group and rearrange the high resolution image data, such as Figure 1 As shown, it includes: ping-pong logic, RAMA, RAM B, and the ping-pong logic is connected to RAMA and RAMB through RAM control logic. It also includes:
[0099] The packet format conversion logic is connected to the ping-pong logic data and is used to convert the format of the input sequential image data in the standard image format and generate the write control signal and address signal of the RAM.
[0100] The data sequential reading logic is connected to the ping-pong logic data and is used to generate a control signal and an address signal for reading the RAM and transmit the control signal and the address signal to the ping-pong logic.
[0101] While converting the input data packet format, the real-time and reliability of the image data format conversion and image data drive output are guaranteed. The data sequential reading logic generates the control signal and address signal for reading the RAM according to the driving timing requirements of the back-end display device, where the address signal is in sequential mode and is sent to the ping-pong logic. The ping-pong logic is used to control the switching of the logic of the read and write operations of the two RAMs. The ping-pong logic sends the image data read from the RAM to the sequential reading logic, which is sent to the driving circuit interface of the display device. The packet format conversion, ping-pong logic and data sequential reading in the above circuit can be implemented in one FPGA core block.
[0102] Specifically, the packet format conversion logic in this embodiment includes:
[0103] Write selection logic and connect it to the data source, where the data source is a data source that outputs image data in a standard format.
[0104] The first layer FIFO is a multi-channel format conversion logic, which is connected to the write selection logic data and is used to divide the sequential image data into multiple buffers according to the image data format conversion requirements and write them into their respective FIFOs to obtain multiple channels of image data.
[0105] Multiplexer, connected to the first layer FIFO data.
[0106] The second-layer FIFO is a single format conversion logic, which is respectively connected to the multiplexer and the data sequential reading logic data. The multiplexer is used to read out multiple image data and transmit them to the second-layer FIFO. The second-layer FIFO is used to generate write control signals and address signals.
[0107] The use of a multi-channel asynchronous FIFO parallel buffer storage structure ensures fast and reliable temporary storage of input data and meets the characteristics of the input image data grouping structure.
[0108] Specifically, in this embodiment, the data sequential reading logic uses FIFO read selection logic to ensure that the converted image data is written or read out in a sequential manner, ensuring that the image data meets specific sequential reading and writing requirements.
[0109] Specifically, this embodiment also includes: address signal generation logic, connected to the second layer FIFO data, for generating a write address signal, grouping the image data and the generated write address signal together to generate a RAM control logic signal, providing a sequential basis for the ping-pong logic to perform switching arbitration.
[0110] Please combine Example 1, Example 2, Figure 1 , Figure 2 , Figure 3 , Figure 4as well as Figure 5 The present invention takes a 1024×1024 element MEMS display core block as an example to specifically illustrate the process of the above conversion method and conversion circuit as follows:
[0111] Two independent DDR3SDRAMs and an FPGA are selected in the circuit. The FPGA includes packet format conversion logic, ping-pong logic, data sequential reading logic and two independent DDR3SDRAM control logics. The ping-pong logic is connected to the packet format conversion logic and the data sequential reading logic respectively. The ping-pong logic is also connected to the two DDR3SDRAM control logics respectively. The two DDR3SDRAM control logics are independently connected to the two DDR3SDRAM control logics; the ping-pong logic is connected to the external image data input interface circuit; the data sequential reading circuit is connected to the image data output interface circuit.
[0112] The packet format conversion logic converts the format of the sequential image data in the input standard image format. The core method is to use two layers of FIFO, as shown in the figure, where the first layer adopts a multi-channel FIFO grouping form, and divides the sequential image data into multiple caches according to the image data format conversion requirements and writes them into their respective FIFOs to obtain multiple image data; the second layer single FIFO method takes out the cached multiple image data from the first layer multi-channel FIFO and writes them into the second layer FIFO according to the data sorting requirements after format conversion. At the output end of the second layer FIFO, the address signal and control signal required for writing to DDR3SDRAM are generated while reading out the image data, so that the multiple image data can be accurately written into the corresponding DDR3SDRAM, and the two layers of FIFO are connected through a multi-channel data selector.
[0113] The 1024×1024 element MEMS display device is divided into eight 256 (width)×512 (height) sub-image arrays, such as Figure 5 As shown in the figure, the grayscale resolution of each pixel is 16 bits. In the sub-image array, 16 consecutive columns form a group, with a total of 16 groups. Each column in a group is a data channel, with a total of 16 data channels. Therefore, the number of asynchronous FIFOs in the first layer of FIFO is 16×16=256. Since 1 row of image data contains 4 sub-array image data, the storage depth of FIFO is at least 8 data.
[0114] To match the control of DDR3 SDRAM, the first-layer FIFO uses an asynchronous FIFO so that the FIFO input and output data widths satisfy the relationship of 1:4, that is, the input data width is 16 bits and the output data width is 64 bits. The data grouping write logic of the first-layer FIFO is implemented in the FIFO write selection logic. The principle is that the image data of 1024 pixels in a row is written into the corresponding FIFO in groups of 256 consecutive pixels. Figure 2 As shown, the image data of the 1st, 257th, 513th and 769th columns of each row are sequentially written into the FIFO No. 1, the image data of the 2nd, 258th, 514th and 770th columns are sequentially written into the FIFO No. 2, ..., the image data of the 256th, 512th, 768th and 1024th columns are sequentially written into the FIFO No. 256. When the number of data contained in any FIFO in the first-layer multi-channel FIFO reaches 4, the FIFO multi-channel data selector will send a control signal to read out 4 data at a time with a width of 64 bits and write them into the second-layer FIFO at the back end, so that the multiple data output by the first-layer multi-channel FIFO is correctly written into the single FIFO of the second layer.
[0115] The second-layer FIFO uses a synchronous FIFO. When the number of data is not empty, the DDR3SDRAM address signal generation logic will use the image data counter (20 bits) to generate the DDR3SDRAM write address signal. The upper 10 bits of the image data counter correspond to the row address row_addr[9:0] of the image data, and the lower 10 bits correspond to the column address col_addr[9:0] of the image data. The address generation rules for actually writing data into the DDR3SDRAM are as follows: Figure 3 As shown, the lowest 3 bits of the address bit[2:0] remain 0, bit[3] is the highest bit of the row address row_addr[9], bit[12:4] is the lower 9 bits of the row address row_addr[8:0], and bit[19:13] is the upper 7 bits of the column address row_addr[9:3]. The DDR3SDRAM address signal generation logic generates the read control signal of the second layer FIFO while generating the DDR3 address signal, reads the data from the FIFO, and then generates the DDR3SDRAM control logic signal together with the read packet image data and the generated DDR3 address signal, and sends it to the ping-pong logic.
[0116] The sequential read logic will start the generation of DDR3SDRAM read data logic signals under the frame beat control of the driving display 1024×1024 element MEMS display device, where the address signal is generated by a sequential counter, and then the DDR3SDRAM read control and address signals are output to the ping-pong logic; finally, the DDR3SDRAM data output by the ping-pong logic is sent to the back-end display device data input interface.
[0117] The control logic of DDR3SDRAM can be directly implemented using the dedicated IP core inside the FPGA.
[0118] Ping-pong logic is the arbitration logic for the read / write control and address data channels of two DDR3SDRAMs. Its structure is shown in the figure below. The core of ping-pong logic is the following two:
[0119] The ping-pong switching of the read and write control of the two DDR3 SDRAMs only occurs after the DDR3 SDRAM write control signal is generated, thus ensuring that the sequential data read logic can always read the latest updated and format-converted image data from the DDR3 SDRAM.
[0120] The ping-pong switching of DDR3SDRAM read / write control should be done when there is no read / write control on the two DDR3SDRAMs. Figure 4 As shown, when the DDR3SDRAM write control signal generated by the packet format conversion logic is sent to the ping-pong logic, the ping-pong logic will generate an imgwriting valid signal to indicate that the DDR3SDRAM write operation is in progress; when the DDR3SDRAM read control signal generated by the data sequential read logic is sent to the ping-pong logic, the ping-pong logic will generate an imgreading valid signal to indicate that the DDR3SDRAM write operation is in progress; after a frame of image data is written into the DDR3SDRAM, the ping-pong logic is started to perform arbitration judgment. If the imgwrting and imgreading signals are both in an invalid state at this time, mutually exclusive writeselect and readselect signals are generated to control the exchange of the input control signals of the two DDR3SDRAMs, thereby ensuring that when data is written to DDR3SDRAM block A, data is only read from DDR3SDRAM block B, or vice versa.
[0121] In summary, combined with the above two embodiments, we can conclude that the present invention has the following advantages:
[0122] First, two independent RAMs are used for ping-pong logic operations, so that the input image data format conversion and image data drive output can be performed simultaneously, ensuring the real-time and reliability of image data format conversion and image data drive output. Second, in view of the characteristics of the input image data grouping structure, a multi-channel asynchronous FIFO parallel buffer storage structure is adopted, which not only ensures the fast and reliable temporary storage of input data, but also uses the proportional relationship between the input and output data widths of the asynchronous FIFO to complete the data sequence reorganization according to the input data format requirements, so that only by changing the proportional relationship between the input and output data widths of the asynchronous FIFO and the logic of writing to the FIFO, it is possible to meet the needs of different image data format conversions, with high flexibility and real-time performance. Third, the image data after format conversion is read out in sequence and output to the display device, reducing the design difficulty of the display device drive circuit on the core block.
[0123] This specific embodiment is merely an explanation of the invention and is not a limitation of the invention. After reading this specification, those skilled in the art may make non-creative modifications to this embodiment as needed. However, as long as they are within the scope of protection of the invention, they are protected by patent law.
Claims
1. A method for converting high-resolution image data into a high frame rate format, characterized in that: include: S101 obtains two completely independent RAMs as image data and respectively serves as buffers, and the address bus, data bus and control signal of each RAM are respectively connected to the corresponding RAM control logic; S102 connects the two RAMs to the ping-pong logic respectively; S103: inputting the image data into the packet format conversion logic, and generating a control signal, an address signal and a data signal written into the RAM of the image data buffer; the packet format conversion logic is used to perform format conversion on the input sequential image data of the standard image format; S104: the data sequential reading logic generates a control signal and an address signal for reading the RAM according to the driving timing requirement, and transmits the control signal and the address signal to the ping-pong logic; S105: the ping-pong logic controls the switching of the read and write operation functions of the two RAM blocks, converting the RAM to be written into a read block and converting the RAM to be read into a write block; S106 the ping-pong logic sends the image data of the RAM that is switched to the read-out block to the data sequential reading logic; S107 The sequential reading logic sends the image data to the driving circuit interface of the display device.
2. The high frame rate format conversion method for high resolution image data according to claim 1, characterized in that: The step S103 inputs the image data into the packet format conversion logic and generates a control signal, an address signal and a data signal written into the RAM of the image data cache, including: S201 determines the number of asynchronous FIFOs used and the data depth of each FIFO by a product method, and numbers each FIFO; S202 receives sequential image data and counts them, determines row coordinates and column coordinates in the sequential image data, and writes the row coordinates and column coordinates into a corresponding FIFO for buffering to obtain buffered data; S203: when the amount of cached data in the FIFO reaches a full amount, start the FIFO to sequentially read out the cached data, and count and number the read rows of the cached data; wherein the full amount is the amount of all sub-images contained in each row of image data; S204 generates an address signal and a write control signal of the RAM according to the number of the FIFO read out and the count value of the row read out; S205 transmits the data signal read out from the FIFO, the address signal of the RAM, and the write control signal to the ping-pong logic.
3. The high frame rate format conversion method for high resolution image data according to claim 2, characterized in that: The S201 determines the number of asynchronous FIFOs and the data depth of each FIFO by a product method, and numbers each FIFO, including: S301 divides each sub-image in the image data into groups to obtain the number of groups; S302 sets each column in the grouped quantity as one data channel, thereby determining the number of data channels in the grouped quantity, and obtaining the number of data channels; S302: multiplying the number of packets by the number of data channels to obtain the number of asynchronous FIFOs used; S304 determines that the data depth of the FIFO is at least twice the number of packets; S305 numbers each FIFO.
4. The high frame rate format conversion method for high resolution image data according to claim 1, characterized in that: The packet format conversion logic is used to convert the format of the input sequential image data in the standard image format, using a two-layer FIFO method, including: S401 The first layer adopts a multi-channel FI FO grouping form to divide the sequential image data into multiple buffers and write them into their respective FI FOs to obtain multiple channels of image data; S402: The second layer adopts a single FIFO mode to take out the multiple-channel image data from the first layer multiple-channel FIFO and write them into the second layer FIFO.
5. The high frame rate format conversion method for high resolution image data according to claim 4, characterized in that: The multi-channel FIFO grouping form is an asynchronous FIFO, and the input and output data widths of the FIFO satisfy a preset proportional relationship, and the preset proportional relationship is the ratio of the input data width to the output data width.
6. The high frame rate format conversion method for high resolution image data according to claim 4, characterized in that: The ping-pong logic control of S105 switches the read and write operation functions of the two RAM blocks, converting the RAM to be written into a read block and converting the RAM to be read into a write block, including: S601: When the packet format conversion logic generates a write control signal and sends it to the ping-pong logic, the ping-pong logic generates an imgwrting valid signal to indicate that a RAM write operation is being performed; S602: when the data is sequentially read and a read control signal is generated and input into the ping-pong logic, the ping-pong logic generates an imgreading valid signal inside to indicate that a RAM write operation is being performed; S603 starts the ping-pong logic. If both the write-valid signal and the read-valid signal are in an invalid state, mutually exclusive write select and read select signals are generated to control the exchange of input control signals of the two RAM blocks.
7. A high frame rate format conversion circuit for high resolution image data, for grouping and rearranging high resolution image data, characterized in that: include: Ping-pong logic, RAM A, and RAM B, wherein the ping-pong logic is connected to the RAM A and the RAM B respectively through RAM control logic; and further comprising: The packet format conversion logic is connected to the ping-pong logic data, and is used to convert the format of the inputted sequential image data in the standard image format, and generate a write control signal and an address signal of the RAM; The data sequential reading logic is connected to the ping-pong logic data, and is used to generate a control signal and an address signal for reading the RAM, and transmit the control signal and the address signal to the ping-pong logic.
8. The high frame rate format conversion circuit for high resolution image data according to claim 7, characterized in that: The packet format conversion logic includes: A write selection logic is connected to a data source, wherein the data source is a data source that outputs image data in a standard format; The first layer FIFO is a multi-channel format conversion logic, which is connected to the write selection logic data and is used to divide the sequential image data into multiple buffers and write them into their respective FIFOs according to the image data format conversion requirements to obtain multiple channels of image data; A multiplexer data selector connected to the first layer FIFO data; The second layer FIFO is a single format conversion logic, which is respectively connected to the multiplexer data selector and the data sequential reading logic data. The multiplexer data selector is used to read out the multiplexed image data and transmit them to the second layer FIFO. The second layer FIFO is used to generate write control signals and address signals.
9. The high frame rate format conversion circuit for high resolution image data according to claim 7, characterized in that: The data sequential reading logic uses FIFO read selection logic.
10. The high frame rate format conversion circuit for high resolution image data according to claim 8, characterized in that: Also includes: The address signal generating logic is connected to the second layer FIFO data and is used to generate a write address signal.
Citation Information
Patent Citations
Data processing and transmitting system of high-speed multichannel CCD (charge-coupled device)
CN102638661A
High-resolution video image compression transmission method and system based on FPGA
CN111726634A
Self-adaptive random frame frequency digital video signal and VGA conversion device and method
CN111739455A
Data transfer device
JP2006221545A
Cited By
Data caching method of on-chip logic analyzer and related device
CN119829490A
Data caching method and related device of on-chip logic analyzer
CN119829490B
Real-time data read-write method of on-chip logic analyzer and related device
CN119849393A
Real-time data reading and writing method of on-chip logic analyzer and related device
CN119849393B
Data conversion method, time schedule controller and display panel
CN121306059A
