FPGA chip scheduling system for PXI test boards

By designing a scheduling system on the FPGA chip, using hardware logic circuits and state machines to schedule data according to the priority of the peripheral interface, the problem of low data transmission efficiency between FPGA and PXI test boards is solved, and efficient data processing and deduplication are achieved. , significantly improving the efficiency of integrated circuit testing.

CN114036011BActive Publication Date: 2024-09-24JIANGSU UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111430649.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-09-24
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

In integrated circuit testing, the data transmission efficiency of FPGA and PXI test boards is low, and there is a large amount of redundant and invalid data, which causes the host computer to wait for a long time and reduces the test efficiency.

Method used

Design an FPGA chip scheduling system that schedules data according to the priority of the peripheral interface through hardware logic circuits and state machines to achieve effective processing and deduplication of data streams and avoid invalid data reading, using data flow control modules and scheduling instructions. Components such as modules and state machines perform data scheduling.

Benefits of technology

It significantly shortens the data reading waiting time of the host computer, improves chip testing efficiency, avoids redundant data reading, and improves data utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036011B
    Figure CN114036011B
Patent Text Reader

Abstract

The invention discloses an FPGA chip scheduling system for a PXI test board, comprising: a PXI communication interface, a scheduling instruction module and a data flow control module, wherein: the scheduling instruction module comprises a state machine and an operation circuit, the state machine comprises a scheduling priority signal interface, which is used to receive the priority signal of the peripheral interface, and the state machine preferentially enters the peripheral interface state with the highest priority; in the current peripheral interface state, the state machine sends an instruction to extract the data output by the corresponding peripheral interface; the operation circuit is used to receive the priority signal of the peripheral interface, and the operation circuit respectively calculates the difference between the priority signal of the current peripheral interface state and other priority signals, and inputs the difference into the state machine, and when the difference is a predetermined value, the state machine enters the peripheral interface state corresponding to the priority signal that calculates the difference. By adopting the above technical scheme, the data reading waiting time of the host computer is short or no, invalid data is avoided from being read, and the chip test efficiency is significantly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of integrated circuits, and in particular to an FPGA chip scheduling system for a PXI test board. Background Art

[0002] As the integration and performance of integrated chips continue to improve, the number of test pins and efficiency of chip test systems also need to increase day by day. In order to reduce the cost of large-scale ATE (Automatic Test Equipment, integrated circuit automatic test machine), a test system based on PXI (PCI extensions for instrumentation, PCI extensions for instrument systems) bus modular equipment is used. A complete PXI test platform consists of three parts: PXI chassis, PXI test board and PXI main control center. The PXI test board can be used to complete the test of integrated circuits and transmit data to the PC through the PXI chassis for testing.

[0003] Usually, FPGA (Field Programmable Gate Array) is used as the main control chip to control the data flow of the data acquisition of the PXI test board. The PXI test board for integrated circuit testing includes PXI bus interface, FPGA (Field Programmable Gate Array) main control chip, DAC (Digital to analog converter), ADC (Analog to digital converter) and PMU (Precision measurement unit). PMU is a measurement unit that provides voltage or current to DUT (device under test) and measures the voltage or current fed back by DUT. It generally transmits data with FPGA through SPI interface (Serial Peripheral Interface). Its data stream is serial input and output, while the data of FPGA and PXI bus is transmitted in parallel, and its operating frequency is often greater than the operating frequency of PMU. In addition, the test board can test multiple integrated chip pin parameters at a time, but there will be a large amount of duplicate data in multiple pin parameters, and there will also be invalid data, such as invalid data sent back by DUT when configuring PMU, which are all redundant data. This will result in the host computer needing a lot of waiting time to wait for the SPI interface to read data during the data collection process, resulting in low data utilization efficiency, which in turn leads to low testing efficiency of the integrated chip. Summary of the invention

[0004] Purpose of the invention: The present invention provides an FPGA chip scheduling system for a PXI test board, which aims to determine the peripheral interface to be read according to the priority of the peripheral interface through the hardware logic circuit and state machine, complete the data scheduling of the peripheral interface, avoid the host computer requiring too long data reading waiting time, and avoid reading invalid data, thereby significantly improving the chip testing efficiency.

[0005] Technical solution: The present invention provides an FPGA chip scheduling system for a PXI test board, comprising: a PXI communication interface, a scheduling instruction module and a data flow control module, wherein: the data flow control module comprises an input data selection and address allocation unit, an output data selection unit and a RAM, the input data selection and address allocation unit is used to receive data input from a peripheral interface, and input the data into the RAM after allocating an address; the output data selection unit is used to extract data according to the instruction of the scheduling instruction module, and output the data to the PXI communication interface after reading the data from the RAM; the scheduling instruction module comprises a state machine and an operation circuit, the state machine comprises a scheduling priority signal interface, which is used to receive the priority signal of the peripheral interface, and the state machine preferentially enters the peripheral interface state with the highest priority; in the current peripheral interface state, the state machine sends an instruction to extract the data output by the corresponding peripheral interface; the operation circuit is used to receive the priority signal of the peripheral interface, and the operation circuit respectively calculates the difference between the priority signal of the current peripheral interface state and other priority signals, and inputs the difference into the state machine, and when the difference is a predetermined value, the state machine enters the peripheral interface state corresponding to the priority signal for calculating the difference; the priority signals of the peripheral interfaces are fields of the same bit width, and are arranged in the order of the peripheral interfaces.

[0006] Specifically, the data flow control module is also used to perform deduplication processing on the data input by the peripheral interface.

[0007] Specifically, it also includes a FIFO module and a configuration allocation module. The FIFO module is used to buffer the PMU configuration data sent by the PXI communication interface; the configuration allocation module is used to allocate the PMU configuration information to the corresponding peripheral interface according to the time sequence of sending.

[0008] Specifically, the state machine also includes a peripheral interface data extraction times signal interface.

[0009] Specifically, it also includes a selector and a D flip-flop. The state machine inputs the signal of the current peripheral interface state into the selector, the selector outputs the corresponding address to the D flip-flop, and the D flip-flop generates a corresponding instruction.

[0010] Specifically, after the data extraction times of the current peripheral interface are completed, the state machine enters the next peripheral interface state.

[0011] Specifically, the scheduling instruction module is also used to set the waiting time and waiting conditions of the peripheral interface.

[0012] Specifically, the scheduling instruction module is also used to send a jump instruction of the peripheral interface.

[0013] Specifically, the state machine also includes a clock signal interface.

[0014] Specifically, the state machine also includes a reset signal interface.

[0015] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: the data reading waiting time of the host computer is short or non-existent, which avoids reading invalid data and significantly improves the chip testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of the structure of a PXI test board provided by the present invention;

[0017] Figure 2 A schematic diagram of the structure of the FPGA chip provided by the present invention;

[0018] Figure 3 A digital circuit diagram of a scheduling instruction module provided by the present invention;

[0019] Figure 4 A schematic diagram of a scheduling instruction provided by the present invention. DETAILED DESCRIPTION

[0020] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0021] See also Figure 1 , which is a schematic diagram of the structure of the PXI test board provided by the present invention.

[0022] In the embodiment of the present invention, the PXI test board should have four-input and four-output capabilities for voltage or current signals, including a PXI bus interface, an FPGA chip, four PMU chips and four ADC chips.

[0023] See also Figure 2 , which is a schematic diagram of the structure of the FPGA chip provided by the present invention; see Figure 3 , which is a digital circuit diagram of the scheduling instruction module provided by the present invention.

[0024] The present invention provides an FPGA chip scheduling system for a PXI test board, comprising: a PXI communication interface (PXI bus), a scheduling instruction module and a data flow control module, wherein:

[0025] The data flow control module includes an input data selection and address allocation unit, an output data selection unit and a RAM. The input data selection and address allocation unit is used to receive data input from the peripheral interface and input the data into the RAM after allocating the address. The output data selection unit is used to extract data according to the instruction of the scheduling instruction module, read the data from the RAM and output it to the PXI communication interface.

[0026] The scheduling instruction module includes a state machine and an operation circuit, wherein the state machine includes a scheduling priority signal interface for receiving a priority signal of a peripheral interface, and the state machine preferentially enters the peripheral interface state with the highest priority;

[0027] In the current peripheral interface state, the state machine sends an instruction to extract data output by the corresponding peripheral interface;

[0028] The operation circuit is used to receive the priority signal of the peripheral interface, and the operation circuit calculates the difference between the priority signal of the current peripheral interface state and other priority signals, and inputs the difference into the state machine. When the difference is a predetermined value, the state machine enters the peripheral interface state corresponding to the priority signal of the calculated difference;

[0029] The priority signals of the peripheral interfaces are fields of the same bit width, arranged in the order of the peripheral interfaces.

[0030] In a specific implementation, the priority signal bit width of the peripheral interface is 16 bits, and the 16-bit data is divided into four segments, namely 0 to 3, 4 to 7, 8 to 11, and 12 to 15. These four segments can correspond to the priorities of the four peripheral interfaces (SPI1, SPI2, SPI3, and SPI4) in order. For example, input 0011_0100_0010_0001 (binary), that is, the priority SPI2>SPI1>SPI3>SPI4.

[0031] In a specific implementation, after the state machine receives the priority signal of the peripheral interface, it first enters the peripheral interface state with the highest priority. For example, when SPI2>SPI1>SPI3>SPI4, it first enters the second peripheral interface (SPI2) state, and then sends an instruction to extract the data output by the second peripheral interface.

[0032] In a specific implementation, for example, in the state of the second peripheral interface (SPI2), the operation circuit (subtraction circuit) calculates the difference between the priority of the second peripheral interface and the priorities of other peripheral interfaces (the difference calculation can be in decimal, that is, the priorities of the four peripheral interfaces correspond to 3421). When the predetermined value is 1, the difference between the second peripheral interface and the first peripheral interface is 1, and the difference between the second peripheral interface and the other peripheral interfaces is not 1. Therefore, after completing the data reading of the second peripheral interface, the state machine can enter the first peripheral interface state, send an instruction to read the first peripheral interface, and then calculate whether the difference between the priority of the first peripheral interface and the priorities of the other peripheral interfaces is 1, and then determine the peripheral interface state to be entered later. After entering all four peripheral interface states, the peripheral interface with the highest priority can be re-entered.

[0033] In a specific implementation, determining the scheduling order for the peripheral interfaces only based on the priority ranking requires a high amount of calculation. When the number of peripheral interfaces is 4, there are 24 sequential arrangement methods, that is, it is necessary to calculate all 24 arrangement orders before the correct peripheral interface priority ranking can be determined. At the same time, it is also necessary to record which peripheral interface is currently being executed. When the number of peripheral interfaces increases, the number of arrangement orders will increase significantly, the amount of calculation will increase accordingly, and the test efficiency will decrease significantly. However, by adopting the solution proposed in the present invention, in the case of four peripheral interfaces, it is very easy to determine the peripheral interface with the highest priority. It only takes three operations (that is, 10 operations) to calculate the difference in priority between the current peripheral interface and the other peripheral interfaces. Figure 3 There are 12 operation circuits in this method, which can quickly determine the state of the next peripheral interface to be entered and read the data. This significantly reduces the amount of calculation and improves the test efficiency.

[0034] In the specific implementation, according to the priority of the peripheral interface, the peripheral interface to be read is determined through the hardware logic circuit and state machine, and the data scheduling of the peripheral interface is completed. The peripheral interface can be switched quickly and valid data can be read, avoiding the host computer needing too long to wait for data reading, avoiding reading invalid data, and significantly improving chip testing efficiency.

[0035] In the embodiment of the present invention, the data flow control module is also used to perform deduplication processing on the data input by the peripheral interface.

[0036] In a specific implementation, the data flow control module can be set to perform relatively easy data deduplication and exclude duplicate data, thereby avoiding reading invalid data and significantly improving chip testing efficiency.

[0037] In an embodiment of the present invention, the FPGA chip also includes a FIFO module and a configuration allocation module, wherein the FIFO module is used to buffer the PMU configuration data sent by the PXI communication interface; and the configuration allocation module is used to allocate the PMU configuration information to the corresponding peripheral interface in the order of the sending time.

[0038] In a specific implementation, the configuration allocation module allocates different PMU configuration information to different SPI interfaces, mainly according to the different times when data is transmitted into the FIFO module, and allocates the configuration data to the four peripheral interfaces in chronological order.

[0039] In the embodiment of the present invention, the state machine further includes a peripheral interface data extraction times signal interface.

[0040] In the specific implementation, when a specific pin of the chip needs to be tested, the scheduling instruction only needs to be set to extract the peripheral interface corresponding to the pin, and its priority is set to the first position, and the extraction times of the remaining peripheral interfaces are set to 0, so that the pin data can be quickly extracted and other pins can be ignored.

[0041] In an embodiment of the present invention, the state machine also includes a selector (composed of a triode) and a D flip-flop. The state machine inputs the signal of the current peripheral interface state into the selector, the selector outputs the corresponding address to the D flip-flop, and the D flip-flop generates the corresponding instruction.

[0042] In a specific implementation, the instruction generated by the D flip-flop is sent to the output data selection unit of the data flow control module.

[0043] In the embodiment of the present invention, the state machine enters the next peripheral interface state after the data extraction times of the current peripheral interface are completed.

[0044] See also Figure 4 , which is a schematic diagram of the scheduling instruction provided by the present invention.

[0045] In the embodiment of the present invention, the scheduling instruction module is also used to set the waiting time and waiting condition of the peripheral interface.

[0046] In the embodiment of the present invention, the scheduling instruction module is also used to send a jump instruction of the peripheral interface.

[0047] In a specific implementation, when the scheduling condition is met, the scheduling instruction module may send a jump address to the data flow control module, and then read the data in the address segment.

[0048] In the embodiment of the present invention, the state machine further includes a clock signal interface.

[0049] In the embodiment of the present invention, the state machine further includes a reset signal interface.

[0050] In the specific implementation, the present invention proposes a basic digital circuit for implementing the peripheral interface scheduling method, which includes the setting of the number of extractions of each peripheral interface, the priority operation circuit, the state transfer function, etc. The direct scheduling and implementation of the function function by the FPGA chip can save a lot of time loss caused by the communication interaction between software and hardware. Since a PXI chassis can be inserted with multiple PXI test boards, each test board can be equipped with an FPGA as the main control chip, and the control registers and logic units of each functional unit are inside their own FPGA, so the FPGA chips on each test board can be allowed to synchronously and concurrently schedule and execute each test instruction to achieve maximum execution parallelism.

Claims

1. An FPGA chip scheduling system for PXI test boards, It is characterized in that include: PXI communication interface, scheduling instruction module and data flow control module, including: The data flow control module includes an input data selection and address allocation unit, an output data selection unit and a RAM. The input data selection and address allocation unit is used to receive data input from the peripheral interface and input the data into the RAM after allocating the address. The output data selection unit is used to extract data according to the instruction of the scheduling instruction module, read the data from the RAM and output it to the PXI communication interface. The scheduling instruction module includes a state machine and an operation circuit, wherein the state machine includes a scheduling priority signal interface for receiving a priority signal of a peripheral interface, and the state machine preferentially enters the peripheral interface state with the highest priority; In the current peripheral interface state, the state machine sends an instruction to extract data output by the corresponding peripheral interface; The operation circuit is used to receive the priority signal of the peripheral interface, and the operation circuit calculates the difference between the priority signal of the current peripheral interface state and other priority signals, and inputs the difference into the state machine. When the difference is a predetermined value, the state machine enters the peripheral interface state corresponding to the priority signal of the calculated difference; The priority signals of the peripheral interfaces are fields of the same bit width, arranged in the order of the peripheral interfaces.

2. The FPGA chip scheduling system for a PXI test board according to claim 1, It is characterized in that The data flow control module is also used to perform deduplication processing on the data input by the peripheral interface.

3. The FPGA chip scheduling system for a PXI test board according to claim 1, It is characterized in that It also includes a FIFO module and a configuration distribution module. The FIFO module is used to buffer the PMU configuration data sent by the PXI communication interface; the configuration distribution module is used to distribute the PMU configuration information to the corresponding peripheral interface according to the time sequence of transmission.

4. The FPGA chip scheduling system for a PXI test board according to claim 1, It is characterized in that The state machine also includes a peripheral interface data extraction times signal interface.

5. The FPGA chip scheduling system for a PXI test board according to claim 4, It is characterized in that It also includes a selector and a D flip-flop. The state machine inputs a signal of the current peripheral interface state into the selector, the selector outputs a corresponding address to the D flip-flop, and the D flip-flop generates a corresponding instruction.

6. The FPGA chip scheduling system for a PXI test board according to claim 5, It is characterized in that The state machine enters the next peripheral interface state after the data extraction times of the current peripheral interface are completed.

7. The FPGA chip scheduling system for a PXI test board according to claim 6, It is characterized in that The scheduling instruction module is also used to set the waiting time and waiting conditions of the peripheral interface.

8. The FPGA chip scheduling system for a PXI test board according to claim 6, It is characterized in that The scheduling instruction module is also used to send a jump instruction of the peripheral interface.

9. The FPGA chip scheduling system for a PXI test board according to claim 5, It is characterized in that The state machine also includes a clock signal interface.

10. The FPGA chip scheduling system for PXI test board according to claim 5, It is characterized in that The state machine also includes a reset signal interface.

Citation Information

Patent Citations

  • Telemetry system external interface universal equivalent device based on PXI bus

    CN106933215A

  • High-speeld code-flow playing and receiving device based on PCI

    CN1678086A

  • PXI (PCI extension for instrumentation) bus-based digital testing module

    CN201886122U

  • Automatic testing system and method

    US20150153405A1