Altera_Forum
Honored Contributor
8 years agoWhat if startofpacket is deasserted before endofpacket?
The concept of data packet usually involves a stream of serial data with fields. A data packet thus becomes a self contained unit and may not have a total fixed length as some fields may be of variable length which is described by other fields.
In avalon streaming interface there exist startofpacket and endofpacket signals. I would expect that a system is able to "know" if a packet transfer has been completed by reading the fields inside it and see if all bytes are received, parity or CRC values match payload e.t.c. Why then do we need a endofpacket signal and also a startofpacket signal? Also, what does it mean if startofpacket is asserted, deasserted and asserted again without the endofpacket being asserted? Does it mean that a packet was only partially transferred and shall be ignored?