Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No output for certain input blocks in static mode #5

Open
saranyuc3 opened this issue May 26, 2022 · 4 comments
Open

No output for certain input blocks in static mode #5

saranyuc3 opened this issue May 26, 2022 · 4 comments

Comments

@saranyuc3
Copy link

Starting from reset, I send the following input block in static mode, 0x18 0x19 0x72 0x04 0x00 (which is compression of 'A'), then set imode == DECOMPRESS in next cycle and imode=IDLE for all cycles onwards, the o_oprogress never increments. When I send three blocks 0x18 0x19 0x72 0x04 0xC8 0x09 0x04 0x67 0x40 0x00 (one block for each 'A', 'B' and 'C'), and then decompress, the output is 0x41 ('A'), 0x42 ('B') and output for 'C' is never produced.

@tomtor
Copy link
Owner

tomtor commented May 26, 2022

How did you test this?

Can you reproduce the error in a (new) python test and share that code?

@saranyuc3
Copy link
Author

I tested this on the RTL. Does an RTL testbench work for you? It's ''probably'' working correctly for the python code.

@tomtor
Copy link
Owner

tomtor commented May 26, 2022

I tested this on the RTL. Does an RTL testbench work for you? It's ''probably'' working correctly for the python code.

I tested it on real hardware, see README.

Also the generated RTL bench works. I assume you don't correctly write the last input byte and the conversion signals it is done.

@saranyuc3
Copy link
Author

Agreed that the last byte was wrong. Instead of 0x00 it should be 0x60 (now it incorporates a part of the header for the next byte). Now the input is 0x18 0x19 0x72 0x04 0x60. But the problem remains the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants