The present invention provides techniques for combining volatile and non-volatile programmable logic on an integrated circuit (IC), and more particularly, to techniques for providing an IC that has one section of programmable logic configured by off-chip memory and another section of programmable logic configured by on-chip non-volatile memory.
Large field programmable gate arrays (FPGAs) that contain on-chip volatile memory blocks usually require a considerable amount of time to be configured at power-up, because configuration data is loaded onto the chip from an external memory chip. The external memory chip can be, for example, a serial read only memory (SROM).
Small complex programmable logic device (CPLDs) such as Altera's MAX family of CPLDs contain on-chip non-volatile memory. The configuration data is stored in the on-chip non-volatile memory. The configuration data can be loaded quickly from the on-chip non-volatile memory into the programmable logic at power-up. Non-volatile CPLDs are virtually instant-on at power-up and require no external configuration data. However, making a large FPGA have all non-volatile memory can be prohibitive in terms of area and can limit process selection.
Many large volatile FPGAs have a companion CPLD to orchestrate the power-up and configuration process. The CPLD can also encrypt the configuration data before it is transmitted to the FPGA to prevent the configuration data from being intercepted and copied. However, this technique is more complex, because it makes a large FPGA a three-device solution that includes the FPGA, a SROM, and a CPLD.
Therefore, it would be desirable to provide faster techniques for configuring field programmable gate arrays. It would also be desirable to provide users with ways to adequately secure their designs during the configuration process.
The present invention provides techniques for combining volatile and non-volatile programmable logic into one integrated circuit (IC). An IC of the present invention is segregated into two portions. One portion of the IC contains a first block of programmable logic that is configured by bits stored in an on-chip non-volatile memory block. Another portion of the IC contains a second block of programmable logic that is configured by bits stored in an off-chip memory device.
The logic in the non-volatile portion of the IC can be configured and fully functional in a fraction of the time that the logic in the volatile portion can be configured. The logic in the non-volatile portion can configure fast enough and have enough independence to assist in the configuration of the volatile portion of the IC. The non-volatile memory can also provide security features to a user design, such as encryption and decryption.
Other objects, features, and advantages of the present invention will become apparent upon consideration of the following detailed description and the accompanying drawings, in which like reference designations represent like features throughout the figures.
The programmable logic in block 110 is configured by configuration bits stored in non-volatile memory block 112. Configuration bits can be stored in non-volatile memory block 112 by a manufacturer or by a user. Power on reset (POR) configuration block 111 transfers configuration bits from non-volatile memory 112 into memory within logic block 110.
The programmable logic in block 130 is configured by configuration bits stored in an external memory device. The external memory device can be, for example, a FLASH memory device or a serial ROM (SROM) memory device. The configuration bits can be loaded into block 130 from I/O port 103 through multiplexer 118 and in-system configuration (ISC) block 131.
As discussed above, many large FPGA's require considerable configuration time at power-up. On the other hand, small non-volatile CPLDs are virtually instant on at power up and require no external configuration data. However, it requires too much die area to place enough on-chip non-volatile memory on a large FPGA to configure all of the FPGA's programmable logic circuits.
The present invention solves these problems by providing two blocks of programmable logic (110 and 130). The programmable logic in block 110 can be configured quickly during power up by loading configuration data from memory 112. Block 110 preferably contains enough programmable logic to perform certain critical functions that need to be performed during the power up phase before block 130 is configured. Block 130 is configured more slowly by configuration data loaded from an external source.
According to one embodiment, most of the programmable logic on the IC resides in volatile block 130. In this embodiment, non-volatile memory block 112 only needs to be large enough to store configuration data for the programmable logic in block 110. Memory 112 can be relatively small in size, if block 110 is relatively small. This requirement minimizes the die area impact of memory 112 on the IC. Block 130 can, for example, perform all the FPGA functions subsequent to power-up.
Many more implementation possibilities are opened, if memory 112 is smaller in size. For example, a large non-volatile memory block used for an entire FPGA requires the most advanced EEPROM or FLASH process. A small memory block 12 that only supplies configuration data for a small fraction of an FPGA may use memory technologies such as polyfuse arrays and magnetic resistive ROM.
A specific example of functionality that programmable logic block 110 can perform is now discussed. System resets and critical signals need to be controlled before an FPGA is configured and fully functional. A large FPGA may play a central roll in its system. If the FPGA drives critical signals, resets, or buses, it will not be able to actively or correctly drive the signals until it is configured. Inactivity between power-up and configuration could prevent a system from properly powering up. To solve these problems, programmable logic block 110 can control critical signals during power-up.
Block 110 can also control configuration and sequence resets before and after the FPGA is configured. Block 110 has the ability to drive volatile FPGA block resets directly without the use of external IO signals.
As another example, block 110 can be used to secure the configuration data that is transmitted to block 130. Block 110 can be read protected like a CPLD, and can have an internal bypass to in-system configuration (ISC) port 131. Block 110 can perform additional data encryption/decryption that is not accessible to external pins.
For example, logic in block 110 can be configured upon power up to perform a decryption scheme based on an encryption algorithm stored in memory 112. Then, configuration data for block 130 is loaded into block 110 through I/O port 103 and decrypted. Subsequently, the decrypted configuration data is loaded from block 110 into block 130 (e.g., directly or through multiplexer 118).
Block 110 can personalize the encryption scheme for each customer to add to their security and comfort. Thus, a customer can chose any encryption scheme they want. If an encryption algorithm is cracked by a hacker, a customer can easily change the encryption scheme by loading a new algorithm into memory 112. Block 110 can also be used to encrypt or decrypt non-configuration data streams of the customer's choosing.
When the configuration data for an FPGA is not loaded from a dedicated SROM, it typically is loaded from a standard FLASH device or a processor bus. Either solution requires some logic that is active at power-up, before the FPGA is configured. This logic sequences and transfers data from a non-volatile data source to the FPGA configuration pins, (ISC Port). This logic benefits from implementation inside a FPGA, because it can accommodate a wide range of non-volatile storage devices including processors and a wide range of FPGA configuration modes.
Referring to
The regions of circuitry shown in
POR configuration block 111 controls and monitors the power on reset circuits POR1-POR6. As soon as power on reset circuits POR1-POR4 indicate that the power supply voltage has reached an acceptable level in regions 101-104, POR configuration block 111 transfers the configuration data stored in non-volatile memory 112 to non-volatile FPGA block 110.
Thus, POR1-POR4 allow the programmable logic in block 110 to be configured as soon as the power supply in regions 101-104 has reached a predefined level, without waiting for regions 105-106 to power up. This embodiment enables additional speed to the configuration of block 110 during power up.
Once power on reset circuits POR5 and POR6 indicate that the power supply has reached an acceptable level in regions 105-106, in-system configuration data can be loaded from an external source into block 130 through multiplexer 118 and ISC interface 131. POR configuration block 111 or programmable logic in block 110 can control the select input of multiplexer 118.
In the FPGA embodiment shown in
Alternatively, ISC data can be loaded into non-volatile block 110, and then subsequently loaded into block 130. The ISC configuration data can be loaded directly from block 110 to block 130 or through multiplexer 118 and ISC interface 131, as shown by the arrows in
Non-volatile memory 112 does not lose its data pattern when power is removed. Memory 112 can be used, for example, to hold FPGA configuration files and volatile FPGA redundancy information. Memory 112 can be implemented in many ways. For example, memory 112 can be a metal fuse memory, which has one-time programmable memory cells. Other examples of memory 112 include a programmable anti-fuse array, a metal or poly mask programmable array, a flash memory array, an EEPROM memory array, a LASER programmed fuse array, a magnetic resistive memory array (MRAM), and a ferro-electric memory array (FeRAM). The smaller size of memory block 112 increases its density possibilities.
Non-volatile memory 112 can be programmed through the JTAG I/O test port in region 102 or the ISC port in region 103. The non-volatile programmable logic block 110 can also be programmed through the ISC I/O port in region 103, if the I/O port is not controlling block 110 already. Non-volatile block 110 could have access to a small subset of general purpose IOs, all of the ISC IOs, a subset of the internal reset and clock buses, and some general purpose internal routing interconnect lines.
Region 113 includes a Joint Test Action Group (JTAG) IO port and associated circuitry. Circuitry in region 113 decodes the JTAG commands that program non-volatile memory 112 according to well known techniques. Region 103 includes in-system configuration (ISC) IO port and associated circuitry that configures volatile FPGA block 130 at power-up. The ISC IO port can also used for reconfiguring volatile FPGA 130 configuration SRAM. In addition, the ISC IO port and circuitry in region 103 can be used to program non-volatile configuration SRAM in block 130 before a one-time-programmable non-volatile memory program is defined. It is important that a programming solution be available without any pre-condition on the configuration of block 110 or 112.
POR configuration block 111 also controls the IO in region 104 and the configuration and ISC source multiplexers 121 and 122. POR configuration block 111 can load configuration data from memory 112 into the I/O bank in region 104 through multiplexer 122 to configure the IO ports in region 104. Also, volatile ISC block 131 can reconfigure POR4 IO block 104, if POR configuration 111 allows it to.
POR configuration block 111 can give control of the I/O bank in region 104 to non-volatile FPGA 110. Once the programmable logic in block 110 have been configured, the programmable logic determines the control of multiplexer 121. Multiplexer 121 routes signals between I/O ports in region 104 and non-volatile block 110 or volatile block 130. Thus, input and output signals can be routed through I/O ports in region 104 to programmable logic in blocks 110 or 130 by controlling multiplexer 121.
Once a user has defined an application, the user can write additional configuration data into memory 112. For example, a user can store configuration data in memory 112 that is used to operate the FPGA in a diagnostic mode to test various signals.
In an OTP type non-volatile memory, two partitions are need in memory block 112. One partition is used to store the manufacturer's default boot configuration data, and one partition is used to store user configuration data to better meet a user's specific needs. The partitions are shown for memory block 112 in
In the embodiment of
Often FPGA customers have similar, but not identical, requirements for particular types of circuit functions. In these instances, it is desirable to provide an HIP block on an FPGA that some built in programmability. The embodiment shown in
IP logic 335 contains logic circuitry in HIP block 301 that has been hardwired to perform specific functions. Programmable register set 335 provides some programmability to the functions performed by IP logic 335. For example, register set 330 can control multiplexers or counters in IP logic 335 to provide multiple options in terms of the functionality of the logic.
Programmable register-set 330 can be programmed during the user-mode of the FPGA and can have a fixed function upon power-up. Register set 330 can be programmed by user mode configuration data from the User_Mode signal, bits stored in CRAM 312, or from user-mode configuration interface 320. Write logic 322 transmits the user mode configuration data to register set 330 through multiplexer 325. Configuration data from CRAM 312 can also be transferred to register set 330 directly through multiplexer 325.
Upon power up, the Write-Logic 322 is defaulted to cause multiplexer 325 to select CRAM interface 312 by setting CRAM_n_Config to ‘1’ and Write_En to ‘1’. The programmable IC CRAM bits are loaded during the FPGA configuration cycle. Upon entering user-mode, the programmable IC core asserts the User_Mode signal, and the clock signals start to toggle. A synchronous self-timing circuit based on the User_Mode signal assertion can be implemented within Write-Logic 322 to guarantee the CRAM value is sampled into the register-set 330 as the default setting.
Write-Logic 322 can switch multiplexer 325 to select user-mode configuration interface 320 by setting CRAM_n_Config to ‘0’. During the user-mode, the output value of register-set 330 can be altered by write cycles (of the bus protocol scheme) by loading data from user-mode configuration controller 310 through user-mode configuration interface 320 into register set 330. User-mode configuration controller 310 is typically implemented as programmable logic blocks configured according to a configuration data set. Register set 330 is typically implemented as memory-mapped registers.
The register-set 330 output value can be read back through read logic 321 and configuration interface 320 for monitoring, debugging and testing purposes. For testing purposes, user-mode configuration interface 320 allows settings stored in register set 330 to be read back to verify that the settings are correct. By using the configuration interface of this embodiment, the connectivity from CRAM 312 into HIP block 301 can be verified for better test coverage.
Register-set 330 is preferably not asynchronously initialized by CRAM. Such an implementation would be sensitive to a race condition, if register-set 330 supports both asynchronous set and asynchronous reset. To avoid the race condition, extra logic can be added. However, the overall cost of adding such logic would be more expensive compared to the synchronous initialization scheme described above.
There are several advantages to the embodiment of
According to another embodiment of the present invention, programmable HIP block 301 can replace programmable logic block 110 in
The embodiment of
An LE is a programmable logic block that provides for efficient implementation of user defined logic functions. PLD has numerous logic elements that can be configured to implement various combinatorial and sequential functions. The logic elements have access to a programmable interconnect structure. The programmable interconnect structure can be programmed to interconnect the logic elements in almost any desired configuration.
PLD 400 also includes a distributed memory structure including RAM blocks of varying sizes provided throughout the array. The RAM blocks include, for example, 512 bit blocks 404, 4K blocks 406 and a Block 408 providing 512K bits of RAM. These memory blocks can also include shift registers and FIFO buffers.
PLD 400 further includes digital signal processing (DSP) blocks 410 that can implement, for example, multipliers with add or subtract features. I/O elements (IOEs) 412 located, in this example, around the periphery of the device support numerous single-ended and differential I/O standards. It is to be understood that PLD 400 is described herein for illustrative purposes only and that the present invention can be implemented in many different types of PLDs, FPGAs, and the like.
While PLDs of the type shown in
System 500 includes a processing unit 502, a memory unit 504 and an I/O unit 506 interconnected together by one or more buses. According to this exemplary embodiment, a programmable logic device (PLD) 508 is embedded in processing unit 502. PLD 508 can serve many different purposes within the system in
Processing unit 502 can direct data to an appropriate system component for processing or storage, execute a program stored in memory 504 or receive and transmit data via I/O unit 506, or other similar function. Processing unit 502 can be a central processing unit (CPU), microprocessor, floating point coprocessor, graphics coprocessor, hardware controller, microcontroller, programmable logic device programmed for use as a controller, network controller, and the like. Furthermore, in many embodiments, there is often no need for a CPU.
For example, instead of a CPU, one or more PLDs 508 can control the logical operations of the system. In an embodiment, PLD 508 acts as a reconfigurable processor, which can be reprogrammed as needed to handle a particular computing task. Alternately, programmable logic device 508 can itself include an embedded microprocessor. Memory unit 504 can be a random access memory (RAM), read only memory (ROM), fixed or flexible disk media, PC Card flash disk memory, tape, or any other storage means, or any combination of these storage means.
While the present invention has been described herein with reference to particular embodiments thereof, a latitude of modification, various changes, and substitutions are intended in the present invention. In some instances, features of the invention can be employed without a corresponding use of other features, without departing from the scope of the invention as set forth. Therefore, many modifications may be made to adapt a particular configuration or method disclosed, without departing from the essential scope and spirit of the present invention. It is intended that the invention not be limited to the particular embodiments disclosed, but that the invention will include all embodiments and equivalents falling within the scope of the claims.
Number | Name | Date | Kind |
---|---|---|---|
5825202 | Tavana et al. | Oct 1998 | A |
5874834 | New | Feb 1999 | A |
6091262 | New | Jul 2000 | A |
6094065 | Tavana et al. | Jul 2000 | A |
6102963 | Agrawal | Aug 2000 | A |
6145020 | Barnett | Nov 2000 | A |
6212639 | Erickson et al. | Apr 2001 | B1 |
6242945 | New | Jun 2001 | B1 |
6259271 | Couts-Martin et al. | Jul 2001 | B1 |
6260087 | Chang | Jul 2001 | B1 |
6337579 | Mochida | Jan 2002 | B1 |
6441641 | Pang et al. | Aug 2002 | B1 |
6490707 | Baxter | Dec 2002 | B1 |
6515509 | Baxter | Feb 2003 | B1 |
6526563 | Baxter | Feb 2003 | B1 |
6538468 | Moore | Mar 2003 | B1 |
6737884 | Shigemasa et al. | May 2004 | B2 |
6766406 | Gasperini et al. | Jul 2004 | B1 |
6842034 | Chan et al. | Jan 2005 | B1 |
6918027 | Mantey et al. | Jul 2005 | B2 |
7034569 | Balasubramanian et al. | Apr 2006 | B1 |
20040061147 | Fujita et al. | Apr 2004 | A1 |
20050093572 | Sun et al. | May 2005 | A1 |
20050102573 | Sun et al. | May 2005 | A1 |
20050237083 | Bakker et al. | Oct 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20060119384 A1 | Jun 2006 | US |