Method and device for debugging SERDES chip

By obtaining the access data and display information of the target chip, automatically searching and executing the initialization sequence from the configuration database, it solves the problems of SERDES chip adaptation complexity and debugging prolongation, realizes plug-and-play automatic debugging, and improves development efficiency.

CN118567929APending Publication Date: 2024-08-30FUZHOU ROCKCHIP SEMICON
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410696306.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing technology cannot automatically adapt to different types of SERDES chips, resulting in a redundant and complex development process with a lot of repetitive work, and debugging can only be done after boarding, making it impossible to evaluate and verify in advance, which prolongs the development cycle.

Method used

By obtaining the access data and display information of the target chip, the chip information is determined. If the configuration has been completed, the matching target sequence is retrieved from the pre-created configuration database for initialization, and the test screen is output, achieving plug-and-play and automatic completion. Simulation debugging, separated from the main control chip and operating system.

Benefits of technology

It achieves rapid identification and automatic debugging of different types of SERDES chips, reduces development time, improves development efficiency, avoids repetitive work, and enables program evaluation and verification in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567929A
    Figure CN118567929A
Patent Text Reader

Abstract

The invention discloses a method and a device for debugging a SERDES chip. The method comprises the following steps: acquiring access data and display information of a target chip; determining chip information of the target chip according to the access data; if it is judged that configuration of the target chip is completed according to the chip information, a first target sequence matched with the chip information is retrieved in a pre-created configuration database, and initialization is completed through the first target sequence; and outputting a test picture according to the chip information and the display information. The adaptive chip can be quickly identified and matched, simulation debugging can be automatically completed, plug and play can be realized, and the whole adaptive process is separated from a main control chip and an operating system, so that board striking debugging is not needed, and the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of chip debugging, and in particular to a method and device for debugging a SERDES chip. Background Art

[0002] At present, most display modules in the automotive industry use SERDES chips composed of serializers and deserializers to transmit video signals. The most common SERDES chip models include MAXIM (GMSL), ROHM (CLL) and TI (FPD-Link).

[0003] The main control chip can be adapted to a variety of different SERDES chips, but it cannot integrate multiple types or functions. At the same time, each time the main control chip is adapted, the code needs to be rewritten and the software version needs to be changed, and even the board needs to be re-adapted. The process is redundant and complicated, and there is a lot of repetitive work. In addition, if a different model of SERDES chip needs to be replaced due to performance or cost reasons, it is also necessary to re-adapt, which is time-consuming and labor-intensive, and lacks integrated operation. At present, the debugging of SERDES chips can only be carried out after the board work is completed. The entire debugging process is time-consuming and labor-intensive, and there is a defect that the SERDES solution cannot be evaluated and verified in advance, which prolongs the development cycle. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and device for debugging a SERDES chip, which can automatically adapt to SERDES chips of different models and perform simulation debugging, thereby improving development efficiency.

[0005] In one aspect of the present invention, a method for debugging a SERDES chip is provided. The method includes: obtaining access data and display information of a target chip; determining chip information of the target chip according to the access data; if it is determined that the target chip has been configured according to the chip information, retrieving a first target sequence matching the chip information in a pre-created configuration database, and completing initialization through the first target sequence; and outputting a test screen according to the chip information and the display information.

[0006] In another aspect of the present invention, a device for debugging a SERDES chip is provided. The device includes: an acquisition module configured to obtain access data and display information of a target chip; a matching module configured to determine chip information of the target chip according to the access data, and configured to retrieve a first target sequence matching the chip information from a pre-created configuration database if it is determined that the target chip has been configured according to the chip information, and complete initialization through the first target sequence; and a debugging module configured to output a test screen according to the chip information and the display information.

[0007] According to the technical solution of the present invention, by obtaining access data to determine the chip information of the target chip, and confirming that the current target chip has completed configuration based on the chip information, the corresponding first target sequence can be directly found from the configuration database to perform initialization. After the initialization is completed, the target chip can output a test screen according to the display information and chip information, thereby determining that the current target chip has completed debugging. All chips that have been adapted can be quickly identified and matched, and simulation debugging can be automatically completed to achieve plug-and-play. The entire adaptation process is separated from the main control chip and the operating system, so there is no need for board debugging, which improves development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 A flowchart of a method for debugging a SERDES chip according to an embodiment of the present invention;

[0009] Figure 2 A flowchart of a method for debugging a SERDES chip according to an embodiment of the present invention;

[0010] Figure 3 A schematic diagram of the architecture of a configuration database according to an embodiment of the present invention;

[0011] Figure 4 A flowchart of another method for debugging a SERDES chip according to an embodiment of the present invention;

[0012] Figure 5 A schematic diagram of the structure of a device for debugging a SERDES chip according to an embodiment of the present invention;

[0013] Figure 6 FIG. 4 is another structural schematic diagram of a device for debugging a SERDES chip according to an embodiment of the present invention. DETAILED DESCRIPTION

[0014] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0015] In the existing technology, the main control chip can be adapted to a variety of different SERDES chips, but it is impossible to integrate multiple types or functions. At the same time, each time the main control chip is adapted, the code needs to be rewritten and the software version needs to be changed, and even the board needs to be re-adapted. The process is redundant and complicated, and there is a lot of repetitive work. In addition, if it is necessary to replace a different model of SERDES chip due to performance or cost reasons, it is also necessary to re-adapt, which is time-consuming and labor-intensive, and lacks integrated operation. At present, the debugging of SERDES chips can only be carried out after the board work is completed. The entire debugging process is time-consuming and labor-intensive, and there is a defect that the SERDES solution cannot be evaluated and verified in advance, which prolongs the development cycle.

[0016] In order to solve at least the above technical problems, the present disclosure provides a method for debugging a SERDES chip. According to the present disclosure, by obtaining access data to determine the chip information of the target chip, and confirming that the current target chip has completed configuration based on the chip information, the corresponding first target sequence can be directly found from the configuration database to perform initialization. After the initialization is completed, the target chip can output a test screen according to the display information and chip information, thereby determining that the current target chip has completed debugging. In this way, according to the embodiments of the present disclosure, the adapted chips can be quickly identified and matched, and the simulation debugging can be automatically completed to achieve plug-and-play, and the entire adaptation process is separated from the main control chip and the operating system, so there is no need for board debugging, which improves development efficiency.

[0017] Hereinafter, the technical solution according to the present disclosure will be described with reference to specific embodiments and in conjunction with the accompanying drawings.

[0018] Figure 1 1 is a flow chart showing a method 100 for debugging a SERDES chip according to an embodiment of the present disclosure. Figure 1 The method 100 includes the following steps 102 to 108.

[0019] In step 102, access data and display information of a target chip are obtained. In this embodiment, the target chip is a SERDES chip.

[0020] In step 104, the chip information of the target chip is determined according to the access data. In some embodiments, the access data includes a device address and an interface signal type, and the chip information includes a chip type and a chip model.

[0021] In some embodiments, the chip type corresponding to the device address is retrieved in the configuration database, and the target register of the target chip is read according to the chip type and the interface signal type to determine the chip model. In this way, since the device addresses corresponding to different chip types are different, the chip type is determined by the connected device address, thereby realizing automatic detection of different chip types. At the same time, since different chip models have different target registers corresponding to different interface signal types, the chip model can be determined by reading the value of the target register, thereby realizing automatic detection of different chip models.

[0022] In step 106, if it is determined according to the chip information that the target chip has been configured, a first target sequence matching the chip information is retrieved from a pre-created configuration database, and initialization is completed through the first target sequence.

[0023] In step 108, a test screen is output according to the chip information and the display information. In some embodiments, the display information includes display screen parameters.

[0024] In some embodiments, configuration information is generated according to the chip information and the display screen parameters, a video signal corresponding to the target chip is generated according to the configuration information, and the video signal is converted into a test screen corresponding to the display screen parameters for output. In this way, since the target chip with abnormal adaptation cannot output the test screen normally, the adaptation result of the current target chip is judged by outputting the test screen, and the display scheme of the target chip can be pre-evaluated and verified, thereby improving development efficiency.

[0025] In some embodiments, the method may further include: if it is determined based on the chip information that the target chip has not completed configuration, then searching the configuration database for an initialization sequence that matches the display information, and converting the initialization sequence into a second target sequence that matches the chip information, and completing initialization through the second target sequence. In this way, for a target chip that has not completed configuration, the initialization sequence corresponding to the display information is searched. At this time, the initialization sequence is adapted to the display information, but the adaptation with the target chip is not completed, so it is directly converted to the second target sequence that matches the target chip based on the initialization sequence, thereby completing initialization. In this way, any type of target chip can be quickly adapted and initialized according to the existing configuration scheme in the configuration database, without the need for board debugging, thereby improving development efficiency.

[0026] In some embodiments, if the target chip has not completed configuration, the method may further include: detecting whether the test screen is displayed normally; if so, storing the chip information, the display information and the second target sequence in the configuration database, and marking the target chip as completed configuration according to the chip information; otherwise, performing configuration detection on the target chip according to the chip information to locate the wrong configuration. In this way, for the target chip being adapted, it is necessary to detect whether the test screen is displayed normally, so as to determine whether the current target chip has completed adaptation. If the target chip is not successfully adapted, its wrong configuration is located through configuration detection, so that the user can perform manual debugging according to the located wrong configuration later, thereby reducing development time. If the target chip is successfully adapted, the relevant data of the current target chip is stored in the configuration database, and the next time the target chip is adapted, the relevant data can be directly obtained to complete the adaptation, thereby improving the adaptation efficiency.

[0027] In some embodiments, completing initialization through the second target sequence includes: writing the second target sequence into the communication register of the target chip; reading back the communication register, judging whether the second target sequence is written normally according to the readback result, so as to determine whether the target chip has completed initialization; if the second target sequence is written normally, then determining that the target chip has completed initialization; if the second target sequence is not written normally, then returning to execute the step of writing the second target sequence into the communication register of the target chip until the number of writes reaches a preset number of times, then determining that the target chip has not completed initialization, and outputting a timing abnormality prompt message. In this way, in the initialization stage, judging whether the second target sequence is written normally by readback detection, thereby determining whether the target chip has completed the adaptation process. If it is not written normally, then rewriting the sequence multiple times until the number of writes reaches a preset number of times, then determining that the current target chip cannot complete the adaptive matching, then outputting a timing abnormality prompt message so that the user can quickly locate the cause of the adaptation error, thereby manually debugging the cause of the adaptation error and improving the debugging efficiency.

[0028] In some embodiments, performing configuration detection on the target chip according to the chip information to locate the wrong configuration includes: obtaining the clock tree of the target chip and detecting whether the clock tree has an abnormality; if there is an abnormality, outputting clock abnormality prompt information; if there is no abnormality, performing register configuration detection on the target chip. In this way, for the target chip whose test screen displays an abnormality, first detect whether the clock tree of the target chip has an abnormality. If there is an abnormality, it is determined that the cause of the target chip adaptation failure includes the clock tree, and timely outputs the clock abnormality prompt information so that the user can perform manual debugging, thereby improving development efficiency.

[0029] In some embodiments, performing register configuration detection on the target chip includes: obtaining register data of the target chip, and determining the target register of the target chip according to the chip information; detecting the state of the target register according to the register data; if the state of the target register is abnormal, outputting abnormal prompt information of the target register; if the state of the target register is normal, outputting other abnormal prompt information. In this way, if the target chip has determined that the clock tree and registers are normal, but the target chip still cannot display the test screen normally, it means that there are other abnormal problems in the target chip, thereby eliminating the abnormal situation of the clock tree and register. If it is determined that the state of the target register is abnormal, the corresponding register prompt information is output in time to facilitate manual debugging by the user, thereby improving development efficiency.

[0030] In some embodiments, before determining the chip information of the target chip according to the access data, the method may further include: establishing a mapping relationship between the device address and the chip type, and classifying the interface signal type according to the chip type to obtain a first data layer; classifying the display information according to the interface signal type in the first data layer to obtain a second data layer; classifying the chip model according to the display information in the second data layer to obtain a third data layer; classifying the first target sequence according to the chip model in the third data layer to obtain a fourth data layer; creating the configuration database according to the first data layer, the second data layer, the third data layer and the fourth data layer. In this way, for the target chip that has been configured, the configuration database is created after being classified level by level according to the chip type, interface signal type and display information, etc., which facilitates the unified management of the target chip solution, thereby completing the integrated operation of chip adaptation, making the adaptation and conversion of the target chip more efficient.

[0031] Figure 2 2 is a flow chart showing a method 200 for debugging a SERDES chip according to an embodiment of the present disclosure. Figure 2 The method 200 is used to debug a configured SERDES chip, and includes the following steps 202 to 216.

[0032] In step 202, after the machine is powered on, the internal program is initialized.

[0033] In step 204, the device addresses and interface signal types of all slave devices (SERDES chips) on the I2C bus are obtained.

[0034] In step 206, the corresponding device address is searched in the configuration database, and the chip type of the SERDES chip is determined based on the mapping relationship between the device address and the chip type.

[0035] In some embodiments, different chip types have different device addresses, and the device address on the I2C bus is determined by hardware and can be changed manually. For example, on a platform, if the chip type is TI, the device address is SER 0x0c and DES0x2c; if the chip type is MAXIM, the device address is SER 0x42 and DES 0x4a; if the chip type is ROHM, the device address is SER 0x10 and DES 0x30. Thus, a mapping relationship is established between the device address and the chip type.

[0036] In step 208, a key register of the SERDES chip is determined according to the interface signal type, and the chip model of the SERDES chip is determined by reading back the key register.

[0037] In step 210, a target sequence corresponding to the chip type and chip model is searched in the configuration database, wherein the target sequence includes a serializer sequence and a deserializer sequence.

[0038] Figure 3 is a schematic diagram showing the architecture of the configuration database 300 according to an embodiment of the present disclosure. Figure 3 In the configuration database 300, the data layer architecture is respectively from outside to inside: first data layer 302> second data layer 304-> third data layer 306-> fourth data layer 308, and the data matched by the SERDES chip in the configuration database 300 are respectively from outside to inside: chip type-> interface signal type-> screen resolution-> SERDES chip combination-> IO control and timing information-> serializer initialization sequence and deserializer initialization sequence. Among them, ROHM, MAXIM and TI represent different chip types, dsi, dp, edp and hdmi represent different interface signal types, resolution0 and resolution1 represent different screen resolutions, Combo chips 0-Combo chips1 represent SERDES chip combination, io-control represents IO control, timing 0 and timing 1 represent different timing information, Ser_sequence represents serializer initialization sequence, and Des_sequence represents deserializer initialization sequence.

[0039] In some embodiments, for a SERDES chip that has been configured, matching data may be found in a configuration database according to the chip type and chip model of the SERDES chip, thereby obtaining a serializer initialization sequence and a deserializer initialization sequence.

[0040] In step 212, the corresponding IO control is completed according to the matched data (IO control and timing information), and the serializer initialization sequence and the deserializer initialization sequence are written into the I2C register of the SERDES chip to complete the initialization of the SERDES chip.

[0041] In step 214, corresponding configuration information is generated according to the matched data (interface signal type and screen resolution).

[0042] In step 216, a video color bar based on Verilog is generated according to the configuration information, and then a video signal is converted according to the video color bar to output a test picture corresponding to the screen resolution, thereby completing the test picture display.

[0043] In some embodiments, video color bars may also be referred to as color bars, color bars, and test patterns, and refer to monochrome / striped / checkered images output by a video source.

[0044] Figure 4 4 is a flow chart showing a method 400 for debugging a SERDES chip according to an embodiment of the present disclosure. Figure 4 The method 400 is used to debug a SERDES chip that has not completed configuration, and includes the following steps 402 to 424.

[0045] In step 402, after powering on, the internal program is initialized.

[0046] In step 404, the device addresses and interface signal types of all slave devices (SERDES chips) on the I2C bus are obtained.

[0047] In step 406, the corresponding device address is searched in the configuration database, and the chip type of the SERDES chip is determined based on the mapping relationship between the device address and the chip type.

[0048] In step 408, a key register of the SERDES chip is determined according to the interface signal type, and the chip model of the SERDES chip is determined by reading back the key register.

[0049] In step 410, if no data matching the chip type and chip model is found in the configuration database, data matching the interface signal type and screen resolution is searched, and an initialization sequence matching the interface signal type and screen resolution is output through the serial port.

[0050] In step 412, the matched initialization sequence is converted into an initialization sequence corresponding to the current chip type and chip model, and the initialization sequence is written into the I2C register of the SERDES chip.

[0051] In step 414 , a readback is performed to detect whether the initialization sequence is written normally. If so, steps 416 to 423 are executed; otherwise, step 424 is executed.

[0052] In step 416, corresponding configuration information is generated according to the interface signal type and the screen resolution, a video color bar based on Verilog is generated according to the configuration information, and then a video signal is converted according to the video color bar to output a test screen corresponding to the screen resolution, thereby completing the test screen display.

[0053] In step 418 , it is detected whether the test image is displayed normally. If so, step 420 is executed; otherwise, steps 422 to 423 are executed.

[0054] In step 420, debugging is terminated, and the chip type, chip model, interface signal type, screen resolution, and initialization sequence of the current SERDES chip are classified, integrated, and stored in the configuration database.

[0055] In step 422 , the clock tree of the SERDES chip is obtained to detect whether the clock tree is abnormal. If so, the serial port reports an error indicating that the clock is abnormal; otherwise, step 423 is executed.

[0056] In step 423, the data of all relevant registers of the I2C register are obtained through the dump file, and the status of the relevant registers is checked one by one to see if they are normal. If so, the serial port reports an error prompting to check and solve the driver problem; otherwise, the serial port reports an error prompting the abnormal register status problem.

[0057] In some embodiments, LINK_DETECT and PCLK_DETECT represent a readback detection of the associated registers.

[0058] In some embodiments, the registers that need to be detected are mostly status registers. Depending on the chip type and model, the registers that need to be detected are also different, and can be modified and improved based on the developer's debugging experience.

[0059] In step 424, the initialization sequence is rewritten into the I2C register of the SERDES chip. If the number of writes reaches a preset number, the serial port reports an error prompt to check whether there is a timing problem.

[0060] In some embodiments, for a screen with the same resolution, but different types of SERDES chips need to be switched. For example, the chip type of the SERDES chip is switched from ROHM to MAXIM, and the method 400 can be used to implement adaptive adaptation of the chip type MAXIM. At this time, it is detected that the chip type of the SERDES chip is MAXIM, and only the data scheme of the chip type ROHM that matches the screen resolution can be retrieved from the configuration database. By converting the data scheme of the chip type ROHM into the data scheme of the chip type MAXIM, the corresponding sequence is output, and the initialization is completed, thereby outputting the test screen.

[0061] According to another aspect of the present invention, Figure 5 is a schematic diagram showing the structure of an apparatus 500 for debugging a SERDES chip according to an embodiment of the present invention. Figure 5 The device 500 includes a collection module 502 , a matching module 504 and a debugging module 506 .

[0062] The acquisition module 502 is configured to acquire access data and display information of the target chip.

[0063] The matching module 504 is configured to: determine the chip information of the target chip according to the access data; and if it is determined according to the chip information that the target chip has been configured, retrieve a first target sequence matching the chip information from a pre-created configuration database, and complete initialization through the first target sequence.

[0064] The debugging module 506 is configured to output a test screen according to the chip information and the display information.

[0065] In some embodiments, the matching module 504 is further configured to: if it is determined based on the chip information that the target chip has not completed configuration, retrieve an initialization sequence matching the display information from a configuration database; and convert the initialization sequence into a second target sequence matching the chip information, and complete initialization through the second target sequence.

[0066] In some embodiments, the matching module 504 is further configured to: detect whether the test screen is displayed normally; if so, store the chip information, the display information and the second target sequence in the configuration database, and mark the target chip as completed configuration according to the chip information; and otherwise, perform configuration detection on the target chip according to the chip information to locate the wrong configuration.

[0067] It should be understood that the acquisition module 502, the matching module 504 and the debugging module 506 can be further configured to execute the corresponding steps or actions in the above-described method, which will not be described in detail here.

[0068] Figure 6 is a schematic diagram showing the structure of an apparatus 500 for debugging a SERDES chip according to an embodiment of the present invention. Figure 6 In some embodiments, the matching module 504 includes a sequence matching module 5042 and a parameter matching module 5044. The sequence matching module 5042 is configured to adapt different types of SERDES chips to complete initialization; if the SERDES chip has not completed initialization, a configuration detection is performed to locate the wrong configuration. The parameter matching module 5044 is configured to generate configuration information according to the chip information and the display information, and output it to the signal control module 5062 in the debugging module 506.

[0069] In some embodiments, the acquisition module 502 includes a sequence acquisition module 5022 and a parameter acquisition module 5024. The sequence acquisition module 5022 is configured to store target sequences of different types of SERDES chips and output them to the sequence matching module 5042 in the matching module 504. The parameter acquisition module 5024 is configured to store different display information (screen resolution, etc.) and output them to the parameter matching module 5044 in the matching module 504.

[0070] In some embodiments, the configuration database is created based on the data in the sequence acquisition module 5022 and the parameter acquisition module 5024.

[0071] In some embodiments, the debugging module 506 includes a signal control module 5062 and a video output module 5064. The signal control module 5062 is configured to generate a corresponding video signal according to the configuration information and output it to the video output module 5064. The video output module 5064 is configured to convert the video signal into a test picture corresponding to the display information for output.

[0072] In some embodiments, the device 500 further includes a debug serial port module 508 and an I2C interface control module 510. The debug serial port module 508 is configured to obtain actual data of the program running on the hardware, output debug information, and thus perform adjustment and optimization. The I2C interface control module 510 is configured to read and write registers of the SERDES chip through the I2C bus.

[0073] In some embodiments, the acquisition module 502, the matching module 504 and the I2C interface control module 510 are implemented based on an MCU chip, and the debugging module 506 is implemented based on an FPGA (Field-Programmable Gate Array) chip. The FPGA chip can simulate the high-speed display interface (such as LVDS\MIPI\HDMI\DP\eDP) of various main control chips, and the MCU chip is used to match and send the sequence and parameter information, and the serial port module is used for auxiliary debugging and verification, so as to realize the simulation debugging configuration of the SERDES chip without the operating system and the main control chip.

[0074] In some embodiments, in terms of hardware, for different SERDES chips, their chips and related devices can be independently boarded into a small board that matches the main board, and the small board is embedded in the main board to complete the boarding operation. In this way, when switching different SERDES chips, the switching of the SERDES chips can be completed by simply switching the small board.

[0075] In the MCU chip of the present invention, a sequence matching module adapts the collected sequence information and outputs a serializer initialization sequence and a deserializer initialization sequence corresponding to the chip type, and then a parameter matching module confirms the video signal to be output; in the FPGA chip, a signal control module completes the video signal conversion, and finally a video output module outputs a video color bar corresponding to the screen, thereby completing the debugging of the display SERDES chip.

[0076] In summary, the method and device for debugging a SERDES chip provided by the present invention, for a SERDES chip that has been configured, by detecting its chip type and chip model, the matching initialization sequence is directly completed in the configuration database, and the corresponding test screen is displayed, so as to realize adaptive matching of different types of SERDES chips, and realize rapid identification and matching. For a SERDES chip that has not been configured, the initialization sequence that completes the matching is converted by the same interface signal type and display information, so as to generate an initialization sequence corresponding to the current chip type and chip model to complete the initialization, and when the display test screen fails, the cause of the failure can also be quickly detected, so that subsequent developers can perform manual debugging, and the entire debugging process is separated from the operating system and the main control chip, and there is no need for board debugging, which effectively improves development efficiency. In addition, the FPGA chip can flexibly simulate the high-speed display interface of various main control chips, and can be used for SERDES chip verification of new main control chips.

[0077] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for debugging a SERDES chip, characterized in that: include: Get access data and display information of the target chip; Determine chip information of the target chip according to the access data; If it is determined according to the chip information that the target chip has been configured, searching a pre-created configuration database for a first target sequence that matches the chip information, and completing initialization through the first target sequence; and A test picture is output according to the chip information and the display information.

2. The method according to claim 1, characterized in that: Also includes: If it is determined according to the chip information that the target chip has not been configured, searching a configuration database for an initialization sequence that matches the display information; as well as The initialization sequence is converted into a second target sequence matching the chip information, and the initialization is completed through the second target sequence.

3. The method according to claim 2, characterized in that Also includes: Detecting whether the test screen is displayed normally; If yes, storing the chip information, the display information and the second target sequence in the configuration database, and marking the target chip as having completed configuration according to the chip information; as well as Otherwise, a configuration check is performed on the target chip according to the chip information to locate the wrong configuration.

4. The method according to claim 2, characterized in that: Completing the initialization by the second target sequence includes: Writing the second target sequence into the communication register of the target chip; By reading back the communication register, judging whether the second target sequence is written normally according to the read-back result, so as to determine whether the target chip has completed initialization; If the second target sequence is written normally, it is determined that the target chip has completed initialization; and If the second target sequence is not written normally, return to the step of writing the second target sequence into the communication register of the target chip until the number of writes reaches a preset number, determine that the target chip has not completed initialization, and output timing abnormality prompt information.

5. The method according to claim 2, characterized in that: Performing configuration detection on the target chip according to the chip information to locate the wrong configuration includes: Acquire a clock tree of the target chip, and detect whether the clock tree is abnormal; If there is an abnormality, a clock abnormality prompt message is output; and If there is no abnormality, a register configuration check is performed on the target chip.

6. The method according to claim 5, characterized in that Performing register configuration detection on the target chip includes: Acquire register data of the target chip, and determine a target register of the target chip according to the chip information; Detecting the state of the target register according to the register data; If the state of the target register is abnormal, outputting abnormal prompt information of the target register; and If the state of the target register is normal, other abnormal prompt information is output.

7. The method according to claim 1, characterized in that The access data includes the device address and the interface signal type, and the chip information includes the chip type and the chip model. Wherein determining the chip information of the target chip according to the access data comprises: The chip type corresponding to the device address is retrieved in the configuration database, and the target register of the target chip is read according to the chip type and the interface signal type to determine the chip model.

8. The method according to claim 1, characterized in that The display information includes display screen parameters, Wherein outputting a test screen according to the chip information and the display information comprises: Generate configuration information according to the chip information and the display screen parameters; generating a video signal corresponding to the target chip according to the configuration information; and The video signal is converted into a test picture corresponding to the display screen parameters for output.

9. The method according to claim 7, characterized in that: Before determining the chip information of the target chip according to the access data, the method further includes: Establishing a mapping relationship between the device address and the chip type, and classifying the interface signal type according to the chip type to obtain a first data layer; Classifying the display information in the first data layer according to the interface signal type to obtain a second data layer; Classifying the chip models in the second data layer according to the display information to obtain a third data layer; classifying the first target sequence in the third data layer according to the chip model to obtain a fourth data layer; and The configuration database is created according to the first data layer, the second data layer, the third data layer, and the fourth data layer.

10. A device for debugging a SERDES chip, characterized in that: include: An acquisition module, configured to acquire access data and display information of a target chip; a matching module configured to determine chip information of the target chip according to the access data, and to retrieve a first target sequence matching the chip information from a pre-created configuration database if it is determined that the target chip has been configured according to the chip information, and complete initialization through the first target sequence; as well as The debugging module is configured to output a test screen according to the chip information and the display information.

11. The device according to claim 10, characterized in that The matching module is further configured to: If it is determined according to the chip information that the target chip has not been configured, searching a configuration database for an initialization sequence that matches the display information; and The initialization sequence is converted into a second target sequence matching the chip information, and the initialization is completed through the second target sequence.

12. The device according to claim 11, characterized in that The matching module is further configured to: Detecting whether the test screen is displayed normally; If yes, storing the chip information, the display information and the second target sequence in the configuration database, and marking the target chip as having completed configuration according to the chip information; as well as Otherwise, a configuration check is performed on the target chip according to the chip information to locate the wrong configuration.

Citation Information

Patent Citations

  • Chip debugging method, storage medium, related device and system

    CN114116364A

  • Modular BIOS (Basic Input / Output System) configuration equipment chip method

    CN114510277A

  • Programming method and system of hybrid power supply display program and electronic equipment

    CN114610299A

  • Chip adaptive test method, system and device and storage medium

    CN115344441A

  • Function test method, device and equipment for multi-model NFC (Near Field Communication), and medium

    CN118054867A