Programmable logic device

Abstract: A programmable logic device architecture having a matrix of smaller functional units (20-28), each of which being a programmable logic array, and a set of fixed conductive lines (31, 32) connected to the functional unit inputs and out­ puts, the conductive lines forming programmable inter­ connection matrices (33). The input pins (34) can be programmably connected to any input of any functional unit (20-28), and the outputs of functional units can be programmably connected to any input of any functional unit (20-28) or any output pin (40). The interconnection matrices (33, 38, 44) may be a simple array of crossing conductive lines with crossings connected by fuses, EPROM, or EEPROM switches or may have additional series switches to limit the effective impedance so as to speed propagation through these matrices. A fast path through one functional unit bypassing the interconnection matrices is available for a limited number of input and output pins. Multiplexers and other structures may be provided at ends of the fixed conductive lines to enable exhaustive testing of individual functional units, inter­ connections and logic, and structure may also be provided for on-chip monitoring of state information and providing the information to the external world when certain preselected events happen.

Description: The present invention relates to a class of integrated circuits known as programmable logic devices, whether mask programmable, fusible, ultraviolet erasable reprogrammable or electrically erasable reprogrammable, and in particular to architectures for programmable logic devices for optimizing speed and functional flexibility. Programmable logic devices (PLDs) are integrated circuits which increasingly are being used to provide the logic for electronic systems. For example, these devices may be used as "glue" to electrically connect and control the interaction of the major parts of a microcomputer system. Typically, PLDs include a set of input pins, two arrays of logic gates, i.e. an AND array followed by an OR array, and a set of output pins. Frequently, flip-flops following the OR array together with feedback lines are also included in order to provide registered output and sequential logic capabilities instead of the combinatorial logic provided by the AND/or arrays alone. Presently, several basic types of PLD architectures are available. In programmable logic elements (PLEs), the AND array is fixed and the OR array is programmable. PLEs are useful in applications requiring most or all possible input combinations, such as lookup tables and character generators. However, because the array size must be doubled for each additional input, PLEs are limited by cost and performance constraints to a small number of inputs. Programmable logic arrays (PLAs) have both a programmable AND array and a programmable OR array. Programmable array logic (PAL) devices have a programmable AND array, but a fixed OR array. Both the PLA and PAL architectures have advantages. Because both arrays are programmable, PLAs offer a high degree of functional flexibility. However, PALs are faster, because a programmable OR array is slower than dedicated OR gates. The PLA's flexibility is useful for complex state-machine and sequence applications, while most other applications not requiring a high degree of flexibility take advantage of the PAL's speed. Some attempts have been made to combine both functional flexibility and speed in a PLD architecture. In Monolithic Memories' series of MEGAPALS, the size of the AND array was increased and a fixed number of AND product terms were allowed to be shared amongst two outputs. Altera's EP1200 chip is segmented into "sub-PALs" with only four outputs, the outputs of a particular segment being usable as inputs for only some of the sub-PALs. In each case, all of the inputs are available to all of the AND terms simultaneously, resulting in AND arrays with 64 inputs, most of which remaining unused for any given product term. Because of their fixed product terms, there are 16 product terms per OR gate. In practice, few sets of logic need so many inputs to an OR gate. In U.S. patent 4,207,556, Sugiyama et al. discloses a programmable logic array arrangement having a plurality of cell units, each comprising a plurality of electronic elements, such as resistors, diodes and transistors, a wiring matrix of row and column lines, and an array unit having a group of switching elements for selectively interconnecting the various row and column lines, and electronic elements. The arrangement sacrifices density and speed for functionality by including a large number of electronic elements with variable wiring in each unit. In Ikawa et al., "A One Day Chip: An Innovative IC Construction Approach. . .", IEEE Journal of Solid-State Circuits, vol. Sc-21, No. 2, April 1986, pp. 223-227, a VLSI chip contains 50-200 standard logic functional blocks of SSI/MSI level integration performing various kinds of functions, such as invertors, NORs, NANDs, flip-flops, shift registers, counters, multipliers, ALUs, etc. Each of these fixed functional units may be connected to other functional units by means of an EEPROM switch matrix. The switch matrix provides flexibility and can easily be reprogrammed, but a large number of standard functional blocks must be anticipated to provide true flexibility, most of which would be unused for any given chip function. Electro/87 and Mini/Micro Northeast, Conference Record, Vol. 12, 1987, pages 1-9 discloses a logic cell array comprising a matrix of configurable logic blocks connected by both general purpose interconnect lines, long lines and direct connections. Interconnect switches are located at block outputs and in switch matrices connecting vertically and horizontally directed metal segments of the general purpose interconnect lines. The configurable logic blocks include 4-input combinatorial logic blocks having a constant delay regardless of function and splittable into two independent 3-input logic blocks. European Patent Application EP-A-0317287 (published after the priority date of the present application and relevant only under A54(3)EPC and A54(4)EPC) discloses an array of programmable logic elements interconnected by switch arrays and having direct connections between flip-flops of different programmable logic elements to raise the operating speed. An object of the present invention is to provide a programmable logic device architecture which makes good use of chip area, and combines functional flexibility with speed. Another object of the present invention is to provide an architecture which can be exhaustively tested. The above objects have been met with a programmable logic device having a plurality of programmable functional units, each of which is similar to a PLA. Two fixed sets of conductive lines, one set permanently connected to the outputs of functional units, the other set permanently connected to the inputs of functional units, form programmable interconnection matrices where the two sets of conductive lines cross. Further, any of the input pins can be programmed to connect to any input of any functional unit, and any of the output pins can be programmed to connect to any output of any functional unit. A limited number of inputs pins can be connected to a functional unit, outputs of which are directly connected to a limited number of output pins, bypassing the interconnection matrices for speed. Each interconnection matrix selectively connects the lines for each output of a functional unit to the lines for each input of the same or other functional unit. Typically, lines are connected by closing a switch, such as a fuse, EPROM or EEPROM. The input and output lines of interconnection matrices may be indirectly connected through an extra series switch for each input or output line. Thus, if there is a no connection only the capacitance of the series switch is seen, increasing the speed through an interconnection matrix. Each functional unit may be configured like a conventional PLA with a number of inputs and outputs, AND and OR arrays, and possibly feedback lines, dedicated units and registers, edge triggered or enabled by a level. Alternatively, some or all of the functional units can be replaced by PALs, ROM, a discrete-logic ALU and the like. The OR array of a PLA can also be configured so that each AND product time is connectable via a switch to two different lines running through the OR array. One is a conventional product time line that may be selected for full functional flexibility, while the other is a line connected to only one, two or some other subset of OR lines that may be selected for speed. Alternatively, the OR array may be only partially populated with programming links. The architecture may include a pair of multiplexers connected respectively to the two sets of lines dedicated to functional unit inputs and outputs for separate access to individual functional units. This structure facilitates testing of the chip, since each functional unit can be exhaustively tested, then followed by testing of the interconnection matrix programming. A single large PLA can only be partially tested since the number of possible input combinations is too large for exhaustive testing. The lines from functional unit outputs can also be monitored by a programmable AND array and RAM for logic state analysis. The programmable logic device may have an additional hierarchical level for even greater functionality, being made up of two or more subunits each having a matrix of functional units, conductive lines, input and output pins and interconnection matrices. The subunits are then connectable by a switching matrix in which control connect lines are programmably connected to conductive lines from functional unit outputs and to lines from the input pines and in which lead lines connected to the central connect lines are programmably connectable to conductive lines leading to functional unit inputs and to lines leading to output pins. Thus, any of the outputs from a functional unit in one subunit can be connected to any of the inputs to a functional unit in the other subunit. Input and output pins are likewise connected to functional units in the other subunit. Fig. 1 is a schematic showing the basic structure of a programmable logic device of the present invention. Fig. 2 is a schematic of a functional unit in the device of Fig. 1. Fig. 3 is a schematic of an interconnection matrix in the device of Fig. 1. Fig. 4 is a schematic of an output module in the device of Fig. 1. Fig. 4a is a schematic of an alternative output module for the device of Fig. 1. Fig. 5a is a closeup view of a portion of the interconnection matrix of Fig. 3. corresponding to a single output line. Fig. 5b is a schematic of a portion corresponding to a single output line of an alternative interconnection matrix for use in the device of Fig. 1. Fig. 6 is a closeup view of AND/OR arrays for a functional unit using a first alternative OR array arrangement. Fig. 6a is a closeup view of a second alternative OR array arrangement. Fig. 7 is a flow diagram illustrating the propagation times through the device of Fig. 1. Fig. 8 is a schematic showing a second embodiment of a programmable logic device of the present invention having a direct path through the array. Fig. 9 is a flow diagram illustrating the propagation times through the device of Fig. 8. Fig. 10 is a schematic of a third embodiment of a programmable logic device in accord with the present invention. Fig. 11 is a schematic of a fourth embodiment of a programmable logic device in accord with the present invention having a pair of multiplexers for functional unit level testing. Fig. 12 is a schematic of a fifth embodiment of a programmable logic device of the present invention having elements for logic state analysis of the device. Fig. 13 is a schematic of a sixth embodiment of a programmable logic device of the present invention. Fig. 14 is a close-up view of an alternative functional unit for use in the device of Fig. 1. With reference to Fig. 1, a programmable logic device includes a plurality of functional units 20-28. Preferably, the functional units 20-28 are arranged in a matrix of rows and columns. In the example given in Fig. 1, 9 functional units are shown, but the actual number may vary from device to device. Each functional unit includes a set of inputs 29 and a set of outputs 30. In the example in Fig. 1, each functional unit 20-28 has 12 inputs and 9 outputs. However, the number of inputs and outputs from the functional units may vary from device to device or within a device from functional unit to functional unit. Each functional unit performs one or more logic functions which when combined with logic functions from itself and other functional units produces the more complex function of the overall programmable logic device. The programmable logic device also includes a first set of conductive lines, represented by the vertical lines 31 of multiplicity 9, which are permanently connected to the outputs 30 of functional units 20-28. Similarly, the device includes a second set of conductive lines, represented by the horizontal dashed lines 32 of multiplicity 12, which are permanently connected to the input lines 12 of functional units 20-28. Since each of the conductive lines either of the first set 31 or of the second set 32, is connected to the outputs or inputs of a particular functional unit, the multiplicity of these lines exactly matches the number of inputs or outputs of each functional unit. By the term "multiplicity" we mean that each of the lines and dashed lines represented in Fig. 1 is in actuality a collection of conductive lines whose number is indicated by the multiplicity. Thus the vertical solid line indicated by reference numeral 31 actually represents 9 conductive lines, each of which is connected to an output line 30 from functional unit 20. Likewise the horizontal dashed line indicated by reference numeral 32 is in actuality 12 conductive lines each permanently connected to an input 29 of functional unit 20. The actual multiplicity of each of the lines will depend on the number of inputs and outputs for each functional unit 20-28. The two sets of conductive lines 31 and 32 cross at various areas of the programmable logic device to form programmable interconnection matrices 33. In the example given in Fig. 1, since one set of lines has a multiplicity of 9 and the other set of lines has a multiplicity of 12 the intersection of these two sets of lines forms matrices with 12 x 9 or 108 programmable crossings. Each of the crossings may be programmed to conduct or not conduct from one line to another by switches from one of a number of technologies. For example, each crossing into an interconnection matrix may be mask programmed at a Fab facility in accordance with a user's instructions by forming VIAs between two levels of crossing lines. Alternatively the interconnection matrices may be field programmable either by providing conductive fuses which may be broken by a user, or by providing EPROM or EEPROM switch transistors. The programmable logic device also includes a set of input pins 34a and 34b. By "pins", we mean not only DIP-type pins but also other input and output constructions known in the art, such as the metallized contacts of flat chip carriers. In the example in Fig. 1, 16 input pins are provided. However, the number of input pins may vary from device to device. The sets of input pins 34a and 34b are permanently connected to conductive input lines 36a and 36b disposed to cross the second set of conductive lines 32. The crossings of input lines 36a and 36b with conductive lines 32 form programmable interconnection matrices 38. In Fig. 1, each of the interconnection matrices 38 is a 12 by 8 matrix of line crossings which may be made conductive by mask programming, fuse programming or switch programming with EPROMs or EEPROMs. In this manner each of the input pins 34a and 34b is selectively connected to any of the inputs 29 of functional units 20-28. The programmable logic device also includes a set of output pins 40a and 40b. In Fig. 1, the number of output pins is 12. However, the number of output pins may vary from device to device. Output lines 42a and 42b are disposed to cross the first set of conductive lines 31 forming interconnection matrices 44 at the crossings. In the present example each interconnection matrix 44 is a 6 by 9 programmable array of switches, fuses or mask laid contacts. In this manner each of the output pins 40a and 40b may be connected to any output line 30 of any functional unit 20-28. Typically, the output lines 42a and 42b are not directly connected to output pins 40a and 40b, but are indirectly connected through output modules 46a and 46b. Input and output pins need not be distinct, as represented by line 47 connected a pair of pins 34a and 40a. Output modules 46a and 46b may be programmable logic arrays which can be used to generate data and control signals such as output enable and clock signals. With reference to Fig. 2, each functional unit 20-28 in Fig. 1 may be a programmable logic array. As is known in the art a programmable logic array includes a programmable AND array 48 and a programmable OR array 50. These two arrays 48 and 50 combine to provide a two-step combinatorial logic. The PLA has a plurality of input lines 29a, 29b, . . ., 29l and a plurality of output lines 30a, 30b, . . ., 30i. In the present example, the number of input lines is 12 and the number of output lines is 9, but the actual number may vary from device to device and from functional unit to functional unit. The number of input and output lines is however considerably smaller than that of prior programmable logic devices using a single AND array and a single OR array for performing complex logic functions, since the programmable logic device architecture of the present invention breaks down the complex function into a number of simpler functions carried out by each programmable functional unit. Each input line 29a-l passes through a pair of gates 52 and 54 which provide complementary signals. Each horizontal dashed line represents an AND gate, called a "product line". Each product line 56 is selectively connected to AND gate inputs 57 through programmable links 58. Links 58 may be mask programmed, fuse programmable or switch programmable. Each of the product lines 56 intersects OR input lines 60 leading to EXOR gates 62. Each intersection of a product line 56 and an OR input line 60 forms a programmable link 63 which again may be mask programmed, fuse programmable or switch programmable. In the functional unit in Fig. 2 the output from EXOR gates 62 may be either directly connected to output lines 30a-i or connected through a flip-flop 64, the selection being made with a switch 63. Flip-flop 64 is a D-type flip-flop whose clock signal is determined by one of the product lines 56 connected via clock line 66. D-type flip-flops are commonly used in programmable logic devices to provide registered outputs. Other types of flip-flops and latches may also be used as well as feed-back lines to either the AND array 48 or to input lines 29a-l. While functional units are preferably of the programmable logic array type, with both programmable AND and programmable OR arrays, they may also be of the other programmable logic device types with either fixed AND or fixed OR arrays. Fig. 3 shows an interconnection matrix 33. Interconnection matrices 38 and 44 in Fig. 1 are of similar construction. Any of the first set of conductive lines 31, i.e., the conductive lines permanently connected to outputs 30 of functional units, shown in Fig. 3 as solid vertical lines 31a-i can be connected to any of the first set of conductive lines 32 i.e. those lines permanently connected to inputs 29 of functional units and shown as dashed horizontal lines 32a-l. Connection is made usually by closing a switch. In some cases, for example with fuses, the switch is closed until it is explicitly opened while the other switches such as EPROMs and EEPROMs the switch is open until it is explicitly closed. One hundred and eight switches 66 are shown in Fig. 3. The number of switches will vary from interconnection matrix to interconnection matrix, depending on the multiplicity of conductive lines 31 and 32. With reference to Figs. 4 and 4a, any selection of outputs from functional units can be connected to output pins 40 by means of an output module 46. Output module 46 includes an AND array 68 and an OR array 70 which can be programmed to control the outputs 40 by providing signals like output enable 76 and clock 74 as well as data signals 72 from output lines 42. Discrete logic output macrocells 78 generate the data output in response to clock and output enable signals 74 and 76. Other control signals might also be generated. Further, as seen in Fig. 4a, the data signals 72 need not go through the AND and OR array 68 and 70, but may instead connect directly to macrocells 78. Fig. 5a shows one column 31a of interconnection matrix 33 in Fig. 3. Each switch 66 along conductive line 31a contributes capacitance to the overall circuit thereby slowing the circuit down. For example, conductive line 31a sees the capacitance of 12 switches 66 for connecting line 31a to the second set of conductive lines 32a-l. In the overall interconnection matrix shown in Fig. 3 there would be 108 switches present and a time delay of approximately 60 nanoseconds through the entire interconnection matrix. Fig. 5b shows a portion of a preferred interconnection matrix. Conductive line 31a is not directly connected to the second set of conductive lines 32a-l via switches 66, but is instead connected through extra series switches 81a′ and 81a″. In practice most conductive lines 31 from outputs will be connected to one or two conductive lines 32 to inputs. Only occasionally will there be more. In Fig. 5b series switch 81a′ connects a main conductive line 31a to a branching conductive line 31a′ while a second series switching 81a″ connects main conductive line 31a to branching conductive line 31a″. The branching lines 31a′ and 31a″ are then connected to second set of conductive lines 32a-l via switches 66. If no connection is made only the capacitance of the series switches 81a′ and 8a″ is seen. If one connection is made only the capacitance of one of the series switches 81a′ or 81a″ is seen together with only half of the remaining switches 66. Accordingly, if an output from a functional unit has a fanout of two, then it will see the inductance of only 30 switches instead of 108 switches. This approach can also be cascaded by defining the inputs into supergroups with a series switch to a supergroup and series switches to each group within the supergroup. The approach is not limited to outputs. The inputs could also be buffered from the inductance in the same way. That is, each conductive line of the second set may also comprise a main line and branching lines, with the branching lines being connected to the main line through series switches and connected to conductive lines of the first set, including possible branching lines of the first set, via additional switches or other programmable links. OR arrays are useful because they allow two-stage logic to be used. PALs, with fixed ORs, also do this but at the expense of not being able to use product terms for multiple ORs. Product terms of PALs are committed to specific ORs and a product term not used in one AND/OR function cannot be used in another which may need extra ORs. A fixed OR is however faster and thus PALs trade off function for speed. Programmable OR terms in PLAs are slow for the same reason as the interconnection matrices, i.e. the capacitance of the switches. A programmable AND/OR array with an OR array 50′ optimized for speed as shown in Fig. 6. Here the product terms 56 from AND array 48 can be connected via a switch 84 to two different lines 86 and 88 running through OR array 50′. Line 88 is a conventional product term which may be programmably connected via switches 90 to any of the input lines 92 to the OR gates of OR array 50. The second line, line 86, could be connected by a switch or switches 94 to some subset of OR terms. This arrangement allows the programmer to chose between the speed path 86 with some loss of product sharing or have a lower path 88 with full flexibility. This choice can be made for each product term 56. In Fig. 6a, another OR array 50″ is seen. Instead of using switches 84 as in Fig. 6 to choose the level of programmability, the product lines 56 connect to subsets only of OR gate input lines 60. In other words, the input lines 60 are only partially populated with programmable links 63 to product lines 56. For example, a typical arrangement for an AND/OR array, line that seen in Fig. 2 modified as in Fig. 6a to have OR input lines 60 only partially populated with links 63, includes 12 AND input lines, 44 product terms, 27 OR gate input lines (including input lines to latches or flip-flops 64) and 9 output lines. The OR gate input lines are grouped into threes, with two lines leading to an EXOR gate 62 and the third line serving as a clock for latch 64. The programmable links are typically staggered so that the first 12 product terms are connectable to the first group of three groups of three OR input lines, product terms 5-16 are connectable to the second group of OR input lines, product terms 9-20 are connectable to the third group of three groups of three OR input lines, and so forth, with the last 12 product terms 33-34 connectable to the ninth group of three groups of three OR input lines. Other partially populated arrangements of programmable links can also be constructed. Fig. 7 shows the propagation time through a programmable logic device in accordance with the present invention, using the speed optimized programmable interconnection matrix described above with reference to Fig. 5b and functional units with optimized OR arrays as described above with reference to Fig. 6. From input pins 98 through input buffer 100 takes 4.5 nanoseconds. The propagation time through input switch matrix 102 takes 6 nanoseconds. The propagation time through the AND/OR array 104 of a functional unit takes 15 nanoseconds. The propagation time through flip-flop registers 106 takes 3 nanoseconds. The propagation time through output interconnection matrix 108 takes 6 nanoseconds and the time through output buffer 110 takes 7.5 nanoseconds. The total propagation time from input pins 98 to output pins 114 is 42 nanoseconds. The toggle propagation path 112 for propagation through additional functional units takes 24 nanoseconds per functional unit. This is a toggle rate of 40 MHz. With reference to Fig. 8, a second embodiment of a programmable logic device in accordance with the present invention provides for a limited number of inputs a way of bypassing the interconnection matrices for a fast direct path to some output pins. In the example in Fig. 8, 10 out of 16 input pins, 8 input pins in a first group 34a and 2 input pins in a second group 34b, may be connected as before via input lines 36a and 36b and interconnection matrices 38 to inputs 29 of functional units 20-28. However 6 of the 16 input pins 34c may either be connected via input buffer 118, input lines 36c and interconnection matrices 39 to inputs 29 of functional units 20-28 or may be connected via multiplexer 117 to inputs 116 of a functional unit 122 performing a simple logic function. The outputs from functional unit 122 may be connected via buffer 120 to a set of conductive lines 121 to either additional functional units or output pins 40a and 40b through interconnection matrices. The outputs from function unit 122 may also be connected through conductive lines 124 to output pins 126 without going through any interconnection matrices. Output pins 126 are connected to conductive lines 124 or to the regular conductive lines 125 via a multiplexer 123. As seen in Fig. 9, the bypass path 128 through AND/OR array 122 has a total propagation time of 28 nano-seconds from input pins 98 through buffer 100 through functional unit 122 and then out through buffer 110 and output pins 114. This is considerably faster than the path taken through interconnection matrices 102 and 108 which, as mentioned above, is a duration of 42 nano-seconds. Such a fast path is useful, e.g., for enabling the appropriate memory devices in response to a high address bit from a CPU data request. With reference to Fig.10, functional units 22-28 for providing complex control logic need not be the only units present in the matrix of functional units. For example, a random access memory subunit 130 with a set of inputs for address, write, and enable, as well as a set of outputs for data, may be connected to the same sets of conductive lines 31 and 32 as other functional units. Similarly an arithmetic logic unit 132 with inputs A and B for operands and inputs F for operators as well as outputs for operation results may be connected in the same manner. Such an arrangement could integrate central processing units with their glue logic on the same chip. Structures may be provided in a programmable logic device to facilitate testing of the programming. For example, with reference to Fig. 11, a pair of multiplexers 134 and 136 may be provided to access individual functional units 20-28. Multiplexer 134 is situated along an end of the first set of conductive lines 31 in order to access the outputs from functional units 20-28. A set of input pins 34a and pins A-G is temporarily dedicated to functional unit testing, and a set of output pins 40a is similarly temporarily dedicated. Pass gates 138 and 140 in response to signals along pins F and G enable input pins 34a and output pins 40a to interact with multiplexer 134. Signals along pins A, B, C and D determine which functional unit 20-28 is accessed. Multiplexer 136 is similarly connected to inputs to functional units 20-28 and is similarly controlled. Pass gates 139 and 141 in response to signals along pins J and H enable input pins 34b and output pins 40b to interact with multiplexer 136. In operation, programming may be tested by first programming the functional units 20-28, leaving all interconnection matrices 33 open. Input lines 32 to functional units 20-28 are then driven by signals coming in from input pins 34b and multiplexer 136. Data, i.e. test results, are read out from output pins 40a via multiplexer 134 accessing output lines 31. Once the user is assured that each of the functional units 20-28 has been properly programmed and performs as expected, the interconnection matrices 33 are programmed. Interconnections are tested by accessing the same lines 31 and 32 via multiplexers 134 and 136. This procedure thus provides complete testability of all parts of the device, and works for all devices of the present invention using EPROM and EEPROM switches. This procedure does not work for devices having fuse links that are programmed by blowing, i.e. opening, connections, but does work for devices using links that are grown to close selected connections. An advantage to accessing individual functional units 20-28 for testing is that since the functional units 20-28 have considerably fewer inputs they can be exhaustively tested. In the example in Fig. 11 each functional unit has 12 inputs so the total number of input combinations is 2¹² or 4,096 per functional unit. This means only 36,864 combinations need be tested for the entire device to be tested. A large programmable logic array could require up to 64 inputs to achieve the same level of function complexity as the present device. There would be no way to exhaustively test 2⁶⁴ possible input combinations in such a device. Despite simulating the logic under a series of expected conditions, designers often encounter conditions that they have not taken into account. When they test the complete system or subsystem they find that it does not perform as expected. When SSI and MSI circuits are used, designers can "watch" the system perform, using instruments like oscilloscopes and logic state analyzers. However, they do not have access to the internal nodes of an integrated circuit so they cannot monitor what is actually happening in the same way as in the non-integrated case. Hence it is advantageous to add monitoring logic on a PLD, or a special variant of one produced for the testing phase, which will provide the monitoring information. An example of one such structure is shown in Fig. 12. Referring then to Fig. 12, a programmable AND array 145 communicates with at least some, and typically all, of the output lines 31 from functional units 20-28, as well as lines 36a and 36b from input pins 34a and 34b. A random access memory (RAM) 147 communicates with AND array 145 and with two sets of pins 149 and 150. Address pins 149 are used from programming the AND array 145 and RAM 147 to record logic states when certain conditions are satisfied, while data pins 150 are used for reading out information recorded in RAM 147. In operation, when a programmed subset of output states on lines 31 and 36a-b meets a programmed condition, the AND array 145 detects this condition and transfers another programmed subset of output states to RAM 147, where these states are stored in selected memory addresses. When the programmed condition is not met, no information is recorded. The stored information can be read out from RAM 147 via data pins 150. Alternatively, data can be read out serially. The condition that triggers the recording of information can include an outside signal as shown by input pin 152 to the AND array 145. The trigger can be brought to the external world as shown by output pin 154 from the AND array to allow external conditions to be monitored as well. With reference to Fig. 13, the programmable logic device architecture of the present invention can be extended to even higher densities by introducing an additional level of program hierarchy. A programmable logic device in Fig. 13 is composed of two halves or "subchips". More than two subchips could also be provided. A first subchip 160 comprises a plurality of functional units 20-28 with inputs 29 permanently connected to a set of conductive lines 32 and with outputs 30 permanently connected to a set of conductive lines 31. Conductive lines 31 and 32 cross at programmable interconnection matrices 33. Sets of input pins 34a and 34b connect to conductive lines 32 via input lines 36a and 36b and interconnection matrices 38, and sets of output pins 40a and 40b connect to conductive lines 31 via output modules 46a and 46b, output lines 42a and 42b and interconnection matrices 44. A second subchip 162 likewise constructed with functional units 20a-28a having inputs and outputs 29 and 30, conductive lines 31 and 32, having pins 34c and 34d, input lines 36c and 36d, output pins 40c and 40d, output modules 46c and 46d, output lines 42c and 42d, and associated interconnection matrices. A programmable switching matrix 164 connects the two subchips 160 and 162, so that any signal in one subchip can be connected anywhere else, though not all simultaneously. Switching matrix 164 includes a set of central connect lines, represented by horizontal dashed lines 166, each of plural multiplicity, and two sets of lead lines, represented by vertical lines 168 and 169, again of plural multiplicity. Input lines 36a-d and conductive lines 31 from functional unit outputs 30 cross the central connect lines 166 at programmable interconnection matrices 170. Likewise, lead lines 168 and 169 cross central connect lines 66 at interconnection matrices 172, which may be either fixed or programmable. Lead lines 168 and 169 also cross conductive lines 32 leading to functional unit inputs 29 of respective first and second subchips 160 and 162, at programmable interconnection matrices 174. Accordingly, input pins 34a and 34b may be programmed to connect to functional unit inputs 29 of first subchip 160 directly through input lines 36a and 36b and conductive lines 32 or to functional unit inputs of second subchip 162 through input lines 36a and 36b, central connect lines 166 and lead lines 169 of switch matrix 164, then through conductive lines 32 on the second subchip 162. Likewise, input pins 36c and 36d can be programmed to connect to functional unit inputs of second subchip 162 directly or to functional unit inputs of first subchip 160 indirectly through central connect lines 166 and lead lines 168 of switch matrix 164. Conductive lines 31 from functional unit outputs 30 on one subchip can also be programmed via switch matrix 164 to connect with conductive lines 32 leading to functional unit inputs 29 or to output lines 42a-d leading to output pins 40a-d on the other subchip. With reference to Fig. 14, there are some frequently used arithmetic and logic functions which cannot easily or quickly be done with a small number of product terms using an AND/OR array. Addition and testing a result for zero are two examples. Consider, for example, the addition of two numbers A and B to obtain a sum S. The nth bit of the sum S n is S n = (A n .∼B n .OR. ∼A n .B n ) .EXOR. C n-1 , where C n-1 = A n-1 .B n-1 .OR. A n-1 .C n-2 .OR. B n-1 .C n-2 is the carry in from a previous computation stage. The carry term can be calculated sequentially, i.e. by a "ripple carry", by feeding the previous carry term back into the array. Unfortunately, this means that multiple passes through the array need to be done, which may not be fast enough in many situations. An alternative is to generate all of the carry terms simultaneously. C₁ = A₁.B₁ .OR. A₁.C₀ .OR. B₁.C₀, C₂ = A₂.B₂ .OR. A₂.C₁ .OR. B₂.C₁ = A₂.B₂ .OR. A₂.A₁.B₁ .OR. A₂.A₁.C₀ .OR. A₂.B₁.C₀ .OR. B₂.A₁.B₁ .OR. B₂.A₁.C₀ .OR. B₂.B₁.C₀, etc. It is easily seen that the number of terms increases geometrically and that 52 product terms will be needed just to calculate the first four carry terms. The functional unit in Fig. 14 uses some additional specialized logic at the output of the sum terms to help in this calculation. This functional unit comprises an AND array 178, generating product terms 179, and an OR array 180 having OR gate input lines 183 programmable connected to the product terms 179 and leading into OR gates 184, in the present case exclusive OR gates. The functional unit also contains latches or flip-flops 186 which can be programmed by a switch 187 to either always pass the outputs from the OR gates to the functional unit outputs 188 or to act as a register in response to clock lines 185. The OR array 180 can be partially populated with programmable links 189, as shown, can be fully populated as in Fig. 1, or can have branched product terms as in Fig. 6. In addition to this AND/OR array, the functional unit also has a specialized unit 182 with dedicated logic. In the unit shown in Fig. 14, the specialized unit 182 aids in performing addition. However in other instances the specialized unit may have dedicated logic for performing some other functions. In the present instance, the specialized unit determines the carry term C n = A n .B n .OR. A n .C n-1 .OR. B n .C n-1 , and thereby allows addition to be done with just four product terms, A n .∼B n , ∼A n .B n , A n-1 and B n-1 . Specialized unit 182 is only used where needed and is programmably linked to the remainder of the AND/OR array by an EPROM switch 190. The programmable logic device architecture of the present invention achieves a large amount of functional flexibility combined with high speed and low cost by providing individually programmable functional units, with a fixed set of wiring forming interconnection matrices which also can be individually programmed. Further, by providing a fast path through the chip many logic functions can be performed without considerable delay. Additional hierarchical levels for the device, as well as dedicated units programmably connectable to Functional unit AND/OR arrays, provide increased functionality. Individual access to functional units and logic state recording facilitates exhaustive testing of the device.

Claims: A programmable logic device comprising, a matrix of functional units (20-28), each functional unit having a set of inputs (29) and a set of outputs (30), each functional unit being individually programmable for carrying out one or more specified logic functions, each functional unit (20-28) being a programmable logic device with an AND array (48) and an OR array (50) connected to the AND array, a first set (31) of conductive lines, each line (31a-31i) of said first set being permanently connected to an output from an OR array (50) of one of said functional units (20-28), a second set (32) of conductive lines, each line (32a-32l) of said second set being permanently connected directly to an input to an AND array (48) of one of said functional units (20-28), wherein said second set of conductive lines cross said first set of conductive lines, areas where said first and second sets of conductive lines cross forming programmable interconnection matrices (33), said matrices including programmable links (66) at the intersections of each conductive line (31a-31i) of the first set (31) with a conductive line (32a-32l) of the second set (32), each of said links (66) being selectively openable and closeable so as to connect any output (30) of any functional unit (20-28) to any input (29) of any functional unit (20-28), a plurality of input pins (34a, 34b), each input pin being connectable to at least one conductive line of said second set (32), and a plurality of output pins (40a, 40b), each output pin being selectively connected to at least one conductive line of said first set (31). The device of claim 1 wherein said functional units (20-28) comprise programmable logic arrays, both said AND arrays (48) and said OR arrays (50) of said functional units being programmable. The device of claim 1 wherein said programmable logic devices further include registers (64) programmably connected between said OR array and said set of outputs. The device of claim 1 wherein said functional units (20-28) and said interconnection matrices (33) are mask programmable. The device of claim 1 wherein said functional units (20-28) and said interconnection matrices (33) are fuse programmable. The device of claim 1 wherein said functional units (20-28) and said interconnection matrices (33) are EPROM switch programmable. The device of claim 1 wherein said functional units (20-28) and said interconnection matrices (33) are EEPROM switch programmable. The device of claim 1 wherein said output pins are indirectly connected to selected conductive lines of said first set (31) via at least one output module (46a, 46b), each output module comprising a programmable logic device with inputs (42a, 42b) connected to said selected conductive lines and with outputs connected to said output pins (40a, 40b), said programmable logic device generating control signals. The device of claim 8 whreein said programmable logic device forming said output module (46a, 46b) generates both data and control signals. The device of claim 1 wherein each of said conductive lines in said first set (31) comprises, a main line (31a) permanently connected to an output (30) of one of said functional units (20-28), and a plurality of branching lines (31a′, 31a″) connected to said main line (31a) by series switches (81a′, 81a″), said branching lines (31a′, 31a″) crossing said second set of conductive lines (32a-32l) within said programmable interconnection matrices (33), said branching lines (31a′, 31a″) being selectively connectable to said second set of conductive lines through programmable links (66). The device of claim 1 wherein each of said conductive lines in said second set (32) comprises, a main line (32a) permanently connected to an input (29) of one of said functional units (20-28), and a plurality of branching lines connected to said main line by series switches, said branching lines crossing said first set of conductive lines within said programmable interconnection matrices, said branching lines being selectively connectable to said first set (31) of conductive lines through programmable links (66). The device of claim 2 wherein each said product lines (56) leading from said AND array (48) branch into a first product line (88) and a second product line (86), one of said first and second product lines (86, 88) being connected to said product line (56) leading from said AND array (48) by a programmable link (84), said first product line (88) being connectable (90) to any of a plurality of OR gate input lines (92) of said programmable OR array (50′), said second product line (86) being connectable (90) to only a subset of said OR gate input lines (92). The device of claim 2 wherein said product lines (56; 179) connect (63; 189) to subsets of OR gate input lines (60; 183) of said programmable OR array (50″; 180). The device of claim 2 further comprising a specialized unit (182) with dedicated logic programmably connected (190) to said programmable OR array (180). The device of claim 1 wherein a subset (34c) of said plurality of input pins (34a-34c) are directly connectable (117) to inputs (116) of a functional unit (122) that is programmable for carrying out a simple logic function, outputs (124) of said functional unit (122) being directly connectable (123) to a subset (126) of said plurality of output pins (40a-40b, 126). The device of claim 1 wherein one of said functional units is a memory unit (130). The device of claim 1 wherein one of said functional units is an arithmetic logic unit (132). The device of claim 1 further comprising a first multiplexer (134) and a second multiplexer (136), said first multiplexer (134) being permanently connected to said first set of conductive lines (31), said second multiplexer (136) being permanently connected to said second set of conductive lines (32), each of said multiplexers (134, 136) being connectable via gates (138, 140) to at least a subset (34a, 40a) of said input (34a-34b) and output (40a-40b) pins, said multiplexers (134, 136) being connected to said conductive lines (31, 32) so as to provide access to said inputs (29) and outputs (30) of a selected functional unit (20-28). The device of claim 1 further comprising means (145, 147, 149) communicating with said conductive lines (21) for monitoring logic states on a first subset of said conductive lines (31) and for transmitting selected logic state information to an output (150) in response to a programmed test condition of said monitored states. The device of claim 19 wherein said monitoring and transmitting means comprises a programmable AND array (145) connected to said first set of conductive lines (31), a random access memory (147) connected to said programmable AND array (145) and a set of pins (149, 150) connected to said random access memory (147) for inputting programming information into and for reading logic state information out of said random access memory (147), said programmable AND array (145) and said random access memory (147) responsive to programmed condition on a first subset of said conductive lines (31, 36a-b) for storing logic state information in said random access memory (147). The device of claim 1 wherein each conductive line (31) of said first set includes a main line (31a) permanently connected to an output (30) of one of said programmable logic devices (20-28) and a plurality of branching lines (31a′, 31a″) connected to said main line (31a) by series switches (81a′, 81a″) and each conductive line (32) of said second set includes a main line (32a) pemanently connected to an input (29) of one of said programmable logic devices (20-28) and a plurality of branching lines connected to said main line (32a) by series switches, said branching lines of said first and second sets of conductive lines (31, 32) crossing at areas forming said programmable interconnection matrices (33), programmable links (66) of said matrices (33) being disposed at the intersections of each branching line of the first set (31) with a branching line of the second set (32). The device of claim 1 wherein said functional units (20-28, 20a-28a), first and second sets of conductive lines (31, 32), programmable interconnection matrices (33), input pins (34a-34d) and output pins (40a-40d) are organized as a pair of distinct first and second subunits (160, 162), said device further comprising a switching matrix (164) disposed between said first and second subunits (160, 162), said switching matrix (164) having central connect lines (166) programmably connected to said at least one input line (36a-36d) and said first set of conductive lines (31) of each said subunit (160, 162), said switching matrix also having two sets of lead lines (168, 169) connectable to said central connect lines (166), each set of lead lines (168, 169) being programmably connectable to at least one output line (42a-42d) and said second set of conductive lines (32) of one said subunit (160, 162).

Inventors: KAPLINSKY CECIL H, KAPLINSKY, CECIL H.
Applicants: XILINX INC, XILINX, INC.
Application year: 1989
Main classification: H03K19
IPC codes: H04Q3, H03K19