Skip to content

Conversation

@mithro
Copy link
Contributor

@mithro mithro commented Oct 27, 2018

  • 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.

 * 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):
Copy link
Member

Choose a reason for hiding this comment

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

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)
Copy link
Member

Choose a reason for hiding this comment

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

This AsyncFIFO is always FWFT (in general there is no reason for an async FIFO not to be FWFT).

Copy link
Member

Choose a reason for hiding this comment

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

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).

Copy link
Member

@sbourdeauducq sbourdeauducq left a comment

Choose a reason for hiding this comment

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

see inline comments

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