WO1996022569A1 - Self-diagnostic asynchronous data buffers - Google Patents

Self-diagnostic asynchronous data buffers Download PDF

Info

Publication number
WO1996022569A1
WO1996022569A1 PCT/SE1996/000053 SE9600053W WO9622569A1 WO 1996022569 A1 WO1996022569 A1 WO 1996022569A1 SE 9600053 W SE9600053 W SE 9600053W WO 9622569 A1 WO9622569 A1 WO 9622569A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
value
test
parity
read
Prior art date
Application number
PCT/SE1996/000053
Other languages
French (fr)
Inventor
Mats Nils Fredrik Ernkell
Stefan Magnus Sahl
Original Assignee
Telefonaktiebolaget Lm Ericsson
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Telefonaktiebolaget Lm Ericsson filed Critical Telefonaktiebolaget Lm Ericsson
Priority to JP8522213A priority Critical patent/JPH10512693A/en
Priority to EP96901594A priority patent/EP0804762B1/en
Priority to DE69621116T priority patent/DE69621116T2/en
Priority to AU45930/96A priority patent/AU4593096A/en
Publication of WO1996022569A1 publication Critical patent/WO1996022569A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/10Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor having a sequence of storage locations each being individually accessible for both enqueue and dequeue operations, e.g. using random access memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/70Masking faults in memories by using spares or by reconfiguring
    • G11C29/88Masking faults in memories by using spares or by reconfiguring with partially good memories

Definitions

  • the present invention relates to electronic data buffers, and more particularly to asynchronous data buffers having a self-diagnostic capability for detecting a hardware fault.
  • Electronic data buffers are utilized in many applications.
  • asynchronous buffers are used, for example, to transfer digital data between two systems having different reference clocks. That is, a stream of data is clocked into the buffer under the control of a first system's reference clock (henceforth referred to as a "write clock” (WCLK) ) , and is stored until it is read out of the buffer in response to assertion of the second system's reference clock (henceforth referred to as a "read clock” (RCLK) ) , which operates asynchronously with respect to the WCLK.
  • the buffer will typically include hardware to ensure that data is clocked out in the same order in which it was clocked in.
  • a conventional asynchronous buffer 100 is illustrated in FIG. 1.
  • An m-bit wide write address (WADR) signal 119 that is provided by a write counter 103 selects which of the N decoder signals will be active.
  • the N output signals from the decoder 101 are supplied to N corresponding write enable (WEN) inputs of an N-register buffer 105.
  • a common data input (DIN) signal 107 is supplied to the inputs of each of the N registers contained in the N- register buffer 105. If the DIN signal 107 is only 1-bit wide, then the asynchronous buffer 100 is said to be a serial buffer. If the DIN signal 107 is more than 1-bit wide, then each of the N registers in the N-register buffer 105 is similarly configured, and the asynchronous buffer 100 is said to be a parallel buffer.
  • a WCLK signal 109 When a WCLK signal 109 is asserted, the value of the DIN signal 107 will be stored into that one of the N registers that has its corresponding WEN line simultaneously asserted.
  • the WCLK signal 109 is also supplied to an input of the write counter 103 in order to modify the WADR signal 119 (e.g., by incrementing) in preparation for the next write operation. Writing to the asynchronous buffer 100 continues in this manner, under the control of a first system (not shown) .
  • a second system controls the retrieval of the data stored in the asynchronous buffer 100.
  • a read operation occurs with every assertion of a RCLK signal 111.
  • (Hardware for latching the data out (DOUT) signal 113 with each assertion of the RCLK signal 111 is presumed to be part of the second system, and is not illustrated in FIG. l.)
  • Generation of the DOUT signal 113 is accomplished as follows. Outputs from each of the N registers contained in the N-register buffer 105 are supplied to corresponding inputs of an N:l multiplexor (MUX) 115.
  • MUX N:l multiplexor
  • Selection of one of the inputs for use as the DOUT signal 113 is controlled by an m-bit wide read address (RADR) signal 121 that is supplied by a read counter 117.
  • the RCLK signal 111 that is used by the second system for latching the DOUT signal 113 is also supplied to an input of the read counter 117 in order to modify the RADR signal 121 (e.g., by incrementing) in preparation for the next read operation.
  • the cycle of RADR values must be the same as the cycle of WADR values in order ensure that all DIN values supplied to the asynchronous buffer 100 are also retrieved. Reading from the asynchronous buffer 100 continues in this manner under the control of the second system (not shown) .
  • both the write counter 103 and the read counter 117 perform modulo 2 m increments (or alternatively decrements) of the respective WADR and RADR signals 119, 121. Consequently, each of these address values will "wrap around" to an initial address after generating all 2 m different address values. This makes it necessary to perform read operations with the same average frequency as write operations in order to prevent data stored in the N- register buffer 105 from being overwritten by newer data before it has been retrieved by the second system.
  • asynchronous buffer such as the one illustrated in FIG. 1
  • the buffer it is often a requirement that the buffer have a self- diagnostic capability, meaning that the buffer itself contains hardware that detects the occurrence of a hardware fault.
  • This added function requires correspondingly additional hardware.
  • One problem with providing this self-diagnostic capability arises from the fact that if the additional hardware is too complex, then the likelihood that the additional hardware is the source of a hardware fault increases.
  • a self-diagnostic asynchronous data buffer comprising addressable storage means including a plurality of addressable storage cells; data input means for receiving an input data value to be stored into one of the plurality of addressable storage cells; means for generating a write address that identifies one of the plurality of storage cells into which the input data value is to be written during a next write operation; and means for generating a read address that identifies one of the plurality of storage cells from which an output data value will be read during a next read operation.
  • the self-diagnostic asynchronous buffer further includes means for generating a test address signal; test storage means for storing the input data value during the next write operation when the test address signal equals the write address; and means for comparing the value stored in the test storage means with the output data value during the next read operation when the test address signal equals the read address, and for asserting a hardware fault signal in response to the output data value not being equal to the value stored in the test storage means.
  • the inventive asynchronous data buffer stores, in a dedicated register, the input data supplied by a first system, and also keeps track of the buffer address into which that data was stored. When that data is retrieved by a second system, the inventive asynchronous data buffer compares it to the value that was stored in the dedicated register. Any inequality indicates a hardware fault.
  • the self-diagnostic asynchronous data buffer stores into a dedicated register a bit representing parity of the input data, rather than the input data itself.
  • the buffer address to which this parity bit corresponds is also stored.
  • parity of the output data is computed, and compared with the previously stored parity value. Inequality between these two values indicates a hardware fault.
  • FIG. 1 is a block diagram of a conventional asynchronous buffer
  • FIG. 2 is a block diagram of an exemplary embodiment of a self-diagnostic asynchronous buffer in accordance with the present invention
  • FIG. 3 is a block diagram of a self- diagnostic parallel asynchronous data buffer in accordance with an alternative embodiment of the present invention.
  • FIG. 4 is a flow chart showing an alternative embodiment of the present invention which permits the occurrence of expected slips in the data flow.
  • FIG. 2 a block diagram of an exemplary embodiment of an asynchronous buffer 200 having self-diagnostic capability in accordance with the present invention is shown.
  • the decoder 101, write counter 103, N-register buffer 105, N:l MUX 115 and read counter 117 function as described above in the BACKGROUND section, and need not be described again here.
  • the asynchronous buffer 200 further includes a test register 201, an address counter 203, and a state machine 205.
  • the state machine is preferably implemented as an interconnection of gates and flip- flops, the design of which is generated by a computer program from a high-level description of the state machine behavior written in a resister-transistor logic (RTL) language.
  • Inputs to the state machine 205 are the WCLK signal 109, the WADR signal 119, the RADR signal 121, the DOUT signal 113, a D ⁇ v ⁇ signal 215 that is supplied by the test register 201, and an m-bit address (ADR) signal 211 that is supplied by the address counter 203.
  • ADR m-bit address
  • the state machine 205 generates a test register clock signal 207 for clocking data into the test register 201, and an address clock signal 209 for updating (e.g., incrementing) the value of the m-bit ADR signal 211 that is generated by the address counter 203.
  • the state machine 205 also generates a hardware fault signal 213 as follows.
  • the value of the WADR signal 119 is compared with the value of the ADR signal 211.
  • the state machine 205 generates the test register clock signal 207 so that it coincides with the WCLK signal 109. This may be implemented, for example, by using the output of a comparator (comparing the WADR signal 119 and the ADR signal 211) to gate the WCLK signal 109 to the test register clock signal 207 output of the state machine 205.
  • the test register clock signal 207 When the test register clock signal 207 is generated, the test register 201 will store the same value that is simultaneously being written into the selected register contained in the N-register buffer 105.
  • the state machine 205 compares the value of the RADR signal 121 with the value of the ADR signal 211. When the two are equal, the value of the DOUT signal 113 is compared with the value of the D SAVED signal 215. If the two are equal, then no hardware fault exists. However, if there is a mismatch between the two signals, then a hardware fault exists. Therefore, in response to this mismatch the state machine 205 asserts the hardware fault signal 213.
  • the state machine 205 After performing the comparison between the DOUT signal 113 and the D ⁇ v ⁇ signal 215, the state machine 205 generates the address clock signal 209 in order to update (e.g., increment) the value of the - bit ADR signal 211 to the next N-register buffer address that is to be tested. The testing procedure then repeats the steps described above.
  • the embodiment depicted in FIG. 2 is preferably implemented as a serial buffer, in which the DIN signal 107, as well as the D SAVED signal 215 are each only 1-bit wide. This permits the test register 201 to be realized as a D-flip flop, and also minimizes the necessary hardware for comparing the current output and saved data values.
  • the same technique may also be applied to implement a parallel asynchronous data buffer simply by increasing the width of the test register 201 to match that of the DIN signal 107, and to similarly adjust the width of the hardware for comparing the DOUT and D ⁇ VED signals 113, 215.
  • the exemplary parallel asynchronous buffer 300 having self- diagnostic capability in accordance with the present invention includes a decoder 101, a write counter 103, an N-register buffer 105, an N:l MUX 115 and a read counter 117 which all function as described above in the BACKGROUND section, and need not be described again here.
  • the parallel serial asynchronous buffer 300 further includes a parity register 301, an address counter 303, and a state machine 305.
  • Inputs to the state machine 305 are the WCLK signal 109, the WADR signal 119, the RADR signal 121, the DOUT signal 113, a PA ITYs AVE u signal 315 that is supplied by the parity register 301, and an m-bit address (ADR) signal 311 that is supplied by the address counter 303.
  • the state machine 305 generates a parity register clock signal 307 for clocking a parity signal 317 into the parity register 301.
  • the state machine 305 also generates an address clock signal 309 for updating (e.g., incrementing) the value of the m-bit ADR signal 311 that is generated by the address counter 303.
  • the state machine 305 additionally generates a hardware fault signal 313 in accordance with the following steps.
  • the value of the WADR signal 119 is compared with the value of the ADR signal 211.
  • the state machine 305 generates the parity register clock signal 307 so that it coincides with the WCLK signal 109. This may be implemented, for example, by using the output of a comparator (comparing the WADR signal 119 and the ADR signal 311) to gate the WCLK signal 109 to the parity register clock signal 307 output of the state machine 305.
  • the state machine 305 also provides the parity signal 317 to the data input port of the parity register 301.
  • the parity signal 317 is computed to indicate parity (either even or odd) of the DIN signal 107.
  • the parity register 301 When the parity register clock signal 307 is asserted, the parity register 301 will store the value of the parity signal 317. This value, which then becomes available as the PA ITY SAVED signal 315 that is supplied by the parity register 301, is also the expected parity of the value that has been written into the selected register contained in the N-register buffer 105.
  • the state machine 305 compares the value of the RADR signal 121 with the value of the ADR signal 311. When the two are equal, the state machine 305 computes the parity of the value of the DOUT signal 113, and compares this computed parity value with the value of the PARITY SAVED signal 315. If the two values are equal, then no hardware fault exists. However, if there is a mismatch between the two signals, then a hardware fault exists. Therefore, in response to this mismatch the state machine 305 asserts the hardware fault signal 313. After performing the comparison between the
  • the state machine 305 generates the address clock signal 309 in order to update (e.g., increment) the value of the m-bit ADR signal 311 to the next N-register buffer address that is to be tested.
  • the testing procedure then repeats the steps described above.
  • the steps depicted in FIG. 4 relate to an embodiment of the present invention such as that described above with respect to FIG. 3, in which the parity of the stored data value, instead of the data value itself, is temporarily stored by the diagnostic hardware in a parity register 301.
  • the data itself is stored in a test register 201.
  • the address of the location to be tested is initialized to zero.
  • the hardware fault signal 313 and an ERROR flag are both initialized to indicate the absence of any detected hardware fault.
  • the ERROR flag may be a latch that is internal to the state machine 305.
  • the WADR signal 119 is compared with the value of the ADR signal 311 (block 403) . So long as the values are not equal, the comparison at block 403 is repeated.
  • the parity of the DIN signal 107 (i.e., the parity signal 317) is stored into the parity register 301 (block 405) .
  • the value of the ADR signal 311 is compared with the value of the RADR signal 121 (block 407) in order to detect when a read to the supervised address is occurring. If the two values are not the same, then another comparison between the ADR signal 311 and the WADR signal 119 is made (block 409) to account for the possibility that another write operation to the same address is being performed. If the addresses are equal, then the new parity value of the DIN signal 107 is stored into the parity register 301, replacing the previous value (block 411) . It is noted that since the previous value was never read, this represents a "slip" in the data flow.
  • the loop comprising blocks 407, 409 and possibly 411 is repeated until the value of the RADR signal 121 equals the value of the ADR signal 311, at which point execution continues by comparing the parity of the DOUT signal 113 with the value of the PARITY SAVED signal 315 (block 413) .
  • the parity of the DOUT signal 113 does not match the value of the PARITY SA EI) signal 315 (block 413) , then a hardware fault may or may not have been detected. The reason for the uncertainty arises from the fact that both a write and a read operation to/from the same address location could have occured during the execution of block 407. In such a case, the parity of the DOUT signal 113 would not correspond to the value of the PARITY SAVED signal 315. However, this should not be construed as a hardware error. To determine whether this is, or is not the case, the ERROR flag is tested (block 419) to see whether or not it has been set.
  • test at block 413 will again fail when executed during the second pass of the loop. In this instance, the second performance of the test at block 419 will determine that the ERROR flag has been set, and execution will proceed to block 423.
  • the hardware fault signal 313 is asserted, and execution continues at block 417 to prepare for testing the next address location as described above. Note that the operations described in FIG. 4 result in the hardware fault signal 313 remaining asserted once a hardware fault is detected.
  • the hardware fault signal 313 is to be asserted for a finite amount of time only, and then reset if no other faults are detected. For example, if at block 413 the value of the parity of the DOUT signal 113 is found to be equal to the value of the PARITY SAVED signal 315, the hardware fault signal 313 could again be reset (e.g., at block 415), in order to enable the detection of multiple faults in the buffer 105.
  • asynchronous buffer need not be those illustrated in FIGS. 2 and 3, but may instead be any asynchronous buffer that automatically maintains separate write and read addresses and which utilizes separate write and read clocks.
  • the invention may also be applied to provide self-diagnostic capability to a random access memory-based (RAM-based) buffer.
  • RAM-based random access memory-based
  • the decoder 101, N-register buffer 105 and N:l MUX 115 are replaced by a single dual-port RAM.
  • the invention may further be applied to provide self-diagnostic capability to a true synchronous buffer that may be used, for example, to make phase adjustments in digital high speed designs.
  • a true synchronous buffer that may be used, for example, to make phase adjustments in digital high speed designs.
  • the write and read clocks are the same clock.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Tests Of Electronic Circuits (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A self-diagnostic asynchronous data buffer includes an addressable buffer having a write address determined by a write counter and a read address determined by a read counter. A write clock controls storage into the buffer and updating of the write counter. A read clock controls reading from the buffer and updating of the read counter. The self-diagnostic asynchronous data buffer additionally has a test register, an address counter, and a state machine. To determine whether a hardware fault exists, the state machine compares the address counter output with the output of the write counter. when the two are equal, the next write to the addressable buffer causes the input data to also be stored in the test register. Next, the address counter output is compared with the output of the read counter. When the two addresses are equal, the output data from the addressable buffer is compared to the value stored in the test register. Inequality between these two values indicates a hardware fault. In an alternative embodiment, a parallel asynchronous data buffer operates by storing into a parity register a parity value of the input data, rather than the input data itself. When the address couter output is equal to the output address of the read counter, parity of the output data from the data buffer is computed and then compared with the value stored in the parity register. Inequality between these two values indicates a hardware fault.

Description

SELF-DIAGNOSTIC ASYNCHRONOUS DATA BUFFERS
BACKGROUND The present invention relates to electronic data buffers, and more particularly to asynchronous data buffers having a self-diagnostic capability for detecting a hardware fault.
Electronic data buffers are utilized in many applications. In the field of telecommunications, asynchronous buffers are used, for example, to transfer digital data between two systems having different reference clocks. That is, a stream of data is clocked into the buffer under the control of a first system's reference clock (henceforth referred to as a "write clock" (WCLK) ) , and is stored until it is read out of the buffer in response to assertion of the second system's reference clock (henceforth referred to as a "read clock" (RCLK) ) , which operates asynchronously with respect to the WCLK. The buffer will typically include hardware to ensure that data is clocked out in the same order in which it was clocked in.
A conventional asynchronous buffer 100 is illustrated in FIG. 1. The buffer includes a decoder 101, having N (preferably = 2m) outputs, only one of which is active at a time. An m-bit wide write address (WADR) signal 119 that is provided by a write counter 103 selects which of the N decoder signals will be active. The N output signals from the decoder 101 are supplied to N corresponding write enable (WEN) inputs of an N-register buffer 105. A common data input (DIN) signal 107 is supplied to the inputs of each of the N registers contained in the N- register buffer 105. If the DIN signal 107 is only 1-bit wide, then the asynchronous buffer 100 is said to be a serial buffer. If the DIN signal 107 is more than 1-bit wide, then each of the N registers in the N-register buffer 105 is similarly configured, and the asynchronous buffer 100 is said to be a parallel buffer.
When a WCLK signal 109 is asserted, the value of the DIN signal 107 will be stored into that one of the N registers that has its corresponding WEN line simultaneously asserted. The WCLK signal 109 is also supplied to an input of the write counter 103 in order to modify the WADR signal 119 (e.g., by incrementing) in preparation for the next write operation. Writing to the asynchronous buffer 100 continues in this manner, under the control of a first system (not shown) .
At the same time, a second system (not shown) controls the retrieval of the data stored in the asynchronous buffer 100. A read operation occurs with every assertion of a RCLK signal 111. (Hardware for latching the data out (DOUT) signal 113 with each assertion of the RCLK signal 111 is presumed to be part of the second system, and is not illustrated in FIG. l.) Generation of the DOUT signal 113 is accomplished as follows. Outputs from each of the N registers contained in the N-register buffer 105 are supplied to corresponding inputs of an N:l multiplexor (MUX) 115. Selection of one of the inputs for use as the DOUT signal 113 is controlled by an m-bit wide read address (RADR) signal 121 that is supplied by a read counter 117. The RCLK signal 111 that is used by the second system for latching the DOUT signal 113 is also supplied to an input of the read counter 117 in order to modify the RADR signal 121 (e.g., by incrementing) in preparation for the next read operation. The cycle of RADR values must be the same as the cycle of WADR values in order ensure that all DIN values supplied to the asynchronous buffer 100 are also retrieved. Reading from the asynchronous buffer 100 continues in this manner under the control of the second system (not shown) . In the exemplary conventional asynchronous buffer 100, both the write counter 103 and the read counter 117 perform modulo 2m increments (or alternatively decrements) of the respective WADR and RADR signals 119, 121. Consequently, each of these address values will "wrap around" to an initial address after generating all 2m different address values. This makes it necessary to perform read operations with the same average frequency as write operations in order to prevent data stored in the N- register buffer 105 from being overwritten by newer data before it has been retrieved by the second system. That is, the respective values in the write counter 103 and the read counter 117 must never pass each other, in order to avoid a slip in the data flow (i.e., the occurrence of a data value, stored in the buffer 105, being read twice or not at all). A phase locked loop (PLL) or a "stuffing" procedure may be implemented to prevent these problems from occurring. Detailed explanations of these well-known techniques are beyond the scope of this description, however, since they do not assist an understanding of the invention.
In systems that utilize an asynchronous buffer, such as the one illustrated in FIG. 1, it is often a requirement that the buffer have a self- diagnostic capability, meaning that the buffer itself contains hardware that detects the occurrence of a hardware fault. This added function requires correspondingly additional hardware. One problem with providing this self-diagnostic capability arises from the fact that if the additional hardware is too complex, then the likelihood that the additional hardware is the source of a hardware fault increases.
SUMMARY
It is therefore an object of the present invention to provide an asynchronous buffer having a self-diagnostic capability.
It is a further object of the present invention to provide this self-diagnostic capability with very little additional hardware.
In accordance with one aspect of the present invention, the foregoing and other objects are achieved in a self-diagnostic asynchronous data buffer comprising addressable storage means including a plurality of addressable storage cells; data input means for receiving an input data value to be stored into one of the plurality of addressable storage cells; means for generating a write address that identifies one of the plurality of storage cells into which the input data value is to be written during a next write operation; and means for generating a read address that identifies one of the plurality of storage cells from which an output data value will be read during a next read operation. For determining whether a hardware fault exists the self-diagnostic asynchronous buffer further includes means for generating a test address signal; test storage means for storing the input data value during the next write operation when the test address signal equals the write address; and means for comparing the value stored in the test storage means with the output data value during the next read operation when the test address signal equals the read address, and for asserting a hardware fault signal in response to the output data value not being equal to the value stored in the test storage means. Thus, the inventive asynchronous data buffer stores, in a dedicated register, the input data supplied by a first system, and also keeps track of the buffer address into which that data was stored. When that data is retrieved by a second system, the inventive asynchronous data buffer compares it to the value that was stored in the dedicated register. Any inequality indicates a hardware fault.
In accordance with another feature of the present invention, the self-diagnostic asynchronous data buffer stores into a dedicated register a bit representing parity of the input data, rather than the input data itself. The buffer address to which this parity bit corresponds is also stored. When a read operation to this buffer address is detected, parity of the output data is computed, and compared with the previously stored parity value. Inequality between these two values indicates a hardware fault. This feature is useful for implementing a parallel asynchronous data buffer, where the width of the data would otherwise require a corresponding increase in the width of the test register and data comparison hardware.
BRIEF DESCRIPTION OF THE DRAWINGS The objects and advantages of the invention will be understood by reading the following detailed description in conjunction with the drawings in which:
FIG. 1 is a block diagram of a conventional asynchronous buffer; FIG. 2 is a block diagram of an exemplary embodiment of a self-diagnostic asynchronous buffer in accordance with the present invention;
FIG. 3 is a block diagram of a self- diagnostic parallel asynchronous data buffer in accordance with an alternative embodiment of the present invention; and
FIG. 4 is a flow chart showing an alternative embodiment of the present invention which permits the occurrence of expected slips in the data flow.
DETAILED DESCRIPTION
Referring to FIG. 2, a block diagram of an exemplary embodiment of an asynchronous buffer 200 having self-diagnostic capability in accordance with the present invention is shown. The decoder 101, write counter 103, N-register buffer 105, N:l MUX 115 and read counter 117 function as described above in the BACKGROUND section, and need not be described again here.
In order to detect hardware faults, the asynchronous buffer 200 further includes a test register 201, an address counter 203, and a state machine 205. The state machine is preferably implemented as an interconnection of gates and flip- flops, the design of which is generated by a computer program from a high-level description of the state machine behavior written in a resister-transistor logic (RTL) language. Inputs to the state machine 205 are the WCLK signal 109, the WADR signal 119, the RADR signal 121, the DOUT signal 113, a D^v^ signal 215 that is supplied by the test register 201, and an m-bit address (ADR) signal 211 that is supplied by the address counter 203. The state machine 205 generates a test register clock signal 207 for clocking data into the test register 201, and an address clock signal 209 for updating (e.g., incrementing) the value of the m-bit ADR signal 211 that is generated by the address counter 203. The state machine 205 also generates a hardware fault signal 213 as follows.
First, the value of the WADR signal 119 is compared with the value of the ADR signal 211. When the two are equal, the state machine 205 generates the test register clock signal 207 so that it coincides with the WCLK signal 109. This may be implemented, for example, by using the output of a comparator (comparing the WADR signal 119 and the ADR signal 211) to gate the WCLK signal 109 to the test register clock signal 207 output of the state machine 205. When the test register clock signal 207 is generated, the test register 201 will store the same value that is simultaneously being written into the selected register contained in the N-register buffer 105.
Next, the state machine 205 compares the value of the RADR signal 121 with the value of the ADR signal 211. When the two are equal, the value of the DOUT signal 113 is compared with the value of the D SAVED signal 215. If the two are equal, then no hardware fault exists. However, if there is a mismatch between the two signals, then a hardware fault exists. Therefore, in response to this mismatch the state machine 205 asserts the hardware fault signal 213.
After performing the comparison between the DOUT signal 113 and the D^v^ signal 215, the state machine 205 generates the address clock signal 209 in order to update (e.g., increment) the value of the - bit ADR signal 211 to the next N-register buffer address that is to be tested. The testing procedure then repeats the steps described above.
The embodiment depicted in FIG. 2 is preferably implemented as a serial buffer, in which the DIN signal 107, as well as the DSAVED signal 215 are each only 1-bit wide. This permits the test register 201 to be realized as a D-flip flop, and also minimizes the necessary hardware for comparing the current output and saved data values.
Nonetheless, the same technique may also be applied to implement a parallel asynchronous data buffer simply by increasing the width of the test register 201 to match that of the DIN signal 107, and to similarly adjust the width of the hardware for comparing the DOUT and D^VED signals 113, 215.
An alternative embodiment of a parallel asynchronous data buffer will now be described with respect to FIG. 3. For parallel buffers, this technique is preferred over that described above with respect to FIG. 2, because it requires less hardware. As mentioned earlier, the more hardware that is required to implement the self-diagnostics, the more likely it is that the self-diagnostic hardware will itself be the source of a hardware fault.
Referring now to FIG. 3, the exemplary parallel asynchronous buffer 300 having self- diagnostic capability in accordance with the present invention includes a decoder 101, a write counter 103, an N-register buffer 105, an N:l MUX 115 and a read counter 117 which all function as described above in the BACKGROUND section, and need not be described again here.
In order to detect hardware faults, the parallel serial asynchronous buffer 300 further includes a parity register 301, an address counter 303, and a state machine 305. Inputs to the state machine 305 are the WCLK signal 109, the WADR signal 119, the RADR signal 121, the DOUT signal 113, a PA ITYsAVEu signal 315 that is supplied by the parity register 301, and an m-bit address (ADR) signal 311 that is supplied by the address counter 303. The state machine 305 generates a parity register clock signal 307 for clocking a parity signal 317 into the parity register 301. The state machine 305 also generates an address clock signal 309 for updating (e.g., incrementing) the value of the m-bit ADR signal 311 that is generated by the address counter 303. The state machine 305 additionally generates a hardware fault signal 313 in accordance with the following steps.
First, the value of the WADR signal 119 is compared with the value of the ADR signal 211. When the two are equal, the state machine 305 generates the parity register clock signal 307 so that it coincides with the WCLK signal 109. This may be implemented, for example, by using the output of a comparator (comparing the WADR signal 119 and the ADR signal 311) to gate the WCLK signal 109 to the parity register clock signal 307 output of the state machine 305. Coincident with the parity register clock signal 307, the state machine 305 also provides the parity signal 317 to the data input port of the parity register 301. The parity signal 317 is computed to indicate parity (either even or odd) of the DIN signal 107. When the parity register clock signal 307 is asserted, the parity register 301 will store the value of the parity signal 317. This value, which then becomes available as the PA ITYSAVED signal 315 that is supplied by the parity register 301, is also the expected parity of the value that has been written into the selected register contained in the N-register buffer 105.
Next, the state machine 305 compares the value of the RADR signal 121 with the value of the ADR signal 311. When the two are equal, the state machine 305 computes the parity of the value of the DOUT signal 113, and compares this computed parity value with the value of the PARITYSAVED signal 315. If the two values are equal, then no hardware fault exists. However, if there is a mismatch between the two signals, then a hardware fault exists. Therefore, in response to this mismatch the state machine 305 asserts the hardware fault signal 313. After performing the comparison between the
DOUT signal 113 and the PARITYSAVE signal 315, the state machine 305 generates the address clock signal 309 in order to update (e.g., increment) the value of the m-bit ADR signal 311 to the next N-register buffer address that is to be tested. The testing procedure then repeats the steps described above.
The foregoing description of the invention has relied on the assumption that a "slip" in the data flow never occurs, that is, that the respective values in the write counter 103 and the read counter 117 never pass each other, so that no data value, once stored in the buffer 105, is ever read twice or not read at all. In a system in which slips are expected to occur during normal operation, the invention should be modified slightly to avoid reporting such slips as hardware errors. These modifications will now be described with respect to the flow chart depicted in FIG. 4.
The steps depicted in FIG. 4 relate to an embodiment of the present invention such as that described above with respect to FIG. 3, in which the parity of the stored data value, instead of the data value itself, is temporarily stored by the diagnostic hardware in a parity register 301. However, those having ordinary skill in the art will readily be able to adapt these teachings to an embodiment in which the data itself is stored in a test register 201.
Referring now to FIG. 4, upon the assertion of a reset signal at block 401, the address of the location to be tested, represented by the value of the ADR signal 311, is initialized to zero. Also at block 401, the hardware fault signal 313 and an ERROR flag are both initialized to indicate the absence of any detected hardware fault. The ERROR flag, the use of which is explained below, may be a latch that is internal to the state machine 305.
Next, the WADR signal 119 is compared with the value of the ADR signal 311 (block 403) . So long as the values are not equal, the comparison at block 403 is repeated.
When the WADR signal 119 equals the ADR signal 311, then the parity of the DIN signal 107 (i.e., the parity signal 317) is stored into the parity register 301 (block 405) . Next, the value of the ADR signal 311 is compared with the value of the RADR signal 121 (block 407) in order to detect when a read to the supervised address is occurring. If the two values are not the same, then another comparison between the ADR signal 311 and the WADR signal 119 is made (block 409) to account for the possibility that another write operation to the same address is being performed. If the addresses are equal, then the new parity value of the DIN signal 107 is stored into the parity register 301, replacing the previous value (block 411) . It is noted that since the previous value was never read, this represents a "slip" in the data flow.
The loop comprising blocks 407, 409 and possibly 411 is repeated until the value of the RADR signal 121 equals the value of the ADR signal 311, at which point execution continues by comparing the parity of the DOUT signal 113 with the value of the PARITYSAVED signal 315 (block 413) .
When the hardware is not faulty, the two values match, and execution proceeds first to block 415, where the ERROR flag is again set to indicate the absence of an error, and then to block 417, where the value of the ADR signal 311 is incremented in preparation for testing (also called "supervising") the next address location. Next, execution continues back at block 403 to start the process for testing the next address location.
If the parity of the DOUT signal 113 does not match the value of the PARITYSA EI) signal 315 (block 413) , then a hardware fault may or may not have been detected. The reason for the uncertainty arises from the fact that both a write and a read operation to/from the same address location could have occured during the execution of block 407. In such a case, the parity of the DOUT signal 113 would not correspond to the value of the PARITYSAVED signal 315. However, this should not be construed as a hardware error. To determine whether this is, or is not the case, the ERROR flag is tested (block 419) to see whether or not it has been set. If it has not been previously set, then it is set (block 421) , and the entire loop is repeated for the same value of the ADR signal 311. If, during the first pass of the loop, both a write and read had occured at block 407 (thereby causing the ERROR flag to be set at block 421) , then during the second pass, the test at block 413 will determine that the parity of the DOUT signal 113 is now equal to the value of the PARITY^^ signal 315. In this case, execution proceeds to block 415, where the ERROR flag is reset, and then onto block 417 to update the value of the ADR signal 311.
Alternatively, if during the first pass of the loop block 419 had been executed for a reason other than the occurence of a simultaneous read and write to the same address during execution of block 407, then the test at block 413 will again fail when executed during the second pass of the loop. In this instance, the second performance of the test at block 419 will determine that the ERROR flag has been set, and execution will proceed to block 423. At block 423, the hardware fault signal 313 is asserted, and execution continues at block 417 to prepare for testing the next address location as described above. Note that the operations described in FIG. 4 result in the hardware fault signal 313 remaining asserted once a hardware fault is detected. However, the skilled artisan will readily be able to adapt this design for application in an environment in which the hardware fault signal 313 is to be asserted for a finite amount of time only, and then reset if no other faults are detected. For example, if at block 413 the value of the parity of the DOUT signal 113 is found to be equal to the value of the PARITYSAVED signal 315, the hardware fault signal 313 could again be reset (e.g., at block 415), in order to enable the detection of multiple faults in the buffer 105.
The invention has been described with reference to particular embodiments. However, it will be readily apparent to those skilled in the art that it is possible to embody the invention in specific forms other than those of the preferred embodiment described above. This may be done without departing from the spirit of the invention. For example, the particular implementation of the asynchronous buffer need not be those illustrated in FIGS. 2 and 3, but may instead be any asynchronous buffer that automatically maintains separate write and read addresses and which utilizes separate write and read clocks.
The invention may also be applied to provide self-diagnostic capability to a random access memory-based (RAM-based) buffer. In this case, the decoder 101, N-register buffer 105 and N:l MUX 115 are replaced by a single dual-port RAM.
The invention may further be applied to provide self-diagnostic capability to a true synchronous buffer that may be used, for example, to make phase adjustments in digital high speed designs. In this case, the write and read clocks are the same clock.
Thus, the preferred embodiments are merely illustrative and should not be considered restrictive in any way. The scope of the invention is given by the appended claims, rather than the preceding description, and all variations and equivalents which fall within the range of the claims are intended to be embraced therein.

Claims

WHAT IS CLAIMED IS:
l. A self-diagnostic asynchronous data buffer, comprising: addressable storage means including: a plurality of addressable storage cells; data input means for receiving an input data value to be stored into one of the plurality of addressable storage cells; means for generating a write address that identifies one of the plurality of storage cells into which the input data value is to be written during a next write operation; and means for generating a read address that identifies one of the plurality of storage cells from which an output data value will be read during a next read operation; means for generating a test address signal; test storage means for storing the input data value during the next write operation when the test address signal equals the write address; and means for comparing the value stored in the test storage means with the output data value during the next read operation when the test address signal equals the read address, and for asserting a Hardware fault signal in response to a comparison indicating that the output data value is not equal to the value stored in the test storage means.
2. The self-diagnostic asynchronous data buffer of claim 1, wherein the addressable storage means further includes: means for updating the write address after the next write operation; and means for updating the read address after the next read operation.
3. The self-diagnostic asynchronous data buffer of claim 2, further comprising means for updating the test address signal in response to the value stored in the test storage means being compared with the output data value.
4. A self-diagnostic asynchronous data buffer, comprising: addressable storage means including: a plurality of addressable storage cells; data input means for receiving an input data value to be stored into one of the plurality of addressable storage cells; means for generating a write address that identifies one of the plurality of storage cells into which the input data value is to be written during a next write operation; and means for generating a read address that identifies one of the plurality of storage cells from which an output data value will be read during a next read operation; means for generating a test address signal; means for generating an input data parity value that is indicative of parity of the input data value; parity storage means for storing the input data parity value during the next write operation when the test address signal equals the write address; means for generating an output data parity value that is indicative of parity of the output data value; means for comparing the value stored in the parity storage means with the output data parity value during the next read operation when the test address signal equals the read address, and for asserting a hardware fault signal in response to a comparison indicating that the output data parity value is not equal to the value stored in the parity storage means.
5. The self-diagnostic asynchronous data buffer of claim 4, wherein the addressable storage means further includes: means for updating the write address after the next write operation; and means for updating the read address after the next read operation.
6. The self-diagnostic asynchronous data buffer of claim 5, further comprising means for updating the test address signal in response to the value stored in the parity storage means being compared with the output data parity value.
7. In a system having addressable storage means comprising a plurality of addressable storage cells, data input means for receiving an input data value to be stored into one of the plurality of addressable storage cells specified by a write address during a write operation, and data output means for supplying an output data value from one of the plurality of addressable storage cells specified by a read address during a read operation, a method of testing the addressable storage means comprising the steps of: generating a test address; comparing the test address to the write address, and if the test address corresponds to the write address then storing the input data value into test storage means during the write operation, the test storage means thereafter supplying the stored input data value as a test data value at an output of the test storage means; comparing the test address to the read address; and if the test address corresponds to the read address then performing a test procedure comprising the steps of: comparing the test data value with the output data value; and if the test data value is not equal to the output data value, then asserting a hardware fault signal.
8. In a system having addressable storage means comprising a plurality of addressable storage cells, data input means for receiving an input data value to be stored into one of the plurality of addressable storage cells specified by a write address during a write operation, and data output means for supplying an output data value from one of the plurality of addressable storage cells specified by a read address during a read operation, a method of testing the addressable storage means comprising the steps of: generating a test address; comparing the test address to the write address, and if the test address corresponds to the write address then performing a first test procedure during the write operation, the first test procedure comprising the steps of: generating an input data parity value that is indicative of parity of the input data value; and storing the input data parity value into parity storage means, the test storage means thereafter supplying the stored input data parity value as a test parity value at an output of the test storage means; comparing the test address to the read address; and if the test address corresponds to the read address then performing a test procedure comprising the steps of: generating an output data parity value that is indicative of parity of the output data value; comparing the test parity value with the output data parity value; and if the test parity value is not equal to the output data parity value, then asserting a hardware fault signal.
PCT/SE1996/000053 1995-01-20 1996-01-19 Self-diagnostic asynchronous data buffers WO1996022569A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP8522213A JPH10512693A (en) 1995-01-20 1996-01-19 Self-diagnostic asynchronous data buffer
EP96901594A EP0804762B1 (en) 1995-01-20 1996-01-19 Self-diagnostic asynchronous data buffers
DE69621116T DE69621116T2 (en) 1995-01-20 1996-01-19 SELF-TESTING ASYNCHRONOUS DATA BUFFER
AU45930/96A AU4593096A (en) 1995-01-20 1996-01-19 Self-diagnostic asynchronous data buffers

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US08/376,147 1995-01-20
US08/376,147 US5633878A (en) 1995-01-20 1995-01-20 Self-diagnostic data buffers

Publications (1)

Publication Number Publication Date
WO1996022569A1 true WO1996022569A1 (en) 1996-07-25

Family

ID=23483894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SE1996/000053 WO1996022569A1 (en) 1995-01-20 1996-01-19 Self-diagnostic asynchronous data buffers

Country Status (7)

Country Link
US (1) US5633878A (en)
EP (1) EP0804762B1 (en)
JP (1) JPH10512693A (en)
AU (1) AU4593096A (en)
CA (1) CA2210153A1 (en)
DE (1) DE69621116T2 (en)
WO (1) WO1996022569A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10124268A (en) * 1996-08-30 1998-05-15 Canon Inc Print controller
US6266385B1 (en) 1997-12-23 2001-07-24 Wireless Facilities, Inc. Elastic store for wireless communication systems
US5884101A (en) * 1998-04-17 1999-03-16 I-Cube, Inc. Apparatus for detecting data buffer faults
US6928593B1 (en) * 2000-09-18 2005-08-09 Intel Corporation Memory module and memory component built-in self test

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0185924A2 (en) * 1984-12-24 1986-07-02 International Business Machines Corporation Buffer system with detection of read or write circuits' failures
EP0312238A2 (en) * 1987-10-14 1989-04-19 Nortel Networks Corporation FIFO buffer controller
EP0377894A1 (en) * 1988-12-30 1990-07-18 Alcatel Cit System to detect the erasure of data in a buffer memory, in particular for a data switch
DE4244275C1 (en) * 1992-12-28 1994-07-21 Ibm Verification of data integrity with buffered data transmission

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3751649A (en) * 1971-05-17 1973-08-07 Marcrodata Co Memory system exerciser
FR2246023B1 (en) * 1973-09-05 1976-10-01 Honeywell Bull Soc Ind
US4130240A (en) * 1977-08-31 1978-12-19 International Business Machines Corporation Dynamic error location
JPS59185097A (en) * 1983-04-04 1984-10-20 Oki Electric Ind Co Ltd Memory device with self-diagnostic function
JPH0713879B2 (en) * 1985-06-21 1995-02-15 三菱電機株式会社 Semiconductor memory device
JP2527935B2 (en) * 1986-05-19 1996-08-28 株式会社 アドバンテスト Semiconductor memory test equipment
US4831625A (en) * 1986-12-11 1989-05-16 Texas Instruments Incorporated Easily cascadable and testable cache memory
JPH0387000A (en) * 1989-08-30 1991-04-11 Mitsubishi Electric Corp Semiconductor memory device
US5469443A (en) * 1993-10-01 1995-11-21 Hal Computer Systems, Inc. Method and apparatus for testing random access memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0185924A2 (en) * 1984-12-24 1986-07-02 International Business Machines Corporation Buffer system with detection of read or write circuits' failures
EP0312238A2 (en) * 1987-10-14 1989-04-19 Nortel Networks Corporation FIFO buffer controller
EP0377894A1 (en) * 1988-12-30 1990-07-18 Alcatel Cit System to detect the erasure of data in a buffer memory, in particular for a data switch
DE4244275C1 (en) * 1992-12-28 1994-07-21 Ibm Verification of data integrity with buffered data transmission

Also Published As

Publication number Publication date
EP0804762B1 (en) 2002-05-08
US5633878A (en) 1997-05-27
JPH10512693A (en) 1998-12-02
EP0804762A1 (en) 1997-11-05
DE69621116T2 (en) 2002-11-07
CA2210153A1 (en) 1996-07-25
DE69621116D1 (en) 2002-06-13
AU4593096A (en) 1996-08-07

Similar Documents

Publication Publication Date Title
US5956748A (en) Asynchronous, dual-port, RAM-based FIFO with bi-directional address synchronization
US5267191A (en) FIFO memory system
JP3156813B2 (en) Buffer control circuit
US6033441A (en) Method and apparatus for synchronizing data transfer
US7724669B2 (en) High speed bus with flow control and extended burst enhancements
US5857005A (en) Method and apparatus for synchronizing transfer of data between memory cells
US20050157565A1 (en) Semiconductor device for detecting memory failure and method thereof
US20030097526A1 (en) High-speed first-in-first-out buffer
US6223282B1 (en) Circuit for controlling execution of loop in digital signal processing chip
US5978935A (en) Method for built-in self-testing of ring-address FIFOs having a data input register with transparent latches
US6000037A (en) Method and apparatus for synchronizing data transfer
US7437623B2 (en) Apparatus and method for performing speculative reads from a scan control unit using FIFO buffer units
US5495451A (en) Apparatus for detecting data input/output states of a plurality of first-in first-out memories
US20040022099A1 (en) FIFO memory and semiconductor device
US5633878A (en) Self-diagnostic data buffers
US6327667B1 (en) Apparatus and method for operating clock sensitive devices in multiple timing domains
US7380165B2 (en) Assembly of electronic circuits comprising means for decontaminating error-contaminated parts
US6715111B2 (en) Method and apparatus for detecting strobe errors
US5825204A (en) Apparatus and method for a party check logic circuit in a dynamic random access memory
US20050114612A1 (en) Scan testable first-in first-out architecture
US11532338B1 (en) Mediating between asynchronous clock domains while preventing false indications of FIFO occupancy
US5959932A (en) Method and apparatus for detecting errors in the writing of data to a memory
EP0989484B1 (en) Method and apparatus for synchronizing a data stream
US5471487A (en) Stack read/write counter through checking
US7340667B2 (en) Method and/or apparatus implemented in hardware to discard bad logical transmission units (LTUs)

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AL AM AT AU AZ BB BG BR BY CA CH CN CZ DE DK EE ES FI GB GE HU IS JP KE KG KP KR KZ LK LR LS LT LU LV MD MG MK MN MW MX NO NZ PL PT RO RU SD SE SG SI SK TJ TM TR TT UA UG UZ VN AZ BY KG KZ RU TJ TM

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): KE LS MW SD SZ UG AT BE CH DE DK ES FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN ML MR NE SN

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 1996901594

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2210153

Country of ref document: CA

Ref country code: CA

Ref document number: 2210153

Kind code of ref document: A

Format of ref document f/p: F

ENP Entry into the national phase

Ref country code: JP

Ref document number: 1996 522213

Kind code of ref document: A

Format of ref document f/p: F

WWP Wipo information: published in national office

Ref document number: 1996901594

Country of ref document: EP

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

WWG Wipo information: grant in national office

Ref document number: 1996901594

Country of ref document: EP