High-speed serdes integrated ecpu chip test ATE firmware loading method and system
Through ATE, the external memory response is simulated, the test vector is generated to complete the ecpu firmware loading, solving the problems of low efficiency and high cost of firmware updates in the existing technology, and achieving rapid iteration and efficient chip debugging.
Patent Information
- Application Number
- CN202410858897.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-08
AI Technical Summary
During the chip debugging process, when the existing technology needs to frequently update the firmware, it is necessary to disassemble and re-bury the external memory, resulting in low debugging efficiency and high cost.
By replacing external memory by ATE, the chip pin waveform is captured using signal measurement tools, and the ATE test vector is generated to simulate the response of external memory to the ecpu, and the firmware loading is completed, avoiding the pre-computer and writer pre-fixing steps.
It improves the efficiency and success rate of firmware loading, reduces chip test and maintenance costs, and simplifies the firmware iteration process.
Smart Images

Figure CN118916051A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip testing technology, and in particular to a high-speed serdes integrated ecpu chip testing ATE firmware loading method and system. Background Art
[0002] High-speed serdes are usually used as high-speed interface parts of more complex chips. Such chips have a large number of internal registers. When configuring the chip, thousands of registers need to be operated, which is very troublesome and prone to errors. Some serdes integrate ecpu, which can simplify the configuration process: after writing the firmware to ecpu, only a few specific registers need to be configured when configuring the chip, and ecpu can call the firmware to complete the configuration of the chip.
[0003] During the chip power-on initialization process, the ecpu calls the bus used to load the firmware and sends the chip select enable signal, clock signal, and address information to the external memory. The chip select input and clock input pins of the external memory are connected to the chip select and clock signals of the bus. After receiving the chip select, clock, and address information sent by the chip, it starts to output the firmware information stored in the memory to the ecpu to complete the firmware loading. The ecpu loads the firmware from the external memory, and the firmware information needs to be burned into the memory in advance. This requires a burner, host computer software, memory chip and other hardware and software, which increases the cost. During the chip debugging process, the firmware may need to be updated multiple times, and each time the memory must be removed from the test board, re-burned and then installed, which greatly affects the debugging efficiency. Summary of the invention
[0004] To this end, the present invention provides a high-speed SerDes integrated ECPU chip test ATE firmware loading method and system, which breaks away from the existing mode of using a host computer and a burner to pre-burn the memory and then connecting the memory to the ECPU to load the firmware, and uses ATE to replace the external memory to complete the ECPU firmware loading, thereby improving debugging efficiency and reducing costs.
[0005] According to the design scheme provided by the present invention, on the one hand, a method for loading firmware for chip test ATE with high-speed serdes integrated ecpu is provided, comprising:
[0006] For the firmware read instruction issued when the ecpu loads the firmware, an ATE test vector with firmware encoding information is generated based on the firmware read instruction, the ecpu is integrated in the high-speed serdes of the chip to be tested, and the fixed read instruction includes address information, clock information and chip select signal timing information;
[0007] ATE test vectors are used to simulate the response of external memory to ecpu, and firmware related data are written into ecpu according to timing constraints. The timing constraints include the number of waiting clock cycles and firmware loading time period set according to the chip select signal timing information.
[0008] As a chip test ATE firmware loading method of high-speed serdes integrated ecpu of the present invention, further, based on the firmware read instruction, an ATE test vector with firmware encoding information is generated, comprising:
[0009] Use a signal measurement tool to capture the pin waveform of the chip loading firmware, the pin waveform includes chip select signal, clock signal, address data signal timing and phase information;
[0010] Acquire waveform signal related data and external memory output data rules according to the pin waveform, wherein the waveform signal related data includes clock signal frequency, the number of clock cycles for reading external memory data starting from the chip select effective address data line, and the number of clock cycles for reading external memory data;
[0011] By writing a script, the firmware information is re-encoded according to the external memory output data rules and converted into binary data, and the binary data is written into the ATE test vector.
[0012] As a chip test ATE firmware loading method of the high-speed serdes integrated ecpu of the present invention, further, using ATE test vectors to simulate the response of external memory to ecpu, it includes:
[0013] Writing chip select signal timing information into the ATE read trigger test vector to match the chip select timing according to the ATE read trigger test vector;
[0014] When the chip select timing matches successfully, the ATE test vector is run according to the clock signal frequency and the firmware information is written into the ecpu.
[0015] As a chip test ATE firmware loading method of the high-speed serdes integrated ecpu of the present invention, further, matching the chip selection timing according to the ATE read trigger test vector comprises:
[0016] Set the chip select signal status to be read 4 times in each clock cycle;
[0017] When the chip select signal is read to be in a valid state, the chip select timing is matched by running the ATE read trigger test vector. If the match is successful, the ATE test vector is run during the firmware loading wait period. If the match is unsuccessful, the ATE read trigger test vector is repeatedly run. When the number of repeated runs exceeds the preset threshold and the match is still not successful, the chip exception analysis handler is entered.
[0018] As a chip test ATE firmware loading method of the high-speed serdes integrated ecpu of the present invention, further, in the state where the chip select timing matches successfully, the ATE test vector is run according to the clock signal frequency, including:
[0019] Get the waiting time according to the timing constraints;
[0020] When the chip select timing matches successfully, and after the waiting time is met, run the ATE test vector to load the firmware information into the ecpu.
[0021] As a chip test ATE firmware loading method of the high-speed serdes integrated ecpu of the present invention, further, firmware related data is written into ecpu according to timing constraints, including:
[0022] The loading time period is set according to the firmware loading time period. After the ATE test vector runs, the ecpu firmware loading is completed within the waiting loading time period.
[0023] As a chip test ATE firmware loading method of the high-speed serdes integrated ecpu of the present invention, further, it also includes:
[0024] Verify whether the firmware is loaded successfully by reading the register flag bit of the firmware record success in the chip;
[0025] When the firmware is loaded successfully, the chip test process is executed; when the firmware fails to load, the chip abnormality analysis processing program is entered;
[0026] When the chip test process fails to run, the firmware is updated and the ATE test vector with firmware encoding information is regenerated, so as to reload the firmware using the regenerated ATE test vector to perform chip testing.
[0027] On the other hand, the present invention also provides a high-speed serdes integrated ecpu chip test ATE firmware loading system, comprising: a reading module and a loading module, wherein:
[0028] A reading module is used to generate an ATE test vector with firmware encoding information written on it based on the firmware reading instruction issued when the ecpu is loaded with firmware. The ecpu is integrated in the high-speed serdes of the chip to be tested. The fixed reading instruction includes address information, clock information and chip select signal timing information.
[0029] The loading module is used to simulate the response of external memory to ecpu using ATE test vectors, and write firmware related data into ecpu according to timing constraints. The timing constraints include the number of waiting clock cycles and firmware loading time period set according to the chip select signal timing information.
[0030] Beneficial effects of the present invention:
[0031] The present invention uses ATE to replace the external memory, writes the firmware content into the test vector, simulates the response of the memory to the ecpu, and after the ecpu sends a read signal for loading the firmware, the ATE returns the expected data to the ecpu according to the timing constraint, completes the firmware loading, and gets rid of the mode of using the host computer and the burner to burn the memory in advance, and then connecting the memory to the ecpu to load the firmware. During the chip debugging process, if the firmware needs to be updated, it only needs to run the script again to re-encode the firmware, and import the re-encoded file into the test vector. The firmware can be iterated quickly, the chip debugging efficiency is improved, and the chip testing and maintenance costs are reduced. It has good application prospects in the fields of chip research and development. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the ATE firmware loading process for the chip test of the high-speed serdes integrated ecpu in the embodiment;
[0033] Figure 2 This is a schematic diagram of a traditional chip testing platform in the embodiment;
[0034] Figure 3 This is a schematic diagram of the test platform in the embodiment;
[0035] Figure 4 The figure is a schematic diagram of the chip testing process in the embodiment. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.
[0037] ATE is the abbreviation of Automatic Test Equipment. It can apply input signals to each pin of the chip according to the set frequency and voltage, and can also read the frequency, voltage and other indicators of the output signal, compare them with the expected results, and draw test conclusions. The file containing the input and output signal test information in ATE is called a test vector.
[0038] The ports used by the chip to load firmware include chip select, clock, and address data line multiplexing ports. The chip select signal will be connected to the chip select pin of the external memory to control the working state of the external memory; the clock port will be connected to the clock input pin of the external memory to specify the working conditions such as the working frequency of the memory; the address data line will be connected to the address data multiplexing pin of the external memory to send read instructions, data read addresses, and read data from the external memory to the external memory. When the chip is working in the firmware loading mode:
[0039] a) The chip select signal is set to a valid state, and the chip select signal is generally low effective;
[0040] b) The clock port will output a clock signal of a specific frequency in accordance with the chip select signal status
[0041] c) The address and data multiplexing port sends read instructions, read addresses, and reads data from the outside.
[0042] Embodiments of the present invention, see Figure 1 As shown, a high-speed serdes integrated ecpu chip test ATE firmware loading method is provided, comprising:
[0043] S101. For the firmware read instruction issued when the ecpu loads the firmware, an ATE test vector with firmware encoding information is generated based on the firmware read instruction. The ecpu is integrated in the high-speed serdes of the chip to be tested. The fixed read instruction includes address information, clock information and chip select signal timing information.
[0044] Specifically, an ATE test vector containing firmware encoding information is generated based on a firmware read instruction, and can be designed to include:
[0045] Use a signal measurement tool to capture the pin waveform of the chip loading firmware, the pin waveform includes chip select signal, clock signal, address data signal timing and phase information;
[0046] Acquire waveform signal related data and external memory output data rules according to the pin waveform, wherein the waveform signal related data includes clock signal frequency, the number of clock cycles for reading external memory data starting from the chip select effective address data line, and the number of clock cycles for reading external memory data;
[0047] By writing a script, the firmware information is re-encoded according to the external memory output data rules and converted into binary data, and the binary data is written into the ATE test vector.
[0048] like Figure 2 In the traditional test receipt shown, when the ecpu loads the firmware in the external memory, it will issue a read instruction containing address information, clock information, and timing information of the chip select signal. After this information reaches the memory, the memory will output the data of the corresponding address and return it to the ecpu.
[0049] For this application, see Figure 3As shown, ATE is used to replace the external memory, and the firmware content is written into the test vector to simulate the response of the memory to the ecpu. After the ecpu sends a read signal to load the firmware, ATE returns the expected data to the ecpu according to the timing constraints to complete the firmware loading.
[0050] After ecpu sends a read signal to load the firmware, ATE returns the expected data to ecpu according to the timing constraints to complete the firmware loading. This can solve the timing mismatch problem between ecpu and ATE and improve the success rate of firmware loading.
[0051] When the chip is running in the state of loading firmware, the waveform of the chip firmware loading pin can be captured by using tools such as oscilloscopes. These waveforms contain the timing and phase information of the chip select signal, clock signal, and address data signal; by analyzing the captured waveforms, the timing relationship and signal jump relationship of the chip select signal, clock signal, and address signal are sorted out to obtain the following information: the frequency of the clock signal, the number of clock cycles from the effective chip select to the address data line to start reading the external memory data, and the number of clock cycles to read the external memory data. The above information is combined with the memory chip manual, and the external memory output data rules are obtained by analyzing the format of the memory output data, such as the data allocation relationship during multi-line output, so that ATE can better simulate the response of the memory and improve the success rate of firmware loading.
[0052] S102, using ATE test vectors to simulate the response of external memory to ecpu, and write firmware related data into ecpu according to timing constraints, wherein the timing constraints include the number of waiting clock cycles and firmware loading time period set according to chip select signal timing information.
[0053] Specifically, ATE test vectors are used to simulate the external memory's response to ecpu, including:
[0054] Writing chip select signal timing information into the ATE read trigger test vector to match the chip select timing according to the ATE read trigger test vector;
[0055] When the chip select timing matches successfully, the ATE test vector is run according to the clock signal frequency and the firmware information is written into the ecpu.
[0056] Among them, the chip select signal status can be set to be read 4 times in each clock cycle; when the chip select signal is read to be in a valid state, the chip select timing is matched by running the ATE read trigger test vector. If the match is successful, the ATE test vector is run in the firmware loading wait period. If the match is unsuccessful, the ATE read trigger test vector is repeatedly run. When the number of repeated runs exceeds the preset threshold and the match is still not successful, the chip abnormality analysis handler is entered.
[0057] like Figure 4 As shown, the waveform of the chip select signal is written into ATE test vector 2 for reading trigger. In order to improve the trigger accuracy, the chip select signal status is read 4 times in each clock cycle to improve the accuracy of firmware loading. Assuming that the chip select signal is low and effective, since the chip select will definitely have a jump from 1 to 0, the expected reading results are: 1110, 1100, 1000. After reading 1111, rerun test vector 2; if it is still not successfully triggered after a certain number of repetitions (determined according to the actual situation, assuming 10 times), the program stops, analyzes the cause, and confirms whether the chip is abnormal. Write a script to re-encode the firmware information according to the external memory output data rule, and convert it into binary data, write it into ATE test vector 1, each binary number (0 / 1) represents the signal state (high / low) output by ATE to the chip in this clock cycle, and improve the success rate of firmware loading.
[0058] When the chip select timing matches successfully, the waiting time is obtained according to the timing constraints; when the chip select timing matches successfully, the ATE test vector is run after the waiting time is satisfied to load the firmware information into the ecpu. The loading time period can be set according to the firmware loading time period. After the ATE test vector runs, the ecpu firmware loading is completed within the waiting loading time period.
[0059] According to the trigger chip select signal and the number of clock cycles obtained, wait for the corresponding clock cycle time. Assuming the expected reading result is 1110, the firmware starts to be loaded after the chip select is valid for 8 clock cycles, then wait for 7.75 clock cycles, and so on, to improve the success rate of firmware loading.
[0060] Run test vector 1 and write firmware information to ecpu, where the running frequency of test vector 1 is equal to the frequency of the clock signal. After test vector 1 is finished running, wait for a while for the chip to complete firmware loading to improve the accuracy of firmware loading;
[0061] And by reading the register flag bit of the firmware record success in the chip to verify whether the firmware is loaded successfully, the accuracy of firmware loading is improved; when the firmware is loaded successfully, the chip test process is executed; when the firmware loading fails, the chip exception analysis processing program is entered; and when the chip test process program fails to run, the firmware is updated and the ATE test vector with firmware encoding information is regenerated, so as to use the regenerated ATE test vector to reload the firmware for chip testing.
[0062] Further, based on the above method, an embodiment of the present invention also provides a high-speed serdes integrated ecpu chip test ATE firmware loading system, comprising: a reading module and a loading module, wherein:
[0063] A reading module is used to generate an ATE test vector with firmware encoding information written on it based on the firmware reading instruction issued when the ecpu is loaded with firmware. The ecpu is integrated in the high-speed serdes of the chip to be tested. The fixed reading instruction includes address information, clock information and chip select signal timing information.
[0064] The loading module is used to simulate the response of external memory to ecpu using ATE test vectors, and write firmware related data into ecpu according to timing constraints. The timing constraints include the number of waiting clock cycles and firmware loading time period set according to the chip select signal timing information.
[0065] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0066] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0067] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.
[0068] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.
[0069] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A high-speed serdes integrated ecpu chip test ATE firmware loading method, characterized in that: Include: For the firmware read instruction issued when the ecpu loads the firmware, an ATE test vector with firmware encoding information is generated based on the firmware read instruction, the ecpu is integrated in the high-speed serdes of the chip to be tested, and the fixed read instruction includes address information, clock information and chip select signal timing information; ATE test vectors are used to simulate the response of external memory to ecpu, and firmware related data are written into ecpu according to timing constraints. The timing constraints include the number of waiting clock cycles and firmware loading time period set according to the chip select signal timing information.
2. The chip test ATE firmware loading method of high-speed serdes integrated ecpu according to claim 1 is characterized in that, Generate ATE test vectors with firmware encoding information based on firmware read instructions, including: Use a signal measurement tool to capture the pin waveform of the chip loading firmware, the pin waveform includes chip select signal, clock signal, address data signal timing and phase information; Acquire waveform signal related data and external memory output data rules according to the pin waveform, wherein the waveform signal related data includes clock signal frequency, the number of clock cycles for reading external memory data starting from the chip select effective address data line, and the number of clock cycles for reading external memory data; By writing a script, the firmware information is re-encoded according to the external memory output data rules and converted into binary data, and the binary data is written into the ATE test vector.
3. The chip test ATE firmware loading method of high-speed serdes integrated ecpu according to claim 1 is characterized in that, Use ATE test vectors to simulate the external memory response to ecpu, including: Writing chip select signal timing information into the ATE read trigger test vector to match the chip select timing according to the ATE read trigger test vector; When the chip select timing matches successfully, the ATE test vector is run according to the clock signal frequency and the firmware information is written into the ecpu.
4. The chip test ATE firmware loading method of high-speed serdes integrated ecpu according to claim 3 is characterized in that, Match the chip select timing according to the ATE read trigger test vector, including: Set the chip select signal status to be read 4 times in each clock cycle; When the chip select signal is read to be in a valid state, the chip select timing is matched by running the ATE read trigger test vector. If the match is successful, the ATE test vector is run during the firmware loading wait period. If the match is unsuccessful, the ATE read trigger test vector is repeatedly run. When the number of repeated runs exceeds the preset threshold and the match is still not successful, the chip exception analysis handler is entered.
5. The chip test ATE firmware loading method of high-speed serdes integrated ecpu according to claim 3 is characterized in that, When the chip select timing matches successfully, run the ATE test vector according to the clock signal frequency, including: Get the waiting time according to the timing constraints; When the chip select timing matches successfully, and after the waiting time is met, run the ATE test vector to load the firmware information into the ecpu.
6. The chip test ATE firmware loading method of high-speed serdes integrated ecpu according to claim 1 is characterized in that, Write firmware related data into ecpu according to timing constraints, including: The loading time period is set according to the firmware loading time period. After the ATE test vector runs, the ecpu firmware loading is completed within the waiting loading time period.
7. The chip test ATE firmware loading method of high-speed serdes integrated ecpu according to claim 1 or 6, characterized in that: Also includes: Verify whether the firmware is loaded successfully by reading the register flag bit of the firmware record success in the chip; When the firmware is loaded successfully, the chip test process is executed; when the firmware fails to load, the chip abnormality analysis processing program is entered; When the chip test process fails to run, the firmware is updated and the ATE test vector with firmware encoding information is regenerated, so as to reload the firmware using the regenerated ATE test vector to perform chip testing.
8. A high-speed serdes integrated ecpu chip test ATE firmware loading system, characterized in that: Contains: read module and load module, among which, A reading module is used to generate an ATE test vector with firmware encoding information written on it based on the firmware reading instruction issued when the ecpu is loaded with firmware. The ecpu is integrated in the high-speed serdes of the chip to be tested. The fixed reading instruction includes address information, clock information and chip select signal timing information. The loading module is used to simulate the response of external memory to ecpu using ATE test vectors, and write firmware related data into ecpu according to timing constraints. The timing constraints include the number of waiting clock cycles and firmware loading time period set according to the chip select signal timing information.
9. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 can be implemented.
