Background of the Invention
This invention relates generally to programmable logic devices (PLD), and more particularly the invention relates to a PLD having an efficient programmable macrocell structure which allows greater flexibility in operating on functions and thus higher performance and logic capabilities.
U.S. Pat. No. 4,124,899 discloses a programmable array logic circuit in which an array of AND gates is connected to an array of OR gates with inputs to the AND gates being programmable to provide a desired logical output from the OR gates. The outputs from the OR gates can be connected through functionally limited macrocell output circuitry whereby OR outputs can be latched, fed back to the AND array, or connected to I/O pins. Additionally, the I/O pins can be utilized as inputs to the AND array.
More recently, a number of PLD's have been commercially available with both of the AND gate array and OR gate array being programmable, and in which the output macrocell has more versatility in handling data from the gate array, thereby increasing the logic capabilities of the devices. For example, the AMD PAL devices (based on the designs disclosed in U.S. Pat. No. 4,124,899, supra) incorporate multiple clock choices, a flexible output-enable, and feedback selection. The Exel XL8C800 device has dual synchronous and asynchronous logic paths, thereby allowing use of a JK flip-flop while the I/O pin is used as an asynchronous input or output. The ICT PEEL 18CV8 device has an output macro which consists of a D-type flip-flop and two signal selectors which allow twelve possible configurations for the macrocell.
Architectures of most conventional PLD structures that incorporate programmable output functions or I/O macrocells utilize one term that can generate a single sum-of-products function for an input to a register, as feedback to the array, and/or an output to an I/O pin. Other terms, typically product terms, are used to control a variety of I/O macrocell functions such as output-enable or register clock, preset or clear, but the terms are dedicated for a single function. None of the devices allows more than one term, capable of sum-of-products functions, to be programmed to serve multiple functions (i.e. register inputs, register controls, feedback or output). Most of the macrocells have programmable configuration bits which allow combinatorial or sequential functions to be implemented. However, a limiting factor with many of the devices is the inoperability of the entire sum-of-product function when the associated I/O pin of the macrocell is being used as a dedicated input. Some devices, such as the MMI 32VX10, have dual feedbacks that overcome the dedicated input issue, thereby allowing a sequential or combinatorial function to be fed back into the array without negating the use of the I/O pin. However, such devices do not provide output buried configurations within each I/O pin associated macrocell.
Summary of the Invention
An object of the invention is a PLD having increased logic capabilities.
Another object of the invention is a PLD having an output macrocell structure which allows greater flexibility in operating on functions and thus higher performance.
Yet another object of the invention is an input/output macrocell which efficiently provides versatility and high performance.
Still another object of the invention is a PLD having greater access to and from internal nodes.
A feature of the invention is a PLD having multiple-function macrocell input signals.
Another feature of the invention is array feedback capability without negating the use of the I/O pin.
Still another feature of the invention is the provision of register type selection.
Another feature of the invention is variable clocking of the register and latches.
Yet another feature of the invention is the provision of dynamic architectural alterations.
Briefly, a programmable logic device in accordance with the invention has a plurality of inputs utilizing one or more programmable arrays for generating a plurality of programmable sum-of-products logic functions which are organized into term groups of two or more independent terms per I/O macrocell, with each term capable of serving multiple functions as determined by the programing of the I/O macrocell. Each I/O macrocell has the capability to feed back internally to the array of combinatorial or sequential functions, yet maintain its I/O pin for independent input and/or output functions. The macrocell input terms can be utilized to implement two completely independently sum-of-product logic functions, both combinatorial or one combinatorial and one sequential, of which each is capable of being programmably routed as feedback to the array and/or output to an I/O pin.
The PLD comprises a programmable AND array and a programmable OR array in sum-of-products form. Feeding from the OR array are a plurality of programmable macrocells. In a preferred embodiment, each macrocell consists of an input latch/register and a macro block that has four sum terms (Sum A, B, C and D) from the OR array feeding into it. Depending on how the macro block is configured (preferably via user-programmable EEPROM cells), the Sum terms can be used for a variety of functions such as inputs for a D register, a T register, a JK register, preset, reset, asynchronous register clock or direct combinatorial functions. The assignment of these functions per Sum is:
Sum-A=D, T, J, Sum-A
Sum-B=Preset, K, Sum-B
Sum-C=Reset, CLK, Sum-C
Sum-D=Output Enable, CLK
The macrocell allows routing of the registered or combinatorial signals back into the array as feedback and/or to the I/O pin. This flexibility allows two complete sum-of-product functions (either one registered and one combinatorial or both combinatorial) to be implemented within a single macrocell. Because of this capability and dual feedbacks, sum-of-product terms can be completely buried without sacrificing I/O pins for input or output operations. One feedback is provided internally to the array and one feedback is provided from the I/O pin through an input latch and register which can be clocked from external clocks or from a group product term. Multiplex selector means for the clocks includes clock polarity selection.
Control terms in the AND array and in the OR array control various functions within each macrocell including register preset, register clear, change register type, unload register to output, preload register to pin. Two external clocks/input pins are provided, and a macrocell group can use either the external clocks. Further, each individual macrocell can select a polarity of a group clock. External global clocks are provided for high-speed synchronous operation; however, the versatile control functions of the macrocell allow for asynchronous clocking of macro block registers on an individual basis.
The invention and objects and features thereof will be more readily apparent from the following detailed description and appended claims when taken with the drawing.
Brief Description of the Drawing
FIG. 1 is a functional block diagram of a programmable logic device in accordance with one embodiment of the invention.
FIG. 2 is an illustration of pin designations for the device of FIG. 1.
FIGS. 3A and 3B are a more detailed functional block diagram of the macrocell used in the programmable logic device of FIG. 1.
Detailed Description of Illustrative Embodiments
FIG. 1 is a functional block diagram of one embodiment of the invention as embodied in the ICT PEEL1000 programmable logic device. This PLD is a CMOS programmable electrically-erasable logic device which is housed in a 24-pin package having pin designations as shown in FIG. 2. As shown in FIG. 2, the package 10 has 20 I/O pins and two clock/input pins along with V.sub.cc and ground pins. As shown in FIG. 1, the PLD includes a programmable AND array 12 (84 input lines and 84 product terms) and a programmable OR array 14 (80 product terms and 88 sum terms). Each of the 20 I/O pins is connected to a macrocell 16. Four sum terms, A, B, C, D, are connected to a macro block 18 comprising a reconfigurable register, multiplexers, and control logic. Macro block 18 has a feedback path 20 to the programmable AND array 12, and through a programmable tristate selector 22 to an output pin 24. A second feedbaack loop to the programmable AND array 12 is provided through a blocked register latch 26 from the I/O pin. The PEEL1000 divides the macrocells into two groups, A, B, of ten macrocells each.
FIGS. 3A and 3B are is a more detailed functional block diagram of a macrocell 16 in FIG. 1 with FIGS. 3A and 3B interconnected by lines 101, 102, and 103. The macro block 18 includes a reconfigurable register 30 which receives a Sum A input 31 and a Sum B input 32 along with a clock signal 33 from a programmable clock 34. The Sum B input also functions as a preset signal. The Sum C input 36 is applied to a reset/select unit 38, to the clock unit 34, and to a feedback unit 40. The Sum D input 42 is applied as an input to the programmable clock unit 34 and to an input to the control unit 44 to the tristate device 46. A group change register type control signal is applied to the register 30 on line 35.
A global preset 48 is provided through a preset/select unit 50 to register 30, a global reset 52 is connected to the reset/select unit 38. A group preload sum-term is provided at 54 to a preload/unload unit 56 and a group unloaad sum term is provided at 58 through the preload/unload unit 56. The preload/unload unit 56 is connected to register 30 via the broken lines 60 and 61. An output select unit 64 receives the outputs of register 30 along with the Sum A, Sum B, and Sum C input terms, and provides an output through polarity-select unit 66 to the tristate device 46. The Q output of register 30 also is applied to the feedback unit 40. A group clock (clock 1/clock 2) is applied to the clock unit 34 directly and through an inverter 66. The register 26 in the feedback loop to the programmable AND array 12 from the I/O pin 24 receives a clock signal (clock 1, clock 2, group product term) through the multiples selectors 68 and 70. An inverter 69 allows mux 70 to select polarity of the clock signal.
The macrocell can be user-configured through programmable EEPROM cells so that the sum input terms can be used for a variety of functions such as inputs for a D register, a T register, a JK register, preset reset, asynchronous register clock or as direct combinatorial functions. Over 8,000 configurations per macrocell are possible in the PEEL1000 device. The assignment of these functions per sum is shown below:
SUM-A=D, T, J, SUM-A
SUM-B=Preset, K, SUM-B
SUM-C=Reset, CLK, SUM-C
SUM-D=Output Enable, CLK
The macro block allows routing of the registered or combinatorial signals back into the array (feedback) and/or to the I/O pin. This flexibility allows two complete sum-of-product functions (either one registered and one combinatorial or both combinatorial) to be implemented within a single macrocell. Because of this capability and a dual feedbacks, up to 20 product functions can be completely buried without sacrificing I/O pins for input or output operations. Thus, a total of 40 sum-of-product logic functions can be implemented for feedback and output purposes.
As described above, the 20 I/O macrocells are segmented into two groups A, B of 10. Associated with each macrocell group are six control terms (two in the AND array and four in the OR array) that may control various functions within each macrocell. These functions include register preset, register clear, change register, type, unload register to output, preload register from pin. An additional product term clock is available for input register/latch control.
Two external clocks/input pins are provided. Each macrocell group can use either of the external clocks. Each individual macrocell can select the polarity of the group clock. The external global clocks are provided for high-speed synchronous operations. However, the versatile control functions of the macrocell allow for asynchronous clocking of macro block registers on an individual basis.
The configuration of register 30 and control of the other units of the macrocell are determined by the user through 13 configuration bits (C0-C12), eight group configuration bits (G0-G7), a security bis (S1) and a power bit (Z1) which are selectively connected to the macrocell components in accordance with the following table:
While the invention has been described with reference to a specific embodiment, the description is illustrative of the invention and not to be construed as limiting the invention. Various modifications and applications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims.