This repository was archived by the owner on Jan 5, 2026. It is now read-only.
migen.genlib: Improve "first word fall through" docs.#152
Open
mithro wants to merge 1 commit intom-labs:masterfrom
Open
migen.genlib: Improve "first word fall through" docs.#152mithro wants to merge 1 commit intom-labs:masterfrom
mithro wants to merge 1 commit intom-labs:masterfrom
Conversation
* Moved "first word fall through" `fwft` to be part of _FIFOInterface. * Added documentation what the hell `fwft` stands for. * Checks the compatibility of the `fwft` argument given to the FIFO.
| """ | ||
| def __init__(self, width, depth): | ||
|
|
||
| def __init__(self, width, depth, fwft=False): |
Member
There was a problem hiding this comment.
FIFOInterface does not use fwft and therefore should not have this parameter.
| _FIFOInterface.__init__(self, width, depth) | ||
| def __init__(self, width, depth, fwft=False): | ||
| assert not fwft, "fwft is not supported on the AsyncFIFO." | ||
| _FIFOInterface.__init__(self, width, depth, fwft=False) |
Member
There was a problem hiding this comment.
This AsyncFIFO is always FWFT (in general there is no reason for an async FIFO not to be FWFT).
Member
There was a problem hiding this comment.
With a sync FIFO it's either:
- non-FWFT
- asynchronous reads (lots of resources used, timing issues)
- 2 cycles of latency instead of 1
The async FIFO does not have to make this compromise (the latency is already high enough from the CDC and hides the memory latency).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fwftto be part of _FIFOInterface.fwftstands for.fwftargument given to the FIFO.