A programmable logic device (PLD) that provides the capability to observe and control the logic state of buried internal nodes is disclosed. The PLD provides shadow storage units for internal nodes such as logic element registers, memory cells, and I/O registers. A sample/load data path includes bidirectional data buses and shift register that facilitate the sampling of internal nodes for observing their logic states, and loading of internal nodes for controlling their logic states.
|
1. In a programmable logic device (PLD), an input/output (I/O) architecture comprising:
a plurality of I/O cells disposed along a periphery of the PLD and coupled to respective I/O terminals, each I/O cell having an I/O register; and
a plurality of shadow I/O storage units corresponding, and respectively coupled, to said plurality of I/O registers,
wherein, in an observable mode, data is selectively sampled from an I/O register in an I/O cell into a respective shadow I/O storage unit, and made available on an I/O terminal.
0. 33. An integrated circuit comprising:
a memory storage cell;
a shadow cell;
a first transfer device coupled between a first write data port line and the memory storage cell;
a second transfer device coupled between a first read data port line and the memory storage cell;
a third transfer device coupled between a first shadow data line and the shadow cell;
a first device coupled between the memory storage cell and a first node; and
a second device coupled between the first node and a fixed voltage potential, wherein a control electrode of the second device is coupled to the shadow cell.
0. 23. An integrated circuit comprising:
a memory storage cell;
a shadow cell;
a first transfer device coupled between a first write data port line and the memory storage cell;
a second transfer device coupled between a first read data port line and the memory storage cell;
a third transfer device coupled between a first shadow data line and the shadow cell;
a first device coupled between the shadow cell and a first node; and
a second device coupled between the first node and a fixed voltage potential, wherein a control electrode of the second device is coupled to the memory storage cell.
0. 44. A memory cell comprising:
a first storage cell;
a first transfer device coupled between a first data line and the first storage cell;
a second storage cell;
a second transfer device coupled between a second data line and the second storage cell; and
a plurality of devices coupled in series between the first storage cell and a fixed voltage potential, the plurality of devices comprising:
a first device; and
a second device coupled to the first device, wherein a control electrode of the second device is coupled to the second storage cell,
wherein data placed at the second data line cannot be transferred directly to the first storage cell without passing through the second storage cell.
0. 13. A programmable logic device comprising:
a logic element, programmably configurable to implement user-defined combinatorial or registered logic functions; and
a memory block to store data, programmably coupled to the logic element, wherein the memory block comprises a plurality of memory cells, each memory cell comprising:
a memory storage cell to store a first data bit;
a shadow cell to store a second data bit; and
a transfer circuit, wherein when a first control line of the transfer circuit is asserted the second bit is transferred from the shadow cell to the memory storage cell, and when a second control line of the transfer circuit is asserted the first bit is transferred from the memory storage cell to the shadow cell.
5. A method for observing and controlling the logic state of internal nodes of a probable programmable logic device (PLD), said method comprising the steps of:
A. providing a shadow storage unit for each internal node whose logic state is to be observed and controlled;
B. coupling said shadow storage unit to its respective internal node by a selective coupling circuit;
C. providing a data path from PLD input/output terminals to said shadow storage unit; and
D. observing a logic state of an internal node by:
i. transferring a logic state of said internal node into its respective shadow storage unit in a sample mode, and
ii. transferring said logic state from said shadow storage unit to a PLD I/O terminal via said data path in an observe mode.
0. 19. A programmable logic device comprising:
a logic element, programmably configurable to implement user-defined combinatorial or registered logic functions; and
a memory block to store data, programmably coupled to the logic element, wherein the memory block comprises:
a pass device;
a memory storage cell to store data coupled to the pass device;
a transfer circuit coupled to the memory storage cell;
a shadow cell to store data coupled to the transfer circuit; and
a inverter coupled to the shadow cell,
wherein the transfer circuit selectively transfers data from the memory storage cell to the shadow cell or from the shadow cell to the memory storage cell, and
wherein data is transferred from the shadow cell to the memory cell under control of a first control line, and data is transferred from the memory storage cell to the shadow cell under control of a second control line.
4. A programmable logic device (PLD) with observable and controllable internal nodes, said PLD comprising:
a plurality of logic elements coupled by an interconnect network, each logic element comprising a primary register coupled to a shadow storage unit;
a memory array having a plurality of primary memory cells respectively coupled to a corresponding plurality of shadow storage units; and
a plurality of input/output (I/O) cells respectively coupled to a corresponding plurality of I/O terminals, each I/O cell comprising a primary I/O register coupled to a shadow storage unit,
wherein, in an observe mode of operation, data is selectively sampled from said primary register, primary memory cell and primary I/O register into their respective shadow storage units and made available on PLD I/O terminal, and
wherein, in a load mode of operation, data is selectively loaded from shadow storage units into respective primary register, memory cell and I/O register.
0. 10. A method of initializing a memory block in a programmable logic device, the method comprising:
in the memory block, providing a plurality of shadow cells and a corresponding plurality of memory storage cells;
writing data to at least one of the plurality of shadow cells;
storing data in the plurality of shadow cells;
transferring the data stored in the plurality of shadow cells to the corresponding plurality of memory storage cells; and
storing the transferred data in the plurality of memory storage cells,
wherein the transferring of the data is done by a corresponding plurality of transfer circuits, and
wherein each of the plurality of memory storage cells comprises a first inverter and a second inverter, an input of the first inverter coupled to an output of the second inverter, an output of the first inverter coupled to an input of the second inverter, and wherein each shadow cell comprises a third inverter and a fourth inverter, an input of the third inverter coupled to an output of the fourth inverter, an output of the third inverter coupled to an input of the fourth inverter.
0. 7. A method of determining the contents of a memory block in a programmable logic device, the method comprising:
in the memory block, providing a plurality of memory storage cells and a corresponding plurality of shadow cells;
writing data to at least one of the plurality of memory storage cells;
storing data in the plurality of memory storage cells;
transferring the data stored in the plurality of memory storage cells to the corresponding plurality of shadow cells;
storing the transferred data in the plurality of shadow cells; and
reading the data stored in the plurality of shadow cells,
wherein the transferring of the data is done by a corresponding plurality of transfer circuits, and
wherein each of the plurality of memory storage cells comprises a first inverter and a second inverter, an input of the first inverter coupled to an output of the second inverter, an output of the first inverter coupled to an input of the second inverter, and wherein each shadow cell comprises a third inverter and a fourth inverter, an input of the third inverter coupled to an output of the fourth inverter, an output of the third inverter coupled to an input of the fourth inverter.
2. The I/O architecture of
3. The I/O architecture of
6. The method of
F E. controlling a logic state of an internal node by:
i. pre-loading external data from a PLD I/O terminal into a shadow storage unit coupled to said internal node in a pre-load mode; and
ii. applying said external data to said internal node in a load mode.
0. 8. The method of
a first device coupled between a first node and a first reference voltage, having a control node coupled to the input of the first inverter;
a second device coupled between the first node and the input of the third inverter, having a control node coupled to a control line;
a third device coupled between a second node and the first reference voltage, having a control node coupled to the input of the second inverter; and
a fourth device coupled between the second node and the input of the fourth inverter, having a control node coupled to the control line.
0. 9. The method of
0. 11. The method of
a first device coupled between a first node and a first reference voltage, having a control node coupled to the input of the third inverter;
a second device coupled between the first node and the input of the first inverter, having a control node coupled to a control line;
a third device coupled between a second node and the first reference voltage, having a control node coupled to the input of the fourth inverter; and
a fourth device coupled between the second node and the input of the second inverter, having a control node coupled to the control line.
0. 12. The method of
0. 14. The programmable logic device of
a first pass device to write to the memory storage cell;
a first inverter to read from the memory storage cell;
a second pass device to write to the shadow cell; and
a second inverter to read from the shadow cell.
0. 15. The programmable logic device of
0. 16. The programmable logic device of
0. 17. The programmable logic device of
0. 18. The programmable logic device of
a first device coupled between a first node and a first reference voltage, having a control node coupled to the input of the first inverter;
a second device coupled between the first node and the input of the third inverter, having a control node coupled to the second control line;
a third device coupled between a second node and the first reference voltage, having a control node coupled to the input of the second inverter;
a fourth device coupled between the second node and the input of the fourth inverter, having a control node coupled to the second control line;
a fifth device coupled between a third node and a first reference voltage, having a control node coupled to the input of the third inverter;
a sixth device coupled between the third node and the input of the first inverter, having a control node coupled to the first control line;
a seventh device coupled between a fourth node and the first reference voltage, having a control node coupled to the input of the fourth inverter; and
a eighth device coupled between the fourth node and the input of the second inverter, having a control node coupled to the first control line.
0. 20. The programmable logic device of
0. 21. The programmable logic device of
0. 22. The programmable logic device of
a first device coupled between a first node and a first reference voltage, having a control node coupled to the input of the first inverter;
a second device coupled between the first node and the input of the third inverter, having a control node coupled to the second control line;
a third device coupled between a second node and the first reference voltage, having a control node coupled to the input of the second inverter;
a fourth device coupled between the second node and input of the fourth inverter, having a control node coupled to the second control line;
a fifth device coupled between a third node and a first reference voltage, having a control node coupled to the input of the third inverter;
a sixth device coupled between the third node and the input of the first inverter, having a control node coupled to the first control line;
a seventh device coupled between a fourth node and the first reference voltage, having a control node coupled to the input of the fourth inverter; and
a eighth device coupled between the fourth node and the input of the second inverter, having a control node coupled to the first control line.
0. 24. The integrated circuit of
a fourth transfer device coupled between the first shadow data line and the shadow cell.
0. 25. The integrated circuit of
0. 26. The integrated circuit of
0. 27. The integrated circuit of
0. 28. The integrated circuit of
0. 29. The integrated circuit of
a third device coupled between the memory storage cell and a second node; and
a fourth device coupled between the second node and the fixed voltage potential, wherein a control electrode of the fourth device is coupled to the shadow cell.
0. 30. The integrated circuit of
0. 31. The integrated circuit of
0. 32. The integrated circuit of
0. 34. The integrated circuit of
a fourth transfer device coupled between the first shadow data line and the shadow cell.
0. 35. The integrated circuit of
0. 36. The integrated circuit of
0. 37. The integrated circuit of
0. 38. The integrated circuit of
0. 39. The integrated circuit of
a third device coupled between the shadow cell and a second node; and
a fourth device coupled between the second node and the fixed voltage potential, wherein a control electrode of the fourth transistor is coupled to the memory storage cell.
0. 40. The integrated circuit of
0. 41. The integrated circuit of
0. 42. The integrated circuit of
0. 43. The memory cell of
0. 45. The memory cell of
0. 46. The memory cell of
0. 47. The memory cell of
0. 48. The memory cell of
0. 49. The memory cell of
0. 50. The memory cell of
0. 51. The memory cell of
0. 52. The memory cell of
|
This application is a Reissue of Ser. No. 09/441,143 filed Nov. 12, 1999, U.S. Pat. No. 6,243,304 B1, which was a Div of Ser. No. 09/012,667 filed Jan. 23, 1998, U.S. Pat. No. 6,014,334, and a div of application Ser. No. 08/615,342 filed Mar. 11, 1996, U.S. Pat. No. 5,764,079.
The present invention is related to commonly assigned, U.S. Pat. No. 6,020,758, entitled “Partially Reconfigurable Programmable Logic Device,” by Patel et al., which is hereby incorporated by reference in its entirety for all purposes.
The present invention relates in general to programmable logic circuits, and in particular to a circuit and methodology that allow the user to observe the state of internal nodes within the programmable logic circuit.
A growing trend in the field of electronic circuits and systems design is the use of prototyping or emulation systems that are built with programmable logic devices (PLDs). Such emulation systems help in debugging complex designs with quick turn-around which ensure successful time-to-market for the final product. Programmable logic devices, including programmable logic arrays (PLAs) and field programmable gate arrays (FPGAs) are particularly suited for such debug systems since they provide the flexibility required by design adjustments resulting from design errors or enhancements. Furthermore, such hardware prototyping solutions are often fast enough to operate in the context of the rest of the system. This gives the system designers a high degree of confidence.
A drawback of existing PLD-based emulation or prototyping systems, however, is that the internal state of the programmable logic devices are inaccessible and buried inside the device. This limits the troubleshooting and debugging capabilities of the system. Software based emulation systems provide for complete observability of all nodes within the system, but at the cost of running from 100 to 1 million times slower than the rest of the system.
There is therefore a need for programmable logic devices that can operate at full system speed while simultaneously providing access to observe the state of internal nodes of the device.
The present invention provides various embodiments for a programmable logic device (PLD) that allows complete observability of the states of internal nodes. Among the various internal nodes, the PLD of this invention provides observability and controllability of, for example, the state of a flip-flop inside each logic element, the state of memory bits, as well as the state of input/output (I/O) pins.
Accordingly, in one embodiment, the present invention provides a programmable logic device including a plurality of logic array blocks each having a plurality of logic elements, and a network of interconnect lines interconnecting the plurality of logic array blocks. Each logic element includes a primary register coupled to a shadow storage unit. Data buses couple a shift register to the plurality of logic array blocks. The shift register also couples to an I/O pin. In a sample mode of operation, the contents of selected primary registers are sampled into the corresponding shadow storage units, and made available on the I/O pin via the shift register. In a load mode of operation, the contents of selected shadow storage units are loaded into the corresponding primary registers.
In another embodiment, the PLD further includes memory blocks having random access memory cells. The memory cells within the memory block are made observable by a similar arrangement whereby each memory cell is provided with and coupled to a shadow storage unit.
In yet another embodiment, I/O cells around the periphery of the PLD are provided with dedicated shadow storage units as well. In a specific embodiment of the present invention, the JTAG boundary scan chain of latches are used as the shadow storage units to provide observability of the I/O cells.
A better understanding of the nature and advantages of the PLD of the present invention may be gained by reference to the detailed description and diagrams below.
Referring to
Each logic element 100 includes a primary register Q 106 coupled to a shadow storage unit SSU 108. Shadow storage units 108 in the logic elements in a row connect to a bidirectional data line 110. Each row of logic elements 100 thus has a dedicated bidirectional data line 110. Data lines 110 connect to the shift register 104. Given n data lines per column of LABs, shift register 104 would be an n-bit long shift register.
Depending on the PLD programming architecture, data lines 110 either need to be added or can share already existing programming data lines. For example, in those PLDs that provide for address wide access to the LABs, dedicated data lines are already provided for programming and can thus be utilized in the sample/observe mode as well. In those PLDs whose programming is based on a first-in first-out (FIFO) architecture, however, dedicated data lines are not provided and thus data lines 110 must be added for observability. The two different exemplary programming architectures are described in greater detail in the above-referenced related co-pending, commonly-assigned patent application Ser. No. 08/615,341.
A sample line 112, load line 114, observe line 116, and pre-load line 118 connect to all logic elements 100 in each LAB 102. When a transition (e.g. rising edge) occurs for the signal on the sample line 112, the contents of primary registers Q 106 in the logic elements 100 in the selected LAB 102 are sampled into their respective SSUs 108. This data is then transferred to the respective bidirectional data line 110 in response to a signal on the observe line 116, and down loaded into the shift register 104. The down loaded data is then clocked out of the shift register 104 and supplied to dedicated diagnostics I/O pins (not shown) for user observability.
For diagnostics purposes, at times it may be desirable to initialize portions of the configuration logic or restore sampled data. The PLD of the present invention provides for a diagnostics load operation. The load operation performs essentially the reverse of the sample/observe operation discussed above. The data to be loaded is first shifted into the shift register 104 through the diagnostics I/O ports (not shown). SSUs 108 are then pre-loaded with the desired data via data lines 110 in response to a signal on the pre-load line 118. Upon a transition (e.g., rising edge) of the signal on the load line 114, the primary register 106 of a selected LAB 102 is then loaded with the data.
Thus, all logic element state information is sampled simultaneously, and clocked out over the course of several, for example, microseconds. Similarly, all logic element state information is set (or loaded) simultaneously, even though the data which is being injected is loaded into the device over the course of, for example, several microseconds. The use of SSUs 108 allow the sampling of the logic element register states while the system is still running in normal operation. That is, the user can observe the state of the logic element registers at any time during the normal operation of the system without disturbing the design functionality.
When loading data into the logic element, the pre-load line is asserted causing pass transistor 208 to couple the data on the bidirectional data line to the input of latch 200. A multiplexer (MUX) 210 receives the output of latch 200 and a data-in (Din) line at its inputs. In normal programming mode, MUX 210 connects the Din line to the input of the register 106. When performing a diagnostic load operation into the logic element, the load signal is asserted causing MUX 210 to couple the output of latch 200 to the input of register 106. Data is preferably loaded into the slave latch of the master/slave register 106.
Certain types of PLDs may include blocks of memory for specialized applications. Such a PLD with an array of LABs may typically include separate blocks of memory, one for each row of LABs. For diagnostics purposes, it would also be desirable to be able to observe the contents of the memory blocks.
A separate address shift register 416 performs address decoding for row-wide sample and load operations. A logic “1” is shifted through shift register 416 to select the various rows of the memory block 400. A pre-load logic block 418 connects to shift register 416 to facilitate random selection of a row of memory. A multiplexer MUX 418 is provided for each row of memory to connect an output of shift register 416 to one of either the pre-load or the observe lines for each row of memory. MUX 418 is controlled by an OBS/PLD_SEL signal. In this example, therefore, the contents of the memory cells are observable and controllable on a row-wide basis. A memory select line 408 selects each memory block 400.
Shadow latch 506 couples to primary memory cell 500 by a data transfer circuit 512. Data transfer circuit is made up of transistors 514, 516, 518, 520, and 522, 524, 526, 528, that couple the storage nodes inside shadow latch 506 to the storage nodes inside primary memory cell 500. Transistors 514 and 518 receive the load signal on a load line 530 at their gate terminals, and transistors 524 and 528 receive the sample signal in a sample line 532 at their gate terminals. When the load signal is asserted, data transfer circuit 512 causes the contents of shadow latch 506 to be loaded into primary memory cell 500. When the sample signal is asserted, data transfer circuit 512 causes the contents of primary memory cell 500 to be transferred to shadow latch 506.
Registers inside I/O cells are another group of internal nodes in a PLD that are typically inaccessible to the user for diagnostics purposes. The present invention provides for a similar observability and controllability technique for the state of registers inside I/O cells.
Thus, the present invention offers the circuitry and methodology to provide the user with access to internal nodes buried inside a PLD. When the PLDs according to the present invention are used in prototyping or emulation systems, the observability and controllability allow the user to more effectively debug and troubleshoot the emulated design. While the above provides a complete description of various embodiments of the present invention, it is possible to use various alternatives, modifications and equivalents. For example, complete observability can be made available by type of circuit block. That is, the circuit can be designed with decoding logic to make only sub-blocks from the LABs observable. Similarly, the PLD can provide access to only selected memory blocks or selected logic elements at any given time. Thus the PLD can provide a variety of sampling options to the user.
Other embodiments of this invention may provide redundancy circuitry with built-in shadow latches for observability and controllability. For example, the PLD may include a redundant column of LABs that is identical in structure to the column of LABs shown in FIG. 1. Thus, in case of a defective LAB, a redundant column of LABs is switched in place of the column of LAB with the defective LAB, maintaining complete observability and controllability. Therefore, the scope of this invention should be determined not with reference to the above description, but should instead be determined by reference to the appended claims along with their full scope of equivalents.
Patel, Rakesh H., Norman, Kevin A.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
4864579, | Aug 04 1986 | Mitsubishi Denki Kabushiki Kaisha | Semiconductor integrated circuit device |
5497475, | Feb 05 1993 | Fairchild Semiconductor Corporation | Configurable integrated circuit having true and shadow EPROM registers |
5550771, | Jun 03 1994 | Kabushiki Kaisha Toshiba | Programmable semiconductor integrated circuit |
5568380, | Aug 30 1993 | International Business Machines Corporation | Shadow register file for instruction rollback |
5581198, | Feb 24 1995 | XILINX, Inc.; Xilinx, Inc | Shadow DRAM for programmable logic devices |
5764079, | Mar 11 1996 | ALTERA CORPORATION, A DELAWARE CORPORATION | Sample and load scheme for observability of internal nodes in a PLD |
5805503, | Jul 02 1992 | Atmel Corporation | Non-disruptive randomly addressable memory system |
5870410, | Apr 28 1997 | Cadence Design Systems, INC | Diagnostic interface system for programmable logic system development |
6014334, | Jan 23 1998 | Altera Corporation | Sample and load scheme for observability of internal nodes in a PLD |
6243304, | Mar 11 1996 | Altera Corporation | Sample and load scheme for observability internal nodes in a PLD |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 05 2003 | Altera Corporation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Oct 04 2012 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Sep 01 2012 | 4 years fee payment window open |
Mar 01 2013 | 6 months grace period start (w surcharge) |
Sep 01 2013 | patent expiry (for year 4) |
Sep 01 2015 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 01 2016 | 8 years fee payment window open |
Mar 01 2017 | 6 months grace period start (w surcharge) |
Sep 01 2017 | patent expiry (for year 8) |
Sep 01 2019 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 01 2020 | 12 years fee payment window open |
Mar 01 2021 | 6 months grace period start (w surcharge) |
Sep 01 2021 | patent expiry (for year 12) |
Sep 01 2023 | 2 years to revive unintentionally abandoned end. (for year 12) |