~shiny/gbcap

3869284ff68203794d2747789c487600b38fe428 — Thomas Spurden 3 years ago 4ea9847
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)
                )