Programmable logic circuit
By arranging a second lookup table circuit in the programmable logic circuit to output the carry propagation signal and the carry generation signal, the problem in the prior art that the carry generation signal is limited to a single input variable is solved, and the addition operation and resource of multi-variable functions are realized. Improvement of utilization efficiency.
Patent Information
- Application Number
- CN202310506585.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-05-06
AI Technical Summary
During the addition operation of existing programmable logic circuits, the carry generation signal is limited to a single input variable, resulting in low resource utilization efficiency and the inability to perform addition operations of multi-variable functions.
A programmable logic circuit is designed. By setting the second lookup table circuit to output the carry propagation signal and the carry generation signal, it can independently select the carry input signal or the carry generation signal as the carry output signal to realize the addition operation of multi-variable functions. and programmed through multiplexers and selection circuits to control the outputs.
The configuration flexibility and the utilization efficiency of logic resources of the programmable logic device in the addition operation mode are improved, so that the programmable logic device can perform addition operations of multi-variable functions, and realize independent output of the first lookup table and the second lookup table.
Smart Images

Figure CN116719772B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of programmable integrated circuits, and in particular to a programmable logic circuit. Background Art
[0002] Programmable logic circuits based on look-up tables (LUTs) are the basic logic modules of programmable logic devices. They have the advantages of short development cycle, low cost, low risk, high integration, and high flexibility. They are widely used in communications, the Internet, automobiles, aerospace, and other fields.
[0003] An existing programmable logic circuit is Figure 1 As shown, when used as an adder, the carry input signal of the adder can only be input from port A4. As a result, when the carry generation signal of the programmable logic circuit is a multi-variable function, logic resources outside the programmable logic circuit need to be consumed, resulting in low resource utilization efficiency. Summary of the Invention
[0004] In view of the above problems, the present application provides a programmable logic circuit to solve the above technical problems.
[0005] The present application provides a programmable logic circuit, comprising:
[0006] a first lookup table circuit, wherein the first lookup table circuit is configured to generate a first output signal according to a received input signal;
[0007] a second lookup table circuit, the second lookup table circuit being configured to generate a carry propagate signal and a carry generate signal output according to a received input signal, and select the carry propagate signal or the carry generate signal as a second output signal;
[0008] a first selection circuit, the first selection circuit being configured to receive a carry input signal and the carry generation signal, and select the carry input signal or the carry generation signal as a carry output signal according to the carry propagate signal;
[0009] The second selection circuit is configured to receive the first output signal and the second output signal, and select the first output signal or the second output signal as a third output signal according to a selection output signal.
[0010] Furthermore, the first lookup table circuit includes a first five-input lookup table and a third selection circuit,
[0011] The first to fourth input terminals of the first five-input lookup table are respectively used to receive the first to fourth input signals, the fifth input terminal of the first five-input lookup table is used to receive the signal output by the third selection circuit, and the output terminal of the first five-input lookup table is used to output the first output signal;
[0012] The third selection circuit is used to receive the fifth input signal and the carry input signal, and select the fifth input signal or the carry input signal for output.
[0013] Furthermore, the third selection circuit is further configured to receive a cascade input signal to select one of the cascade input signal, the fifth input signal, and the carry input signal to output to the fifth input terminal of the first five-input lookup table;
[0014] The second selection circuit is further configured to use the selected first output signal or the second output signal as a cascade output signal.
[0015] Furthermore, the second lookup table circuit includes:
[0016] a second five-input lookup table, wherein the first to fourth input terminals of the second five-input lookup table are respectively used to receive the first to fourth input signals, the fifth input terminal of the second five-input lookup table is used to receive the fifth input signal, the first output terminal of the second five-input lookup table is used to output the carry propagate signal, the second output terminal of the second five-input lookup table is used to output the carry generate signal, and the third output terminal of the second five-input lookup table is used to output the second output signal.
[0017] Furthermore, the second lookup table circuit further includes:
[0018] A fourth selection circuit is used to receive the fifth input signal and the cascade input signal, select the fifth input signal or the cascade input signal for output, and the signal output by the fourth selection circuit is used to determine the signal output by the third output terminal of the second five-input lookup table.
[0019] Furthermore, the fourth selection circuit is further configured to receive a sixth input signal to select one of the sixth input signal, the fifth input signal, and the cascade input signal to output to the fifth input terminal of the second five-input lookup table.
[0020] Furthermore, the first selection circuit includes:
[0021] a first multiplexer, wherein a first input terminal of the first multiplexer is used to receive the carry generation signal, a second input terminal of the first multiplexer is used to receive the carry input signal, a selection terminal of the first multiplexer is used to receive the carry propagate signal, and an output terminal of the first multiplexer is used to select the carry generation signal or the carry input signal to output as the carry output signal according to the carry propagate signal;
[0022] The second selection circuit includes:
[0023] a second multiplexer, wherein the first input terminal of the second multiplexer is used to receive the first output signal, the second input terminal of the second multiplexer is used to receive the second output signal, the selection terminal of the second multiplexer is used to receive the selection output signal, and the output terminal of the second multiplexer is used to select the first output signal or the second output signal as the third output signal according to the selection output signal.
[0024] Furthermore, the third selection circuit includes:
[0025] a third multiplexer, wherein a first input terminal of the third multiplexer is used to receive the fifth input signal, a second input terminal of the third multiplexer is used to receive the carry input signal, a third input terminal of the third multiplexer is used to receive the cascade input signal, and an output terminal of the third multiplexer is used to select one of the fifth input signal, the carry input signal, and the cascade input signal to output to the fifth input terminal of the first five-input lookup table.
[0026] Furthermore, the fourth selection circuit includes:
[0027] a fourth multiplexer, wherein a first input terminal of the fourth multiplexer is used to receive the fifth input signal, a second input terminal of the fourth multiplexer is used to receive the sixth input signal, a third input terminal of the fourth multiplexer is used to receive the cascade input signal, and an output terminal of the fourth multiplexer is used to select one of the fifth input signal, the sixth input signal, and the cascade input signal to output to the fifth input terminal of the second five-input lookup table.
[0028] Furthermore, the selection ends of the third multiplexer and the fourth multiplexer are programmed to control the signals outputted by their output ends, and the programming methods of the selection ends at least include SRAM programming, Flash programming, fuse programming, and antifuse programming.
[0029] The programmable logic circuit provided in the present application is provided with a second lookup table circuit to output a carry propagation signal and a carry generation signal, so that when the programmable logic circuit is used as an adder, the carry generation signal is no longer limited to a single input variable, and addition operations of multi-variable functions can be performed, thereby improving the configuration flexibility of the programmable logic device in the addition operation mode and the utilization efficiency of logic resources.
[0030] When the programmable logic circuit provided in the present application is used as an adder, the first output signal of the first lookup table circuit is the result of the addition operation, and the second output signal of the second lookup table circuit can be one of the addends of the addition operation. The first output signal or the second output signal is selected for output through the second selection circuit, so that the programmable logic circuit can choose to output the result of the addition operation or the addend value of the addition operation.
[0031] In the programmable logic circuit provided by the present application, the first lookup table circuit can directly output the first output signal, the second lookup table circuit can directly output the second output signal, and the second selection circuit can select the first output signal or the second output signal as the third output signal output, thereby realizing independent outputs of the first lookup table circuit and the second lookup table circuit, so that the programmable logic circuit can be configured to include up to three outputs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 The prior art drawings provided by the embodiments of the present application are shown.
[0034] Figure 2 A module block diagram of a programmable logic circuit provided in an embodiment of the present application is shown.
[0035] Figure 3 A schematic diagram of a first lookup table circuit provided in an embodiment of the application is shown.
[0036] Figure 4 Another schematic diagram of the first lookup table circuit provided in an embodiment of the present application is shown.
[0037] Figure 5 A schematic diagram of a second lookup table circuit provided in an embodiment of the application is shown.
[0038] Figure 6 A schematic diagram of a first selection circuit provided in an embodiment of the present application is shown.
[0039] Figure 7 A schematic diagram of a second selection circuit provided in an embodiment of the present application is shown.
[0040] Figure 8 A schematic structural diagram of a first five-input lookup table and a second five-input lookup table provided in an embodiment of the present application is shown.
[0041] Figure 9 A schematic diagram of a third selection circuit provided in an embodiment of the present application is shown.
[0042] Figure 10 Another schematic diagram of the second selection circuit provided in an embodiment of the present application is shown.
[0043] Figure 11 A schematic diagram of a dual comparator implemented by a programmable logic circuit provided in an embodiment of the present application is shown.
[0044] Figure 12 Another schematic diagram of the second lookup table circuit provided in an embodiment of the present application is shown.
[0045] Figure 13 Another schematic diagram of the second lookup table circuit provided in an embodiment of the present application is shown.
[0046] Figure 14 A schematic diagram of a fourth selection circuit provided in an embodiment of the present application is shown.
[0047] Figure 15 A schematic diagram of the structure of a programmable logic circuit provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0049] In the embodiments of the present application, it should be noted that, in this document, relational terms such as first and second, etc., are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0050] In addition, in the embodiments of the present application, "plurality" refers to two or more. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two, or more. For example, "including at least one" means including one, two, or more, and does not limit which ones are included. For example, "including at least one of A, B, and C" means including A, B, C, A and B, A and C, B and C, and A, B, and C.
[0051] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.
[0052] Programmable logic circuits based on look-up tables (LUTs) are the basic logic modules of programmable logic devices. They have the advantages of short development cycle, low cost, low risk, high integration, and high flexibility. They are widely used in communications, the Internet, automobiles, aerospace, and other fields.
[0053] like Figure 1 As shown, this circuit consists of two four-input lookup tables and several multiplexers and data selectors. It includes six input terminals (a-f) and one output terminal (L). This circuit can implement a five-input function, a limited six-input function, function as a single-stage arithmetic comparator, or act as an adder. When performing addition operations using this circuit, the carry-generated signal for each adder stage must be input from port f. If the carry-generated signal is a multivariable function, it cannot be absorbed by the lookup table, requiring the use of external logic resources.
[0054] Furthermore, an N-input lookup table can be recursively defined as including two N-1 input lookup tables and a two-to-one data selector. Figure 1 The technology shown implements a six-input lookup table by simply increasing the size of the lookup table. This not only fails to eliminate the inherent efficiency defects of the addition operation, but also can only be used as a comparator when used as an arithmetic comparator, making the problem of low resource utilization efficiency more obvious.
[0055] In view of this, an embodiment of the present application provides a programmable logic circuit, Figure 2 FIG. 1 shows a block diagram of a programmable logic circuit according to an embodiment of the present application. Figure 2 As shown, the programmable logic circuit includes a first lookup table circuit, a second lookup table circuit, a first selection circuit and a second selection circuit.
[0056] The first lookup table circuit is used to generate a first output signal according to the received input signal. Specifically, the value of the first output signal generated by the first lookup table circuit is determined according to the value of the received input signal.
[0057] In some embodiments, Figure 3 FIG. 1 shows a schematic diagram of a first lookup table circuit provided in an embodiment of the application, as shown in FIG. Figure 3 As shown, the first lookup table circuit includes a first five-input lookup table 101 and a third selection circuit;
[0058] The first to fourth input terminals (A, B, C, D) of the first five-input lookup table 101 are respectively used to receive the first to fourth input signals, the fifth input terminal E of the first five-input lookup table 101 is used to receive the signal output by the third selection circuit, and the output terminal Y of the first five-input lookup table 101 is used to output the first output signal;
[0059] An input terminal of the third selection circuit is used to receive the fifth input signal and the carry input signal, so as to select the fifth input signal or the carry input signal to be output to the fifth input terminal E of the first five-input lookup table 101 .
[0060] In an embodiment of the present application, the first lookup table circuit determines the value of the first output signal based on the received input signal, wherein the first lookup table circuit is not applied to the first to fifth input terminals in any application. For example, when the programmable logic circuit of the embodiment of the present application is used as an adder to perform addition of two binary numbers, it will only be applied to two input terminals to receive the addition value and one input terminal to receive the carry input signal. According to the carry input signal, the output terminal of the first lookup table circuit outputs the addition sum.
[0061] In some embodiments, Figure 4 Another schematic diagram of the first lookup table circuit provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the third selection circuit includes a third multiplexer 03, the input end of the third multiplexer 03 is used to receive the fifth input signal and the carry input signal, and the output end of the third multiplexer 03 is connected to the fifth input end E of the first five-input lookup table for selecting the fifth input signal or the carry input signal for output.
[0062] It should be clear that in the embodiment of the present application, the third selection circuit can not only be the third multiplexer 03. If the circuit cost and efficiency are not considered during the circuit design process, the third selection circuit can also be set to other more complex circuits with selection output functions.
[0063] The second lookup table circuit is used to generate a carry propagation signal and a carry generation signal output respectively according to the received input signal, and select the carry propagation signal or the carry generation signal as the second output signal output. Specifically, the value of the carry propagation signal and the value of the carry generation signal are determined by the value of the input signal received by the second lookup table circuit.
[0064] In some embodiments, Figure 5 FIG. 1 shows a schematic diagram of a second lookup table circuit provided in an embodiment of the application, such as Figure 5 As shown, the second lookup table circuit includes a second five-input lookup table 102;
[0065] The first to fifth input terminals (F, G, H, I, J) of the second five-input lookup table 102 are respectively used to receive the first to fifth input signals, the first output terminal V of the second five-input lookup table 102 is used to output a carry propagate signal, the second output terminal W of the second five-input lookup table 102 is used to output a carry generate signal, and the third output terminal X of the second five-input lookup table 102 is used to output a second output signal.
[0066] In the embodiment of the present application, the first five-input lookup table 101 and the second five-input lookup table 102 multiplex the first to fifth input signals.
[0067] In an embodiment of the present application, the second lookup table circuit determines the value of the first output signal based on the received input signal, wherein the second lookup table circuit is not applied to the first to fifth input terminals in any application. For example, when the programmable logic circuit of the embodiment of the present application is used as an adder to perform addition of two binary numbers, the second lookup table circuit will only be applied to two input terminals to receive the addition value, and one input terminal to receive an input signal for selecting the output signal of the third output terminal of the second lookup table circuit.
[0068] The first selection circuit is used for receiving a carry input signal and a carry generation signal, and selecting the carry input signal or the carry generation signal as a carry output signal according to the carry propagation signal.
[0069] In some embodiments, Figure 6 FIG. 1 shows a schematic diagram of a first selection circuit provided in an embodiment of the present application, as shown in FIG. Figure 6As shown, the first selection circuit includes a first multiplexer 01, wherein a first input terminal of the first multiplexer 01 is connected to a second output terminal W of a second five-input lookup table 102 for receiving a carry generation signal, a second input terminal of the first multiplexer 01 is connected to a third output terminal X of the second five-input lookup table 102 for receiving a carry input signal, a selection terminal of the first multiplexer 01 is connected to a first output terminal V of the second five-input lookup table 102 for receiving a carry propagate signal, and an output terminal of the first multiplexer 01 is used to select the carry generation signal or the carry input signal as the carry output signal for output according to the carry propagate signal. Specifically, the output terminal of the first multiplexer 01 determines the output signal according to the value of the carry propagate signal. For example, when the value of the carry propagate signal is set to 0, the first multiplexer 01 selects the carry generation signal as the carry output signal for output, and when the value of the carry propagate signal is 1, the first multiplexer 01 selects the carry input signal as the carry output signal for output.
[0070] The second selection circuit is used to receive the first output signal and the second output signal, and select the first output signal or the second output signal as the third output signal to be output according to the selection output signal.
[0071] In some embodiments, Figure 7 FIG. 1 shows a schematic diagram of a second selection circuit provided in an embodiment of the present application, as shown in FIG. Figure 7 As shown, the second selection circuit includes a second multiplexer 02;
[0072] A first input terminal of the second multiplexer 02 is connected to an output terminal Y of the first five-input lookup table 101 for receiving the first output signal. A second input terminal of the second multiplexer 02 is connected to a third output terminal X of the second five-input lookup table 102 for receiving the second output signal. A selection terminal of the second multiplexer 02 is used to receive a selection output signal. An output terminal of the second multiplexer 02 is used to select the first output signal or the second output signal as the third output signal for output according to the selection output signal. Specifically, the output terminal of the second multiplexer 02 determines the output signal according to the value of the selection output signal. For example, when the value of the selection output signal is set to 0, the second multiplexer 02 selects the first output signal as the third output signal for output. When the value of the selection output signal is 1, the second multiplexer 02 selects the second output signal as the third output signal for output.
[0073] In the programmable logic circuit provided by the embodiment of the present application, when the programmable logic circuit acts as an adder to perform addition and subtraction operations, the carry generation signal is no longer limited to a single input variable, and addition and subtraction operations of multi-variable functions can be performed, thereby improving the configuration flexibility and logic resource utilization efficiency of the programmable logic device in the addition operation mode. In the programmable logic circuit provided by the embodiment of the present application, the first output signal of the first lookup table circuit is the addition operation result, and the second output signal of the second lookup table circuit can also be one of the addends of the addition operation. The second selection circuit selects the first output signal or the second output signal for output, so that the programmable logic circuit can choose to output the addition operation result or the addend value of the addition operation. In addition, in the programmable logic circuit provided by the embodiment of the present application, the first lookup table circuit can directly output the first output signal, the second lookup table circuit can directly output the second output signal, and the second selection circuit can select the first output signal or the second output signal as the third output signal for output, thereby realizing independent outputs of the first lookup table circuit and the second lookup table circuit, so that the programmable logic circuit can be configured to include up to three outputs.
[0074] The following illustrates the application of the programmable logic circuit provided in the embodiments of the present application as an adder by way of example.
[0075] Figure 8 The structure diagram of the first five-input lookup table and the second five-input lookup table provided in the embodiment of the present application is shown as follows. Figure 8 As shown, the first five-input lookup table 101 uses the third input terminal C and the fourth input terminal D to receive the two input addends m and n, and uses the fifth input terminal E to receive the carry input signal cin, to perform an addition operation on m and n. The two four-input lookup tables are used to calculate m^n and !(m^n), respectively. The signal output by the output terminal Y of the first five-input lookup table 101 is the operation result m^n^cin.
[0076] The second five-input lookup table 102 uses a third input terminal H and a fourth input terminal I to receive two addends m and n, and a fifth input terminal J to receive a value of 1. The two four-input lookup tables are used to calculate the carry propagate signal m^n and the carry generate signal m&n, respectively. Because the carry generate signal is only selected and output by the first selection circuit when the carry propagate signal is 0, and a carry propagate signal of 0 indicates that addend m is equal to addend n, when the carry propagate signal is 0, it indicates that the carry generate signal is any addend. The third output terminal of the second five-input lookup table 102 selects the carry generate signal for output based on the received value 1. That is, when the first lookup table circuit is connected to the second selection circuit, the carry generate signal can be simplified to any addend in the addition operation.
[0077] In the above description, “^” represents logical exclusive OR, “&&” represents logical AND, and “!” represents logical NOT.
[0078] Further, the programmable logic circuit makes the third output signal output by the second selection circuit be the addition operation result or any addend according to the selection output signal, so as to implement a two - way selection expression.
[0079] It should be clear that, as Figure 8 shown, for the two four - input lookup tables constituting the first five - input lookup table 101, the input port diagram is marked as a, b, c, d, and the output port diagram is marked as z. Each mark is only used to facilitate displaying the internal structure of the first five - input lookup table 101 to facilitate the description of the embodiments of the present application. Similarly, for the two four - input lookup tables constituting the second five - input lookup table 102, the input port diagram is marked as f, g, h, i, and the output port diagram is marked as z. Each mark is also only used to facilitate displaying the internal structure of the second five - input lookup table 102 to facilitate the description of the embodiments of the present application. In some embodiments, Figure 9 shows a schematic diagram of the third selection circuit provided by the embodiments of the present application. As Figure 9 shown, in the programmable logic circuit provided by the embodiments of the present application, the third multiplexer 03 included in the third selection circuit is further configured to receive a cascaded input signal, so as to output one of the cascaded input signal, the fifth input signal, and the carry input signal to the first lookup table circuit.
[0080] Figure 10 shows another schematic diagram of the second selection circuit provided by the embodiments of the present application. As Figure 10 shown, in the programmable logic circuit provided by the embodiments of the present application, the second multiplexer 02 included in the second selection circuit is further configured to output the selected first output signal or second output signal as a cascaded output signal.
[0081] The programmable logic circuit provided by the embodiments of the present application further includes the double - chain characteristics of the lookup table cascade chain and the carry chain, and can also implement the function of using the programmable logic circuit as a dual - path comparator through this characteristic, so as to improve the logical resource utilization efficiency of the programmable logic circuit in the comparator mode. The following examples are used to illustrate the dual - path comparator function of the embodiments of the present application.
[0082] Taking the comparison of X[7:0]>01000001 and X[7:0]<1000001>0 as an example, the above comparison is implemented by setting two cascaded programmable logic circuits. X[7:0] represents an eight - bit binary number of the number X from the high - order bit to the low - order bit. Figure 11 shows a schematic diagram of the programmable logic circuit provided by the embodiments of the present application implementing a dual - path comparator. As Figure 11As shown, in the first-stage programmable logic circuit, the fourth to first input terminals (I, H, G, F) of the second five-input lookup table 102 receive the four binary numbers X[3:0] respectively. The second five-input lookup table 102 calculates the truth or falsehood of X[3:0]>0001 and outputs a carry generation signal via the second output terminal W. The carry generation signal indicates the truth or falsehood of X[3:0]>0001. For example, if the carry generation signal is 1, it indicates that X[3:0]>0001 is true, and if the carry generation signal is 0, it indicates that X[3:0]>0001 is false. The carry propagation signal outputted from the first output terminal V of the second five-input lookup table 102 has a value of 0. The first selection circuit selects the carry generation signal according to the carry propagation signal and outputs it as the carry input signal of the second-stage programmable logic circuit.
[0083] In the first-stage programmable logic circuit, the fourth to first input terminals (D, C, B, A) of the first five-input lookup table 101 receive the four binary numbers X[3:0]. The first five-input lookup table 101 calculates the truth or falsehood of X[3:0]<0010. If the first output signal value outputted by the output terminal Y of the first five-input lookup table 101 is 1, it indicates that X[3:0]<0010 is true. If the first output signal value is 0, it indicates that X[3:0]<0010 is false. The selection output signal value of the second selection circuit is 1, and the second selection circuit selects the first output signal for output as the cascade input signal of the second-stage programmable logic circuit.
[0084] like Figure 11 As shown, in the second-stage programmable logic circuit, the fourth to first input terminals (I, H, G, F) of the second five-input lookup table 102 receive the four binary numbers X[7:4]. The second five-input lookup table 102 calculates the truth or falsehood of the carry propagation signal X[7:4]=0100 (=indicates equality comparison) and outputs it to the first selection circuit through the first output port V. The second five-input lookup table 102 calculates the truth or falsehood of the carry generation signal X[7:4]>0100 and outputs it to the first selection circuit through the second output port W. The first selection circuit determines whether to output the carry generation signal or the carry input signal from the first-stage programmable logic circuit (X[3:0]>0001) according to the value of the carry propagate signal. For example, when the carry propagate signal is 0, the carry generation signal is output; when the carry propagate signal is 1, the carry input signal from the first-stage programmable logic circuit is output. For example, when the carry propagate signal is 0 and the carry generation signal is 1, the first selection circuit outputs the carry generation signal, indicating that X[7:0]>01000001 is true.
[0085] In the second - level programmable logic circuit, the fourth to the first input terminals (D, C, B, A) of the first five - input lookup table 101 receive four binary numbers X[7:4], the fifth input terminal of the first five - input lookup table 101 receives the cascade input signal (X[3:0]<0010) from the first - level programmable logic circuit. The first five - input lookup table 101 calculates the result of the comparator X[7:0]<1000001>0 through the five - input function (X[7:4]==1000)?(X[3:0]<0010):(X[7:4]<1000). The above formula means that when X[7:4]==1000 is true, it outputs the truth value of X[3:0]<0010, and when X[7:4]==1000 is false, it outputs the truth value of X[7:4]<1000, and outputs this comparison result as the cascade output signal through the second selection circuit. The selection output signal received by the second selection circuit is 1, indicating that the second selection circuit selects the output signal of the first five - input lookup table 101 for output.
[0086] In some embodiments, Figure 12 shows another schematic diagram of the second lookup table circuit provided by the embodiments of the present application, as Figure 12 shown, the second lookup table circuit further includes: a fourth selection circuit, configured to receive a fifth input signal and a cascade input signal, and select to output the fifth input signal or the cascade input signal.
[0087] For the programmable logic circuit provided by the embodiments of the present application, when multiple such programmable logic circuits are cascaded, the cascade input signal is input by the first lookup table circuit and the second lookup table circuit, and the cascade output signal is output by the second selection circuit, which improves the interconnection delay between the programmable logic circuits.
[0088] In some embodiments, Figure 13 shows yet another schematic diagram of the second lookup table circuit provided by the embodiments of the present application, as Figure 13 shown, the fourth selection circuit is further configured to receive a sixth input signal to select one of the sixth input signal, the fifth input signal, and the cascade input signal and output it to the fifth input terminal of the second five - input lookup table 102.
[0089] In some embodiments, Figure 14 shows a schematic diagram of the fourth selection circuit provided by the embodiments of the present application, as Figure 14As shown, the fourth selection circuit includes: a fourth multiplexer 04, a first input terminal of the fourth multiplexer 04 is used to receive the fifth input signal, a second input terminal of the fourth multiplexer 04 is used to receive the sixth input signal, a third input terminal of the fourth multiplexer 04 is used to receive the cascade input signal, and an output terminal of the fourth multiplexer 04 is used to select one of the fifth input signal, the sixth input signal and the cascade input signal to output to the fifth input terminal J of the second five-input lookup table 102.
[0090] The programmable logic circuit provided in the embodiment of the present application adds input variables of the first lookup table circuit and the second lookup table circuit, so that the programmable logic circuit can be configured with up to seven input variables (input variables include: first to sixth input signals, carry input signal and cascade input signal).
[0091] In some embodiments, in the programmable logic circuit provided in the embodiments of the present application, the selection ends of the third multiplexer 03 and the fourth multiplexer 04 are programmed to control the signals output by their output ends. The programming method of the selection end includes at least SRAM programming, Flash programming, fuse programming, and anti-fuse programming. Specifically, the programming method of the multiplexer selection end is a conventional means and will not be described in detail in this application.
[0092] Figure 15 The schematic diagram of the structure of the programmable logic circuit provided by the embodiment of the present application is shown. Figure 15 The programmable logic circuit shown can be used to implement the functions of any of the programmable logic circuits described above.
[0093] It should be clear that in the programmable logic circuit provided in the embodiment of the present application, the first to sixth input signals and the selection output signal can also be transmitted from the external module / circuit to the programmable logic circuit by setting corresponding circuit ports, and the first output signal, second output signal and third output signal of the programmable logic circuit can also be transmitted to the corresponding circuit ports for interaction with the external circuit. Similarly, the carry input signal, carry output signal, cascade input signal and cascade output signal can also be set with corresponding ports to realize the connection between adjacent programmable logic circuits.
[0094] The programmable logic circuit provided in the embodiments of the present application, when used as an adder to perform addition and subtraction operations, the carry generation signal is no longer limited to a single input variable, and addition and subtraction operations of multi-variable functions can be performed, thereby improving the configuration flexibility of the programmable logic device in the addition operation mode and the utilization efficiency of logic resources;
[0095] In the programmable logic circuit provided by the embodiment of the present application, the first output signal of the first lookup table circuit is the result of the addition operation, and the second output signal of the second lookup table circuit can also be one of the addends of the addition operation. The second selection circuit selects the first output signal or the second output signal for output, so that the programmable logic circuit can selectively output the result of the addition operation or the addend value of the addition operation;
[0096] In the programmable logic circuit provided by the embodiment of the present application, the first lookup table circuit can directly output the first output signal, the second lookup table circuit can directly output the second output signal, and the second selection circuit can select the first output signal or the second output signal as the third output signal. This implements independent outputs of the first lookup table circuit and the second lookup table circuit, allowing the programmable logic circuit to be configured to include up to three outputs.
[0097] Furthermore, the programmable logic circuit provided in the embodiment of the present application further includes a dual-chain feature of a lookup table cascade chain and a carry chain, and can also use this feature to realize the function of the programmable logic circuit as a dual-path comparator to improve the logic resource utilization efficiency of the programmable logic circuit in the comparator mode. The following example illustrates the dual-path comparator function of the embodiment of the present application.
[0098] Furthermore, in the programmable logic circuit provided in the embodiment of the present application, when multiple programmable logic circuits are cascaded, the cascade input signal is input by the first lookup table circuit and the second lookup table circuit, and the cascade output signal is output by the second selection circuit, thereby improving the interconnection delay between the programmable logic circuits.
[0099] Furthermore, the programmable logic circuit provided in the embodiment of the present application adds input variables to the first lookup table circuit and the second lookup table circuit, so that the programmable logic circuit can be configured with a maximum of seven input variables.
[0100] The above content is a further detailed description of the present application in conjunction with specific implementation methods, and the specific implementation of the present application cannot be considered to be limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, they can make several simple deductions or substitutions without departing from the concept of the present application, which should be considered as the scope of protection of the present application.
Claims
1. A programmable logic circuit, It is characterized in that include: A first lookup table circuit, wherein the first lookup table circuit is used to generate a first output signal output according to a received input signal; a second lookup table circuit, the second lookup table circuit being used to generate a carry propagation signal and a carry generation signal output respectively according to the received input signal, and select the carry propagation signal or the carry generation signal as a second output signal output; a first selection circuit, the first selection circuit being used for receiving a carry input signal and the carry generation signal, and selecting the carry input signal or the carry generation signal to output as a carry output signal according to the carry propagation signal; a second selection circuit, the second selection circuit being used to receive the first output signal and the second output signal, and select the first output signal or the second output signal as a third output signal to be output according to a selection output signal; Wherein, the first lookup table circuit includes a first five-input lookup table and a third selection circuit, The first to fourth input terminals of the first five-input lookup table are respectively used to receive the first to fourth input signals, the fifth input terminal of the first five-input lookup table is used to receive the signal output by the third selection circuit, and the output terminal of the first five-input lookup table is used to output the first output signal; The third selection circuit is used to receive the fifth input signal and the carry input signal, and select the fifth input signal or the carry input signal for output; The second lookup table circuit comprises: a second five-input lookup table, wherein the first to fourth input terminals of the second five-input lookup table are respectively used to receive the first to fourth input signals, the fifth input terminal of the second five-input lookup table is used to receive the fifth input signal, the first output terminal of the second five-input lookup table is used to output the carry propagation signal, the second output terminal of the second five-input lookup table is used to output the carry generation signal, and the third output terminal of the second five-input lookup table is used to output the second output signal.
2. The programmable logic circuit according to claim 1, It is characterized in that The third selection circuit is further used to receive a cascade input signal to select one of the cascade input signal, the fifth input signal and the carry input signal to output to the fifth input terminal of the first five-input lookup table; The second selection circuit is further configured to use the selected first output signal or the second output signal as a cascade output signal.
3. The programmable logic circuit according to claim 1, It is characterized in that The second lookup table circuit further includes: A fourth selection circuit is used to receive the fifth input signal and the cascade input signal, select the fifth input signal or the cascade input signal for output, and the signal output by the fourth selection circuit is used to determine the signal output by the third output terminal of the second five-input lookup table.
4. The programmable logic circuit according to claim 3, It is characterized in that The fourth selection circuit is further configured to receive a sixth input signal to select one of the sixth input signal, the fifth input signal and the cascade input signal to output to the fifth input terminal of the second five-input lookup table.
5. The programmable logic circuit according to claim 1, It is characterized in that The first selection circuit comprises: a first multiplexer, wherein a first input terminal of the first multiplexer is used to receive the carry generation signal, a second input terminal of the first multiplexer is used to receive the carry input signal, a selection terminal of the first multiplexer is used to receive the carry propagation signal, and an output terminal of the first multiplexer is used to select the carry generation signal or the carry input signal as the carry output signal according to the carry propagation signal; The second selection circuit comprises: A second multiplexer, wherein the first input end of the second multiplexer is used to receive the first output signal, the second input end of the second multiplexer is used to receive the second output signal, the selection end of the second multiplexer is used to receive the selection output signal, and the output end of the second multiplexer is used to select the first output signal or the second output signal as the third output signal according to the selection output signal.
6. The programmable logic circuit according to claim 2, It is characterized in that The third selection circuit comprises: A third multiplexer, wherein the first input terminal of the third multiplexer is used to receive the fifth input signal, the second input terminal of the third multiplexer is used to receive the carry input signal, the third input terminal of the third multiplexer is used to receive the cascade input signal, and the output terminal of the third multiplexer is used to select one of the fifth input signal, the carry input signal and the cascade input signal to output to the fifth input terminal of the first five-input lookup table.
7. The programmable logic circuit according to claim 4, It is characterized in that The fourth selection circuit comprises: a fourth multiplexer, wherein the first input terminal of the fourth multiplexer is used to receive the fifth input signal, the second input terminal of the fourth multiplexer is used to receive the sixth input signal, the third input terminal of the fourth multiplexer is used to receive the cascade input signal, and the output terminal of the fourth multiplexer is used to select one of the fifth input signal, the sixth input signal and the cascade input signal to output to the fifth input terminal of the second five-input lookup table.
8. The programmable logic circuit according to claim 6, It is characterized in that The selection end of the third multiplexer is programmed to control the signal output by its output end, and the programming method of the selection end at least includes SRAM programming, Flash programming, fuse programming, and anti-fuse programming.
9. The programmable logic circuit according to claim 7, It is characterized in that The selection end of the fourth multiplexer is programmed to control the signal output by its output end, and the programming method of the selection end at least includes SRAM programming, Flash programming, fuse programming, and anti-fuse programming.
Citation Information
Patent Citations
a programmable logic device having complex logic blocks with improved logic cell functionality
CN101312347A
Configurable five-input look-up-table circuit
CN105187050A
Logic function module and programmable logic gate array
CN114253508A
Circuit structure
CN114489563A
Lookup table circuit
CN115454378A
