Chip and method of using the same
By designing chips that include storage units, data processing units, test control units and detection equipment, automated testing of integrated circuit chips is realized, solving the problems of high domestic chip testing costs and low efficiency, and improving testing efficiency and data reliability.
Patent Information
- Application Number
- CN202110368348.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-04-06
AI Technical Summary
Domestic integrated circuit chip testing has high costs and low efficiency, and cannot guarantee the reliability and stability of test data, mainly due to reliance on manual testing and lack of automated equipment.
Design a chip, including a storage unit, a data processing unit, a test control unit and a detection device. The data processing unit obtains configuration information from the host computer, stores it in the storage unit, and configures the chip to be tested based on this information. The detection device and test control The unit is connected to automatically detect the chip to be tested and obtain test data.
It realizes automated testing of chips, improves testing efficiency, reduces manual intervention, ensures the reliability and stability of test data, and reduces testing costs.
Smart Images

Figure CN113190386B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and more specifically, to a chip and a method for using the same. Background Art
[0002] With the rapid development of the integrated circuit industry, the proportion of integrated circuit chip testing costs continues to rise. After chip design and production, integrated circuit design companies often need to find professional chip testing machines to test the chips in order to identify and select bad chips. Only qualified chips that pass the test can be sold and used.
[0003] However, at present, the testing of chips in China is generally still at the stage of manual testing, which leads to high testing costs and low testing efficiency. Summary of the invention
[0004] In view of the above problems, the present application proposes a chip and a method of using the same to solve or partially solve the above problems.
[0005] In the first aspect, an embodiment of the present application provides a chip, which includes: a storage unit, a data processing unit, a test control unit and a detection device, wherein: the data processing unit is connected to the storage unit, and is used to obtain configuration information from a host computer and store the configuration information in the storage unit; the test control unit is connected to the data processing unit, and is used to obtain configuration information from the storage unit through the data processing unit, and configure the chip to be tested based on the configuration information; the detection device is respectively connected to the test control unit and the chip to be tested, and is used to detect the configured chip to be tested to obtain test data.
[0006] In the second aspect, an embodiment of the present application provides a chip use method, which is applied to the chip of the first aspect, and the chip use method includes: controlling the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configuring the chip to be tested according to the configuration information; obtaining the configuration status of the chip to be tested; if the configuration status of the chip to be tested is a specified status, testing the chip to be tested in the specified status through a detection device to obtain test data.
[0007] The chip and the method of using the same provided in the embodiments of the present application are a chip constructed by a storage unit, a data processing unit, a test control unit and a detection device, wherein: the data processing unit is connected to the storage unit, and is used to obtain configuration information from a host computer and store the configuration information in the storage unit; the test control unit is connected to the data processing unit, and is used to obtain configuration information from the storage unit through the data processing unit, and configure the chip to be tested based on the configuration information; the detection device is respectively connected to the test control unit and the chip to be tested, and is used to detect the configured chip to be tested to obtain test data, thereby realizing automated testing of the chip, improving test efficiency, reducing manual intervention, and ensuring the reliability and stability of test data. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0009] Figure 1 A schematic diagram of the structure of a chip provided according to an embodiment of the present application is shown.
[0010] Figure 2 A specific framework schematic diagram of a chip provided according to an embodiment of the present application is shown.
[0011] Figure 3 A schematic diagram of the structure of a test control unit provided according to an embodiment of the present application is shown.
[0012] Figure 4 A schematic diagram of the structure of a data processing unit provided according to an embodiment of the present application is shown.
[0013] Figure 5 A flow chart of a chip use method provided according to an embodiment of the present application is shown.
[0014] Figure 6 A flow chart of a chip use method provided according to another embodiment of the present application is shown.
[0015] Figure 7 A flow chart of a chip use method provided according to yet another embodiment of the present application is shown.
[0016] Figure 8 A flowchart of an implementation of a chip use method provided according to an embodiment of the present application is shown.
[0017] Fig. 9 A flow chart of a chip use method provided according to another embodiment of the present application is shown.
[0018] Fig.10 A functional module diagram of a chip using device provided in an embodiment of the present application is shown.
[0019] Fig.11 A structural block diagram of an electronic device provided in an embodiment of the present application is shown.
[0020] Fig.12 A storage medium for storing or carrying program codes for implementing a chip use method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0022] As one of the four general-purpose integrated circuit chips, Field Programmable Gate Array (FPGA) has been increasingly widely used in the market. Compared with other general-purpose integrated circuit chips, domestic research on FPGA is still in its infancy. The growing market demand and domestic self-sufficiency have formed a sharp contradiction. At present, the global FPGA market is about 5 billion US dollars, of which China accounts for about 1.5 billion US dollars, while the market share of domestic FPGA accounts for only about 2%. Therefore, it is necessary to actively promote the localization of FPGA.
[0023] However, the high testing costs have greatly restricted the market competitiveness of domestic FPGAs. At present, the testing of integrated circuit chips in China is mainly carried out by integrated circuit design companies who purchase machines for testing themselves or entrust professional testing institutions to conduct testing. However, due to the high price of professional testing machines, domestic design companies are generally unwilling to invest a large amount of money in purchasing expensive equipment. At the same time, there are not many professional testing institutions in China, which makes the mass testing of chips a major bottleneck for the rapid launch of products into the market.
[0024] Compared with the mature testing technology of foreign products, domestic testing is still in the inefficient manual testing stage. Therefore, very high testing costs will be incurred when testing integrated circuit chips, and the reliability, stability and comprehensiveness of the test data cannot be guaranteed, resulting in low testing efficiency and poor results.
[0025] Therefore, in response to the above problems, the inventors proposed the chip and its use method in the embodiments of the present application, which can automatically test the chip to be tested under different states and different configuration information, effectively improving the test efficiency, reducing the test cost, and ensuring the reliability, stability and comprehensiveness of the test data.
[0026] See also Figure 1 , Figure 1 The schematic diagram of the structure of the chip provided by the embodiment of the present application is shown, and the chip 100 includes: a storage unit 110, a data processing unit 120, a test control unit 130 and a detection device 140. Among them: the storage unit 110 is used to store data; the data processing unit 120 is connected to the storage unit 110, and is used to obtain configuration information from the host computer 200 and store the configuration information in the storage unit 110; the test control unit 130 is connected to the data processing unit 120, and is used to obtain configuration information from the storage unit 110 through the data processing unit 120, and configure the chip to be tested 300 based on the configuration information; the detection device 140 is respectively connected to the test control unit 130 and the chip to be tested 300, and is used to detect the configured chip to be tested 300 to obtain test data.
[0027] Among them, the configuration information is used to configure the working parameters of the test chip 300. For example, the configuration information may include information such as bit stream, voltage, voltage, frequency, voltage point, etc., so as to configure the circuit structure, current, voltage, frequency, voltage point and other working parameters of the test chip 300 accordingly.
[0028] It is understandable that the chip under test 300 can form a corresponding circuit structure according to the bit stream information to implement a corresponding circuit function.
[0029] The detection device 140 can detect data such as voltage, temperature, current, clock, etc. of the chip under test 300 in real time.
[0030] In practical applications, as an example, the specific framework of the chip 100 can be as follows: Figure 2 As shown, the entire chip 100 can be composed of a personal computer (PC), a master FPGA (Master FPGA), a flash memory (FLASH), an extra device (Extradevice), and a chip under test 300 (Chip Under Test, CUT), wherein the master FPGA can be divided into two parts, namely a data processing center (Data Process Center, DPC) and a test controller (Test Controller, TC). Figure 1 The host computer 200 and FLASH can be Figure 1 The storage unit 110 and the DPC in the embodiment can be Figure 1 The data processing unit 120 and TC in the Figure 1 The test control unit 130 and the Extra device in the Figure 1 The detection device 140 in.
[0031] The DPC is mainly responsible for receiving the FLASH data sent by the PC and storing it in the FLASH, as well as reading the data in the FLASH and configuring the chip to be tested 300 after performing interface conversion in the TC. The main load of the TC receives commands from the PC, controls the workflow of the entire system, configures the FPGA, receives feedback signals from the Extra device and returns them to the PC for analysis. Optionally, the DPC can be configured with a FLASH read / write parallel interface, and reads data from the FLASH through the FLASH read / write parallel interface. The DPC can also be configured with an SPI interface 1221 to achieve data transmission between the PC and the SPI interface 1221. The TC can be configured with a JTAG interface 133, a general purpose input / output port (GPIO), a main FPGA communication interface, and an FPGA configuration interface, wherein the JTAG interface 133 is used to achieve data transmission between the TC and the PC; the GPIO is used to output a level signal to the chip to be tested 300; the FPGA configuration interface is used to configure the chip to be tested 300 accordingly according to the configuration information; and the main FPGA communication interface is used to achieve data transmission between the TC and the Extra device.
[0032] When testing the chip 300 to be tested, configuration information may be input in advance into the host computer 200, and the data processing unit 120 may receive the configuration information sent by the host computer 200, and store the configuration information in the storage unit 110. If the host computer 200 receives a test instruction, the test instruction may be sent to the test control unit 130, and the test control unit 130 may respond to the test instruction, control the data processing unit 120 to read the configuration information, receive the configuration information, and then perform interface conversion on the configuration information to configure the chip 300 to be tested.
[0033] After the configuration of the chip 300 to be tested is completed, the detection unit can detect parameters of a pre-set type to obtain test data, and then the detection unit can send the test data to the test control unit 130, and the test control unit 130 sends the test data to the storage unit 110 for storage through the data processing unit 120, or uploads the test data to the host computer 200 through the data processing unit 120.
[0034] After receiving the test data, the host computer 200 can analyze the test data to determine whether the chip to be tested 300 is normal and complete the performance test of the chip to be tested 300. For example, the test data may include current and voltage. According to power consumption = current * voltage, the power consumption of the chip to be tested 300 can be calculated and used as test data, and then it is determined whether the power consumption under the configured voltage is within the preset range. If so, it can be obtained that the test result of the chip to be tested 300 is normal, thereby realizing the automated test of the chip to be tested 300 and effectively improving the test efficiency. Among them, the test data includes but is not limited to data such as voltage, current, power consumption, and temperature.
[0035] The storage unit 110 may be a FLASH storage chip, so that when storing data, it not only has the performance of electronic erasability and programmability, but also can quickly read data so that the data will not be lost due to power failure. Optionally, the storage unit 110 may also be a storage device such as a USB flash drive, an SD card, or an MS card, which is not limited here.
[0036] Among them, Figure 3 As shown, the test control unit 130 includes: a first main state machine module 131 and a configuration control module 132 .
[0037] The first main state machine module 131 is respectively connected to the data processing unit 120, the host computer 200, the configuration control module 132 and the detection device 140, wherein the first main state machine module 131 is used to receive the test instructions sent by the host computer 200, and obtain the configuration information from the storage unit 110 through the data processing unit 120 in response to the test instructions.
[0038] Specifically, according to the above example, the first main state machine module 131 can receive instructions sent by the PC, schedule other modules to complete corresponding operations according to the instructions, and complete the state machine jump. Optionally, the main functions of the first main state machine module 131 also include: receiving instructions from the host computer 200, completing the reading and writing of the internal register group; executing the state machine jump according to the corresponding instructions; scheduling other modules to perform corresponding operations according to the instructions; initializing and configuring the extra device, controlling the communication of the main FPGA communication interface, and reading the configuration status.
[0039] The configuration control module 132 is connected to the chip to be tested 300, and is used to receive the configuration information sent by the first main state machine module 131, and configure the chip to be tested 300 through the configuration information. Specifically, according to the above example, the configuration control module 132 can receive the configuration instruction of the first main state machine, complete the synchronization of the configuration data stream, and send it to the FPGA configuration interface 310 of the chip to be tested 300. At the same time, the information of the FPGA configuration interface 310 of the chip to be tested 300 is returned to the first main state machine module 131.
[0040] It can be understood that the chip to be tested 300 is pre-configured with an FPGA configuration interface 310 , and the FPGA configuration interface 310 can be connected to the configuration control module 132 , and can output a corresponding configuration signal according to the configuration bit stream.
[0041] Optionally, the test control unit 130 further includes: a JTAG interface 133 and a JTAG encoding / decoding module 134 .
[0042] The JTAG interface 133 is connected to the host computer 200 and the JTAG encoding / decoding module 134 respectively. The JTAG interface 133 is used to receive the test instructions sent by the host computer 200 and send the test instructions to the JTAG encoding / decoding module 134 .
[0043] Specifically, according to the above example, the JTAG interface 133 is a JTAG physical interface, which can be connected to a PC to achieve communication with the PC.
[0044] The JTAG encoding / decoding module 134 is connected to the first main state machine module 131 , and is used to decode the test instruction and send it to the first main state machine module 131 , or encode the data uploaded by the first main state machine module 131 to the host computer 200 .
[0045] Specifically, according to the above example, the JTAG encoding / decoding module 134 can decode the data and instructions sent by the PC, and encode the data to be uploaded to the PC.
[0046] Among them, Figure 4 As shown, the data processing unit 120 includes: a second main state machine module 121 and a data conversion module 122 .
[0047] The second main state machine module 121 is connected to the host computer 200 , the first main state machine module 131 and the data conversion module 122 respectively, and the data conversion module 122 is connected to the storage unit 110 .
[0048] The second main state machine module 121 is used to control the data conversion module 122 to receive the configuration information sent by the host computer 200, and convert the configuration information into storage information in a specified format and then write it into the storage unit 110, or, when the first main state machine module 131 receives a test instruction, control the data conversion module 122 to read the storage information from the storage unit 110, and convert the storage information into configuration information and then send it to the first main state machine module 131.
[0049] Specifically, the second main state machine module 121 can exchange information with the first main state machine module 131 to complete the scheduling and control of other modules. Based on the above example, for example, receiving the command of the first main state machine module 131 to complete the specified task, for example, receiving the command of the first main state machine module 131 to complete the function of programming FLASH; reading address information from SDIF, and reading information such as bit stream and excitation length.
[0050] Optionally, the data conversion module 122 may include: an SPI interface 1221 , a serial-to-parallel conversion module 1222 , and a FLASH read / write control module 1223 .
[0051] The SPI interface 1221 is connected to the host computer 200. The SPI interface 1221 is used to receive the configuration information sent by the host computer 200 and convert the configuration information into SPI data. Based on the above example, the SPI interface 1221 is a SPI physical interface connected to the PC and is mainly used to transmit data for programming FLASH.
[0052] The serial-to-parallel conversion module 1222 is respectively connected to the SPI interface 1221 and the second main state machine module 121, and is used to convert SPI data into parallel port data. Specifically, according to the above example, the serial-to-parallel conversion module 1222 can convert SPI data into 32-bit parallel port data, which is convenient for subsequent writing into 32-bit FLASH.
[0053] The FLASH read / write control module 1223 is respectively connected to the serial-to-parallel conversion module 1222, the storage unit 110, and the second main state machine module 121. The FLASH read / write control module 1223 is used to write parallel port data into the storage unit 110, or read parallel port data from the storage unit 110. Based on the above example, the FLASH read / write control module 1223 can complete the read and write control of FLASH, including the reading and writing of address information (SDIF) and data information (CDIF), and send the corresponding data to the corresponding output module.
[0054] Among them, the extra device may include an adjustment unit in addition to the detection unit. Optionally, the adjustment unit may include a programmable potentiometer for adjusting the voltage point to be tested of the chip to be tested 300, a programmable crystal oscillator for adjusting the frequency of the chip to be tested 300, etc. The detection unit may include a temperature sensor for detecting the temperature of the chip to be tested 300, an analog / digital converter (ADC) for detecting the current of the chip to be tested 300, etc. It can be understood that when the channel of the ADC is valid, the output is a digital code corresponding to the current, which is transmitted to the PC, and the actual current value conversion and power consumption calculation are performed through the PC end.
[0055] It can be seen that in this embodiment, the chip 100 is constructed by a storage unit 110, a data processing unit 120, a test control unit 130 and a detection device 140, wherein: the data processing unit 120 is connected to the storage unit 110, and is used to obtain configuration information from the host computer 200 and store the configuration information in the storage unit 110; the test control unit 130 is connected to the data processing unit 120, and is used to obtain configuration information from the storage unit 110 through the data processing unit 120, and configure the chip to be tested 300 based on the configuration information; the detection device 140 is respectively connected to the test control unit 130 and the chip to be tested 300, and is used to detect the configured chip to be tested 300 to obtain test data, thereby realizing automated testing of the chip, improving test efficiency, reducing manual intervention, and ensuring the reliability and stability of test data.
[0056] See also Figure 5 , Figure 5 A chip use method provided by an embodiment of the present application is shown. The chip use method can be applied to the chip of the above embodiment. The chip use method may include:
[0057] S110, controlling the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configuring the chip to be tested according to the configuration information.
[0058] In some implementations, the data processing unit may obtain configuration information from the host computer in advance, and convert the format of the configuration information to obtain storage information for easy storage, and then store the storage information in the storage unit.
[0059] When the test control unit receives the test instruction from the host computer, it can respond to the test instruction, call the data processing unit to read the storage information from the storage unit, and convert the format of the storage information in the data processing unit to obtain configuration information, and send the configuration information to the test control unit. The test control unit then configures the chip to be tested according to the configuration information. As an example, for example, the configuration information includes voltage information and bit stream information. The test control unit can configure the chip to be tested to a corresponding circuit structure and a corresponding voltage state according to the configuration information. Optionally, the configuration information may include multiple sets of voltage information, bit stream information, etc., so as to test the chip to be tested under different voltages and different bit stream states.
[0060] S120, obtaining the configuration status of the chip to be tested.
[0061] Among them, the configuration state may include the state when the chip to be tested is in different configuration stages. For example, the configuration state may include the state when the chip to be tested has not downloaded the bit stream, the state when the bit stream is downloaded but not running the bit stream, the state when the bit stream is downloaded and running the bit stream, and the state under different voltage and different frequency configurations, etc.
[0062] In some implementations, the test control unit can read the configuration state through the main FPGA communication interface. Specifically, the main FPGA communication interface is connected to the detection unit, and the detection unit can be provided with a detection module, a sensor, etc. for detecting the configuration state of the chip to be tested. For example, a temperature sensor, a voltage detection device, etc. can be used to detect whether the chip to be tested is working. By analyzing the data fed back by the chip to be tested, it can be determined whether the bit stream is downloaded successfully, thereby obtaining the configuration state of the chip to be tested.
[0063] S130: If the configuration state of the chip to be tested is a specified state, the chip to be tested in the specified state is tested by a detection device to obtain test data.
[0064] The test data may include temperature, voltage, current, clock and other data. The specific test data can be set according to actual needs and is not limited here.
[0065] In some embodiments, the specified state may include a state when the test chip has not downloaded a bitstream, a state when the bitstream has been downloaded but the bitstream has not been run, and a state when the bitstream has been downloaded and the bitstream has been run. If the configuration state of the chip to be tested is a state when the bitstream has not been downloaded, the test control unit may control the detection device to detect the data in the current state, i.e., the blank slice data of the chip to be tested. If the configuration state of the chip to be tested is a state when the bitstream has been downloaded but the bitstream has not been run, the test control unit may control the detection device to detect the data in the current state, i.e., the static data of the chip to be tested. If the configuration state of the chip to be tested is a state when the bitstream has been downloaded and the bitstream has been run, the test control unit may control the detection device to detect the data in the current state, i.e., the dynamic data of the chip to be tested. Then the blank slice data, static data, and dynamic data are used as test data, so that the test data is automatically acquired according to the configuration state of the chip to be tested.
[0066] Optionally, if the configuration state of the chip to be tested is not in a specified state, the detection device may be controlled to be in a shutdown or standby state to save test power consumption.
[0067] It can be seen that in this embodiment, the test control unit is controlled to obtain the pre-stored configuration information from the storage unit through the data processing unit, and the chip to be tested is configured according to the configuration information, and then the configuration state of the chip to be tested is obtained. If the configuration state of the chip to be tested is a specified state, the chip to be tested in the specified state is tested by the detection equipment to obtain test data, so that the test data can be automatically obtained according to the configuration state of the chip to be tested, avoiding the inefficiency and high cost caused by manual testing, and improving the test efficiency. In addition, by testing the chips to be tested in different configuration states, the reliability, stability and comprehensiveness of the test data are guaranteed.
[0068] See also Figure 6 , Figure 6 A chip use method provided by another embodiment of the present application is shown. The chip use method can be applied to the chip of the above embodiment. The chip use method may include:
[0069] S210, controlling the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configuring the chip to be tested according to the configuration information, wherein the configuration information includes bit stream information.
[0070] S220, obtaining the configuration status of the chip to be tested.
[0071] The specific implementation of S210 to S220 may refer to S110 to S120, so it will not be described here in detail.
[0072] S230: If the bit stream information does not exist in the chip to be tested, determine that the configuration state of the chip to be tested is a first state.
[0073] In some implementations, after the chip to be tested is initialized, it may be determined that the configuration state of the chip to be tested is a first state.
[0074] S240: If the chip to be tested has bit stream information, and the chip to be tested does not run the bit stream information, determine that the configuration state of the chip to be tested is a second state.
[0075] In some embodiments, the chip to be tested may report download result confirmation information after downloading the bitstream information. The download result confirmation information is used to indicate whether the bitstream information has been downloaded successfully. If it is determined according to the download result confirmation information that the bitstream information has been downloaded successfully, it indicates that the bitstream information exists in the chip to be tested; if it is determined according to the download result confirmation information that the bitstream information has failed to be downloaded, it indicates that the bitstream information does not exist in the chip to be tested.
[0076] In some embodiments, when detecting whether the bit stream information is running, it can be detected whether the chip to be tested is in a normal working state. If it is not in a normal working state, for example, when the chip to be tested is in a standby state, it can be determined that the chip to be tested does not have the running bit stream information. At this time, although the voltage of the chip to be tested is not 0V, it is not in an operating state.
[0077] In other embodiments, when detecting whether to run the bitstream information, the standard voltage value corresponding to the bitstream information at the designated voltage point of the chip to be tested can be obtained in advance, and the current voltage value of the chip to be tested at the designated voltage point can be detected. If the standard voltage value is consistent with the current voltage value, it can be determined that the chip to be tested runs the bitstream information. If they are inconsistent, it can be determined that the chip to be tested does not run the bitstream information. As an example, for example, the designated voltage point includes a first voltage point, a second voltage point, and a third voltage point. The standard voltage of the bitstream information corresponding to the first voltage point is 0V, the standard voltage of the bitstream information corresponding to the second voltage point is 0V, and the standard voltage of the bitstream information corresponding to the third voltage point is 5V. If the current voltage of the first voltage point is 0V, the current voltage of the second voltage point is 0V, and the current voltage of the third voltage point is 5V, it can be determined that the chip to be tested runs the bitstream information. If the current voltage of at least one voltage point is inconsistent with the standard voltage, it can be determined that the chip to be tested does not run the bitstream information.
[0078] It is understandable that, for the chip to be tested, different bit stream information can form different circuit structures. Therefore, when the chip to be tested is configured with different bit stream information, different voltage values will appear at the same voltage point when it is working.
[0079] S250: If the chip to be tested has bit stream information and the chip to be tested is running the bit stream information, determine that the configuration state of the chip to be tested is a third state.
[0080] The specific implementation of determining whether the configuration state of the chip to be tested is the third state can be referred to S240, so it will not be described in detail here.
[0081] The first state, the second state and the third state of the chip to be tested may be pre-set as designated states of the chip to be tested.
[0082] S260: If the configuration state of the chip to be tested is a specified state, the chip to be tested in the specified state is tested by a detection device to obtain test data.
[0083] In some embodiments, the configuration information includes multiple groups of configuration parameters, and the configuration parameters include voltage parameters and frequency parameters. The specific implementation of S260 may include: if the configuration state of the chip to be tested is the third state, the chip to be tested configured with each group of configuration parameters in the multiple groups of configuration parameters is detected by a detection device to obtain test data.
[0084] As a method, each of the multiple groups of configuration parameters can be numbered in advance, and then detected in order from the smallest to the largest number until all the configuration parameters in the multiple groups of configuration parameters are traversed. For example, the multiple groups of configuration parameters include the first group of configuration parameters, the second group of configuration parameters, and the third group of configuration parameters. When the first group of configuration parameters is detected, the working parameters in the chip to be tested are modified to the second group of configuration parameters and tested; when the second group of configuration parameters is detected, the working parameters in the chip to be tested are modified to the third group of configuration parameters and tested, and so on.
[0085] Optionally, if the configuration state of the chip to be tested is the second state, the chip to be tested configured with each set of configuration parameters in the multiple sets of configuration parameters is tested by a testing device to obtain test data.
[0086] In this embodiment, by making the designated state include the first state, the second state and the third state, if there is no bitstream information in the chip to be tested, the configuration state of the chip to be tested is determined to be the first state. If there is bitstream information in the chip to be tested, and the chip to be tested is not running the bitstream information, the configuration state of the chip to be tested is determined to be the second state. If there is bitstream information in the chip to be tested, and the chip to be tested is running the bitstream information, the configuration state of the chip to be tested is determined to be the third state. In this way, the blank chip data of the chip to be tested can be obtained in the first state, the static data of the chip to be tested can be obtained in the second state, and the dynamic data of the chip to be tested can be obtained in the third state, so that the chip to be tested can be tested in different configuration states and with different configuration information accurately and efficiently, thereby improving the comprehensiveness of the test.
[0087] See also Figure 7 , Figure 7 A chip use method provided by another embodiment of the present application is shown. The chip use method can be applied to the chip of the above embodiment. The chip use method may include:
[0088] S310, controlling the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configuring the chip to be tested according to the configuration information.
[0089] S320, obtaining the configuration status of the chip to be tested.
[0090] S330: If the bit stream information does not exist in the chip to be tested, determine that the configuration state of the chip to be tested is a first state.
[0091] The specific implementation of S310 to S330 may refer to S210 to S230, so it will not be described in detail here.
[0092] S340: If the bit stream information does not exist in the chip to be tested, control the test control unit to download the bit stream information to the chip to be tested.
[0093] S350: If the bitstream information is successfully downloaded to the chip to be tested within the specified download times, determine whether the chip to be tested runs the bitstream information.
[0094] As an example, for example, the specified number of downloads is 5 times. If the test control unit successfully downloads the bitstream information to the chip to be tested for the first time, it is determined whether the chip to be tested runs the bitstream information. The specific implementation method of determining whether the chip to be tested runs the bitstream information can be referred to S240, so it will not be repeated here.
[0095] S360: If there is no running bit stream information, determine that the configuration state of the chip to be tested is the second state.
[0096] S370: If the bitstream information is not successfully downloaded to the chip to be tested within the specified download times, the chip is initialized, and the test control unit is controlled to download the bitstream information to the chip to be tested.
[0097] As an example, for example, the specified number of downloads is 5 times. If the test control unit fails to download the bitstream information to the chip to be tested for 5 consecutive times, the chip is initialized and returns to execute S340 to 370 after initialization, and the cycle continues until the bitstream information is successfully downloaded to the chip to be tested.
[0098] S380: If the chip to be tested has bit stream information and the chip to be tested is running the bit stream information, determine that the configuration state of the chip to be tested is a third state.
[0099] The first state, the second state and the third state of the chip to be tested may be pre-set as designated states of the chip to be tested.
[0100] S390: If the configuration state of the chip to be tested is a specified state, the chip to be tested in the specified state is tested by a detection device to obtain test data.
[0101] In practical applications, as an example, the implementation process of the chip use method of this embodiment can be as follows: Figure 8 As shown, the entire chip is powered on first, and then the entire chip and the chip to be tested are initialized. After initialization, blank chip data of the chip to be tested, that is, data of the chip to be tested in the first state, can be obtained.
[0102] After obtaining the blank chip data, the step of downloading the bitstream information is performed, and then it is determined whether the bitstream information is successfully downloaded to the chip to be tested. If not, it is downloaded again. If it is still unsuccessful after repeating the download for a specified number of times (N times), the entire chip and the chip to be tested are initialized, and the step of downloading the bitstream is re-executed until the bitstream information is successfully downloaded to the chip to be tested. If the download is successful, the static data of the chip to be tested, that is, the data of the chip to be tested in the second state, can be obtained when the chip to be tested does not run the bitstream information.
[0103] After acquiring the static data, the chip to be tested is made to run the bit stream information, and the dynamic data of the chip to be tested is acquired in this state, that is, the data of the chip to be tested in the third state. In the third state, the chip to be tested can be configured with different groups of frequencies and voltages, and then the configured chip data is acquired as dynamic data, thereby obtaining multiple groups of dynamic data. Specifically, after each test of a chip to be tested with a group of frequency and voltage configurations, the frequency and voltage are modified once, and configured to the chip to be tested and then tested again, until all frequencies and voltages to be tested are traversed.
[0104] Finally, the chip can upload the acquired blank data, static data, and dynamic data to the host computer as test data.
[0105] As an example, take the power consumption test of the chip as an example. The main test principle is to measure voltage and current. The voltage value is realized by the programmable potentiometer in the additional device. The user defines it before the test starts. The parameters are transmitted to the main control FPGA through the PC to control the programmable potentiometer, and finally the voltage of each channel is controlled. The current measurement is realized by the ADC. When the channel of the ADC is valid, the output is the digital code of the corresponding current. The code is transmitted to the PC for current actual value conversion and power consumption calculation through the PC. There are three main test points, one is the empty chip power consumption of the empty bit stream when the chip is powered on, one is the static power consumption after the bit stream is downloaded and the work is not started, and the third point is the dynamic power consumption of the chip after the bit stream is downloaded and the work is started. The static and dynamic power consumption needs to traverse the operating frequency and operating voltage. The settings of the operating frequency and operating voltage are written into the corresponding registers by the host computer. When testing the power consumption, the possible download failure is taken into account. If the download fails, a bit stream will be downloaded continuously. If the download is successful within 5 times, the subsequent test will continue, otherwise jump to the next bit stream and restart the test process. The data is acquired multiple times each time, and the frequency and pressure points during the actual test can be set according to user needs.
[0106] Taking into account the possibility that problems such as failure to download bitstream information may occur during the test process, in this embodiment, if the bitstream information does not exist in the chip to be tested, the test control unit is controlled to download the bitstream information to the chip to be tested. If the bitstream information is successfully downloaded to the chip to be tested within a specified number of downloads, it is determined whether the chip to be tested is running the bitstream information. If the bitstream information is not running, it is determined that the configuration state of the chip to be tested is the second state. If the bitstream information is not successfully downloaded to the chip to be tested within the specified number of downloads, the chip is initialized, and the operation of controlling the test control unit to download the bitstream information to the chip to be tested is executed. This ensures that the bitstream information can be successfully downloaded to the chip to be tested, thereby ensuring that the chip test is carried out stably and normally.
[0107] See also Fig. 9 , Fig. 9 A chip use method provided by another embodiment of the present application is shown. The chip use method can be applied to the chip of the above embodiment. The chip use method may include:
[0108] S410, controlling the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configuring the chip to be tested according to the configuration information.
[0109] S420, obtaining the configuration status of the chip to be tested.
[0110] S430: If the configuration state of the chip to be tested is a specified state, the chip to be tested in the specified state is tested by a detection device to obtain test data.
[0111] The specific implementation of S410 to S430 may refer to S110 to S130, so it will not be described in detail here.
[0112] S440, receiving test data of the detection device through the test control unit.
[0113] S450, performing format conversion processing on the test data by the data processing unit, and storing the test data after the format conversion processing in the storage unit.
[0114] As an example, the data processing unit may convert the test data into 32-bit parallel port data through its pre-configured serial-to-parallel conversion module, and then write the parallel port data into the 32-bit FLASH through the FLASH read / write control module.
[0115] In some implementations, the data processing unit may convert the test data into SPI data using its pre-configured SPI interface, and then upload the SPI data to a host computer, which may analyze the SPI data to obtain a test result.
[0116] In other embodiments, after the test data is stored in the storage unit, the data processing unit can read the test data from the storage unit through the FLASH read / write control module, and then convert the test data into SPI data through the SPI interface, and upload the SPI data to the host computer, which then analyzes the SPI data to obtain the test results.
[0117] In this embodiment, the test data of the detection equipment is received by the test control unit, and then the test data is formatted by the data processing unit, and the test data after format conversion is stored in the storage unit, so that the test data can be effectively saved, thereby facilitating real-time call by the host computer.
[0118] See also Fig.10 , which shows a chip using device provided in an embodiment of the present application, applied to the chip in the above embodiment, the chip using device 500 includes: a configuration module 510, a configuration state acquisition module 520 and a detection module 530. Among them:
[0119] The configuration module 510 is used to control the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configure the chip to be tested according to the configuration information.
[0120] The configuration status acquisition module 520 is used to acquire the configuration status of the chip to be tested.
[0121] The detection module 530 is used to test the chip to be tested in the specified state by using a detection device to obtain test data if the configuration state of the chip to be tested is a specified state.
[0122] Optionally, the configuration information includes bit stream information, the specified state includes a first state, and the chip using device 500 further includes:
[0123] The first state determination module is used to determine that the configuration state of the chip to be tested is the first state if there is no bit stream information in the chip to be tested.
[0124] Optionally, the specified state includes a second state, and the chip using device 500 further includes:
[0125] The second state determination module is used to determine that the configuration state of the chip to be tested is the second state if there is bit stream information in the chip to be tested and the chip to be tested does not run the bit stream information.
[0126] Optionally, the chip using device 500 further includes:
[0127] The bit stream download module is used to control the test control unit to download the bit stream information to the chip to be tested if the bit stream information does not exist in the chip to be tested.
[0128] The bitstream operation detection module 530 is used to determine whether the chip to be tested is running the bitstream information if the bitstream information is successfully downloaded to the chip to be tested within a specified number of download times.
[0129] The initialization module is used to initialize the chip if the bit stream information is not successfully downloaded to the chip to be tested within the specified download times, and execute the operation of controlling the test control unit to download the bit stream information to the chip to be tested.
[0130] Optionally, the configuration information includes bit stream information, the specified state includes a third state, and the chip using device 500 further includes:
[0131] The third state determination module is used to determine that the configuration state of the chip to be tested is a third state if there is bit stream information in the chip to be tested and the chip to be tested is running the bit stream information.
[0132] Optionally, the configuration information includes multiple groups of configuration parameters, the configuration parameters include voltage parameters and frequency parameters, and the detection module 530 is specifically used to, if the configuration state of the chip to be tested is the third state, detect the chip to be tested configured with each group of configuration parameters in the multiple groups of configuration parameters through the detection device to obtain test data.
[0133] Optionally, the chip using device 500 further includes:
[0134] The receiving module is used to receive the test data of the detection device through the test control unit.
[0135] The storage module is used to perform format conversion processing on the test data through the data processing unit, and store the test data after the format conversion processing in the storage unit.
[0136] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0137] In several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or modules, which may be electrical, mechanical or other forms.
[0138] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0139] Please refer to Fig.11 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 600 may be the electronic device 600 capable of running a program in the aforementioned embodiment. The electronic device 600 in the present application may include one or more of the following components: a processor 610, a memory 620, and one or more programs, wherein the one or more programs may be stored in the memory 620 and configured to be executed by one or more processors 610, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0140] The processor 610 may include one or more processing cores. The processor 610 uses various interfaces and lines to connect various parts of the entire electronic device 600, and executes various functions and processes data of the electronic device 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 620, and calling data stored in the memory 620. Among them, the processor 620 can be equivalent to Figure 1 The data processing unit 120 and the test control unit 130 together form a main control FPGA.
[0141] The memory 620 may include a random access memory (RAM) or a read-only memory (ROM). The memory 620 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the terminal during use, etc. Among them, the memory 620 may be equivalent to Figure 1 The storage unit 110 in the embodiment of the present invention.
[0142] See also Fig.12 , which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 700 stores a program code 710, which can be called by a processor to execute the method described in the above method embodiment.
[0143] The computer readable storage medium 700 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has storage space for program codes that execute any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0144] In summary, the chip and its use method provided by the embodiment of the present application, by controlling the test control unit to obtain the pre-stored configuration information from the storage unit through the data processing unit, and configure the chip to be tested according to the configuration information, and then obtain the configuration state of the chip to be tested. If the configuration state of the chip to be tested is a specified state, the chip to be tested in the specified state is tested by the detection device to obtain test data, so that the test data can be automatically obtained according to the configuration state of the chip to be tested, avoiding the inefficiency and high cost caused by manual testing, and improving the test efficiency. In addition, by testing the chips to be tested in different configuration states, the reliability, stability and comprehensiveness of the test data are guaranteed. In addition, unlike the traditional power consumption test of the chip, the power consumption of the chip when working is read in a software automated way, and there is no need to manually use programmable power supplies, signal generators and other high-precision equipment for testing in traditional tests, which greatly reduces the dependence on the test equipment. At the same time, the proposal of this method can batch test different test cases under different working conditions such as voltages, improve the test efficiency, and reduce manual intervention to ensure the reliability and stability of the data.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A chip testing system, characterized in that: include: Storage unit; A data processing unit, the data processing unit is connected to the storage unit, and is used to obtain configuration information from a host computer and store the configuration information in the storage unit, wherein the configuration information includes bit stream information; A test control unit, connected to the data processing unit, configured to obtain the configuration information from the storage unit through the data processing unit, and configure the chip to be tested based on the configuration information; as well as A detection device, the detection device is connected to the test control unit and the chip to be tested respectively, and is used to obtain the configuration state of the chip to be tested, and obtain the blank data, static data and dynamic data of the chip to be tested according to the configuration state of the chip to be tested, and use the blank data, static data and dynamic data as test data; Wherein, the configuration state includes a first state, a second state and a third state, the first state refers to a state in which the bit stream information does not exist in the chip to be tested, and the chip to be tested data obtained in the first state is empty chip data; the second state refers to a state in which the bit stream information exists in the chip to be tested and the chip to be tested is not running the bit stream information, and the chip to be tested data obtained in the second state is static data; the third state refers to a state in which the bit stream information exists in the chip to be tested and the chip to be tested is running the bit stream information, and the chip to be tested data obtained in the third state is dynamic data; The obtaining of corresponding data according to the configuration status of the chip to be tested includes: when the chip to be tested is in a first state, obtaining the blank chip data of the chip to be tested; when the chip to be tested is in a second state, obtaining the static data of the chip to be tested; when the chip to be tested is in a third state, obtaining the dynamic data of the chip to be tested.
2. The chip testing system according to claim 1, characterized in that: The test control unit comprises: a first main state machine module and a configuration control module; The first main state machine module is connected to the data processing unit, the host computer, the configuration control module and the detection device respectively, wherein the first main state machine module is used to receive a test instruction sent by the host computer, and obtain the configuration information from the storage unit through the data processing unit in response to the test instruction; The configuration control module is connected to the chip to be tested, and is used to receive the configuration information sent by the first main state machine module, and configure the chip to be tested according to the configuration information.
3. The chip testing system according to claim 2, characterized in that: The test control unit also includes: a JTAG interface and a JTAG encoding / decoding module; The JTAG interface is connected to the host computer and the JTAG encoding / decoding module respectively, and the JTAG interface is used to receive a test instruction sent by the host computer and send the test instruction to the JTAG encoding / decoding module; The JTAG encoding / decoding module is connected to the first main state machine module, and is used to decode the test instruction and send it to the first main state machine module, or to encode the data uploaded by the first main state machine module to the host computer.
4. The chip testing system according to claim 2, characterized in that: The data processing unit includes: a second main state machine module and a data conversion module; The second main state machine module is connected to the host computer, the first main state machine module and the data conversion module respectively, and the data conversion module is connected to the storage unit; The second main state machine module is used to control the data conversion module to receive the configuration information sent by the host computer, and write the configuration information into the storage information of the specified format after converting the format of the configuration information into the storage unit, or, when the first main state machine module receives the test instruction, control the data conversion module to read the storage information from the storage unit, and convert the storage information into the configuration information and send it to the first main state machine module.
5. The chip testing system according to claim 4, characterized in that: The data conversion module includes: an SPI interface, a serial-to-parallel conversion module and a FLASH read / write control module; The SPI interface is connected to the host computer, and the SPI interface is used to receive the configuration information sent by the host computer and convert the configuration information into SPI data; The serial-to-parallel conversion module is respectively connected to the SPI interface and the second main state machine module, and the serial-to-parallel conversion module is used to convert the SPI data into parallel port data; The FLASH read / write control module is connected to the serial-to-parallel conversion module, the storage unit and the second main state machine module respectively, and is used to write the parallel port data into the storage unit, or read the parallel port data from the storage unit.
6. A chip testing method, characterized in that: Applied to the chip testing system according to any one of claims 1 to 3, the method comprises: Control the test control unit to obtain pre-stored configuration information from the storage unit through the data processing unit, and configure the chip to be tested according to the configuration information, wherein the configuration information includes bit stream information; Obtaining the configuration status of the chip to be tested; Corresponding test data is obtained according to the configuration status of the chip to be tested. When the chip to be tested is in a first state, the blank slice data of the chip to be tested is obtained. When the chip to be tested is in a second state, the static data of the chip to be tested is obtained. When the chip to be tested is in a third state, the dynamic data of the chip to be tested is obtained, and the blank slice data, static data and dynamic data are used as test data, wherein the configuration status includes a first state, a second state and a third state, the first state refers to a state in which the bit stream information does not exist in the chip to be tested, and the data of the chip to be tested obtained in the first state are blank slice data; the second state refers to a state in which the bit stream information exists in the chip to be tested and the chip to be tested is not running the bit stream information, and the data of the chip to be tested obtained in the second state are static data; the third state refers to a state in which the bit stream information exists in the chip to be tested and the chip to be tested is running the bit stream information, and the data of the chip to be tested obtained in the third state are dynamic data.
7. The method according to claim 6, characterized in that Before acquiring corresponding test data according to the configuration state of the chip to be tested, the method further includes: If the bit stream information does not exist in the chip to be tested, it is determined that the configuration state of the chip to be tested is a first state.
8. The method according to claim 6, characterized in that Before acquiring corresponding test data according to the configuration state of the chip to be tested, the method further includes: If the bit stream information exists in the chip to be tested and the chip to be tested does not run the bit stream information, it is determined that the configuration state of the chip to be tested is a second state.
9. The method according to claim 8, characterized in that The method further comprises: If the bit stream information does not exist in the chip to be tested, controlling the test control unit to download the bit stream information to the chip to be tested; If the bitstream information is successfully downloaded to the chip to be tested within a specified number of download times, determining whether the chip to be tested runs the bitstream information; If the bit stream information is not executed, determining that the configuration state of the chip to be tested is a second state; If the bit stream information is not successfully downloaded to the chip to be tested within the specified download times, the chip test system is initialized, and the operation of controlling the test control unit to download the bit stream information to the chip to be tested is performed.
10. The method according to claim 6, characterized in that Before acquiring corresponding test data according to the configuration state of the chip to be tested, the method further includes: If the bit stream information exists in the chip to be tested and the chip to be tested is running the bit stream information, it is determined that the configuration state of the chip to be tested is a third state.
11. The method according to claim 10, characterized in that The configuration information includes multiple groups of configuration parameters, the configuration parameters include voltage parameters and frequency parameters, and the acquiring corresponding test data according to the configuration state of the chip to be tested includes: If the configuration state of the chip to be tested is the third state, the chip to be tested configured with each set of configuration parameters in the multiple sets of configuration parameters is tested by the testing device to obtain the test data.
12. The method according to claim 6, characterized in that After acquiring corresponding test data according to the configuration state of the chip to be tested, the method further includes: Receiving test data of the detection device through the test control unit; The data processing unit performs format conversion processing on the test data, and stores the test data after the format conversion processing in the storage unit.
Citation Information
Patent Citations
Serial transmission chip test method, serial transmission chip test system and integrated chip
CN103744009A
Method and system for real-time downloading FPGA (Field Programmable Gate Array) test configuration stream
CN106291336A
Processor-oriented automatic test method
CN107908509A
Chip test system and test method
CN110634530A
Method and system for testing system-on-chip chip
CN111475364A
