Skip to content

Add simple RLE encoding pipeline #1005

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

Closed
wants to merge 8 commits into from

Conversation

mtdudek
Copy link
Contributor

@mtdudek mtdudek commented Jun 1, 2023

This PR adds example of simple RLE encoding pipeline.
It uses RLE encoder from #974 and stream muxer form #1004.

Depends on:

Related: #994

CC @proppy

rw1nkler and others added 8 commits June 1, 2023 10:52
The `top` flag exposed by the opt_main was not added to the list of
available flags in the bazel rules. This addition allows the `top` flag
to be used as an argument in the xls_dslx_verilog::opt_ir_args parameter.

Signed-off-by: Robert Winkler <[email protected]>
Currently, only a simple implementation is provided,
which has no optimizations related to the RLE algorithm.

The provided tests check if:
* output of the encoder matches the expected values
* sum of received symbols adds up to the amount of sent symbols
* received symbols don't repeat unless the RLE counter overflowed or the
  end of transmission was requested (using `last` flag)

Additional bazel rules added in this commit include:
* Verilog code generation
* IR benchmark generation
* Verilog benchmark generation

Internal-tag: [#44560]
Signed-off-by: Robert Winkler <[email protected]>
This commit moves intra RLE channel definitions
to rl_interface.x file. This allows for easier
control over interface changes.

Signed-off-by: Maciej Dudek <[email protected]>
This proc muxes RLE encoder output (symbols and counters)
into stream of words, where symbols and counters are
interleaved together.

Signed-off-by: Maciej Dudek <[email protected]>
This commit adds a simple RLE encoding pipeline.
It combines RLE encoder with stream muxer.
It converts stream of symbols into stream of
interleaved symbols and counts.

This commit adds simple tests to check RLE encoder
with stream muxer processing pipeline.

Signed-off-by: Maciej Dudek <[email protected]>
@mtdudek mtdudek changed the title Simple rle encoding pipeline Add simple RLE encoding pipeline Jun 1, 2023
@proppy
Copy link
Member

proppy commented Jun 5, 2023

Do want to land #974 first? or should we start reviewing now?

@tmichalak
Copy link

It seems we are close to merging #974, so that we can start reviewing this soon.

@proppy
Copy link
Member

proppy commented Jun 26, 2023

can we decouple this from #1012?

@mtdudek
Copy link
Contributor Author

mtdudek commented Oct 6, 2023

I'm closing this PR, as it's not necessary to have basic RLE implementation.

@mtdudek mtdudek closed this Oct 6, 2023
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

Successfully merging this pull request may close these issues.

4 participants