A 6-input lookup table, field programmable gate array and electronic device
By designing a divisible 6-input LUT, the problem of wasted FPGA chip layout resources is solved, achieving more efficient input port utilization and a compact layout.
Patent Information
- Application Number
- CN202310563975.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-18
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-05-18
AI Technical Summary
During the placement phase of FPGA chips, the limited routing resources for each logic unit to external input signals lead to resource waste and non-compact placement.
Design a 6-input lookup table (LUT) that can be divided into two independent 5-input LUTs and a LUT6 switch controller. By switching the control signal, multiple input port combinations can be achieved, thereby improving the utilization of input ports.
This improved the utilization of input ports, reduced the number of logic units requiring relocation, and resulted in a more compact layout and smaller footprint.
Smart Images

Figure CN116579281B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of integrated circuit technology, and more particularly to a 6-input lookup table, a field-programmable gate array, and an electronic device. Background Technology
[0002] Field-programmable gate array (FPGA) chips are a further development of programmable devices such as programmable array logic (PAL), generic array logic (GAL), and complex programmable logic devices (CPLD). FPGA chips can be considered a type of semi-custom circuit within the field of application-specific integrated circuits (ASICs). FPGA chips not only address the shortcomings of custom circuits but also overcome the limitation of the limited gate count of traditional programmable devices.
[0003] In the FPGA chip design process, during the synthesis and placement phase, the circuit designed using the FPGA chip's hardware description language is compiled into a logic netlist composed of interconnected basic logic units. The logic netlist consists of various registers (REGs) and multiple look-up tables (LUTs). During the implementation and routing phase, the program assigns the logic netlist to the actual gates existing on the chip and determines their connection paths.
[0004] Typically, an FPGA chip comprises multiple programmable logic blocks (PLBs). Each PLB includes a set number of logic parcels (LPs). Each LP includes a set number of logic adaptors (LUTs), logic generators (REGs), adders (ADDs), and multiplexers (MUXs). During the placement phase of an FPGA chip, each PLB is treated as an independent unit, allowing logic-mapped signals to originate not only from within the PLB but also from external input signals. Since the resources for routing external input signals within each LP are limited, it is often necessary to find a new LP for placement, resulting in wasted resources such as LUTs and REGs for the new LP. Summary of the Invention
[0005] To address the aforementioned issues, embodiments of this application provide a 6-input lookup table (LUT 200). The 6-input LUT 200 can be divided into two completely independent input LUTs, fully utilizing each input port and improving input port utilization. Furthermore, the 6-input LUT 200 can be further divided into 1-input LUTs, 2-input LUTs, 3-input LUTs, 4-input LUTs, and 5-input LUTs, expanding its application scenarios. Additionally, this application also provides a field-programmable gate array (FPGA) and electronic devices corresponding to this 6-input lookup table.
[0006] Therefore, the following technical solutions are adopted in the embodiments of this application:
[0007] In a first aspect, embodiments of this application provide a 6-input lookup table, comprising: a first input port F1, a second input port F2, a third input port F3, a fourth input port F4, a fifth input port F5, a sixth input port F6, a control signal input port LUT6_EN, a first output port O1, a second output port O2, a first 5-input lookup table 210-1, a second 5-input lookup table 210-2, a first selector 220-1, a second selector 220-2, and a LUT6 switch controller 230. The five input ports of the first 5-input lookup table are respectively connected to the output port of the first selector, the second input port, the third input port, the fourth input port, and the fifth input port; the output port of the first 5-input lookup table is connected to the first input port of the second selector; the second 5-input lookup table... The five input ports of the lookup table are respectively connected to the first input port, the second input port, the third input port, the fourth input port, and the fifth input port; the output port of the second 5-input lookup table is connected to the second input port of the second selector; the sixth input port is respectively connected to the first input port of the first selector and the first port of the LUT6 switch controller; the first input port is connected to the second input port of the first selector; the signal input port is respectively connected to the control port of the first selector and the second port of the LUT6 switch controller; the output port of the LUT6 switch controller is connected to the control port of the second selector; the first output port is connected to the output port of the first selector; and the second output port is connected to the output port of the second 5-input lookup table.
[0008] In one embodiment, the LUT6 switch controller (230) is specifically used to output the electrical signal of the sixth input port when the control signal input port is at a high level; and to output the electrical signal of the control signal input port when the control signal input port is at a low level.
[0009] In one implementation, when the control signal input port is low, the 6-input lookup table forms two 3-input LUTs.
[0010] In one implementation, when the control signal input port is high and the sixth input port is low, the 6-input lookup table constitutes a 2-input LUT and a 4-input LUT.
[0011] In one implementation, when the control signal input port is high and the sixth input port is high, the 6-input lookup table constitutes a 1-input LUT and a 5-input LUT.
[0012] Secondly, embodiments of this application provide a field-programmable gate array, including: at least one controller, at least one 6-input lookup table as may be implemented in the first aspect, wherein the first input port F1, the second input port F2, the third input port F3, the fourth input port F4, the fifth input port F5, the sixth input port F6 and the control signal input port LUT6_EN of the 6-input lookup table are respectively connected to the at least one controller for receiving electrical signals.
[0013] Thirdly, embodiments of this application provide an electronic device, including: at least one actuator, and at least one field-programmable gate array (FPGA) as may be implemented in the first aspect, respectively connected to the at least one actuator for sending control commands to cause the at least one actuator to operate. Attached Figure Description
[0014] The accompanying drawings used in the description of the embodiments or prior art are briefly introduced below.
[0015] Figure 1 This is a schematic diagram of the structure of an FPGA provided in an embodiment of this application;
[0016] Figure 2 This is a schematic diagram of a 6-input LUT provided in an embodiment of this application. Detailed Implementation
[0017] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0018] In this article, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The symbol " / " in this article indicates that the related objects are in an "or" relationship; for example, A / B means A or B.
[0019] The terms "first" and "second," etc., used in the specification and claims herein are used to distinguish different objects, not to describe a specific order of objects. For example, "first response message" and "second response message," etc., are used to distinguish different response messages, not to describe a specific order of response messages.
[0020] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0021] In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, for example, multiple processing units means two or more processing units, multiple elements means two or more elements, etc.
[0022] An FPGA chip typically comprises multiple PLBs. These PLBs are generally arranged in an N×M rectangular array, where N and M are both positive integers greater than or equal to 1. Each PLB can include multiple LPs. Each LP includes multiple LUTs, multiple REGs, multiple ADDs, and multiple MUXs. FPGA chips do not have a hardware structure for gate circuits; all gate circuit effects can be achieved through the structure of LUTs.
[0023] A LUT is essentially a random access memory (RAM). Data can be pre-written into RAM. Each input signal is equivalent to inputting an address, which is then used to look up the corresponding content in the table, and finally output. LUTs can implement various combinational logic such as AND gates, OR gates, NOT gates, addition, and subtraction.
[0024] LUTs can be categorized based on the number of input ports, such as 1-input LUTs, 2-input LUTs, 3-input LUTs, 4-input LUTs, 5-input LUTs, and 6-input LUTs. An LUT can convert multiple input ports into other numbers of output ports based on its internal logic circuitry. Here, input ports refer to the LUT's data input ports, and output ports refer to the LUT's data output ports.
[0025] Figure 1 This is a schematic diagram of the structure of an FPGA chip provided in an embodiment of this application. Figure 1 As shown, this application embodiment provides an FPGA chip 100, which includes two 6-input LUTs, four REGs, and four multiplexers.
[0026] The six input ports of 6-input LUT 1 are connected to the six input terminals of FPGA chip 100. One output port O1 of 6-input LUT 1 is connected to one input port of MUX 1, and another output port O2 of 6-input LUT 1 is connected to one input port of MUX 2. An external input connection line bypass1 of FPGA chip 100 is connected to another input port of MUX 1 and another input port of MUX 2. The output port of MUX 1 is output through REG 1. The output port of MUX 2 is output through REG 2.
[0027] Similarly, the six input ports of 6-input LUT 2 are connected to the six input terminals of FPGA chip 100. One output port O1 of 6-input LUT 2 is connected to one input port of MUX 3, and the other output port O2 of 6-input LUT 2 is connected to one input port of MUX 4. Another external input connection line bypass2 of FPGA chip 100 is connected to another input port of MUX 3 and another input port of MUX 4. The output port of MUX 3 is output through REG 3. The output port of MUX 4 is output through REG 4.
[0028] In this embodiment, the FPGA chip 1003 utilizes two 6-input LUTs to fully leverage the port resources within the PLB. When the REG is driven by an external signal and a routing conflict occurs at the input of the external signal, the number of input ports actually used by the LUT is determined. If at least one input port and output port of the LUT are floating, any floating input port and any floating output port of the LUT can be converted into routing resources for the REG's external signal, thereby reducing the number of LPs requiring re-layout, resulting in a more compact layout and a smaller usable area.
[0029] It should be noted that, Figure 1 The structure of the FPGA chip 100 shown is only one embodiment. It is conceivable that the structure of the FPGA chip 100 included in this application can also be other structures, as long as the FPGA chip 100 includes a 6-input LUT, all of which are within the protection scope of this application.
[0030] Figure 2 This is a schematic diagram of a 6-input LUT provided in an embodiment of this application. Figure 2As shown, the 6-input LUT 200 includes two 5-input LUTs 210, two MUXs 220, and a LUT6 switch controller 230. The two 5-input LUTs 210 are designated 5-input LUT 210-1 and 5-input LUT 210-2. The two MUXs 220 are designated MUX 220-1 and MUX 220-2.
[0031] Input port F1 is connected to input port I1 of the 5-input LUT 210-2. Input port F2 is connected to input port I2 of the 5-input LUT 210-2. Input port F3 is connected to input port I3 of the 5-input LUT 210-2. Input port F4 is connected to input port I4 of the 5-input LUT 210-2. Input port F5 is connected to input port I5 of the 5-input LUT 210-2. The output port of the 5-input LUT 210-2 is connected to output port O1 of the 6-input LUT 200.
[0032] Input ports F1 and F6 are connected to two input ports of MUX 220-1, respectively. The output port of MUX 220-1 is connected to input port I1 of the 5-input LUT 210-1. Input port F2 is connected to input port I2 of the 5-input LUT 210-2. Input port F3 is connected to input port I3 of the 5-input LUT 210-1. Input port F4 is connected to input port I4 of the 5-input LUT 210-1. Input port F5 is connected to input port I5 of the 5-input LUT 210-1. The two input ports of MUX 220-2 are connected to the output ports of the 5-input LUT 210-1 and the 5-input LUT 210-2, respectively. The two output ports of MUX 220-2 are connected to output port O2 of the 6-input LUT200.
[0033] One input port of the LUT6 switch controller 230 is connected to input port F6. Another input port of the LUT6 switch controller 230 is connected to the control signal input port LUT6_EN of the 6-input LUT 200. The output port of the LUT6 switch controller 230 is connected to the control port of the MUX 220-2. The control signal input port LUT6_EN of the 6-input LUT 200 is connected to the control port of the MUX220-1.
[0034] In this embodiment, the 5-input LUT 210-1 can be configured as an independent 5-input LUT through the output port, input port F2, input port F3, input port F4, and input port F5 of the MUX 220-1. The 5-input LUT 210-1 can also be configured as an independent 5-input LUT through input ports F1, F2, F3, F4, and F5. For ease of description, a connection to port "0" of the MUX 220 is abbreviated as 0, and a connection to port "1" of the MUX 220 is abbreviated as 1.
[0035] One input port of the MUX 220-1 is connected to input port F1, and the other input port is connected to input port F6. After receiving a control signal, the control port of the MUX 220-1 can choose to output data from input port F1 or input port F6. For example, input port F6 is connected to port "0" of the MUX 220-1. Input port F1 is connected to port "1" of the MUX 220-1. "0" represents a low level. "1" represents a high level.
[0036] One input port of the LUT6 switch controller 230 is connected to input port F6, and the other input port is connected to the control signal input port LUT6_EN of the 6-input LUT 200. In this embodiment, when the control signal input port LUT6_EN of the 6-input LUT 200 is high, the LUT6 switch controller 230 outputs an electrical signal from input port F6. When the control signal input port LUT6_EN of the 6-input LUT 200 is low, the LUT6 switch controller 230 outputs an electrical signal from the control signal input port LUT6_EN.
[0037] In one embodiment, when the control signal input port LUT6_EN of the 6-input LUT 200 is high, the LUT6 switch controller 230 allows the electrical signal at input port F6 to be directly connected to the control port of the second selector 220-2. In another embodiment, when the control signal input port LUT6_EN of the 6-input LUT 200 is low, the LUT6 switch controller 230 outputs a low level. That is, the LUT6 switch controller 230 has no output.
[0038] One input port of MUX 220-2 is connected to the output port of 5-input LUT 210-1, and the other input port is connected to the output port of 5-input LUT 210-2. After receiving the control signal from gate 230, the control port of MUX 220-1 can selectively output data from the output port of 5-input LUT 210-1, or output data from the output port of 5-input LUT 210-1. For example, the output port of 5-input LUT 210-1 is connected to port "0" of MUX 220-2. The output port of 5-input LUT 210-2 is connected to port "1" of MUX 220-2.
[0039] In this embodiment, when the control signal input port LUT6_EN of the 6-input LUT 200 is "0", the output port of MUX220-1 outputs "0", and the output port of MUX 220-2 outputs "0". At this time, the 6-input LUT 200 operates in two 3-input logic modes, forming two 3-input LUTs. One 3-input LUT has input ports F1, F2, and F3. The other 3-input LUT has input ports F4, F5, and F6.
[0040] When the control signal input port LUT6_EN of the 6-input LUT 200 is "1" and the input port F6 is "0", the output port of MUX 220-1 outputs "1" and the output port of MUX 220-2 outputs "0". At this time, the 6-input LUT 200 operates as a 2-input logic and a 4-input logic, forming a 2-input LUT and a 4-input LUT. The input ports of the 2-input LUT are input ports F1 and F2. The input ports of the 3-input LUT are input ports F3, F4, F5, and F6.
[0041] When the control signal input port LUT6_EN of the 6-input LUT 200 is set to "1" and the input port F6 is set to "1", the output ports of MUX 220-1 and MUX 220-2 both output "1". At this time, the 6-input LUT 200 operates in a mode consisting of one 1-input logic and one 2-input logic, forming a 1-input LUT and a 5-input LUT. The input port of the 1-input LUT is input port F1. The input ports of the other 5-input LUT are input ports F2, F3, F4, F5, and F6.
[0042] In this embodiment, the 6-input LUT 200 can be divided into two completely independent input LUTs using the signal input at the control signal input port LUT6_EN without adding any logic input ports. The 6-input LUT 200 can fully utilize each input port, improving its utilization rate. Furthermore, the 6-input LUT 200 can be divided into 1-input LUTs, 2-input LUTs, 3-input LUTs, 4-input LUTs, and 5-input LUTs, expanding its application scenarios.
[0043] This application provides an FPGA that includes at least one 6-input LUT. The 6-input LUT can be, for example... Figure 2 The 6-input LUT 200 is shown. Because the FPGA includes, for example... Figure 2 The 6-input LUT 200 shown means that the FPGA has all or at least some of the advantages of the 6-input LUT 200.
[0044] This application provides an electronic device that includes at least one FPGA. The FPGA can be, for example, Figure 1 The FPGA 100 shown. Because the electronic device includes, for example... Figure 1 The FPGA 100 shown provides the electronic device with all or at least some of the advantages of the FPGA 100. This electronic device can be a server, computing device, electric vehicle, television set, monitoring equipment, etc.
[0045] The number of FPGA devices, their interconnections, types, and shapes provided in this application are not limited to the embodiments described above. All technical solutions implemented based on the principles of this application are within the scope of protection of this application. Any one or more embodiments or illustrations in the specification, combined in a suitable manner, are within the scope of protection of this application.
[0046] The number of components, connection relationships, types, and shapes of the electronic devices provided in this application are not limited to the above embodiments. All technical solutions implemented under the principles of this application are within the protection scope of this application. Any one or more embodiments or illustrations in the specification, combined in a suitable manner, are within the protection scope of this application.
[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application. Those skilled in the art should understand that although this application has been described in detail with reference to the foregoing embodiments, modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions in the embodiments of this application.
Claims
1. A 6-input lookup table, characterized in that, include: First input port (F1), second input port (F2), third input port (F3), fourth input port (F4), fifth input port (F5), sixth input port (F6), control signal input port (LUT6_EN), first output port (O1), second output port (O2), first 5-input lookup table (210-1), second 5-input lookup table (210-2), first selector (220-1), second selector (220-2), and LUT6 switch controller (230). The five input ports of the first 5-input lookup table are respectively connected to the output port of the first selector, the second input port, the third input port, the fourth input port, and the fifth input port; the output port of the first 5-input lookup table is connected to the first input port of the second selector. The five input ports of the second 5-input lookup table are respectively connected to the first input port, the second input port, the third input port, the fourth input port, and the fifth input port; the output port of the second 5-input lookup table is connected to the second input port of the second selector. The sixth input port is connected to the first input port of the first selector and the first port of the LUT6 switch controller; the first input port is connected to the second input port of the first selector. The control signal input port is connected to the control port of the first selector and the second port of the LUT6 switch controller, respectively; the output port of the LUT6 switch controller is connected to the control port of the second selector. The first output port is connected to the output port of the first selector; The second output port is connected to the output port of the second 5-input lookup table.
2. The 6-input lookup table according to claim 1, characterized in that, The LUT6 switch controller (230) is specifically used to output the electrical signal of the sixth input port when the control signal input port is at a high level; and to output the electrical signal of the control signal input port when the control signal input port is at a low level.
3. The 6-input lookup table according to claim 1 or 2, characterized in that, When the control signal input port is low, the 6-input lookup table forms two 3-input LUTs.
4. The 6-input lookup table according to claim 1 or 2, characterized in that, When the control signal input port is high and the sixth input port is low, the 6-input lookup table forms a 2-input LUT and a 4-input LUT.
5. The 6-input lookup table according to claim 1 or 2, characterized in that, When the control signal input port is high and the sixth input port is high, the 6-input lookup table forms a 1-input LUT and a 5-input LUT.
6. A field-programmable gate array, characterized in that, include: At least one controller, At least one 6-input lookup table as described in any one of claims 1-5, wherein the first input port (F1), the second input port (F2), the third input port (F3), the fourth input port (F4), the fifth input port (F5), the sixth input port (F6), and the control signal input port (LUT6_EN) of the 6-input lookup table are respectively connected to the at least one controller for receiving electrical signals.
7. An electronic device, characterized in that, include: At least one actuator, At least one field-programmable gate array as described in claim 6 is connected to the at least one actuator and is used to send control commands to make the at least one actuator work.
Citation Information
Patent Citations
Detection circuit and detection method of look-up tables in FPGA chip
CN107064783A
Lookup table circuit capable of customizing multiple inputs and novel FPGA array structure
CN113904677A
