FIFO storage including pointer misalignment detection
View Patent ↗A FIFO store for data packets and their respective status words includes space for the writing of a predetermined sync word or one of a cyclic sequence of predetermined sync words with each status word. The sync word can be used to prevent forwarding of a packet and as an aid to fault diagnosis if on reading the status word the sync word does not match any of the predetermined sync words.
1. A method of operating a FIFO memory to store and retrieve data packets, comprising the steps of
providing a head pointer indicating progressively where entries are to be written to the FIFO memory.
providing a tail pointer indicating progressively where entries are to be read from the FIFO memory,
for each packet stored in the memory, writing a status word including status data and a sync pattern,
for each packet to be read from the memory,
reading the respective status word,
determining whether the sync pattern matches a predetermined sync pattern; and
(i) forwarding the packet when said status word meets predetermined criteria including match between the sync pattern and said predetermined sync pattern,
(ii) preventing forwarding of said packet when said status word fails to meet said predetermined criteria.
2. A method according to claim 1 including writing, for each packet, a corresponding bit mask and wherein said predetermined criteria include a match between a predetermined port and a port indicated by the bit mask.