A Verilog design to extract variable-length message payloads from a stream of packets using an FSM-based control path, pipelined data path, and FIFO with error detection.
- FSM reads headers and payloads from FIFO
- Pipeline outputs 1 byte per clock
- Byte-enable signal to mark valid payload
- Error flag when packet ends prematurely
packet_extractor.v: Main FSM + pipeline + error logicsimple_fifo_1k.v: 1000-byte buffer FIFOpacket_extractor_tb.v: TestbenchMakefile: For simulation using Icarus Verilog
make sim