A port configuration method of a field programmable gate array

By receiving connection configuration instructions, writing pad codes into registers, and establishing connections using selectors, the problem of long connection configuration time between FPGA test objects and external circuits is solved, enabling fast and convenient port and pad connection configuration.

CN115879401BActive Publication Date: 2026-11-27CHONGQING XINLIANXIN INTELLIGENT TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211737233.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2026-11-27
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In the prior art, when configuring the connection between the field-programmable gate array (FPGA) test object and the external circuit, the compilation time of the configuration file is too long, which causes a lot of time to be spent changing the connection relationship between the port and the pad.

Method used

By receiving connection configuration instructions, the pad code is directly written into the register, and the connection configuration between the port and the pad is established using the selector, avoiding the need to rewrite and burn the configuration file.

Benefits of technology

It enables quick changes to the connection configuration between the port and the pad, is easy to operate, and saves time in rewriting and burning configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115879401B_ABST
    Figure CN115879401B_ABST
Patent Text Reader

Abstract

A port configuration method of a field programmable gate array is used to quickly establish the connection configuration between the port of a test object of the field programmable gate array and a pad. The method comprises: receiving a connection configuration instruction between a first port port of a test object and a pad pad of an FPGA; the test object is constructed by a logic unit in the FPGA; any pad on the FPGA is connected to an external circuit through a packaged pin; writing a pad code indicated in the connection configuration instruction into a storage address corresponding to the first port in a register; and establishing a connection configuration between the first port and a pad corresponding to the pad code according to the pad code in the storage address corresponding to the first port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of integrated circuit technology, and in particular to a port configuration method for a field-programmable gate array. Background Technology

[0002] Field Programmable Gate Arrays (FPGAs) are widely used in digital circuit design due to their abundant wiring resources, reprogrammability, high integration, and low investment.

[0003] In the process of testing and verifying the circuit logic of chips using field-programmable gate arrays (FPGAs), it is often necessary to adjust the connection configuration between the test object and external circuitry. Specifically, the test object simulates the chip's function; its input / output ports are first connected to pads, then the pads are connected to package pins, and finally, the package pins are connected to external circuitry. During test modulation, when it is necessary to change the external circuitry connected to the test object's input / output ports, the connection configuration between the ports and pads in the configuration file must be reprogrammed to establish a connection between that port and the pad corresponding to another pin. The disadvantage of this method is that the configuration file compilation time is very long, thus requiring a significant amount of time to modify the port-pad connection relationships.

[0004] Therefore, there is an urgent need for a solution to quickly establish the connection configuration between the ports and pads of a field-programmable gate array (FPGA) test object. Summary of the Invention

[0005] This application provides a port configuration method for a Field Programmable Gate Array (FPGA) to quickly establish the connection configuration between the ports and pads of the FPGA test object.

[0006] In a first aspect, this application provides a port configuration method for a Field Programmable Gate Array (FPGA), the method comprising: receiving a connection configuration instruction between a first port of a test object and a pad of the FPGA; the test object being constructed using logic units in the FPGA; any pad on the FPGA being connected to an external circuit via a packaged pin; writing the pad code indicated in the connection configuration instruction into a register at a storage address corresponding to the first port; and establishing a connection configuration between the first port and the pad corresponding to the pad code based on the pad code in the storage address corresponding to the first port.

[0007] In the above technical solution, the connection configuration between the first port of the test object and the pad is established according to the connection configuration instruction. When the first port needs to establish a connection configuration with other pads, only the connection configuration instruction needs to be changed, instead of changing the connection configuration between the first port and the pad by rewriting and burning the FPGA configuration file. This is not only convenient to operate, but also saves the time of rewriting and burning the configuration file.

[0008] In one possible design, before receiving the connection configuration instruction between the first port of the test object and the pad of the FPGA, the method further includes: reading a configuration file from the FPGA; the configuration file containing the pads associated with each port of the test object; determining the pads associated with the first port from the configuration file; and determining the pad code indicated in the connection configuration instruction from the pads associated with the first port.

[0009] In the above technical solution, the association between the first port of the test object and the pad is burned into the configuration file and remains unchanged. When the connection configuration between the first port and the pad is changed, only the connection configuration instruction needs to be changed to re-establish the connection configuration between the first port and the pad. This is not only convenient to operate, but also saves the time of rewriting and burning the configuration file.

[0010] In one possible design, before writing the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register, the method further includes: determining that the pad code indicated in the connection configuration instruction is at least one of the pads associated with the first port in the configuration file.

[0011] In one possible design, establishing a connection configuration between the first port and the pad corresponding to the pad code based on the pad code in the storage address corresponding to the first port includes: inputting the pad code in the storage address corresponding to the first port and each pad associated with the first port to a selector, and establishing a connection configuration between the first port and the pad corresponding to the pad code through the selector.

[0012] In the above technical solution, the connection configuration between the first port and the pad is established by using a selector according to the connection configuration instructions. This is not only convenient to operate, but also saves the time of rewriting and burning the configuration file.

[0013] In one possible design, the selector has N input bits; the number of pads associated with the first port is M, where N is greater than or equal to M; inputting the pad codes in the memory address corresponding to the first port and the pads associated with the first port to the selector includes: forming a first input column of N lengths from the pads associated with the first port; wherein, in the first input column, the pads associated with the first port are set to a first value, and the pads not associated with the first port are set to a second value; forming a second input column of N lengths from the pad codes in the memory address corresponding to the first port; wherein, the pads associated with the first port are set to the first value if they exist in the memory address corresponding to the first port, and to the second value if they do not exist in the memory address corresponding to the first port; and inputting the first input column and the second input column to the selector.

[0014] In one possible design, establishing the connection configuration between the first port and the pad corresponding to the pad code via the selector includes: performing a bitwise AND operation on the first input column and the second input column; and establishing the connection configuration between the first port and the pad corresponding to the pad code based on the operation result.

[0015] In one possible design, the first port is an input / output (INOUT) port; inputting the first input column and the second input column to the selector includes: inputting the first input column, the second input column, and the OE signal to the selector; the OE signal has a first value indicating that the first port is an input port, and the OE signal has a second value indicating that the first port is an output port.

[0016] In one possible design, the selector is implemented by a programmable logic unit of a field-programmable gate array.

[0017] In one possible design, the register is a volatile register.

[0018] In the above technical solution, the volatile register is easy to modify. It can be written directly through a serial communication terminal. Furthermore, the volatile register does not retain data when power is lost, and restarting will not affect the normal operation of the FPGA or its use by other personnel.

[0019] In one possible design, the connection configuration instructions are transmitted to the FPGA's serial communication interface via a serial port debugging tool.

[0020] In the above technical solution, if the connection configuration between the port and the pad needs to be changed, it is only necessary to transmit the connection configuration command to the FPGA through the serial port debugging tool, and the selector can re-establish the connection configuration between the port and the pad according to the connection configuration command.

[0021] Secondly, embodiments of this application provide a port configuration device for a Field Programmable Gate Array (FPGA), comprising:

[0022] A receiving module is used to receive connection configuration instructions between the first port of the test object and the pad of the FPGA; the test object is constructed using logic units in the FPGA; any pad on the FPGA is connected to an external circuit via a packaged pin.

[0023] The control module is used to write the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register;

[0024] A connector is used to establish a connection configuration between the first port and the pad corresponding to the pad code based on the pad code in the storage address corresponding to the first port.

[0025] In one possible design, before receiving the connection configuration instruction between the first port of the test object and the pad of the FPGA, the control module is further configured to read a configuration file from the FPGA; the configuration file contains the pads associated with each port of the test object; the device further includes a determination module configured to determine the pads associated with the first port from the configuration file; and to determine the pad codes indicated in the connection configuration instruction from the pads associated with the first port.

[0026] In one possible design, before writing the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register, the determining module is further configured to determine that the pad code indicated in the connection configuration instruction is at least one of the pads associated with the first port in the configuration file.

[0027] In one possible design, the control module is further configured to input the pad code in the storage address corresponding to the first port and each pad associated with the first port to a selector, and through the selector, establish a connection configuration between the first port and the pad corresponding to the pad code.

[0028] In one possible design, the selector has N input bits; the pads associated with the first port are M in number, where N is greater than or equal to M; the control module is further configured to form a first input column of N lengths from the pads associated with the first port; wherein, the pads associated with the first port in the first input column are set to a first value, and the pads not associated with the first port are set to a second value; the control module is further configured to encode the pads in the storage address corresponding to the first port to form a second input column of N lengths; wherein, the pads associated with the first port that exist in the storage address corresponding to the first port are set to a first value, and those that do not exist in the storage address corresponding to the first port are set to a second value; the control module is further configured to input the first input column and the second input column to the selector.

[0029] In one possible design, the selector is further configured to perform a bitwise AND operation on the first input column and the second input column; and based on the operation result, establish a connection configuration between the first port and the pad corresponding to the pad code.

[0030] In one possible design, the first port is an input / output (INOUT) port; the control module is further configured to input the first input column, the second input column, and the OE signal to the selector; the OE signal has a first value indicating that the first port is an input port, and the OE signal has a second value indicating that the first port is an output port.

[0031] In one possible design, the selector is implemented by a programmable logic unit of a field-programmable gate array.

[0032] In one possible design, the register is a volatile register.

[0033] In one possible design, the connection configuration instructions are transmitted to the FPGA's serial communication interface via a serial port debugging tool.

[0034] Thirdly, embodiments of this application also provide a computing device, including:

[0035] Memory, used to store program instructions;

[0036] A processor is configured to invoke program instructions stored in the memory and execute the method described in any possible design of the first aspect, according to the obtained program instructions.

[0037] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer-readable instructions that, when read and executed by a computer, cause the method described in any possible design of the first aspect to be implemented. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart illustrating a port configuration method for a Field Programmable Gate Array (FPGA) applicable to embodiments of this application.

[0040] Figure 2 A flowchart illustrating a method for inputting a signal to a selector, as provided in an embodiment of this application;

[0041] Figure 3 A schematic diagram of the implementation principle of a selector provided in the embodiments of this application. Figure 1 ;

[0042] Figure 4 A schematic diagram of the implementation principle of a selector provided in the embodiments of this application. Figure 2 ;

[0043] Figure 5 A schematic diagram of the implementation principle of a selector provided in the embodiments of this application. Figure 3 ;

[0044] Figure 6 A schematic diagram of a port configuration device for a field-programmable gate array provided in this application embodiment;

[0045] Figure 7 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0047] In the embodiments of this application, "multiple" refers to two or more. Terms such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order.

[0048] In the embodiments of this application, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows for mutual communication; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the aforementioned terms in this application according to the specific circumstances.

[0049] Figure 1 An exemplary flowchart illustrates a port configuration method for a Field Programmable Gate Array (FPGA) provided in an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0050] Step 101: Receive the connection configuration command between the first port of the test object and the pad of the FPGA.

[0051] In this embodiment, the test object is constructed using logic units within an FPGA. The test object has at least one port, which is used for signal input or output. Pads are encapsulated inside the FPGA. Ports inside the FPGA need to be packaged externally, but because the wires are too thin to withstand the soldering pressure, the ports need to be connected to a large metal block as a support for soldering. This pressure-bearing metal block is the pad. Pins are the packaged pins on the FPGA, i.e., the visible pins. There is a one-to-one relationship between pads and pins; each pad is connected to one pin. Any pad on the FPGA is connected to an external circuit through its packaged pin. In other words, a port of the test object in the FPGA is connected to one or more selected pads, each pad is connected to a corresponding pin, and each pin is connected to an external circuit. Therefore, the test object can be connected to an external circuit.

[0052] The connection configuration command is used to indicate which pad(s) among the pads associated with the first port establish a connection configuration with the first port. After the connection configuration is established, signal transmission can be performed between the first port and the corresponding pad. The connection configuration command can be transmitted to the FPGA's serial communication interface through a serial port debugging tool.

[0053] Before receiving the connection configuration instruction between the first port of the test object and the pad of the FPGA in step 101, it is necessary to read the configuration file from the FPGA and then determine the pads associated with the first port from the configuration file.

[0054] In this embodiment, the configuration file contains the pads associated with each port of the test object. The pads associated with each port are determined in advance by the tester based on the function of the port and the pads that are expected to be connected to each port during the test. The tester then writes the relationship between each port and the pads associated with each port into the configuration file and then programs the configuration file into the FPGA.

[0055] After identifying the pads associated with the first port, the pad code indicated in the connection configuration instruction is determined from among the pads associated with the first port. The pad code indicated in the connection configuration instruction indicates which pad(s) of the first port are specifically connected to it.

[0056] Step 102: Write the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register.

[0057] Before writing the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register, the method further includes: determining that the pad code indicated in the connection configuration instruction is at least one of the pads associated with the first port in the configuration file.

[0058] In this embodiment, the register can be a volatile register (ROM register). ROM registers are easy to modify; they can be written directly through a serial communication terminal. Furthermore, ROM registers are volatile, meaning they do not retain data when power is lost, and restarting will not affect the normal operation of the FPGA or its use by other personnel.

[0059] Step 103: Based on the pad code in the storage address corresponding to the first port, establish the connection configuration between the first port and the pad corresponding to the pad code.

[0060] In step 103, when establishing the connection configuration between the first port and the pad corresponding to the pad code based on the pad code in the storage address corresponding to the first port, the pad code in the storage address corresponding to the first port and each pad associated with the first port can be input to the selector. Through the selector, the connection configuration between the first port and the pad corresponding to the pad code can be established.

[0061] In this embodiment, the selector is implemented using a programmable logic unit of a field-programmable gate array (FPGA), and each port is configured to connect to the pads via the selector. The selector has N input bits. The first port is associated with M pads, where N is greater than or equal to M.

[0062] Specifically, it can be done through Figure 2 The method flow shown inputs the pad code in the storage address corresponding to the first port and each pad associated with the first port to the selector.

[0063] Step 201: Form N first input columns of lengths from the pads associated with the first port.

[0064] In this selection, each pad associated with the first port in the first input column is set to a first value, and each pad not associated with the first port is set to a second value. The first value can be set to 1, and the second value can be set to 0. That is, each input bit in the first input column of the selector can represent a pad associated with the first port. However, in reality, the number of pads associated with the first port may be less than N. Therefore, an input bit in the first input column set to the first value corresponds to a pad associated with the first port, and an input bit set to the second value indicates that the input bit does not currently correspond to a pad associated with the first port.

[0065] It should be noted that the pads associated with the first port, and the order of the pads associated with the first port, are pre-designed and burned into the configuration file. For example, suppose the selector is an 8-to-1 selector. Example 1: Suppose port 0001 is associated with pads A, B, C, and D. Then the first input column of the selector corresponding to port 0001 can be 11110000, where the first four input bits of the first input column are 1, corresponding to pads A, B, C, and D respectively. The last four input bits of the first input column are 0, and do not correspond to pads at this time. Example 2: Suppose port 0001 is associated with pads A, F, and C. Then the first input column of the selector corresponding to port 0001 can be 11100000, where the first three input bits of the first input column are 1, corresponding to pads A, F, and C respectively. The last five input bits of the first input column are 0, which does not correspond to padding for the time being.

[0066] Step 202: Encode the padding in the storage address corresponding to the first port to form a second input column of N lengths.

[0067] In this context, if each pad associated with the first port exists in the memory address corresponding to the first port, it is set to the first value; otherwise, it is set to the second value. The first value can be set to 1, and the second value can be set to 0.

[0068] For example, suppose port 0001 is associated with pads A, B, C, and D. The first input column of the selector corresponding to port 0001 is 11110000. Example 1: The pad code indicated in the connection configuration command is 01000000, meaning the second input bit of the second input column is 1, indicating that port 0001 needs to establish a connection with pad B. Example 2: The pad code indicated in the connection configuration command is 11000000, meaning both the first and second input bits of the second input column are 1, indicating that port 0001 needs to establish a connection with both pads A and B.

[0069] Step 203: Input the first input column and the second input column into the selector.

[0070] When establishing a connection configuration between the first port and the pad corresponding to the pad code through the selector, the first input column and the second input column can be ANDed bitwise, and then the connection configuration between the first port and the pad corresponding to the pad code can be established according to the operation result.

[0071] For example, suppose port 0001 is associated with pads A, B, C, and D. The first input column of the selector corresponding to port 0001 is 11110000, and the pad code indicated in the connection configuration instruction is 01000000. The selector performs a bitwise AND operation on the first and second input columns, and the result is 01000000. Based on this result, the selector configures the connection between port 0001 and pad B, that is, it connects port 0001 and pad B, so that signal transmission can be performed between port 0001 and pad B.

[0072] In addition, each input bit of the second input column can be ORed bitwise to obtain a result of 0 or 1. When the result is 1, it indicates that the enable pin is valid; when the result is 0, it indicates that the enable pin is invalid.

[0073] It is understandable that the first port can function as an input port only, an output port only, or both. When the first port is an input / output (INOUT) port, in addition to inputting the first input column and the second input column to the selector, an OE signal is also included. The OE signal indicates whether the first port is currently functioning as an input port or an output port. Specifically, when the first port is an input / output port, the first input column, the second input column, and the OE signal are input to the selector. A first value for the OE signal indicates that the first port is an input port, and a second value for the OE signal indicates that the first port is an output port.

[0074] Furthermore, ports can be categorized into three different types: bonded ports, test ports, and dedicated ports. A bonded port is one that is permanently connected to one or more associated pads, requiring no replacement of other pads. For bonded ports, simply connect them to the associated pads; a connection configuration between the port and the pads can be established without using selectors.

[0075] A dedicated port refers to a port that is only associated with a portion of pads of the same type on the FPGA. Therefore, a dedicated port only establishes a connection configuration with one or more pads of the same type associated with it according to the connection configuration instructions. As a result, the input bits of the selector corresponding to a dedicated port are smaller, which can save the amount of computation when establishing the configuration relationship between the port and the pad. Figure 3 An exemplary diagram illustrates the implementation principle of the selector when the port type is a dedicated port and the port is used as an input port.

[0076] Figure 3 The first column of the input to the selector is a 16-bit column formed by the pads associated with the port. The first 8 bits of this column are 1, indicating that 8 pads are associated with the port. The second column is a 16-bit column formed by the pad codes at the memory address corresponding to the port. The 8th bit of this column is 1, indicating that the pad corresponding to the 8th bit is connected to the port. The selector performs a bitwise AND operation on the first and second input columns, resulting in 0000000100000000. The selector uses this result to establish the connection configuration between the port and the pad corresponding to the 8th bit. When the port is used as an input, the signal transmission direction is from the pad to the port.

[0077] Figure 4 An exemplary diagram illustrates the implementation principle of the selector when the port type is a dedicated port and the port is used as an output port. The implementation principle is similar to that when the port is used as an input port, and will not be described in detail here. The difference is that the signal transmission direction is from the port to the pad.

[0078] Figure 5 An exemplary diagram illustrates the implementation principle of the selector when the port type is a dedicated port and the port is used as an input / output port.

[0079] When the port is used as an input / output port, the selector can be implemented by combining the input and output ports, thus introducing three signals: OE, DI, and DO. When the port is used as an input port, OE is set to 0. When OE is 0, DO is set to 0 and DI is set to 1, thus entering Input mode, and the signal transmission direction is from the pad to the port. When the port is used as an output port, OE is set to 1. When OE is 1, DO is set to 1 and DI is set to 0, thus entering Output mode, and the signal transmission direction is from the port to the pad.

[0080] A test port refers to a port that is associated with all pads on the FPGA that have test functionality. Therefore, the test port needs to select one or more pads from all pads with test functionality according to connection configuration instructions to establish a connection configuration. Consequently, the number of input bits of the selector corresponding to the test port needs to be greater than or equal to the number of pads with test functionality. Thus, the computational load in establishing the connection configuration relationship between the test port and the pads is relatively large, and the number of test ports can be appropriately reduced. The implementation principle of the selector corresponding to the test port is similar to that of the selector corresponding to a dedicated port, and will not be repeated here. The difference lies in the larger number of input bits of the selector corresponding to the test port.

[0081] This application provides a port configuration method for a field-programmable gate array (FPGA). According to the connection configuration instruction, the connection configuration between the first port of the test object and the pad is established. When the first port needs to establish a connection configuration with other pads, only the connection configuration instruction needs to be changed, instead of changing the connection configuration between the first port and the pad by rewriting and burning the FPGA configuration file. This is not only convenient to operate, but also saves the time of rewriting and burning the configuration file.

[0082] Based on the same technological concept Figure 6 An exemplary embodiment of a port configuration device for a Field Programmable Gate Array (FPGA) provided in this application is illustrated. Figure 6 As shown, the device 600 includes:

[0083] The receiving module 601 is used to receive the connection configuration instruction between the first port of the test object and the pad of the FPGA; the test object is constructed by logic units in the FPGA; any pad on the FPGA is connected to an external circuit through a packaged pin.

[0084] Control module 602 is used to write the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register;

[0085] Connector 603 is used to establish a connection configuration between the first port and the pad corresponding to the pad code based on the pad code in the storage address corresponding to the first port.

[0086] In one possible design, before receiving the connection configuration instruction between the first port of the test object and the pad of the FPGA, the control module 602 is further configured to read a configuration file from the FPGA; the configuration file contains the pads associated with each port of the test object; the device further includes a determination module 604 configured to determine the pads associated with the first port from the configuration file; the determination module 604 is further configured to determine the pad code indicated in the connection configuration instruction from the pads associated with the first port.

[0087] In one possible design, before writing the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register, the determining module 604 is further configured to determine that the pad code indicated in the connection configuration instruction is at least one of the pads associated with the first port in the configuration file.

[0088] In one possible design, the control module 602 is further configured to input the pad code in the storage address corresponding to the first port and each pad associated with the first port to a selector, and through the selector, establish a connection configuration between the first port and the pad corresponding to the pad code.

[0089] In one possible design, the connector 603 has N input bits; the number of pads associated with the first port is M, where N is greater than or equal to M; the control module 602 is further configured to form a first input column of N lengths from the pads associated with the first port; wherein, the pads associated with the first port in the first input column are set to a first value, and the pads not associated with the first port are set to a second value; the control module 602 is further configured to encode the pads in the storage address corresponding to the first port to form a second input column of N lengths; wherein, the pads associated with the first port that exist in the storage address corresponding to the first port are set to a first value, and those that do not exist in the storage address corresponding to the first port are set to a second value; the control module 602 is further configured to input the first input column and the second input column to a selector.

[0090] In one possible design, the connector 603 is further configured to perform a bitwise AND operation on the first input column and the second input column; and based on the operation result, establish a connection configuration between the first port and the pad corresponding to the pad code.

[0091] In one possible design, the first port is an input / output (INOUT) port; the control module 602 is further configured to input the first input column, the second input column, and the OE signal to the selector; the OE signal is a first value indicating that the first port is an input port, and the OE signal is a second value indicating that the first port is an output port.

[0092] In one possible design, the connector 603 is implemented by a programmable logic unit of a field-programmable gate array.

[0093] In one possible design, the register is a volatile register.

[0094] In one possible design, the connection configuration instructions are transmitted to the FPGA's serial communication interface via a serial port debugging tool.

[0095] Based on the same technical concept, embodiments of this application provide a computing device, such as... Figure 7 As shown, it includes at least one processor 701 and a memory 702 connected to at least one processor. In this embodiment, the specific connection medium between the processor 701 and the memory 702 is not limited. Figure 7 Taking the connection between the processor 701 and the memory 702 via a bus as an example, the bus can be divided into address bus, data bus, control bus, etc.

[0096] In this embodiment of the application, the memory 702 stores instructions that can be executed by at least one processor 701. By executing the instructions stored in the memory 702, at least one processor 701 can execute the above-described port configuration method of the field-programmable gate array (FPGA).

[0097] The processor 701 is the control center of the computing device. It can connect to various parts of the computer device through various interfaces and lines, and perform resource settings by running or executing instructions stored in the memory 702 and calling data stored in the memory 702.

[0098] Optionally, processor 701 may include one or more processing units. Processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 701. In some embodiments, processor 701 and memory 702 may be implemented on the same chip; in some embodiments, they may be implemented separately on independent chips.

[0099] The processor 701 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0100] Memory 702, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 702 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 702 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 702 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0101] Based on the same technical concept, embodiments of this application also provide a computer-readable storage medium storing a computer-executable program, which is used to cause a computer to execute the port configuration method of the Field Programmable Gate Array (FPGA) listed in any of the above methods.

[0102] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0103] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0104] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0105] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0106] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0107] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A port configuration method for a Field Programmable Gate Array (FPGA), characterized in that, The method includes: The test object receives a connection configuration instruction between its first port and a pad on the FPGA. The test object is constructed using logic units within the FPGA. The connection configuration instruction is used to instruct the pad to establish a connection configuration with the first port, and signal transmission occurs between the first port and the corresponding pad after the connection configuration is established. The first port of the test object is connected to one or more selected pads, and each pad is connected to a corresponding pin. Any pad on the FPGA is connected to an external circuit via a packaged pin. Write the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register. The pad code is determined from each pad associated with the first port. The pad code in the storage address corresponding to the first port and each pad associated with the first port are input to the selector. Through the selector, a connection configuration between the first port and the pad corresponding to the pad code is established.

2. The method according to claim 1, characterized in that, Before receiving the connection configuration instructions between the first port of the test object and the pad of the FPGA, the following is also included: Read the configuration file from the FPGA; the configuration file contains the pads associated with each port of the test object. Determine the pads associated with the first port from the configuration file; The pad code indicated in the connection configuration instruction is determined from each pad associated with the first port.

3. The method according to claim 1, characterized in that, Before writing the pad code indicated in the connection configuration instruction into the storage address corresponding to the first port in the register, the method further includes: The pad code indicated in the connection configuration instruction is determined to be at least one of the pads associated with the first port in the configuration file.

4. The method according to claim 1, characterized in that, The selector has N input bits; the pads associated with the first port are M, where N is greater than or equal to M; Inputting the pad code in the storage address corresponding to the first port and each pad associated with the first port into the selector includes: The pads associated with the first port are formed into N first input columns of length; wherein, the pads associated with the first port in the first input column are set to a first value, and the pads not associated with the first port are set to a second value. The pads in the storage address corresponding to the first port are encoded to form a second input column of N lengths; wherein, each pad associated with the first port is set to a first value if it exists in the storage address corresponding to the first port, and is set to a second value if it does not exist in the storage address corresponding to the first port. Enter the first input column and the second input column into the selector.

5. The method according to claim 4, characterized in that, The step of establishing a connection configuration between the first port and the pad corresponding to the pad code through the selector includes: Perform a bitwise AND operation between the first input column and the second input column; Based on the calculation results, establish a connection configuration between the first port and the pad corresponding to the pad code.

6. The method according to claim 4, characterized in that, The first port is an input / output (INOUT) port; The step of inputting the first input column and the second input column into the selector includes: Input the first input column, the second input column, and the OE signal to the selector; The first value of the OE signal indicates that the first port is an input port, and the second value of the OE signal indicates that the first port is an output port.

7. The method according to claim 1, characterized in that, The selector is implemented by a programmable logic unit of a field-programmable gate array.

8. The method according to claim 1, characterized in that, The register in question is a volatile register.

9. The method according to claim 1, characterized in that, The connection configuration command is transmitted to the serial communication interface of the FPGA via a serial port debugging tool.

Citation Information

Patent Citations

  • Chip system with remapping function and chip remapping configuration system

    CN113114220A

  • Flexible FPGA input / output architecture

    US5625301A