-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
feature: add new optional reset signal to StreamWidthAdapter and StreamFragmentWidthAdapter #1008
base: dev
Are you sure you want to change the base?
Conversation
Have you investigated the reset area described here? I think this can help with the reset related logic. |
The reset area isn't useful for this purpose. The reset area would also add the reset signal to the internal buffer register which is not needed and therefore makes the design unnecessarily more complex. More important, the reset area does not affect the combinatorial |
I see how the reset area wouldn't be necessary here. Also looks like your apply method changes failed to compile. |
I think the combination logic you want to apply to those Streams is more like a call to haltWhen() or a reduced version. The design principle of the components in the library is to adopt the combinational logic in some methods or areas. While user using them, they can easily composite them through facilities with or without registers to control the timing. As a reference, there are no components (to my knowledge) mixed reset logic into the functional logic. |
Yes, I already fixed that.
As of my unterstanding,
How do you think such a "reset" signal could be implemented in a better way? Putting the adapter into a reset area and adding |
instead of "reset", maybe it should be more like "flush" ? |
Context, Motivation & Description
I've added a new optional reset signal to the StreamWidthAdapter (and also StreamFragmentWidthAdapter). This signal resets the internal counters to 0. Output
valid
/ready
signals are combinatorially set toFalse
when the reset input is asserted. Therefore the reset signal effectivly discards the buffered input. It is allowed to passnull
for the reset signal. In that case the adapters behave exactly as before.Impact on code generation
valid
/ready
signalsChecklist
/** */
?