Handle input line being written whilst output is stalled Could be in OUTPUT_DONE state but waiting for the last output byte to be consumed. In that case, still want to do the increments of full_lines and todo_lines.
1 files changed, 1 insertions(+), 1 deletions(-) M compress.py
M compress.py => compress.py +1 -1
@@ 135,7 135,7 @@ class CompressFrames(Module): write_pointer.eq(write_pointer + 1), # OUTPUT_DONE state will be updating full_lines/todo_lines, will # fold this increment into the subtraction there If(~self.ctl.ongoing('OUTPUT_DONE'), If(~self.ctl.ongoing('OUTPUT_DONE') & (~self.output.valid | self.output.ready), full_lines.eq(full_lines + 1), todo_lines.eq(todo_lines + 1) )