Vai al contenuto

prism_result_packetizer

Memoryresult store read interface

prism_result_packetizer serializes one destination-specific packet job and its stored payload as an Ethernet RES frame for a single egress port.

Contracts

  • Packet job: accepts and buffers prism_result_packet_job_t while its chunk slot is being armed.
  • Arm status: queries the result store and starts only after receiving a matching registered response.
  • Payload read: prefetches the storage slot and byte offset one cycle ahead and consumes the corresponding beat-aligned 512-bit word.
  • Egress AXI stream: publishes the complete 512-bit Ethernet frame with tkeep, tlast, and ready/valid flow control.
  • Release event: returns the chunk slot after the final frame beat is accepted.

Contract behavior

  • Builds Ethernet, PRISM control-word, and RES headers from the packet job and local MAC address.
  • Registers the final-beat offset and byte count when the packet job is accepted.
  • Reads payload bytes without changing their numeric wire order.
  • Sets the last-chunk and accumulation-inexact flags from chunk metadata.
  • Pads short Ethernet frames to 60 bytes while retaining the logical payload length in protocol metadata.
  • Holds output data stable under backpressure and releases the slot exactly once after transmission.