摘要 |
A technique is provided for setting an error status bit in a first-in, first-out memory having data words with associated error bits. When a word having an associated error bit that is set to indicate an error is written into the FIFO, the write pointer is captured, and a flag is set, indicating that the FIFO has a word with an error. If a second word is written which has an error, that pointer value is captured, overwriting the current value. As the FIFO is read, the read pointers are compared with the captured write pointer. When the values are equal, and the FIFO is read, the flag is cleared, indicating that there are no more errors in the FIFO. In an exemplary case, each word in the FIFO has 8 data bits and 3 error bits. A FIFO used in implementing a UART in a modem typically includes 16 or 32 words. |