This invention relates to programmable logic resources. More particularly, this invention relates to providing error detection on programmable logic resources.
A programmable logic resource is a general-purpose integrated circuit that is programmable to perform any of a wide range of logic tasks. Known examples of programmable logic resources include programmable logic devices (PLDs) and field-programmable gate arrays (FPGAs). Memory blocks are provided on programmable logic resources and can be used to store and subsequently output data, or to perform various functions desired by the user.
Data can be stored in memory blocks as programmable logic resource configuration data. When data is being programmed into the memory blocks or while the data is stored in the memory blocks, errors can occur in the representation of the programmable logic resource configuration data. Such errors can include hard errors and soft errors. Hard errors arise due to physical imperfections in a programmable logic resource or due to physical damage to a programmable logic resource. A soft error occurs when, during operation of a programmable logic resource, an alpha particle or cosmic ray strikes the silicon of the programmable logic resource, causing the formation of electron-hole pairs that alters the content of a memory cell. Programmable logic resources, because of their large number of small-capacitance memory nodes, are particularly susceptible to soft errors. A soft error directly affects the logic functionality of the programmable logic resource, thereby causing logic failure. Currently, there are no available methods for detecting such errors in programmable logic resources.
In view of the foregoing, it would be desirable to provide systems and methods for detecting errors in programmable logic resources.
It is therefore an object of the present invention to provide systems and methods for detecting errors in programmable logic resources.
In accordance with this invention, error detection circuitry is provided that detects errors in programmable logic resource configuration data. Prior to programming data into a memory on a programmable logic resource or while data is being programmed into a memory on a programmable logic resource, a checksum may be computed by dividing the data by a control expression and taking the remainder. This computation may be implemented in software or by the error detection circuitry. The control expression may be any suitable representation of data including a polynomial such as, for example, the 32-bit cyclic redundancy check (CRC-32) Institute of Electrical and Electronic Engineers (IEEE) 802 standard. This checksum, also referred to as an expected value, may be stored in any suitable location on the programmable logic resource (e.g., in a dedicated register) and is retrieved during error detection.
A flag such as a dedicated bit in a register, may be initialized by a user to signal the start of error detection. After the data has been programmed into the memory, the flag may be set and error detection may be initiated with a finite state machine directing the loading of programmable logic resource configuration data to error detection circuitry. As programmable logic resource configuration data is being loaded into the error detection circuitry of the programmable logic resource, the error detection circuitry begins computing a checksum with the loaded data using the same or equivalent control expression used to compute the expected value. When all the programmable logic resource configuration data has been loaded, the finite state machine directs the loading of the expected value to the error detection circuitry.
In one embodiment of the present invention, a checksum is computed on the programmable logic resource configuration data and this resulting checksum is compared to the expected value. No error is detected if the checksum and the expected value meet some predetermined relationship (e.g., the checksum and the expected value are equal, the checksum differs from the expected value by a predetermined offset or multiple).
In another embodiment of the present invention, the programmable logic resource configuration data is first loaded into an exclusive OR (XOR) tree. After the programmable logic resource configuration data is loaded, the expected value is then loaded into the XOR tree. The XOR tree computes a checksum on the loaded data and expected value based on the control expression. No error is detected if the checksum is equal to some predetermined value (e.g., the checksum is zero, the checksum is a predetermined offset). The output generated by the error detection circuitry is sent to an output pin on the programmable logic resource, which may be monitored by user logic.
The above and other objects and advantages of the invention will be apparent upon consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which like reference characters refer to like parts throughout, and in which:
The present invention provides systems and methods for detecting errors in programmable logic resources. Programmable logic resources include, for example, programmable logic devices, field-programmable gate arrays, or any other suitable programmable device. Errors include soft errors, hard errors, or both. Errors may also be attributed to voltage spikes, system bugs, other external forces including line transmission faults and hardware failures, or any other event that affects the representation of data in the programmable logic resources.
A programmable logic resource holds data to program that programmable logic resource to implement any of one or more various applications. This data is referred to herein as programmable logic resource configuration data. The programmable logic resource configuration data is represented as a set of binary digits (i.e., binary “1's” and “0's”) and may be stored in any suitable memory such as, for example, a configuration random access memory (CRAM). Alternatively, the programmable logic resource configuration data may be stored in any other suitable volatile or nonvolatile memory including, for example, static random access memory (SRAM), dynamic random access memory (DRAM), Rambus DRAM (RDRAM), synchronous DRAM (SDRAM), double data rate-synchronous DRAM (DDR SDRAM), erasable programmable read-only memory (EPROM), FLASH memory, and magnetic RAM (MRAM).
Programmable logic resource configuration data stored in memory may be associated with one or more applications. For example, some of the programmable logic resource configuration data can be used to specify how the programmable components of a programmable logic resource are to be configured (i.e., to implement a specific application). Some binary digits of the programmable logic resource configuration data can be used to represent data (e.g., a control expression, an expected value). Other binary digits of the programmable logic resource configuration data can be used as part of the real-time operation of an application implemented by the programmable logic resource (e.g., if memory reads and writes are specified by the application). The programmable logic resource configuration data may be altered such that certain binary digits are erroneously represented (e.g., a binary digit that was previously a binary “1” is now a binary “0,” and vice versa). The present invention provides a way to detect such errors.
The present invention is primarily discussed herein in terms of a cyclic redundancy check (CRC) checksum analysis to detect errors in programmable logic resources for specificity and clarity, though any other suitable approach may be used to detect errors in programmable logic resources. In a CRC checksum analysis, a checksum is computed. This checksum may be, for example, a remainder that results from a division operation involving data and a control expression. Alternatively, a checksum may be computed using any other suitable operation or combination of operations. The control expression may be any suitable data representation used to compute an expected value for the programmable logic resource configuration data.
The expected value is the checksum that results from an operation in which the data to be programmed into or the data that is being programmed into the programmable logic resource and the control expression are operands. This expected value may be user-defined or any other suitable entity. The expected value may be stored on the programmable logic resource in a register or in a memory, or in any other suitable location.
In one embodiment, a checksum is computed on the programmable logic resource configuration data and then compared to the expected value. No error is detected if the checksum and the expected value meet some predetermined relationship (e.g., the checksum and the expected value are equal, the checksum differs from the expected value by a predetermined offset or multiple).
In another embodiment of the present invention, the programmable logic resource configuration data is first loaded into an exclusive OR (XOR) tree. After the programmable logic resource configuration data is loaded, the expected value is then loaded into the XOR tree. The XOR tree computes a checksum on the loaded data and expected value based on the control expression. No error is detected if the checksum is equal to some predetermined value (e.g., the checksum is zero, the checksum is a predetermined offset).
The output generated by the error detection circuitry is sent to an output pin on the programmable logic resource, which may be monitored by user logic. If an error is detected, the user of the programmable logic resource may be given the opportunity to reload all of or a portion of the programmable logic resource configuration data, or to perform any other suitable action in response to the error detection.
A CRC module may be used to perform the CRC checksum analysis. The CRC module may be implemented using any suitable arrangement. For example, in one embodiment, the CRC module may be a hard-wired circuit resident on a programmable logic resource. In another embodiment, the CRC module may be programmed into a programmable logic resource. In another embodiment, the CRC module may be implemented as a separate device, external to a programmable logic resource, in which the CRC module may be coupled to the programmable logic resource using, for example, input/output (I/O) pins. In a further embodiment, the CRC module may be implemented in software that is executed using a microprocessor (e.g., on a computer). Any such implementation may be used in accordance with the present invention. For purposes of brevity and not by way of limitation, the present invention is primarily described herein in terms of a CRC module that is hard-wired onto a programmable logic resource.
Additional signals, registers, and control logic may be needed to implement error detection on a programmable logic resource, as will be described in more detail in connection with
In one suitable approach, a finite state machine (FSM) may be used to negotiate data communications between the CRC module and the programmable logic resource. More particularly, the FSM may direct the loading and shifting of data in the CRAM to the CRC module. Alternatively, the FSM may direct the loading and shifting of data in the CRAM to a temporary data register, and then from the data register to the CRC module. The CRC module includes a submodule for calculating the checksum on the programmable logic resource data and also, in some instances, the expected value. The submodule may be any suitable circuitry for performing the checksum analysis using, for example, a standard polynomial (e.g., the CRC-32 IEEE 802 standard), a sum of data, or any other suitable data representation.
The calculated checksum may then be sent to comparison circuitry where the checksum may be compared to the expected value, or to any suitable predetermined value. Comparison circuitry may be implemented using a comparator, an OR gate, an XOR gate, or any suitable logic gate or combination of logic gates.
FSM 108 may be used to negotiate data communications between CRC module 116 and programmable logic resource 100. FSM 108 detects the initiation of error detection and may generate and send a clock signal and other signals to programmable logic resource configuration data 104 via a path 106 to direct the loading of data 104 to CRC module 116 via path 112. FSM 108 may direct the error detection analysis in CRC module 116 via a path 114. Paths 106, 112, and 114 may be any suitable paths for sending data and various signals such as clocks, preset signals, or flags.
Data paths 106, 112, and 114 may be direct connections, may include intervening circuitry, or both. Such intervening circuitry may include, for example, registers, pipelining circuitry, multiplexers, or any other suitable circuitry that allows the various signals to be asserted/deasserted, enabled/disabled, or both at suitable times in order to coordinate the loading of data and the computation of the checksum.
Referring to
G(X)=X32+X26+X23+X22+X16+X12X11+X10+X8+X7+X5+X4+X2+X1+1 (1)
may be used to generate the checksum
In one embodiment, the checksum may be computed by, for example, taking the modulo (mod) of data (e.g., programmable logic resource configuration data 104) with control expression (1), which is the remainder that results after dividing the data by the control expression. In another embodiment, a multiplication or shift operation may be performed on the data prior to performing the modulo operation on the data. It will be understood that any other suitable control expression may be used in generating the checksum in accordance with the present invention.
When programmable logic resource data 104 has been loaded into CRC module 116, expected value 102 is loaded into CRC module 116. Expected value 102 may be retrieved from any suitable source. In one embodiment, the expected value may be computed at the time of programming the data into programmable logic resource 100 using software. In another embodiment, the expected value may be computed at the time of programming the data into programmable logic resource 100 using CRC module 116 For example, as data is being programmed into programmable logic resource 100, the data is also being sent to CRC module 116 where the expected value is being computed. The expected value is preferably computed using the same checksum calculation to compute the checksum in CRC module 116.
In one embodiment of the present invention, programmable logic resource configuration data 104 may be sent to checksum calculation circuitry 118 to produce a checksum. This computed checksum is sent along data path 120 to comparison circuitry 122. Expected value 102 is also sent to comparison circuitry 122. In comparison circuitry 122, the computed checksum is compared to expected value 102 using any suitable logic gate or combination of logic gates (e.g., a comparator, an XOR gate, a subtractor). If the checksum and expected value 102 meet some predetermined relationship (e.g., the checksum and expected value 102 are equal, the checksum differs from expected value 102 by a predetermined offset or multiple), comparison circuitry 122 will produce an output (e.g., a binary “0”) indicating that no error has been detected. However, if the checksum and expected value 102 do not meet this predetermined relationship (e.g., the checksum is different from expected value 102, the checksum differs from expected value 102 by a different offset), comparison circuitry 122 will generate a different output (e.g., a binary “1”) indicating that an error has been detected. The output of comparison circuitry 122 will be sent to a CRC error pin 126 via a path 124. CRC error pin 126 may be accessed by a user to monitor the presence of errors in programmable logic resource configuration data 104.
In another embodiment of the present invention, programmable logic resource configuration data 104 and expected value 102 are both sent to checksum calculation circuitry 118 to compute a checksum. For example, programmable logic resource configuration data may be multiplied or shifted by a number of bits equal to the degree of the control expression (e.g., for the CRC-32 IEEE 802 standard, the degree is the exponent of the largest monomial which is 32). Expected value 102 (which is computed using the same calculation) may be appended to the end of programmable logic resource configuration data 104 (i.e., the bits representing expected value 102 may be appended to the bits representing programmable logic resource configuration data 104) and sent through checksum calculation circuitry 118.
The computed checksum is then sent along data path 120 to comparison circuitry 122. In comparison circuitry 122, a logic operation may be performed on the computed checksum using, for example, a logic gate or a combination of logic gates (e.g., a comparator, an OR gate, an adder, etc). If the checksum is equal to some predetermined value (e.g., the checksum is zero, the checksum is a predetermined offset), comparison circuitry 122 will produce an output (e.g., a binary “0”) indicating that no error has been detected. However, if the checksum is some value other than the predetermined value (e.g., the checksum is non-zero, the checksum is different from the predetermined offset), comparison circuitry 122 will generate a different output (e.g., a binary “1”) indicating that an error has been detected. Comparison circuitry 122 may produce any suitable output indicating whether an error has been detected. This output will be sent along path 124 to CRC error pin 126.
In one embodiment, XOR tree 324 may compute the checksum using a control expression such as the CRC-32 IEEE 802 standard in expression (1). While any suitable control expression may be used, the same or equivalent control expression is preferably used to compute expected value 102. As XOR tree 324 receives programmable logic resource configuration data 104 followed by expected value 102, XOR tree 324 processes the loaded data. The output of XOR tree 324 is coupled to registers 326, where the data may be sent back to XOR tree 324 in a subsequent cycle for further processing. Registers 326 may be latches, flip-flops (e.g., D flip-flops, J-K flip-flops), or any suitable storage device controlled by a clocking mechanism. XOR tree 324 and registers 326 may make up part of checksum calculation circuitry 118.
Data may be sent through multiplexer 322 and loaded into XOR tree 324 serially, in parallel, or a combination of the same. In one embodiment, one data bit may be loaded and processed in XOR tree 324 each clock cycle. In another embodiment, a multiple number (e.g., 2, 8, 16) of data bits may be loaded and processed in XOR tree 324 each clock cycle.
XOR tree 324 and registers 326 may be implemented by the following matrix equation:
Q=A*q+B*IN (2)
A matrix includes data arranged in one or more rows with one or more columns with the following notation:
R represents the number of rows and C represents the number of columns.
“A” is a d×d matrix representing registers 326 and the control expression, where d is the degree of the highest monomial of the control expression. “q” is a d×1 matrix representing the contents currently stored in registers 326 from a previous clock cycle. “B” is a d×1 matrix representing the coefficients for each monomial in the control expression. “IN” is a constant representing input bits 402. “Q” is a d×1 matrix representing the output of XOR tree 324 in a next cycle (e.g., the result of processing input bits 402 with the contents stored in registers 326 in a previous clock cycle).
Based on matrix equation (2), the equation for processing N input bits each clock cycle is as follows:
G(X)=X5+X3+1 (8)
Because the degree of G(X) in expression (8) is five, there are five registers 326 used to store the output of XOR tree 324. The output of circuitry 500 is represented by equation (4), whose matrices are as follows:
“A” is a 5×5 matrix with the first four columns representing registers 326 and the last column representing the coefficients of the monomials in control expression (8). “q” is a 5×1 matrix representing the contents of registers 326 (e.g., q1, q2, q3, q4, and q5 represent the contents of registers 510, 520, 530, 540, and 550, respectively). “B” is a 5×1 matrix representing the coefficients of the monomials in control expression (8). Substituting expressions (9), (10), and (11) into equation (3) produces the following output:
Q1 is a 5×1 matrix that represents the contents of registers 326 in a next cycle as follows: (q5+I1), q1, q2, (q3+q5+I1), and q4. The outputs of Q1 are binary (e.g., “0” or “1”) and may be implemented using XOR gates.
Circuitry 500 includes XOR gates 502 and 504 and registers 510, 520, 530, 540, and 550, which may be part of registers 326 controlled by a single clock. The input to register 510 is the output of XOR gate 502, whose inputs are I1 (from the output of multiplexer 322) and the current content of register 550. In a next cycle, the content of register 510 is Q1(1,1)=q5+I1. The input to register 520 is the current content of register 510 so that in a next cycle, the content of register 520 is Q1(2,1)=q1. The input to register 530 is the current content of register 520 so that in a next cycle, the content of register 530 is Q1(3,1)=q2. The input to register 540 is the output of XOR gate 504 whose inputs are I1 and the current contents of registers 530 and 550. XOR gate 504 may be implemented using a three-input XOR gate or two, two-input XOR gates, where two of the inputs are sent through a first XOR gate with the output of the first XOR gate and the third input being sent through a second XOR gate. In a next cycle, the content of register 540 is Q1(4,1)=q3+q5+I1. The input to register 550 is the current content of register 540 so that in a next cycle, the content of register 550 is Q1(5,1)=q4. Although not shown, the contents of registers 510, 520, 530, 540, and 550 are also sent as input to signature register 328.
Circuitry 600 includes XOR gates 602, 604, 606, 608, and 610, and registers 620, 630, 640, 650, and 660, which may be part of registers 326 controlled by a clock. The input to register 620 is the output of XOR gate 602, whose inputs are I1 and I3 (both from the output of multiplexer 322) and the current contents of registers 640 and 660. In a next cycle, the content of register 620 is Q3(1,1)=q3+q5+I1+I3. The input to register 630 is the output of XOR gate 604, whose inputs are I2 (from the output of multiplexer 322) and the current content of register 650. In a next cycle, the content of register 630 is Q3(2,1)=q4+I2. The input to register 640 is the output of XOR gate 606, whose inputs are I1 and the current content of register 660. In a next cycle, the content of register 640 is Q3(3,1)=q5+I1. The input to register 650 is the output of XOR gate 608, whose inputs are I1 and I3 and the current contents of registers 620, 640, and 660. In a next cycle, the content of register 650 is Q3(4,1)=q1+q3+q5+I1+I3. The input to register 660 is the output of XOR gate 610, whose inputs are I2 and the current contents of registers 630 and 650. In a next cycle, the content of register 660 is Q3(5,1)=q2+q4+I2. XOR gates 602, 608, and 610 may be implemented using any suitable XOR gate or combination of XOR gates. Although not shown, the contents of registers 620, 630, 640, 650, and 660 are also sent as input to signature register 328.
Circuitry 500 and 600 are described in the context of implementing a checksum calculation based on control expression (8) that takes as input one bit and three bits, respectively, each clock cycle for merely illustrative purposes. However, XOR tree 324 may be implemented using any suitable control expression (e.g., the CRC-32 IEEE 802 standard) and any suitable number of input bits each clock cycle.
As data is being sent as inputs 402 to XOR tree 324, the contents of registers 326 are being updated. After programmable logic resource configuration data 104 and expected value 102 are processed, the contents of registers 326 hold the resulting checksum. In one embodiment, the resulting checksum is zero if there are no errors present, as shown by the following proof.
Let variables G(X), M(X), Q(X), EV, and μ(X) represent the following:
G(X)=CRC-32 IEEE 802 standard;
M(X)=Programmable logic resource configuration data 104;
Q(X)=Quotient=M(X)/G(X);
EV=Expected value=M(X)(mod)G(X);
μ(X)=Data sent in as input 402. (14)
In performing the checksum calculation on M(X) to compute the expected value, the following is derived:
X32M(X)≡EV(mod)G(X) (15)
The symbol “≡” represents congruence and refers to a class of remainders equivalent to EV (mod) G(X) (where EV is the smallest member in the class). M(X) is defined as the following:
X32M(X)=Q(X)G(X)+EV (16)
Input 402 to XOR tree 324 can be represented as follows:
μ(X)=X32M(X)+EV (17)
M(X) is multiplied or shifted by an offset X32 (i.e., by the degree of control expression G(X)) with the expected value being appended to M(X). Performing algebraic manipulations to equation (17), we get the following:
1. Multiply both sides by X32:
X32μ(X)=X32[X32M(X)+EV]
2. Substitute X32M(X) with equation (16):
X32μ(X)=X32[Q(X)G(X)+EV+EV]
3. Write in congruent form.
X32μ(X)≡X32[EV+EV]≡2EV≡0 (18)
The term X32Q(X)G(X) is a multiple of ((mod) G(X)) and so is not present in the congruent form. Taking the XOR of 2EV is congruent to zero in binary form (i.e., the output of a two-input XOR gate is zero when both inputs are the same value).
The following is a simplified example of how one embodiment of XOR tree 324 and registers 326 functions. Suppose the data that is to be programmed in the programmable logic resource contains the sequence of data bits b110110001, which can be represented as the following polynomial:
M(X)=X8+X7+X5+X4+1 (19)
Suppose also that the control expression is the sequence of data bits b101001, which represents control expression (8). Prior to programming the data M(X) in the programmable logic resource, the expected value is computed. The expected value (EV) is the remainder that results from dividing the data M(X) by the control expression G(X) using the same approach in computing the checksum in XOR tree 324.
EV=X5M(X)(mod)G(X)=X3+X2 (20)
(i.e., b10111). Because XOR tree 324 multiplies or shifts programmable logic resource configuration data 104 by the degree of the control expression and appends expected value 102 to programmable logic resource configuration data 104 to compute the checksum, the data M(X) is similarly multiplied or shifted by the degree in order to compute expected value 102.
After the data is programmed in as programmable logic resource configuration data 104, a flag may be raised signaling the start of error detection. The following is an illustration of processing programmable logic resource configuration data 104 that has not been changed (i.e., there are no errors).
P(X)=M(X) (21)
This programmed data is sent to XOR tree 324 as will be described in further detail in connection with
The remainder that results from dividing expression (22) by the control expression G(X) is zero, which is what we expect since there are no errors.
(X5P(X)+EV)(mod)G(X)=b0 (23)
If XOR tree 324 accepts one input (e.g., I1) each clock cycle, XOR tree 324 will be implemented as shown in
The output of circuitry 500 is zero.
If XOR tree 324 accepts three inputs (e.g., I1, I2, I3) each clock cycle, XOR tree 324 will be implemented as shown in
The output of circuitry 600 is zero.
The following is an illustration of processing programmable logic resource configuration data 104 that has been changed (i.e., there are errors).
P(X)=X8+X7+X5+1 (24)
P(X) has one bit that has been inverted. The programmed data and the expected value are loaded into XOR tree 324 as follows:
The remainder that results from dividing polynomial (25) by control expression (8) is nonzero, indicating that an error has occurred.
(X5P(X)+EV) % G(X)=b11101 (26)
Table 3 shows the contents of registers 620, 630, 640, 650, and 660 as circuitry 600 computes the checksum.
Some of the outputs of registers 620, 630, 640, 650, and 660 are nonzero, signaling an error.
Referring to
The user may view either the computed checksum or expected value 102. By monitoring the computed checksum, the user can determine the uniqueness of any detected errors. For example, the user may determine if the errors are random (e.g., a different checksum is generated over multiple computations) or whether the same error repeatedly occurs (e.g., the same checksum is generated over multiple computations).
The user may view the computed checksum or expected value 102 using any suitable approach. In one embodiment, each multiplexer 332 takes as input one bit from update register 330 and one bit from expected value 102. Depending on which value the user wants to view, FSM 108 directs multiplexers 332 to select either data from update register 330 or expected value 102. The output of each multiplexer 332 is sent to shift register 334. Shift register 334 is accessible by programmable logic resource 300 and allows its contents to be read by user logic.
Errors may occur affecting the computed checksum when the data is accessed from shift register 334. In a more accurate way to detect errors, once the computed checksum is in signature register 328, each bit in signature register 328 may be sent to a separate input of an OR gate 336. OR gate 336 may include one gate with a number of inputs equal to a number of signature register bits, or may include a cascade of gates, each with a smaller number of inputs, or any other suitable approach for comparing the signature register bits. If all the signature register bits are binary “0,” the output of OR gate 336 will be binary “0,” indicating that no error has been detected. If one or more signature register bits are binary “1,” the output of OR gate 336 will be binary “1,” indicating that an error has been detected. The output of OR gate 336 is sent to CRC error pin 338 which can be monitored by user logic. CRC error pin 338 may hold one data bit in which one value indicates that no error was detected while a second value indicates that an error has been detected. Alternatively, CRC error pin 338 may be an indicator, for example, a light emitting diode (LED), that signals (e.g., lights up the LED) when an error is detected. Any other suitable approach may be used to signal an error.
FSM 108 sends signals to the various registers in CRC module 320 to coordinate the sampling of data. For example, FSM 108 sends a clock enable signal to update register 330 after XOR tree 324 has finished processing and signature register 328 contains the checksum. The clock enable signal is coordinated so that update register 330 does not read the contents of signature register 328 at the same time that signature register 328 is reading data from registers 326. Only when a user requests to view the checksum or expected value 102 is the data sent through multiplexers 332 to shift register 334.
Programmable logic resource configuration data 714 may be organized in any suitable arrangement and may have its data cells 716 coupled to data lines and address lines in any suitable arrangement. For purposes of brevity and clarity, data 714 is primarily described herein as an array of data cells 716 with data lines 718 extending across rows of data cells 716 and address lines 720 extending across columns of data cells 716 for specificity and clarity.
Address register 706 may be used to select an address line 720 for loading a corresponding column of data cells 716. Each column of cells 716 may represent a frame and be associated with a different address bit in address register 706. Address register 706 may have a number of bits equal to the number of frames, with each bit in address register 706 corresponding to one address line 720.
Address register 706 has two input signals, an address register input (AINPUT) signal 702 and an address register clock (ACLOCK) signal 704. Input signal 702 can be asserted (e.g., set to binary “1”) with a first pulse by address register clock signal 704, causing a first bit location in address register 706, which corresponds to a first frame, to be set to binary “1” After the first pulse by address register clock signal 704, input signal 702 can be deasserted (e.g., set to binary “0”). With each subsequent pulse by address register clock signal 704, the binary “1” in address register 706 is shifted by one bit location to index a next frame. The output of address register 706 is sent via data path 708 to control logic 712. Control logic 712 is controlled by an address enable (AENABLE) signal 710, which allows one address line 720 to be selected at the appropriate time.
When a frame is selected, the binary digits stored in the selected data cells 716 are written onto corresponding data lines 718, where they are loaded into data register 722 when the data register clock (DCLOCK) signal 724 is pulsed. Data register 722 can be a dedicated register used only during the loading of frames or can be a shared register used for different functions at different times (e.g., data register 722 can be the same register used during configuration of programmable logic resource configuration data 714 onto the programmable logic resource). The contents of data register 722 are subsequently loaded into error detection circuitry via data path 726.
Each CRAM cell 814 includes, for example, two transistors 816 and 822, and two inverters 818 and 820. Transistors 816 and 822 may be any suitable transistors including bipolar junction transistor (BJTs), field-effect transistors (FETS), and metal-oxide semiconductor FETS (MOSFETS). Transistor 816, for example, may be a MOSFET with a source node coupled to a corresponding data line 824, a gate node coupled to a corresponding address line 826, and a drain node coupled to inverters 818 and 820. The input of each inverter 818 and 820 is coupled to the output of the other inverter 820 and 818, respectively. Transistor 822, for example, can be a MOSFET with a source node coupled to inverters 818 and 820, a gate node coupled to a clear (CLR) signal, and a drain node coupled to a common ground. The clear signal can be used for programming a data bit to cell 814 and is not generally used for reading the data bits.
The binary digit in each data cell 814 is represented at node A. When a data line 824 is set to binary “1”, (i.e., is precharged to a predetermined voltage) and an address line 826 is set to binary “1,” the value in a corresponding CRAM cell 814 is read. If node A represents a binary “1,” that data line 824 is discharged (i.e., driven to binary “0”). If node A represents a binary “0,” that data line 824 remains precharged (i.e., set to binary “1”). The value read onto each data line 824 is sent to data register 828 when data register clock (DCLOCK) signal 830 is pulsed. An inverter may be coupled to each data line 824 to invert the binary representation of the data prior to the data being sent to data register 828. Data can be read from data register 828 via data path 832. Data path 832 may be any suitable path for transmitting data, including a serial bus, a parallel bus, or a combination of the same. The entire contents of data register 828 or a subset of the data (e.g., 1 data bit, 8 data bits, 16 data bits, 32 data bits) may be sent to path 832 for a given cycle.
Flow 900 begins at step 910 in an idle mode. Next, at step 920, flow 900 determines whether error detection begins, which can be indicated by a flag. This flag may be raised when an application (e.g., an error detection application or any other suitable application) is about to run that needs access to data in the CRAM. This may be signaled by, for example, a dedicated bit in a register being asserted to binary “1” when the system is in user mode. If the flag is not raised, flow 900 remains at step 920. If the flag is raised, flow 900 moves to step 1000 where flow 900 prepares to load a first frame into the data register.
Next, at step 1004, all data lines 618 are precharged. Also at step 1004, address register clock signal 704 is disabled and address register input signal 702 is deasserted. At step 1006, flow 1000 determines whether the precharge counter has been set to binary “1.” The precharge counter is set to binary “1” when data lines 718 have been fully precharged (e.g., after 16 cycles). If the precharge counter remains at binary “0,” flow 1000 returns to step 1004.
If the precharge counter is set to binary “1,” flow 1000 moves to step 1008 where the data line precharge is turned off, the precharge counter is disabled, and a read counter is enabled (e.g., RCOUNTER is activated). The read counter indicates when data corresponding to a selected address have been fully read onto corresponding data lines 718 (e.g., after 16 cycles).
At step 1010, the address line for a first frame (e.g., a first column of data cells 716 corresponding to address line 1) is enabled (e.g., AENABLE signal 710 is set to binary “1”) and the corresponding cell contents are read onto corresponding data lines 718. At step 1012, flow 1000 determines whether the read counter has been set to binary “1.” If the read counter is still binary “0,” flow 1000 returns to step 1010 where address enable signal 710 remains enabled and data continues to be read onto data lines 718. For example, for CRAM data cells as shown in
Referring back to
At step 1104, data from the first frame, which is currently stored in data register 722, is loaded into CRC module 320 (e.g., sent to multiplexer 322 and then to XOR tree 324 to begin computing the checksum). A predetermined number of bits (e.g., 8 bits, 16 bits, or any other suitable number of bits) is sent from data register 722 to CRC module 320 in each clock cycle. Next, at step 1106, flow 1100 determines whether the data register counter is set to binary “1.” If the data register counter is binary “0,” flow 1100 returns to step 1104 where a next predetermined number of bits are loaded into CRC module 320.
If the data register counter is set to binary “1,” flow 1100 moves to step 1108 where the data register counter is disabled, and address register clock signal 704 is enabled and the precharge counter is enabled (e.g., reset to binary “0” and activated) in preparation for loading a next frame. Address register clock signal 704 shifts the binary “1” that indexes a first address line 720 to index a next address line 720. Also at step 1108, a next predetermined number of bits from data register 722 is loaded into CRC module 320.
At step 1110, all the data lines 718 are precharged, address register clock signal 704 is disabled, and a next predetermined number of bits from data register 722 is loaded into CRC circuitry 320. At step 1112, flow 1100 determines whether the precharge counter is set to binary “1.” If the precharge counter is binary “0,” flow 1100 returns to step 1110. As data is loaded into CRC circuitry 320 over a predetermined number of cycles (e.g., 16 cycles), this next predetermined number of bits is loaded into CRC circuitry 320 during any one of or over a range of the predetermined number of cycles. The bits may be read in parallel over one cycle or in multiple cycles, in serial over the predetermined number of cycles, or in a combination of serial and parallel reads.
If the precharge counter is set to binary “1,” flow 1100 moves to step 1114 where the data line precharge is turned off, the precharge counter is disabled, and the read counter is enabled (e.g., RCOUNTER is reset to binary “0” and activated). At step 1116, the address line for a next frame is enabled (e.g., AENABLE signal 710 is set to binary “1”) and the contents of cells 716 in the next frame are read onto corresponding data lines 718. Also at step 1116, a next predetermined number of bits from data register 722 is loaded into CRC module 320. At step 1118, flow 1100 determines whether the read counter has been set to binary “1.” If the read counter remains at binary “0,” flow 1100 returns to step 1116. As data is read onto data lines 618 during a predetermined number of cycles (e.g., 16 cycles), this next predetermined number of bits may be read from data register 722 during any one of or over a range of the predetermined number of cycles.
If the read counter is set to binary “1,” flow 1100 moves to step 1120 where the next to last bit of the current frame in data register 722 is loaded into CRC module 320, the frame counter is incremented (notated by N++ where N is the current frame loaded onto data lines 618), and the read counter is disabled. At step 1122, flow 1100 determines whether the frame is the last frame. If the frame is not the last frame, flow 1100 moves to step 1124 where the last bit of the frame currently in data register 722 (e.g., frame N−1) is shifted to CRC module 320, the next frame whose data is currently on data lines 718 is loaded into data register 722, address enable signal 710 is disabled, and the data register counter is enabled (e.g., DCOUNTER is reset to binary “0” and activated). Flow 1100 then returns to step 1104 where the frame currently in data register 722 is loaded into CRC module 320 while a subsequent frame is prepared to be loaded into data register 722.
Referring to
Flow 1300 then moves to step 1304 where a predetermined number of data bits in the last frame is loaded into CRC circuitry 320. At step 1306, if the data register counter is binary “0,” flow 1300 returns to step 1304. If the data register counter is set to binary “1,” flow 1300 moves to step 1308 where the data register counter is disabled, address register clock signal 704 is enabled, the precharge counter is enabled, and a predetermined number of data bits in the last frame is loaded into CRC circuitry 320.
At step 1310, all data lines 718 are precharged, address register clock signal 704 is disabled, and the next bit of the last frame is loaded into CRC circuitry 320. Next, at step 1312, flow 1300 determines whether the precharge counter is set to binary “1.” If the precharge counter remains at binary “0,” flow 1300 returns to step 1310. If the precharge counter is set to binary “1,” flow 1300 moves to step 1314 where the data line precharge is turned off, the precharge counter is disabled, the read counter is enabled, and the next bit of the last frame is loaded into CRC module 320. At step 1316, the next bit of the last frame is loaded into CRC module 320. Next, at step 1318, flow 1300 determines whether the read counter is set to binary “1.” If the read counter remains at binary “0,” flow 1300 returns to step 1116. If the read counter is set to binary “1,” flow 1300 moves to step 1320 where the read counter is disabled and the next to last bit is loaded into CRC module 320. At step 1322, the last bit of the last frame is loaded into CRC module 320 and a load CRC signal is asserted.
Referring to
Referring back to
When the resulting checksum is loaded into signature register 328 at step 1612, flow 1600 then moves to step 1614 where a logical “OR” is performed on each bit in signature register 328. The result of the “OR” operation is output onto a CRC error pin at step 1616. Flow 1600 then returns to step 1618.
System 1700 can be used in a wide variety of applications, such as computer networking, data networking, instrumentation, video processing, digital signal processing, or any other application where the advantage of using programmable or reprogrammable logic is desirable. Programmable logic resource or module 1702/1704 can be used to perform a variety of different logic functions. For example, programmable logic resource or module 1702/1704 can be configured as a processor or controller that works in cooperation with processor 1706. Programmable logic resource or module 1702/1704 may also be used as an arbiter for arbitrating access to a shared resource in system 1700. In yet another example, programmable logic resource or module 1702/1704 can be configured as an interface between processor 1706 and one of the other components in system 1700. It should be noted that system 1700 is only exemplary, and that the true scope and spirit of the invention should be indicated by the following claims.
Various technologies can be used to implement programmable logic resources 1702 or multi-chip modules 1704 having the features of this invention, as well as the various components of those devices (e.g., programmable logic connectors (“PLCs”) and programmable function control elements (“FCEs”) that control the PLCs). For example, each PLC can be a relatively simple programmable connector such as a switch or a plurality of switches for connecting any one of several inputs to an output. Alternatively, each PLC can be a somewhat more complex element that is capable of performing logic (e.g., by logically combining several of its inputs) as well as making a connection. In the latter case, for example, each PLC can be a product term logic, implementing functions such as AND, NAND, OR, or NOR. Examples of components suitable for implementing PLCs include any of the types of volatile or nonvolatile memory described above that can be used to store programmable logic resource configuration data, EPROMs, EEPROMs, pass transistors, transmission gates, antifuses, laser fuses, metal optional links, etc. PLCs and other circuit components may be controlled by various, programmable, function control elements (“FCEs”). For example, FCEs can be any of the types of volatile or nonvolatile memory described above that can be used to store the programmable logic resource configuration data. FCEs can also be first-in first-out (“FIFO”) memories, EPROMS, EEPROMs, function control registers, ferro-electric memories, fuses, antifuses, or the like. From the various examples mentioned above it will be seen that this invention is applicable to both one-time-only programmable and reprogrammable resources.
Thus it is seen that error detection circuitry is provided on a programmable logic resource. One skilled in the art will appreciate that the invention can be practiced by other than the prescribed embodiments, which are presented for purposes of illustration and not of limitation, and the invention is limited only by the claims which follow.
This is a division of pending prior U.S. Patent now U.S. Pat. No. 7,517,055 application Ser. No. 11/930,739, filed Oct. 31, 2007, now U.S. Pat. No. 7,577,055 which is a division of U.S. patent application Ser. No. 10/270,711, filed Oct. 10, 2002, now U.S. Pat. No. 7,310,757, which claims the benefit of U.S. provisional patent application No. 60/328,668, filed Oct. 11, 2001, each of which is hereby incorporated by reference herein in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
4005405 | West | Jan 1977 | A |
4375664 | Kim | Mar 1983 | A |
4866717 | Murai et al. | Sep 1989 | A |
4930098 | Allen | May 1990 | A |
4930107 | Chan et al. | May 1990 | A |
4940909 | Mulder et al. | Jul 1990 | A |
5111464 | Farmwald et al. | May 1992 | A |
5200920 | Norman et al. | Apr 1993 | A |
5237219 | Cliff | Aug 1993 | A |
5291079 | Goetting | Mar 1994 | A |
5305324 | Demos | Apr 1994 | A |
5307056 | Urbanus | Apr 1994 | A |
5321704 | Erickson et al. | Jun 1994 | A |
5349691 | Harrison et al. | Sep 1994 | A |
5426379 | Trimberger | Jun 1995 | A |
5430687 | Hung et al. | Jul 1995 | A |
5466117 | Resler et al. | Nov 1995 | A |
5495491 | Snowden et al. | Feb 1996 | A |
5511211 | Akao et al. | Apr 1996 | A |
5528176 | Kean | Jun 1996 | A |
5543730 | Cliff et al. | Aug 1996 | A |
5552722 | Kean | Sep 1996 | A |
5581198 | Trimberger | Dec 1996 | A |
5588112 | Dearth et al. | Dec 1996 | A |
5590305 | Terrill et al. | Dec 1996 | A |
5598424 | Erickson et al. | Jan 1997 | A |
5598530 | Nagao | Jan 1997 | A |
5606276 | McClintock | Feb 1997 | A |
5608342 | Trimberger | Mar 1997 | A |
5629949 | Zook | May 1997 | A |
5640106 | Erickson et al. | Jun 1997 | A |
5650734 | Chu et al. | Jul 1997 | A |
5670897 | Kean | Sep 1997 | A |
5680061 | Veenstra et al. | Oct 1997 | A |
5691907 | Resler et al. | Nov 1997 | A |
5694056 | Mahoney et al. | Dec 1997 | A |
5694399 | Jacobson et al. | Dec 1997 | A |
5696454 | Trimberger | Dec 1997 | A |
5742531 | Freidin et al. | Apr 1998 | A |
5754566 | Christopherson et al. | May 1998 | A |
5767734 | Vest et al. | Jun 1998 | A |
5773993 | Trimberger | Jun 1998 | A |
5798656 | Kean | Aug 1998 | A |
5812472 | Lawrence et al. | Sep 1998 | A |
5821772 | Ong et al. | Oct 1998 | A |
5838167 | Erickson et al. | Nov 1998 | A |
5844829 | Freidin et al. | Dec 1998 | A |
5844854 | Lee | Dec 1998 | A |
5848026 | Ramamurthy et al. | Dec 1998 | A |
5860078 | Emmot | Jan 1999 | A |
5869980 | Chu et al. | Feb 1999 | A |
5873113 | Rezvani | Feb 1999 | A |
5949987 | Curd et al. | Sep 1999 | A |
5961576 | Freidin et al. | Oct 1999 | A |
5978952 | Hayek et al. | Nov 1999 | A |
5995744 | Guccione | Nov 1999 | A |
5995988 | Freidin et al. | Nov 1999 | A |
5999014 | Jacobson et al. | Dec 1999 | A |
6011406 | Veenstra | Jan 2000 | A |
6018250 | Chiang et al. | Jan 2000 | A |
6023565 | Lawman et al. | Feb 2000 | A |
6024486 | Olarig et al. | Feb 2000 | A |
6028445 | Lawman | Feb 2000 | A |
6044025 | Lawman | Mar 2000 | A |
6049222 | Lawman | Apr 2000 | A |
6052755 | Terrill et al. | Apr 2000 | A |
6057704 | New et al. | May 2000 | A |
6065146 | Bosshart | May 2000 | A |
6069489 | Iwanczuk et al. | May 2000 | A |
6097210 | Iwanczuk et al. | Aug 2000 | A |
6101614 | Gonzales et al. | Aug 2000 | A |
6105105 | Trimberger | Aug 2000 | A |
6128215 | Lee | Oct 2000 | A |
6128760 | Poeppleman et al. | Oct 2000 | A |
6137307 | Iwanczuk et al. | Oct 2000 | A |
6154048 | Iwanczuk et al. | Nov 2000 | A |
6184705 | Cliff et al. | Feb 2001 | B1 |
6191614 | Schultz et al. | Feb 2001 | B1 |
6201406 | Iwanczuk et al. | Mar 2001 | B1 |
6204687 | Schultz et al. | Mar 2001 | B1 |
6216259 | Guccione et al. | Apr 2001 | B1 |
6223309 | Dixon et al. | Apr 2001 | B1 |
6237124 | Plants | May 2001 | B1 |
6242941 | Vest et al. | Jun 2001 | B1 |
6279128 | Arnold et al. | Aug 2001 | B1 |
6314550 | Wang et al. | Nov 2001 | B1 |
6349390 | Dell et al. | Feb 2002 | B1 |
6366117 | Pang et al. | Apr 2002 | B1 |
6429682 | Schultz et al. | Aug 2002 | B1 |
6429871 | Katsura et al. | Aug 2002 | B1 |
6441641 | Pang et al. | Aug 2002 | B1 |
6560743 | Plants | May 2003 | B2 |
6636935 | Ware et al. | Oct 2003 | B1 |
6651155 | Bocchino et al. | Nov 2003 | B1 |
6701480 | Karpuszka et al. | Mar 2004 | B1 |
6832340 | Larson et al. | Dec 2004 | B2 |
6838899 | Plants | Jan 2005 | B2 |
6839868 | Pignol | Jan 2005 | B1 |
6847554 | Satori | Jan 2005 | B2 |
6848063 | Rodeheffer et al. | Jan 2005 | B2 |
6859904 | Kocol et al. | Feb 2005 | B2 |
6981153 | Pang et al. | Dec 2005 | B1 |
7007203 | Gorday et al. | Feb 2006 | B2 |
7036059 | Carmichael et al. | Apr 2006 | B1 |
7103743 | Goldschmidt | Sep 2006 | B2 |
7170891 | Messenger | Jan 2007 | B2 |
7278128 | Trimberger | Oct 2007 | B1 |
7310757 | Ngo et al. | Dec 2007 | B2 |
7370254 | Rajski et al. | May 2008 | B2 |
7577055 | Ngo et al. | Aug 2009 | B2 |
20040230767 | Bland et al. | Nov 2004 | A1 |
20050040844 | Plants | Feb 2005 | A1 |
20050044467 | Leung et al. | Feb 2005 | A1 |
20050071730 | Moyer et al. | Mar 2005 | A1 |
20050073884 | Gonzalez et al. | Apr 2005 | A1 |
20050144551 | Nahas | Jun 2005 | A1 |
20050154943 | Alexander et al. | Jul 2005 | A1 |
20070234163 | Mukherjee et al. | Oct 2007 | A1 |
Number | Date | Country |
---|---|---|
0 291 167 | Nov 1988 | EP |
0 838 969 | Apr 1998 | EP |
1 100 020 | May 2001 | EP |
61101857 | May 1986 | JP |
62251949 | Nov 1987 | JP |
06-036600 | Oct 1994 | JP |
08-340342 | Dec 1996 | JP |
WO 9829811 | Jul 1998 | WO |
Number | Date | Country | |
---|---|---|---|
20090282306 A1 | Nov 2009 | US |
Number | Date | Country | |
---|---|---|---|
60328668 | Oct 2001 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11930739 | Oct 2007 | US |
Child | 12503637 | US | |
Parent | 10270711 | Oct 2002 | US |
Child | 11930739 | US |