1. Field of the Invention
The present invention relates to scan chains in field programmable gate arrays, and more specifically to making scan chains available to the end user.
2. Background of the Invention
A field-programmable gate array (FPGA) is an integrated circuit (IC) that includes a two-dimensional array of general-purpose logic circuits, called cells or logic blocks, whose functions are programmable. The cells are linked to one another by programmable buses. The cell types may be small multifunction circuits (or configurable functional blocks or groups) capable of realizing all Boolean functions of a few variables. The cell types are not restricted to gates. For example, configurable functional groups typically include memory cells and connection transistors that may be used to configure logic functions such as addition, subtraction, etc., inside of the FPGA. A cell may also contain one or two registers or flip flops. Two types of logic cells found in FPGAs are those based on multiplexers and those based on programmable read only memory (PROM) table-lookup memories. Erasable FPGAs can be reprogrammed many times. This technology is especially convenient when developing and debugging a prototype design for a new product and for small-scale manufacture.
FPGAs typically include a physical template that includes an array of circuits, sets of uncommitted routing interconnects, and sets of user programmable switches associated with both the circuits and the routing interconnects. When these switches are properly programmed (set to on or off states), the template or the underlying circuit and interconnect of the FPGA is customized or configured to perform specific customized functions. By reprogramming the on-off states of these switches, an FPGA can perform many different functions. Once a specific configuration of an FPGA has been decided upon, it can be configured to perform that one specific function.
The user programmable switches in an FPGA can be implemented in various technologies, such as ONO antifuse, M—M antifuse, SRAM memory cell, Flash EPROM memory cell, and EEPROM memory cell. FPGAs that employ fuses or antifuses as switches can be programmed only once. A memory cell controlled switch implementation of an FPGA can be reprogrammed repeatedly. In this scenario, an NMOS transistor is typically used as the switch to either connect or disconnect two selected points (A, B) in the circuit. The NMOS' source and drain nodes are connected to points A, B respectively, and its gate node is directly or indirectly connected to the memory cell. By setting the state of the memory cell to either logical “1” or “0”, the switch can be turned on or off and thus point A and B are either connected or disconnected. Thus, the ability to program these switches provides for a very flexible device.
FPGAs can store the program that determines the circuit to be implemented in a RAM or PROM on the FPGA chip. The pattern of the data in this configuration memory CM determines the cells' functions and their interconnection wiring. Each bit of CM controls a transistor switch in the target circuit that can select some cell function or make (or break) some connection. By replacing the contents of CM, designers can make design changes or correct design errors. The CM can be downloaded from an external source or stored on-chip. This type of FPGA can be reprogrammed repeatedly, which significantly reduces development and manufacturing costs.
In general, an FPGA is one type of programmable logic device (PLD), i.e., a device that contains many gates or other general-purpose cells whose interconnections can be configured or “programmed” to implement any desired combinational or sequential function. As its name implies, an FPGA is “field-programmable”, meaning that the device is generally programmed by designers or end users “in the field” via small, low-cost programming units. This is in contrast to mask programmable devices which require special steps in the IC chip-manufacturing process.
A field-programming unit typically uses design software to program the FPGA. The design software compiles a specific user design, i.e., a specific configuration of the programmable switches desired by the end-user, into FPGA configuration data. The design software assembles the configuration data into a bit stream, i.e., a stream of ones and zeros, that is fed into the FPGA and used to program the configuration memories for the programmable switches. The bit stream creates the pattern of the data in the configuration memory CM that determines whether each memory cell stores a “1” or a “0”. The stored bit in each CM controls whether its associated transistor switch is turned on or off. End users typically use design software to test different designs and run simulations for FPGAs.
Designers of FPGAs (as well as other PLDs) often provide their circuit designs to IC manufacturers who typically manufacture the FPGAs in two different ways. First, an FPGA design may be manufactured as its own chip with no other devices being included in the IC package. Second, an FPGA design may be embedded into a larger IC. An example of such a larger IC is a system on a chip (SOC) that includes the embedded FPGA as well as several other components. The several other components may include, for example, a microprocessor, memory, arithmetic logic unit (ALU), state machine, etc. In this scenario the embedded FPGA may be only a small part of the whole SOC.
Whether a FPGA is to be manufactured as its own IC or embedded into a larger IC (e.g. a SOC), the intended application/use of the IC will determine the size and complexity of the FPGA that is needed. Because conventional FPGAs are typically designed for their intended application/use, an FPGA designed to fulfill a need for a small FPGA must be substantially redesigned for use where a larger FPGA is needed.
A FPGA array logic structure may also contain scan chains which are implemented by the FPGA manufacturer for manufacturing tests. These tests are performed to test the circuitry in the FPGA logic structure. More specifically, the scan chains implement a full scan of all the registers in the FPGA array. In the past, if the FPGA user had a requirement to implement a scan on his application circuit, he would insert an additional scan chain that uses the FPGA logic resources to create the scan chain. This would require an additional three input function. For example, a simple multiplexer would be implemented in front of every register. This leads to a significant area and performance impact.
Hence, there is a need for a device and method which will provide access for the user to the scan chain previously available only to the manufacturer. Therefore, it would be highly advantageous to the user to have a means of access to the scan chains previously available only to the manufacturer. This would enable the user to implement a scan on his application circuit and thus, a full scan of all the registers in the FPGA logic structure.
The present invention provides a method and apparatus for accessing the scan chains within a FPGA. An FPGA contains basic building blocks called functional groups (FGs) which are made up of look-up tables (LUTS) and registers. Scan chains, invisible to the end user, are available only to the manufacturer to test the registers within a functional group.
The present invention provides a method of accessing the testing means in a FPGA comprised of a plurality of functional groups by inputting a function netlist, then compiling the function netlist and finally, generating a Built-In Self Test (“BIST”) netlist. The BIST netlist overlays the users circuit with the FPGA scan chains and thus providing access to scan chains. The BIST syndrome is then calculated, generating actual values. The expected values are then compared with the actual values.
The apparatus of the present invention accesses the testing resources in a programmed FPGA employing internal scan chains by generating a BIST netlist, extracting one or more scan chains from the BIST netlist and predicting an expected syndrome value. The apparatus of the present invention then uses the scan chain to FPGA and obtains actual syndrome values. Finally, the apparatus of the present invention allows the user to compare the expected syndrome values with the actual syndrome values to determine whether the circuit is functioning correctly.
A better understanding of the features and advantages of the present invention will be obtained by reference to the following detailed description of the invention and accompanying drawings which set forth an illustrative embodiment in which the principles of the invention are utilized.
a is a schematic diagram of a user circuit in a FPGA functional group.
b is a schematic diagram of a user circuit in a FPGA functional group with the scan chain superimposed.
Referring to
One feature of the FPGA tile 20 that makes it such a flexible and adaptable device is that it is “tileable”. As used herein, the term “tileable” means that the FPGA tile 20 can be combined with other FPGA tiles to form a larger FPGA. For example,
In accordance with the present invention, FPGA tiles 20 may be combined to form a larger FPGA that is to be manufactured as its own IC or that is to be embedded into a larger IC. For example, with respect to the later scenario, the FPGAs 22, 24 may be embedded into SOCs.
Also illustrated in
The FPGA tiles that are combined may be identical (as are the tiles in the FPGAs 22, 24, 26), or of different sizes and designs in accordance with the present invention. An advantage of using identical FPGA tiles is that it provides an economical solution for providing FPGAs having sizes that are appropriate for the intended uses/applications. Such a solution is economical because only one FPGA tile needs to be designed, and then the necessary number of tiles are combined to form an FPGA. Additionally, it should be understood that an “FPGA tile” is considered herein to be an FPGA. In other words, a single FPGA tile 20 can be used by itself to form an FPGA.
Referring to
Still referring to
BIST interface 90 and 92 uses a multiplexed scan system. The multiplexed scan system has minimal implementation cost because of the silicon area overhead of inserting a multiplexer is small compared to other scan methods. It should be well understood, however, that the multiplexed scan system is just one exemplary version of a scan system and that various versions of scan type systems may be used.
a illustrates a possible user circuit 140. A typical user design does not use all registers. However, the internal scan chain 46, as illustrated in
To overcome the problem caused by the difference in the user circuit verses the actual circuit, the present invention inserts dummy registers that do not perform as part of the user circuit into the netlist so that the netlist is equivalent to the silicon routed scan chain.
Next, a Built-in Self Test (“BIST”) netlist is generated 212. The BIST netlist overlays the device scan chains on top of the user function. As stated previously, the user circuit does not always use all registers in a functional group or unit. Thus, the BIST netlist replaces all user registers with scan registers with the scan chain routed as the physical silicon scan chains. Following the generation of the BIST netlist, the scan chain is extracted from the BIST netlist and expected syndrome values are predicted at step 214.
Next, at step 216 the scan chain is applied to the FPGA and actual syndrome values are obtained. Once the expected syndrome values are obtained the expected syndrome values are compared with the actual syndrome values 218. If the values are equal, the circuit is functioning correctly 220 and no further testing is necessary. If, however, the values are not equal, the circuit is not functioning correctly 222 and further diagnostics must be conducted.
It should be understood that various alternatives to the embodiments of the disclosed method and apparatus descried herein maybe employed in practicing the disclosed method and using the disclosed apparatus. It is intended that the following claims define the scope of the disclosed method and apparatus and that methods and structures within the scope of these claims and their equivalents be covered thereby.
This application is a continuation-in-part of patent application Ser. No. 09/654,240, filed Sep. 2, 2000, now U.S. Pat. No. 6,476,636 entitled “Tileable Field-Programmable Gate Array Architecture”, by Jung-Cheun Lien.
Number | Name | Date | Kind |
---|---|---|---|
5469003 | Kean | Nov 1995 | A |
5483178 | Costello et al. | Jan 1996 | A |
5485103 | Pedersen et al. | Jan 1996 | A |
5491353 | Kean | Feb 1996 | A |
5504439 | Tavana | Apr 1996 | A |
5521529 | Agrawal et al. | May 1996 | A |
5528176 | Kean | Jun 1996 | A |
5537057 | Leong et al. | Jul 1996 | A |
5541530 | Cliff et al. | Jul 1996 | A |
5570041 | El-Avat et al. | Oct 1996 | A |
5572712 | Jamal | Nov 1996 | A |
5598109 | Leong et al. | Jan 1997 | A |
5606266 | Pedersen | Feb 1997 | A |
5606267 | El Ayat et al. | Feb 1997 | A |
5614840 | McClintock et al. | Mar 1997 | A |
5617042 | Agrawal | Apr 1997 | A |
5668771 | Cliff et al. | Sep 1997 | A |
5671432 | Bertolet et al. | Sep 1997 | A |
5682107 | Tavana et al. | Oct 1997 | A |
5689195 | Cliff et al. | Nov 1997 | A |
5761099 | Pedersen | Jun 1998 | A |
5764583 | Cliff et al. | Jun 1998 | A |
5828229 | Cliff et al. | Oct 1998 | A |
5878051 | Sharma et al. | Mar 1999 | A |
5977793 | Reddy et al. | Nov 1999 | A |
6181162 | Lytle et al. | Jan 2001 | B1 |
6211697 | Lien et al. | Apr 2001 | B1 |
6301688 | Roy | Oct 2001 | B1 |
6463560 | Bhawmik et al. | Oct 2002 | B1 |
6550030 | Abramovici et al. | Apr 2003 | B1 |
6631487 | Abramovici et al. | Oct 2003 | B1 |
6681354 | Gupta | Jan 2004 | B2 |
Number | Date | Country |
---|---|---|
0 415 542 | Mar 1991 | EP |
Number | Date | Country | |
---|---|---|---|
Parent | 09654240 | Sep 2000 | US |
Child | 10071262 | US |