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

Adapt transactron.lib.storage to amaranth.lib.data #36

Merged
merged 7 commits into from
Jan 17, 2025

Conversation

piotro888
Copy link
Member

  • Previously memory element layout was LayoutList that was latter flattened to unsigned shape. Now memory accepts ShapeLike shape that is forwarded to memory
  • granularity support was accidentally removed, fixed that (supported only unsigned and ArrayLayout shapes asserted by amaranth)
  • renamed elem_count to depth for consistency with Amaranth

@piotro888 piotro888 marked this pull request as ready for review January 9, 2025 15:37
@piotro888
Copy link
Member Author

for another PR? : missing granularity tests

@tilk tilk merged commit 2bcd9d3 into kuznia-rdzeni:master Jan 17, 2025
3 checks passed
return Mux(overflow_valid[i], overflow_data[i], read_port[i].data)

# Amaranth Mux drops lib.data Layouts
return {"data": View(self.shape, Mux(overflow_valid[i], overflow_data[i], read_port[i].data))}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this is a bug. If self.shape is not a data layout, this fails.

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.

2 participants