Add LFSR generator to standard library - #72
Conversation
|
We discussed this RFC in today's meeting. On alternatives:
Keep both for now. We could deprecate one later if needed without changing the interface.
Keep it as it's vital functionality for planned use cases.
Keep them, the utility seems worth the minimal complexity. On the unresolved questions:
Swap to using streams for ready/valid, and keep ResetInserter for resetting.
Requiring all-0s initial values can be left to synthesis tools. No need to include here. Future workAdd some way to load a specific new state. The proposed option after discussion is a Other points
|
|
@adamgreig Do you think you could update the RFC with the conclusions from the meeting? |
|
🎉 |
|
I've updated with the feedback from the review meeting, with one variation:
I considered this but it also means the |
|
This repository has been migrated to Codeberg. Please continue the discussion over at https://codeberg.org/amaranth-lang/rfcs/pulls/72. I am aware that this will unfortunately cause some degree of disruption; please contact me privately or on IRC/Matrix channels to resolve any issues. |
This is my first draft of an LFSR generator for the standard library, following in the general design of the existing CRC generator. There are a few unresolved details and some remaining questions on exactly how the implementation will work, but I am working on a first pass at that too.
Rendered