1. Technical Field of the Invention
The present invention relates to a field programmable device (FPD) and in particular but not exclusively to Field Programmable Gate Arrays (FPGA).
2. Description of Related Art
Programmable gate arrays (PGA) have dramatically changed the process of designing digital hardware over the last few years. Unlike previous generations of digital electronic technology, where board level designs included large numbers of integrated circuits containing basic gates, virtually every digital design produced today consists mostly of high density integrated circuit devices. This is applied not only to custom devices such as processing units and memory, but also to solid state machines such as controllers, counters, registers and decoders.
When such circuits are destined for high volume systems, they have been integrated into high density gate arrays. However, for prototyping or other low volume situations, many product designs are built using field programmable devices (FPD), one variant of which are field programmable gate arrays (FPGA). A field programmable device such as the FPGA is at its most basic level a series of configurable logic blocks (CLB), interconnected by a series of configurable connections or links, and read from and written to by a configurable input/output device.
The effectiveness of a field programmable device is the ability of the device to represent a required digital design, and be capable of being altered without the need for complete replacement. This ability is dependent on several factors such as device speed, and the complexity of design capable of being simulated. The complexity of the design is itself dependent on the complexity of the interconnections between the configurable logic blocks, and the number of the configurable logic blocks. The greater the number of blocks and the more complex the interconnection environment, the more complex the design that can be realized.
Interconnects are generally programmed, in the case of memory based FPDs, by a series of switching matrices controlled by memory latches. The memory latches create closed or open circuits between pairs of conducting lines. These configuration latches are supplied configuration data from a series of configuration registers and are enabled by an address register in a manner similar to the addressing and writing to a typical memory cell. The address and configuration data are passed to the configuration latches by a series of configuration and address lines.
In order to test that the configuration has been carried out successfully, a verification step is typically introduced after configuration and prior to using the device in an active mode. This verification step involves using a series of test input signals, or test vectors, and monitoring the output of the FPD. The output of the simulated circuit is checked against the test vector input to enable the verification step to determine if a configuration error has occurred and if enough test vectors are entered, the verification step may determine which region or which configuration latch has failed.
This verification step therefore increases the time spent in the configuration mode. Also should any errors be detected the device has to restart the whole configuration cycle again. Solutions for detecting an error in data stored in configuration SRAM and user assignable SRAM in a FPGA have been proposed. U.S. Pat. No. 6,237,124 describes such a method. This method, though, describes separate write and read phases. The write phase describes a method for writing to configuration SRAM and also using the same data into Cyclic Redundancy Check (CRC) circuitry. The read phase describes when data is read from the configuration SRAM and fed into the same CRC circuitry, then comparing the CRC values to determine if there is a fault. This method therefore requires two phases in order to perform a single test. In other words, a write phase is required to initiate the test followed by a read phase to trigger the test value. This test is also unable to determine the exact location of the fault.
Based upon the foregoing, there is a need for a field programmable device that is efficiently configured and verified.
Embodiments of the present invention overcome the shortcomings described above and satisfy a need for an improved field programmable device that is efficiently configured and verified.
Embodiments of the present invention at least mitigate the problems described above.
There is provided, according to embodiments of the invention, a field programmable device including a plurality of logic blocks; a plurality of connections connecting the logic blocks; configuration means for outputting configuration data for programming the device, the configuration means providing at least one pair of outputs; and error detection means for comparing the outputs to determine if there has been a configuration error.
The error detecting means may include means for comparing the outputs. In an embodiment of the present invention, the comparing means may be a logic XNOR gate.
The error detection means may be arranged to determine the presence of an error if a pair of outputs are determined to be the same. The error detection means may include at least one transistor arranged to provide a predetermined output when an error is determined. The at least one transistor may be a pull-up transistor.
The device may further comprise at least one pair of outputs comprising a signal and its logical inverse.
The error detection means may be arranged to determine errors in a first part of the device and then determine errors in a second part of the device. The error detection means may be arranged to determine errors in the first part when a clock signal has a first state and determine errors in the second part when the clock signal has a second state.
One of the first and second parts of the device may include the outputs of the configuration means. One of the first and second parts of the device may include the plurality of connections. At least one of the logic blocks and the connection means may be configurable.
The error detection means may be arranged to determine the location of an error.
The error detection means may include means for providing an output for each line of the device. The means for providing an output for each line may include storage means. The means for providing an output for each line may include comparing means.
Embodiments of the present invention allow the testing of configuration data to be carried out at substantially the same time as the act of configuring the device.
For a better understanding of the present invention and how the same may be carried into effect, reference will now be made by way of example only to the accompanying drawings in which:
Reference is now made to
The FPD 1 may be capable of being operated in one of two modes. The first mode is an active mode, whereby the device simulates the action or actions of a digital or a series of digital circuits. The logic device 7 may receive inputs via the input pins 3 and provide outputs via the output pins 5, whereby these inputs may provide digital data and/or a clock signal.
The second mode is a configuration mode. In this mode, the logic device 7 is configured dependent on input data. When configured, the logic device 7 is arranged to simulate the action of the required digital circuit or circuits. This configuration input data may be passed to the logic device 7 via the input pins 3 or output pins (acting as input pins) 5 or by a separate series of configuration pins 2.
With reference to
These conductive paths 119 and 123 pass through a series of Switching Matrices (SM) 115. The intersection of vertical paths 119 and horizontal paths 123 create short or open circuits, connecting or isolating the paths 119 and 123 in dependence on the configuration of the corresponding switching matrix 115. The switching matrix 115 thus allows a vertical path 119 to be connected to a horizontal path 123, allows a horizontal path 123 to pass through the switch matrix 115, and/or allows a vertical path 119 to pass through the switch matrix 115.
These conductive paths, 119 and 123, also pass information and/or data to and from the terminals of the Configurable Logic Blocks (CLB) 121. The arrangement of the Configurable Logic Blocks 121 and switched matrices 115 is normally such that no two CLBs 121 are directly connected together by a single conductive path 119,123. Therefore, signals from one CLB 121 to another CLB 121 are routed via switched matrices 115. An alternate arrangement in some areas of the processing block 110 allows direct connections between CLBs 121 in some circumstances.
The CLB 121 may include in a first stage a series of look up tables outputting values in dependence on a series of inputs, coupled to a second stage where the values of these look up tables are logically combined or selected in dependence on the configuration of that particular CLB 121.
In order to configure both the Switched Matrix 115 and the Configurable Logic Block 121, additional circuitry may be required. This circuitry is featured in the configuration block 120. The circuitry of the configuration block 120 may include a configuration controller 101, a configuration data register 125 and address register 103. The configuration controller 101 controls the configuration within the FPD 1. The configuration controller 101 receives signals 105 via the configuration pins 2. The controller 101 can instruct the address registers 103 and configuration data registers 125 via an address register conductive path 107 and a configuration register conductive path 109, respectively. Configuration data, as well as instructions from the controller 101, can also be loaded onto the configuration data register 125 via the same configuration register conductive path 109.
The configuration data is stored in the configuration data register 125 and output to the elements in the processing block 110 on a series of configuration data lines 111. The data is directed to the correct part of the processing block 110 in dependence on the signals output from the address register 103 via the address lines 113. These address lines 113 and configuration data lines ill intersect the processing block 110, spanning substantially all of the configurable elements in the processing block 110 (not shown for clarity purposes).
The horizontal data lines 123 may pass through the switch matrix 115 from one horizontal side to the opposite side (of which one horizontal data line 123a is shown in FIG. 4).
The vertical data lines 119 may pass through the switch matrix 115 from one vertical side to the opposite vertical side (of which one vertical data line 19a is shown in FIG. 4).
The switch matrix configuration data lines 425 may pass through the switch matrix 115, entering on one side and being connected to the configuration data lines 111, and connected on the opposite side to a series of switch matrix configuration outputs 439.
The address lines 113 may enter the switch matrix 115, and pass along the switch matrix 115. The address lines 113 may in some embodiments of the present invention pass through the switch matrix 115 and exit the opposite side to continue the path of the address lines 113. Alternatively, with reference to FIG. 3 and
The enable signal generator 419 has a first input connected to the clock signal line 401, a second input connected to an address signal 113, a first output connected to an input enable line 421 and a second output connected to an output enable line 423.
The configuration latch 427, has a first (data) input 429 connected to the switch matrix configuration data line 425, a second (enable) input 431 connected to the input enable line 421, and an output 433.
The connection transistor 450 has its gate 451 connected to the configuration latch output 433, one of its remaining terminals 453 connected to one of the vertical data lines 119a and the remaining terminal 455 connected to one of the horizontal data lines 123a.
The output switch 435 has its gate connected to the output enable line 423, one of the remaining terminals connected to the output 433 of the configuration latch 427, which has its enable input 431 connected to the input enable line 421 provided from the same enable signal generator 419 supplying the output enable line 423 connected to the gate of the output switch 435. The remaining terminal of output switch 435 is connected to the switch matrix configuration data line 425 which is connected to the data input 429 of the configuration latch 427 of which the output 433 is connected to the other terminal of output switch 435.
The switched matrix 115 has an array of configuration latches. Each element 461 of this array may include a pair of enable lines, input enable 421 and output enable 423, switch matrix configuration data line 439 running horizontally through the element, a configuration latch 427 with the enable input connected to the input enable 421, and the data input 429 connected to the switch matrix configuration data line 425.
The output of the configuration latch 427 is passed to the output switch 435 which can pass the output back to the configuration line 425. The configuration latch output 433 is also passed to a connection switch 450 which can connect a horizontal data line to a vertical data line.
Each element 461 of the latch array is tiled together so that, vertically aligned elements receive the same input and output enable lines supplied by the column enable signal generator 471. Vertically aligned tiles also receive the same vertical data line. Horizontally aligned elements 461 receive the same switch matrix configuration data line 425, and the same horizontal data line 123.
In a typical field programmable device, the process of configuring is controlled from the configuration controller 101. The controller 101 controls the address register 103 and configuration data register 125. The configuration data register 125 may include a single column with a plurality of rows. Each row element controls the configuration data for a single configuration data line 111. Each row element may include a data configuration latch 403 and a switch 415.
The data configuration latch 403 may include a data input 405 connected to the configuration controller by the line or lines 109, an enable input 407 connected to a clock line 401, a first output 409 and a second output 411. The second output 411 is an inverted form of the first output 409.
The switch 415 may include three terminals, a data input, a data output and a select input. In
Step S3 involves selecting one of the columns of elements 461 in a switch matrix to be written to. This is achieved by the address register 103 outputting a high signal on one of the address lines 113.
This assertion of an address line 113, along with the clock signal, is passed to the enable signal generator 419, which in step S4 switches the selected column enable input 421 high, and its enable output 423 low.
With the column enable input 421 high, the corresponding column of configuration latches 427 selected are now able to be loaded with configuration data. This configuration data is also passed through the switch matrix configuration lines 425. These functions are performed in step S5.
At step S6, the clock signal 401 is brought high.
The act of bringing the clock signal 401 high causes, in step S7, the configuration register latch 403 to open and accept new data. At substantially the same time, the configuration register switch 415 is also opened, isolating the configuration register latch output 409 from the configuration data lines 111.
The configuration latch 427 column to be read from is selected by outputting a high signal on the selected column address line 113. In the case of reading from the same line, the same column address line 113 is kept high. These functions are shown in step S8.
The selected column enable signal generator 419 now switches the enable input 421 to low and the enable output 423 to high as shown in step S9.
The switching of the states of the enable input 421 and enable output 423 closes the selected column output switch 435 and outputs the value from the output 433 of the configuration latch 427 onto the configuration data line 425, which is placed on the switch matrix output line 439.
As can be seen by such a series of steps, the act of writing configuration data and reading configuration data cannot be carried out at the same time. In such a method an additional storage means are required to store the original configuration data, store the configuration latch data and then perform tests based on the stored data.
There is also a lack of discrimination in the reading of the data. Data is read from the configuration latch 427, but it is not possible to determine where the error occurred within the configuration cycle. It is therefore not possible to determine if it is possible to amend the configuration design to compensate for the error, and if so how to compensate for the error.
The second outputs 411 of the configuration registers 403 are output as a second plurality of configuration data lines, running parallel to the first set of configuration data lines and jointly called the configuration data lines 111.
The switch matrix 115 of
The embodiment of the present invention of
The error detection block 543 may be of a single column of row elements 591, a pull-up device 521, a pull down device 519, and a first output 537. Each row element 591 may include a first test data input 593, a second test data input 595, an Exclusive-NOR (XNOR) gate 597, a transistor switch 513, an error detection latch 525 and a second series of outputs 541.
The first test data input 593 is connected to a switch matrix output line 439, the second test data input 595 is connected to a second switch matrix output line 505. Each row 591 of the error detection block 543 is arranged whereby both test data input lines are from the same row of switch matrix elements.
Each XNOR gate 597 may include a first input 507 connected to the first test data input 593, a second input 509 connected to the second test data input 595, and an output 511.
Each error detection latch 525 may include a first data input connected to the first test data input 593, a second enable input connected to the inverted clock signal as supplied by passing the clock signal 401 through inverter 575, and an output 541.
Each element transistor switch 513 may include a gate connected to the output of the XNOR gate 597, one of the conduction terminals connected to the common pull-up device 521 and the other conduction terminal connected to the common pull-down device 519.
The test block output 537 is connected to the top terminal of the pull down device 519.
The pull-up device 521 and pull-down device 519 are arranged such that the pull-up device 521 is much stronger than the pull-down device 519, so that if a single transistor conducts the current from the pull up device 521 to the test block output 537, the output 537 is pulled up to a high reference voltage 523. Otherwise, the test block output 537 remains pulled low.
This circuitry of
Referring to
The second step S102, is taken during configuration when the clock signal 401 is low. During this step, the configuration data registers 125 output the values Q onto the configuration data lines 111 and the inverted value /Q onto the second set of configuration data lines 111. The values Q are loaded into the selected configuration latches 427, and are also passed as the first inputs 593 into the error detection block 543. The second input 595 into the error detection block 540 receives the inverted values /Q of configuration data registers 125. If these two inputs 593,595 of each row element 591 are the same an error has occurred. The expected inputs 593,595 of each row element 591 should be Q and /Q of the corresponding data configuration latch 403, respectively, but in order that the values are the same, one of the values has been corrupted and is wrong. This fault can be detected by the corresponding XNOR gate 597, which produces a high output when both inputs are the same. When the output of an XNOR gate 597 goes high, the corresponding switch transistor 513 is closed connecting the pull-up 521 device and pull-down device 519. As the pull-up device 521 is stronger than the pull-down device 519, the error detection block output 537 is brought high, indicating an error. This test is aimed at detecting stuck-at faults associated with configuration lines 111 and/or data configuration latches 403.
A stuck-at fault occurs when a tested node is connected to a voltage level due to some fault in the circuit. It is therefore incapable of changing its voltage level. The fault is that the node is stuck at the voltage level independent of the expected voltage.
The third step S103 occurs when the clock signal 401 is high. During this step, the configuration register output Q from each data configuration latch 403 is isolated from the configuration data line 111 by the corresponding configuration register switch 415. Instead, the output of the selected configuration latch 427 is output onto the switch matrix configuration data line 425 via the corresponding switch matrix switch 435. Thus the error detection block 7 first input 593 is the output of the selected configuration latch 427. The error detection block 543 second input 595 is the inverted output /Q of the data configuration register latch 403.
As in the previous step, if the two inputs 593,595 of a row 591 of error detection block 543 are the same, the corresponding XNOR gate 597 activates the corresponding transistor switch 513, which connects the pull-up and pull-down devices, thereby bringing the error detection block output 537 high and indicating an error. This test is aimed at detecting faults within the configuration latch.
These two steps S102, S103 are repeated until either the configuration/testing routine is complete or the error detection block output 537 indicates an error has been found. If an error is detected, the output 541 of the error detection block latches 525 can be used and compared against the original configuration data to determine the exact location of the fault. In a further embodiment of the present invention, the outputs 511 of the XNOR gates 597 are used to locate the fault rather than use the error detection block latch outputs 537.
After detection and location of a fault, resolution methods may be employed to reject the FPD or to compensate for the fault without rejection of the whole FPD.
Therefore, embodiments of the present invention describe a method for testing to be carried out at the same time as configuration.
In operation, the enable generation circuit 419 outputs operate to pass the clock signed 401 and its logical inversion only when selected by the address register. When the circuit 419 is selected by enable signed 413 being in a logic high state, the two outputs of enable generation circuit 419 are opposite to each other, with each output value dependent on the value of the clock signal 401.
The embodiments of the present invention described above feature the advantages of being able to write configuration data at practically the same time as testing the configuration cycle. The embodiments of the present invention also feature the ability to locate and potentially remedy any error in the configuration cycle.
Embodiments of the present invention may be applied not only to configuration elements in a switch matrix but also to configuration elements in other parts of a FPD which contain configurable elements.
Although exemplary embodiments of the method and apparatus of the present invention have been illustrated in the accompanying Drawings and described in the foregoing Detailed Description, it is understood that the invention is not limited to the embodiments disclosed, but is capable of numerous rearrangements, modifications, and substitutions without departing from the spirit of the invention as set forth and defined by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
02252426 | Apr 2002 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
5347519 | Cooke et al. | Sep 1994 | A |
5426378 | Ong | Jun 1995 | A |
5640106 | Erickson et al. | Jun 1997 | A |
5684997 | Kau et al. | Nov 1997 | A |
5768288 | Jones | Jun 1998 | A |
5789938 | Erickson et al. | Aug 1998 | A |
5815510 | Jones et al. | Sep 1998 | A |
6037800 | Trimberger | Mar 2000 | A |
6084818 | Ooishi | Jul 2000 | A |
6127843 | Agrawal et al. | Oct 2000 | A |
6237124 | Plants | May 2001 | B1 |
6300769 | Phan | Oct 2001 | B1 |
6307804 | Ooishi | Oct 2001 | B1 |
6438064 | Ooishi | Aug 2002 | B2 |
6870393 | Agarwal | Mar 2005 | B2 |
7007203 | Gorday et al. | Feb 2006 | B2 |
7263631 | VanBuren | Aug 2007 | B2 |
7328377 | Lewis et al. | Feb 2008 | B1 |
20020141234 | Kaviani | Oct 2002 | A1 |
Number | Date | Country |
---|---|---|
WO 0186313 | Nov 2001 | WO |
WO0186313 | Nov 2001 | WO |
Number | Date | Country | |
---|---|---|---|
Parent | 10406058 | Apr 2003 | US |
Child | 12163983 | US |