Data design method and system based on IPI video interface conversion circuit
By using the data design method based on the IPI video interface conversion circuit in SOC design, the problem that the video processor output signal cannot be directly connected to HDMI/DSI/DP is solved, and one IPI signal is converted into four signals and information cache is realized. , reduces hardware costs and improves processing speed.
Patent Information
- Application Number
- CN202411192761.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-12
AI Technical Summary
In SOC design, the 1 IPI video signal output by the video processor cannot be directly connected to IP such as HDMI/DSI/DP, resulting in a high transmission pixel clock frequency, increasing the chip process and comprehensive difficulty.
Design a data design method based on the IPI video interface conversion circuit. Through the timing detection module and the pixel cache module, one IPI video signal is converted into four IPI video signals, and the timing information and pixel information are cached, supporting single link Mode and Dual Link Mode.
The 1-channel IPI video signal output by the video processor is converted into 4-channel IPI video signals, reducing hardware costs and improving the processing speed of video streams.
Smart Images

Figure CN118945283A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of integrated circuit video control, and in particular to a data design method and system based on an IPI video interface conversion circuit. Background Art
[0002] At present, with the improvement of video resolution and refresh rate, the number of pixels that need to be transmitted per second has increased dramatically. As a result, the pixel clock frequency used to transmit pixels has become higher and higher. Using high-speed clocks in SOC design will depend on chip technology and cause great difficulties for chip synthesis and back-end. Therefore, most HDMI / DSI / DP and other IPs currently use 4-way IPI interfaces. At the same time, many current video processors output signals with 1-way IPI interfaces. Due to the different number of pixel channels, the pixel interface output by the video processor cannot be directly connected to HDMI / DSI / DP and other IPs.
[0003] In order to overcome the above problems, it is urgent to design a method that can convert the 1-channel IPI video signal output by the video processor into 4-channel IPI video signals and can cache the timing information and pixel information. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a data design method based on an IPI video interface conversion circuit. The data design method realizes the cache of timing information and pixel information based on the conversion circuit, and comprises the following steps:
[0005] Step S1: use the timing detection module in the link control module to complete the timing detection; and set the register control module to facilitate writing, including: setting the qpi output threshold; configuring the link mode: single link mode and dual link mode configuration; configuring the timing parameters such as hfrontporch, hsync_width, hbackporch, and hactive; configuring the polarity of vsync and hsync;
[0006] Step S2: the link control module outputs the number of valid pixels in the row and sends it to the pixel control module and the qpi output control module; the link control module outputs the qpi_out_th threshold and sends it to the timing control module;
[0007] Step S3: In the pixel cache module provided at the same time, the pixel data is stored in the register, and the data is output when the read is enabled;
[0008] Step S4: the provided qpi output control module receives the timing information from the timing control module and the pixel data from the pixel buffer module, combines the timing information and the pixel data into a qpi video signal, and then outputs it through the output terminals qpi0 and qpi1.
[0009] In one embodiment of the present invention, the data design method supports a single link mode or a dual link mode.
[0010] In one embodiment of the present invention, the link control module determines whether the corresponding link is valid, including through register configuration or through a timing detection module; automatically detects the timing and data information of the link to determine whether the link is valid, and when configured through registers, the link will immediately enter a valid state after the register configuration is completed;
[0011] When passing the timing detection module, it needs to go through at least one row of detection before entering the link valid state.
[0012] In one embodiment of the present invention, the timing detection module detects the timing information in the link, including hsyncwidth, hbackproch, hfrontporch and h_active; the link control module outputs the number of valid pixels in the h_active row and sends it to the pixel control module and the qpi output control module. The link control module also outputs the qpi_out_th threshold and sends it to the timing control module.
[0013] The present invention also provides a data system based on an IPI video interface conversion circuit, comprising two groups of data streams, namely data of link0 and link1; wherein one video data stream of link0 comprises link control module 0, timing control module 0, pixel control module 0, and pixel cache module 0, and at the same time one video data stream of link1 comprises link control module 1, timing control module 1, pixel control module 1, and pixel cache module 1; and link0 and link1 data also share a qpi output control module and a register control module.
[0014] In one embodiment of the present invention, timingbuffer0 provided in timing control module 0 is used to store timing information of link0, and timingbuffer1 provided in timing control module 1 is used to store timing information of link1; the capacity of timingbuffer needs to be able to store at least one row of timing information.
[0015] In one embodiment of the present invention, databuffer0 is provided in pixel control module 0, and is used to store pixel data of link0; databuffer1 is provided in pixel control module 1, and is used to store pixel data of link1; at the same time, pixel control module 0 and pixel control module 1 both complete the conversion of 1-way IPI effective pixel data to 4-way IPI effective pixel data and use databuffer to store data; the pixel control module writes 30 bits of each pixel into 4 pixels with a total of 120 bits into the buffer, and then reads 120 bits of data from the buffer for output.
[0016] The above technical solution of the present invention has the following advantages over the prior art: the data design method described in the present invention converts 1-channel IPI video signal output by the video processor into 4-channel IPI video signals, and can realize the caching of timing information and pixel information, thereby reducing the hardware cost of the module and improving the processing speed of the video stream. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.
[0018] Figure 1 The present invention is based on the data design method of the IPI video interface conversion circuit, the structure schematic diagram of the system and the flow chart;
[0019] Figure 2 It is a flow chart of storing timing information and data information according to the present invention;
[0020] Figure 3 is a flow chart of reading timing information and data information according to the present invention;
[0021] Figure 4 is a flow chart of the state machine of the present invention;
[0022] Figure 5 is a structural diagram of the timing buffer described in the present invention;
[0023] Figure 6 It is a structural diagram of the databuffer described in the present invention. DETAILED DESCRIPTION
[0024] like Figure 1As shown, this embodiment provides a data system based on an IPI video interface conversion circuit, including two groups of data streams, namely link0 and link1 data; wherein one video data stream of link0 includes link control module 0, timing control module 0, pixel control module 0, and pixel cache module 0, and at the same time, one video data stream of link1 includes link control module 1, timing control module 1, pixel control module 1, and pixel cache module 1; and link0 and link1 data also share a qpi output control module and a register control module.
[0025] The data of link0 and link1 come from the video display controller. Link0 is a 1-channel IPI video. Link1 is also a 1-channel IPI video. Link0 and link1 can send video in only one channel or in both channels at the same time. Single link mode and dual link mode are supported. In single link mode, link0 and link1 are independent video streams. The video stream input by link0 is output through qpi0, and the video stream input by link1 is output through qpi1. In dual link mode, link0 inputs the left half frame, and link1 inputs the right half frame. The designed module merges the left half frame and the right half frame and outputs it through qpi0.
[0026] The data design method described in this embodiment includes: a timing detection module in a link control module to realize the timing detection function. The link control module can output the number of valid pixels in a row and send it to the pixel control module and the qpi output control module. The link control module can output the qpi_out_th threshold and send it to the timing control module.
[0027] The pixel cache module is used to cache the pixel data in the pixel control module. The register is used to store the pixel data. The data can be output when the read is enabled without causing data delay.
[0028] The qpi output control module receives the timing information from the timing control module (0 / 1) and the pixel data from the pixel buffer module (0 / 1), combines the timing information and the pixel data into a qpi video signal, and then outputs it through qpi0 and qpi1.
[0029] The link control module can determine whether the corresponding link is valid. Two methods are used during design: Method 1 is through register configuration; Method 2 is through the timing detection module, which automatically detects the timing and data information of the link to determine whether the link is valid. When using method 1, the link will enter the valid state immediately after the register configuration is completed. When using method 2, it is necessary to enter the valid state after at least one row of detection. The state machine is used to determine whether the corresponding link is valid. The state machine diagram is as follows Figure 4 shown.
[0030] The timing detection module in the link control module implements the timing detection function. It detects the timing information such as hsyncwidth, hbackproch, hfrontporch and h_active in the link. The link control module can output the number of valid pixels in the h_active line and send it to the pixel control module and the qpi output control module. The link control module can output the qpi_out_th threshold and send it to the timing control module.
[0031] A timing buffer is implemented in the timing control module to store timing information, such as vsync, hsync and dataen. The timing buffer can store the timing information of a whole row. The timing buffer bit width is 12 bits. The timing buffer is as follows Figure 5 shown.
[0032] Timing buffer0 in timing control module 0 is used to store the timing information of link0. Timing buffer1 in timing control module 1 is used to store the timing information of link1. The capacity of the timing buffer needs to be able to store at least one row of timing information. Link_t0 represents vsync, hsync and dataen at time 0, and link_t0 has a total of 3 bits. The same is true for link_t1 to link_t7. Link_t0, link_t1, link_t2 and link_t3 are spliced into 12 bits. Link_t4, link_t5, link_t6 and link_t7 are spliced into 12 bits. Timingbuffer0 and timingbuffer1 are stored according to the storage method of the above-mentioned timing buffer. The timing control module generates a qpi_out_en signal and sends it to the qpi output control module to control the output enable of the qpi interface. When the write pointer of the timingbuffer is greater than the qpi_out_th threshold, the qpi_out_en signal is valid. If Figure 2 As shown, first wait for vsync to be valid, then wait until hsync is valid before starting to write to the timingbuffer. The timingbuffer is an address pointer circular buffer. When the pointer reaches the bottom of the timingbuffer, the pointer will jump to the start position next time.
[0033] The pixel control module can complete the conversion of 1-way IPI effective pixel data to 4-way IPI effective pixel data and use databuffer to store data. The pixel control module writes 30 bits of each pixel into 4 pixels with a total of 120 bits into the buffer, and then reads 120 bits of data from the buffer for output. A databuffer is used in the pixel control module to store pixel data. Databuffer0 in pixel control module 0 is used to store the pixel data of link0. Databuffer1 in pixel control module 1 is used to store the pixel data of link1. The databuffer needs to be able to store a row of pixel data. The databuffer is as follows Figure 6 shown.
[0034] Each pixel of link0 and link1 consists of three components: R, G, and B, and each component is 10 bits. Link_d0 represents the three components of R, G, and B of pixel 0, and link_d0 has a total of 30 bits. The same is true for the other link_dx. Link_d0, link_d1, link_d2, and link_d3 are spliced into 120 bits. Link_d4, link_d5, link_d6, and link_d7 are spliced into 120 bits. The same is true for the rest. Databuffer0 and databuffer1 are stored according to the above databuffer storage method. Figure 2 As shown, first wait for vsync to be valid, then wait until hsync is valid, start writing to the timing buffer, and start writing to data_buffer when data_en is valid. The data_buffer is stored in rows, and each row is always stored starting from position 0 of the data_buffer.
[0035] The pixel cache module is used to cache the pixel data in the pixel control module. The pixel cache module uses a 480-bit register to store pixel data. Each pixel data is 30 bits, and a total of 16 pixel data can be cached. By judging the validity of the pixel storage in the 480-bit register, an empty signal and a full signal are generated. If the empty signal is valid, the pixel will be automatically read from the cache pixel control module and written to the 480-bit register in the pixel cache module. The 480-bit register of the pixel cache module can output data when the read is enabled, without causing data delay.
[0036] The qpi output control module receives the qpi0_out_en signal from the timing control module 0 and the qpi1_out_en signal from the timing control module 1 to enable the corresponding qpi interface output. The qpi output control module reads the valid pixels in the timing buffer and pixel buffer module respectively according to the flow chart of reading timing information and data information, and generates the timing and data of the qpi interface. Figure 3 As shown in the figure, when the timing buffer write pointer is greater than qpi_out_th, the qpi output control module starts to read the timing buffer in the timing control module. When the timing buffer read pointer is equal to the timing buffer size, the timing buffer read pointer is cleared. When reading the timing buffer and data_en is equal to 1, the qpi output control module starts to read the pixel data in the pixel cache module.
[0037] The register control module described in this embodiment implements the following functional configurations: qpi output threshold; link mode configuration: single link mode and dual link mode configuration; timing parameter configurations such as hfrontporch, hsync_width, hbackporch, and hactive; and vsync and hsync polarity configurations.
[0038] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.
Claims
1. A data design method based on an IPI video interface conversion circuit, wherein the data design method realizes the caching of timing information and pixel information based on the conversion circuit, and is characterized in that: The steps include: Step S1: use the timing detection module in the link control module to complete the timing detection; and set the register control module to facilitate writing, including: setting the qpi output threshold; configuring the link mode: single link mode and dual link mode configuration; configuring the timing parameters such as hfrontporch, hsync_width, hbackporch, and hactive; configuring the polarity of vsync and hsync; Step S2: the link control module outputs the number of valid pixels in the row and sends it to the pixel control module and the qpi output control module; the link control module outputs the qpi_out_th threshold and sends it to the timing control module; Step S3: In the pixel cache module provided at the same time, the pixel data is stored in the register, and the data is output when the read is enabled; Step S4: the provided qpi output control module receives the timing information from the timing control module and the pixel data from the pixel buffer module, combines the timing information and the pixel data into a qpi video signal, and then outputs it through the output terminals qpi0 and qpi1.
2. The data design method according to claim 1, characterized in that: The data design method supports single link mode or dual link mode.
3. The data design method according to claim 1, characterized in that: The link control module determines whether the corresponding link is valid, including through register configuration or through the timing detection module; automatically detects the timing and data information of the link to determine whether the link is valid. When configured through registers, the link will immediately enter the valid state after the register configuration is completed; When passing the timing detection module, it needs to go through at least one row of detection before entering the link valid state.
4. The data design method according to claim 3, characterized in that: The timing detection module detects the timing information in the link, including hsync width, hbackproch, hfrontporch and h_active; the link control module outputs the number of valid pixels in the h_active row and sends it to the pixel control module and the qpi output control module. The link control module also outputs the qpi_out_th threshold and sends it to the timing control module.
5. A data system based on an IPI video interface conversion circuit, characterized in that: It includes two groups of data streams, namely link0 and link1 data; one video data stream of link0 includes link control module 0, timing control module 0, pixel control module 0, and pixel cache module 0, while one video data stream of link1 includes link control module 1, timing control module 1, pixel control module 1, and pixel cache module 1; and link0 and link1 data also share the qpi output control module and register control module.
6. The data system according to claim 5, characterized in that: The timingbuffer0 provided in the timing control module 0 is used to store the timing information of link0, and the timingbuffer1 provided in the timing control module 1 is used to store the timing information of link1; the capacity of the timing buffer needs to be able to store at least one row of timing information.
7. The data design system according to claim 5, characterized in that: The databuffer0 provided in the pixel control module 0 is used to store the pixel data of link0; the databuffer1 provided in the pixel control module 1 is used to store the pixel data of link1; at the same time, the pixel control module 0 and the pixel control module 1 complete the conversion of 1-way IPI effective pixel data to 4-way IPI effective pixel data and use the data buffer to store the data; the pixel control module writes 30 bits of each pixel into 4 pixels with a total of 120 bits into the buffer, and then reads 120 bits of data from the buffer for output.
