1. Technical Field
The present invention relates generally to programmable logic devices, and more particularly to field programmable gate arrays (FPGAs) having a non-programming-based default power-on electronic configuration to shorten the power-up, reconfiguration and/or reset time.
2. Related Art
Programmable logic devices (PLDs) are a well-known type of integrated circuit (IC) that may be programmed by a circuit designer to perform user-specified logic functions. One common type of PLD is a field programmable gate array (FPGA). An FPGA is a general purpose programmable device that is customizable by an end user to realize a desired user-specific circuit. Typically, the FPGA includes fabric elements such as configurable logic blocks (CLBs), input/output blocks (IOBs), and an interconnect that programmably connects the CLBs and IOBs. The function or configuration of the CLBs, IOBs, and interconnect is determined by an externally stored bitstream. The bitstream is a stream of control bits and is generally stored in an external device including non-volatile memory, such as read only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), floppy disk, hard disk file, or network. Either at a power-up “configuration” phase or a “reconfiguration” phase after power-up, the stored bitstream and/or programming bits are loaded in the fabric elements of the FPGA. That is, configuration/reconfiguration can be viewed as a process of loading/reloading the bitstream and/or programming bits into the configuration memory cells which control the programmable interconnect structure, the IOBs, and the CLBs. Therefore, the bitstream and/or programming bits can usually be termed “configuration data.”
The configuration data is loaded into and held in memory cells in the FPGA via an interface circuit. The interface circuit may include a standard serial interface available on present FPGA devices. The memory cells (or configuration memory cells) of the FPGA itself may be implemented using volatile or non-volatile memory technology, such as static random access memory (SRAM) technology, thereby facilitating reconfiguration and providing design flexibility. The SRAM memory cell controls one or more transistors at the configurable points in the FPGA or serves as one or more entries in a lookup table. The configuration memory cells collectively determine what functions the FPGA will implement.
Some commercially available SRAM FPGAs, for example, the FPGA products from Altera Corporation or Xilinx, Inc., have a stream-based interface to the SRAM configuration memory. For some stream based interfaces, in order to make any changes in the configuration, an entire section of the configuration memory must be reloaded. Configuration information may be loaded from a variety of sources, for example, from the memory accessed by a microprocessor, from a non-volatile PROM under control of the FPGA itself (see U.S. Reissue Pat. No. 34,363), or by mapping the FPGA configuration memory into the address space of the microprocessor. Should it become desirable to change or update the configuration of the FPGA, e.g., so as to enable the FPGA to be used with other devices of varying configurations and compatibility standards, the associated external memory is re-programmed with the new configuration design. Upon subsequent boot-up, the FPGA then reads the new configuration design from the associated external memory, and then configures itself accordingly.
In this design and arrangement, FPGAs provide extreme flexibility in implementing an electrical circuit because the logical functions and interconnection of logic elements can be configured without additional fabrication process steps. Accordingly, because of the ease in changing the logical configuration of the logic elements, FPGAs are recognized as a time and resource efficient method for verifying the design of the electrical circuit.
However, there are some drawbacks in the current standard FPGA operation, especially during a power-up or reconfiguration phase. The configuration of the FPGA, which is determined by the externally stored bitstream and/or programming bits, is typically loaded from a non-volatile configuration memory into the SRAM configuration memory cells when power is applied to the FPGA device. Upon power-up or during a reconfiguration time after power-up, the FPGA under the current design first goes into a “disabled” mode for a transient time period. In the “disabled” mode, the functional state of the FPGA is not yet established, i.e., non-functional state, and it is not yet useful. The externally stored bitstream has to be loaded into the FPGA to facilitate later functional operations. However, the transient time period for the external bitstream loading normally consumes up to several seconds. This is relatively a long time in terms of an integrated circuit, which generally measures each instruction time/cycle in ns (10ˆ-9 Seconds) or even ps (10ˆ-12 Seconds). Therefore, a need exists in the FPGA art for a system and method to shorten such a long transient time to speed up the FPGA operation, especially during the FPGA power-up or reconfiguration phase.
The present invention provides a field programmable gate array (FPGA) device and related method wherein a portion or the entire FPGA fabric has a predefined function upon power up by the incorporation of a non-programming-based default power-on electronic configuration so as to allow a faster power-up and/or reconfiguration.
A first aspect of the present invention provides a field programmable gate array (FPGA) device comprising: a non-programming-based default power-on electronic configuration defining a default state to initial a first logic function so that, upon power-up, the FPGA device is enabled to enter the default state without being configured via a programming mode; and a built-in self test (BIST) element configured to perform a power-up self test of the FPGA.
A second aspect of the present invention provides a method of configuring a field programmable gate array (FPGA) device, the method comprising: providing a non-programming-based default power-on electronic configuration defining a default state to initial a first logic function; upon power-up, enabling the FPGA device to enter the default state without being configured via a programming mode; and performing a power-up self test of the FPGA device using a built-in self test (BIST) element.
A third aspect of the present invention provides method of configuring a field programmable gate array (FPGA) with a first logic function having an initialized logic state and a second logic function having an un-initialized logic state, the method comprising: (a) providing an on-chip non-volatile memory capable of partially configuring a configuration memory of the FPGA with the first logic function; (b) providing an on-chip volatile memory capable of programming the configuration memory with the second logic function; (c) identifying a predefined portion of a programmable resource dedicated to the first logic function; (d) reducing a size of the non-volatile memory in correspondence with the predefined portion of the programmable resource dedicated to the first logic function; (e) providing a fixed interconnect structure corresponding to the first logic function; and (f) performing a power-up self test of the FPGA device using a built-in self test (BIST) element.
The foregoing and other features of the invention will be apparent from the following more particular description of embodiments of the invention, as illustrated in the accompanying drawings.
Embodiments of the present invention will hereinafter be described in conjunction with the appended drawings, where like designations denote like elements, and wherein:
With reference to the accompanying drawings,
FPGA device 10 in accordance with the invention comprises a non-programming-based default power-on electronic configuration 40. Such a non-programming-based default power-on electronic configuration 40 could be designed to define a default state to initialize and perform a first predefined logic function. In this setting, upon power-up, FPGA device 10 does not enter a “disabled” mode as a traditionally-designed FPGA device does, and is not initialized to load the externally stored bitstream and/or programming bits (configuration data). Rather, FPGA device 10 according to the present invention is automatically initialized to perform the predefined/pre-designed logic function based on the actual non-programming-based default power-on electronic configuration 40 embedded therein. Such a logic function is designed as a default known state, which can accomplish some useful or specifically desired function. Embodiments of non-programming-based default power-on electronic configuration 40 according to the invention are introduced and explained more thoroughly in
Host system 30 may include a microprocessor 60, a design tool software 70, and an external memory 80 having configuration data 90 stored therein. Host system 30, such as a personal computer or workstation, serves as a data/signal source to provide configuration data 90 if further programming for performing other logic functions is desired. Well known design tool software 70, for example Verilog HDL, operating on a suitable microprocessor 60 within host system 30 creates the configuration data 90 to be stored in external memory 80. Configuration data 90 can be downloaded from host system 30 to FPGA device 10 via interface circuit 20 after power-up, reconfiguration and/or reset. Configuration data 90 embodies the further logic functions desired to be implemented by FPGA device 10 after the first predefined logic function is established. That is, the downloaded configuration data 90 can then allow FPGA device 10 to migrate to a second state or other logic functions.
Interface circuit 20 can also include an optional IC (for example, another on-board FPGA 50) that customizes configuration data 90 received from host system 30 into a format usable by FPGA device 10, although in some embodiments host system 30 microprocessor 60 is used to customize configuration data 90 for FPGA device 10. Since an on-board FPGA 50 is able to customize configuration data 90 at a rate much faster than that of host system 30's microprocessor 60, interface circuit 20 having an on-board FPGA 50 is preferred and would generally provide superior performance.
Each IOB 110 includes a terminal in the sense that IOB 110 provides a location at which a connection is made to FPGA device 10. The location is usually a bonding pad of IOB 110 and the connection to the bonding pad is usually a bonding wire that forms an electrical connection from the bonding pad to an integrated circuit package containing FPGA device 10. CLBs 120 are individually programmable and can be configured, either in a non-programming-based default power-on, firmware or software manner, to perform a variety of logic functions ranging from simple AND gates to more complex functions of a few input signals. Programmable interconnect structure 130 includes PSMs 140 that can be configured to selectively route signals between various CLBs 120 and IOBs 110 and thus produce more complex functions of many input signals. IOBs 110 can be configured to drive output signals from CLBs 120 to external pins (not shown) of FPGA device 10 and/or to receive input signals from the external pins of FPGA device 10. For additional information on the structure of FPGA device 10 in general, including the structure and operation of IOBs 110, CLBs 120, programmable interconnect structure 130 and PSMs 140, see: U.S. Pat. No. 5,705,938 issued Jan. 6, 1998, entitled “PROGRAMMABLE SWITCH FOR FPGA INPUT/OUTPUT SIGNALS.” To facilitate a faster power-up, reconfiguration and/or reset, the present invention builds in a non-programming-based default power-on electronic configuration 40 in FPGA device 10. Because non-programming-based default power-on electronic configuration 40 defines a default known state to initialize a first logic function, it is not necessary to load configuration data 90 into FPGA device 10 for the purpose of establishing a useful functional state upon power-up, reconfiguration and/or reset. The actual function to be performed in the default known state can be designed according to a practical need, which can vary depending on the individual design. For example, the logic function can be designed and implemented to perform either a simple operation or a more sophisticated instruction set. For example, a simple operation can be an “add” function to add a stored data “A” and a stored data “B,” or a “shift” function. It can also be a more sophisticated instruction set that may need several cycles to be accomplished. In a case where only a simple operation is desired for the default logic function, only one or a few IOBs 110, CLBs 120, and/or PSMs 140 would be needed to establish the corresponding functionality. In another case where a more complex instruction set is desired, more IOBs 110, CLBs 120, and/or PSMs 140 might be involved to establish the corresponding functionality. Therefore, no configuration memory cells of CLBs 120 and/or PSMs 140 may be required for non-programming-based default power-on configuration to build up the desired default logic function. The rest of the configuration memory cells in FPGA device 10 can be loaded with configuration data 90 and programmed for further logic functions via design tool software 70 in host system 30. It is noted that “partial programming” or “incremental programming” skill can also be employed in accordance with the present invention. That is, in some cases, the default logic function can be merely a subset of the overall function that the designer would like to be implemented in FPGA device 10. In this case, a subset function may be maintained for the entire power up state, and the other portion of the FPGA fabric of the configuration memory cells would be left for reprogramming by the loading of configuration data 90.
Because the default known state to perform the designed logic function is configured in a non-programming-based default power-on manner, the functional connection will be available when the FPGA device 10 is powered on or reset. This enables FPGA device 10 of the invention to enter the default state without having to be configured via a traditional programming mode or a scan-program mode to establish its initial functionality. That is, a traditional configuration is not required in the present invention to establish its first programming state of FPGA device 10. This would therefore save transient and programming time and allow non-programming-based default power-on function to be delivered with the ASIC device. Embodiments of the non-programming-based default power-on electronic configuration 40 according to the invention are introduced and explained more thoroughly in the following paragraphs.
Returning to
When either left side circuit 186 or right side circuit 188 is loaded, unbalanced latch circuit 180 associated with SRAM cell 150 always comes up in a known state. When left side circuit 186 is loaded, unbalanced latch circuit 180 will power up in a binary ‘1’ state. When right side circuit 188 is loaded, unbalanced latch circuit 180 will power up in a binary ‘0’ state. In this configuration, FPGA device 10 can be designed to power up in the desired state, causing the FPGA to perform a specific default function.
Therefore, a portion of latch portion 190 of FPGA device 10 can be reset with “flush and scan.” Upon power-up, clocks locked on, all the latch elements 192, 194, 196, 198, 200 are set to a known state depending upon whether or not the positive legs 202, 204, 206, 208, 210/negative legs 212, 214, 216, 218, 220 are picked to set states. As VDD 191 is connected to the first latch element 192 of latch portion 190, the signal would automatically “flush and scan” through a series of latch elements 194, 196, 198, 200, etc. That means, after the “flush and scan” begins its path, no clock signal is further needed for triggering the operation of the latch elements in series. As shown in
It is also worth mentioning how the default state and the associated first logic function can be actually realized in the aforementioned various kinds of non-programming-based default power-on electronic configurations embedded in FPGA device 10. In the design phase, the first logic function can be simulated and verified the same as the usual and standard IC design process. Afterwards, the functional simulation must be linked to the physical non-programming-based default power-on configuration such that the functional design as built will have a default value in FPGA device 10. That is, actions have to be taken to link the logical states of zeros/ones default setting to the physical non-programming-based default power-on design of each latch or via connection. A Netlist configuration will be written out to carry out the actions, and then an auto script will program FPGA device 10 to a set configuration (still a virtual copy). A scan of this virtual copy will determine which cells are 0 and 1. From this list, each cell of Graphic Design System II (GDSII) file format will either be replaced with the correct unbalanced latches (if unbalanced latch method is used), or will cause an auto placement of the via (if zero, via is left out, if one then via is added).
GDSII is well known to persons skilled in the IC design and fabrication art. GDSII is essentially a binary file format which is classified as a “data interchange format,” used for transferring mask-design data between the IC designer and the fabrication foundry. GDSII data and files are considered to be a final output the IC design cycle and are passed to IC fabrication foundrys for IC fabrication. At the fabrication foundry, the GDSII data is converted into a machine-readable language called Computer Aided Transcription Software (CATS), which transcribes the data so that it can be read by the photomask systems used in the manufacture of IC semiconductors. The end result of such functional design reflects the virtual default state of the first logic function. However, it is no longer virtual since it is actual GDSII, which is a physical representation of the functional design. When the hardware of the FPGA device 10 is fabricated according to the GDSII data and exits the fabrication foundry, the default function is now built in for initiating the FPGA device 10 upon power-up, reconfiguration and/or reset.
The present invention also provides a method of configuring an FPGA device as shown in
After power-up, if further programming for performing other logic functions is desired, FPGA device 10 may be re-programmed with the desired logic functions by an electronic design automation tool via a software programming mode. As shown in
Step 230: Provide a non-programming-based default power-on electronic configuration in the FPGA device so as to define a default state to initial a first logic function.
Step 232: Upon power-up, enable the FPGA device to enter the default state without having first to be configured via a conventional programming mode.
Step 234: After power-up, re-program the FPGA device with a second logic function by an electronic design automation tool via a software programming mode. Another FPGA configuration method in accordance with the present invention is also provided. The configuration method is to provide an FPGA device 10 having a first logic function and at least another second logic function. FPGA device 10 has an on-chip non-volatile memory and an on-chip volatile memory, which both comprise a configuration memory/memory cells capable of being partially and/or fully configured, programmed and/or re-programmed to achieve their intended logic functions and purposes. The on-chip non-volatile memory can be, for example, a programmable read only memory (PROM), a mask-PROM, an erasable PROM (EPROM), a UV-erase EPROM, a one-time PROM, an electrically erasable PROM (EEPROM), or a flash memory. The on-chip volatile memory can be, for example, SRAM or dynamic random access memory (DRAM) though SRAM is preferred in accordance with the present invention.
The first logic function has an initialized logic state by a non-programming-based default power-on state so that FPGA device 10 is enabled to enter the default initialized logic state without having first to be configured via a conventional programming mode. A second logic function may replace the default logic function, using conventional configuration means. Due to the limited total memory capacity/space in FPGA device 10, a simpler default initialized logic state and function is preferred because it may take fewer memory cells for non-programming-based default power-on, saving configuration memory for further reconfiguration. In order to establish the first logic function to initiate FPGA device 10 upon power-up, a non-programming-based default power-on configuration is built into FPGA device 10 by dedicating a predefined portion of a programmable resource associated with the non-volatile memory to the first logic function. Moreover, due to the limited total memory capacity/space in FPGA device 10, it is preferred to reduce the size of the non-volatile memory in correspondence with the portion of the programmable resource dedicated to the first logic function. That is, the size of the non-volatile memory dedicated to the first logic function is reduced to the extent that enough configuration memory space is left for programming the second logic function after the FPGA is powered up. Then a fixed interconnect structure including IOBs 110, CLBs 120, programmable interconnect structure 130 and PSMs 140 can be properly provided just to realize the corresponding first (default) logic function.
Step 240: Provide an on-chip non-volatile memory capable of configuring a configuration memory of the FPGA with the (first) power-on logic function.
Step 242: Provide an on-chip volatile memory capable of programming the configuration memory with the second logic function.
Step 244: Identify a predefined portion of a programmable resource dedicated to the first logic function.
Step 246: Reduce the size of the non-volatile memory in correspondence with the predefined portion of the programmable resource dedicated to the first logic function because it is no longer necessary.
Step 248: Provide a fixed interconnect structure corresponding to the first logic function.
The above-described invention, as seen in the previous examples and figures, provides a non-programming-based default power-on electronic configuration in FPGA device 10 to achieve several advantages over the existing art. For example, the non-programming-based default power-on electronic configuration is designed to define a default state to automatically initial and perform a first predefined logic function. Upon power-up, FPGA device 10 neither goes into a “disabled” mode nor loads the externally-stored configuration data in the first instance. In this setting, it would save processing time during power-up and improve the overall performance of FPGA device 10. Moreover, after a fast power-up, the present invention still allows FPGA device 10 to perform further functional programming in a standard FPGA programming manner. This can allow the incremental programming of FPGA device 10 based on the existing non-programming-based default power-on configured logic function by either replacing existing function or adding new functions to previously unused portions of FPGA device 10. That is, the first predefined logic function can be designed to match either the customer functions or the standard part number default functions (for example, GDSII Vias). Furthermore, for memory preservation concern, the default logic function can be made simpler to reduce the used memory cells in non-programming-based default power-on configuration and save the rest for further programming usage.
According to one embodiment, this invention may be applied to implement a built-in power-up self-test engine. For example, at power-up/reset, a portion of FPGA device 10 may be automatically configured to its default power-on state to function as a Built-In Self-Test (BIST) engine. The BIST engine is designed and implemented to use a portion of FPGA device 10, including CLBs 120 and PSMs 140, to test the rest or portions of the rest of FPGA device 10.
It is understood that multiple BIST engines may be implemented to test the entire FPGA device 10. For example, an initial BIST engine may be implemented in one portion of FPGA device 10 to test another portion (test portion) of device 10. If the test portion passes the test, a reset is generated, e.g., through state machine 111B, which may configure this test portion to be a new BIST engine designed to test other portions of device 10 including the portion of the initial BIST engine. When the entire region of FPGA device 10 has been successfully tested and determined as satisfactory, FPGA device 10 may be programmed. As such, the reliability of FPGA device 10 may be improved since this self test may be run at every power-up (or even every reset/reconfiguration). If the test is not successful, the power-up of FPGA device 10 may be suspended with a failure notification communicated to a user.
While this invention has been described in conjunction with the specific embodiment outlined above, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art. Accordingly, the embodiment of the invention as set forth above is intended to be illustrative, not limiting. Various changes may be made without departing from the spirit and scope of the invention as defined in the following claims.
This is a continuation-in-part application of co-pending United States utility patent application, Ser. No. 11/162,997, filed Sep. 30, 2005.
Number | Date | Country | |
---|---|---|---|
Parent | 11162997 | Sep 2005 | US |
Child | 11371833 | Mar 2006 | US |