frontend/fifo/LiteDRAMFIFO: Describe parameters.

This commit is contained in:
Florent Kermarrec 2021-11-01 21:46:39 +01:00
parent a8afbe8b08
commit bf9b3609d9
1 changed files with 15 additions and 0 deletions

View File

@ -205,6 +205,21 @@ class LiteDRAMFIFO(Module):
Once we no longer have data in the Pre-Converter/DRAM FIFO/Post-Converter path and Pre-FIFO's Once we no longer have data in the Pre-Converter/DRAM FIFO/Post-Converter path and Pre-FIFO's
level is below threshold, the modules switches back to Bypass mode. level is below threshold, the modules switches back to Bypass mode.
Parameters
----------
data_width : int, in
FIFO data-width.
base : int, in
FIFO base address in DRAM (bytes).
depth: in, in
FIFO depth (bytes).
write_port: LiteDRAMNativePort
DRAM Write port.
read_port: LiteDRAMNativePort
DRAM Read port.
with_bypass: bool, in
Automatic Bypass Mode Enable.
""" """
def __init__(self, data_width, base, depth, write_port, read_port, with_bypass=False, def __init__(self, data_width, base, depth, write_port, read_port, with_bypass=False,
pre_fifo_depth = 16, pre_fifo_depth = 16,