pub fn hbm_writer_kernel(
clock_reset: ClockReset,
input: WriterInput,
q: HbmWriterQ,
) -> (WriterOutput, HbmWriterD)Expand description
The writer’s logic.
- Inputs:
clock_reset(reset forces everyvalidlow), the signer’s beat, the memory’sreadys and B response, andq, the currentWriterState. - Outputs: the AXI4 write request,
beat_readyback to the signer, the acknowledged-frame count and the sticky error; plusHbmWriterD, the next state. - Timing: purely combinational within one cycle; the counters advance at
the next clock edge.
frames_writtenanderrorare the registered values, so they lag the B transfer by one clock.