Skip to content

Commit

Permalink
phy/gw2ddrphy: supressing warnings about unconnected and bit length.
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Feb 8, 2023
1 parent 455305a commit 895b653
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions litedram/phy/gw2ddrphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
from litedram.common import *
from litedram.phy.dfi import *

class Open(Signal): pass

# BitSlip ------------------------------------------------------------------------------------------

# FIXME: Use BitSlip from litedram.common.
Expand Down Expand Up @@ -201,14 +203,16 @@ def __init__(self, pads,
i_FCLK = ClockSignal("sys2x"),
**{f"i_TX{n}": 0b0 for n in range(2)}, # CHECKME: Polarity
**{f"i_D{n}": (clk_pattern >> n) & 0b1 for n in range(4)},
o_Q0 = pad_oddrx2f
o_Q0 = pad_oddrx2f,
o_Q1 = Open()
)
self.specials += Instance("IODELAY",
p_C_STATIC_DLY = cmd_delay,
i_SDTAP = 0,
i_SETN = 0,
i_VALUE = 0,
i_DI = pad_oddrx2f,
o_DF = Open(),
o_DO = pad_clk,
)
self.specials += Instance("ELVDS_OBUF",
Expand Down Expand Up @@ -245,14 +249,16 @@ def __init__(self, pads,
i_FCLK = ClockSignal("sys2x"),
**{f"i_TX{n}": 0b0 for n in range(2)}, # CHECKME: Polarity
**{f"i_D{n}": getattr(dfi.phases[n//2], dfi_name)[i] for n in range(4)},
o_Q0 = pad_oddrx2f
o_Q0 = pad_oddrx2f,
o_Q1 = Open()
)
self.specials += Instance("IODELAY",
p_C_STATIC_DLY = cmd_delay,
i_SDTAP = 0,
i_SETN = 0,
i_VALUE = 0,
i_DI = pad_oddrx2f,
o_DF = Open(),
o_DO = pad[i]
)

Expand Down Expand Up @@ -293,6 +299,8 @@ def __init__(self, pads,
i_WLOADN = 0,
i_WMOVE = 0,
i_WDIR = 1,
o_RFLAG = Open(),
o_WFLAG = Open(),

# Reads (generate shifted DQS clock for reads)
i_READ = Replicate(dqs_re, 4),
Expand All @@ -305,7 +313,7 @@ def __init__(self, pads,
o_RBURST = burstdet,

# Writes (generate shifted ECLK clock for writes)
i_WSTEP = 0, # CHECKME: Useful?
i_WSTEP = Constant(0, 8), # CHECKME: Useful?
o_DQSW270 = dqsw270,
o_DQSW0 = dqsw
)
Expand Down Expand Up @@ -362,7 +370,8 @@ def __init__(self, pads,
i_TCLK = dqsw270,
**{f"i_TX{n}": 0b0 for n in range(2)}, # CHECKME: Polarity
**{f"i_D{n}": dm_o_data_muxed[n] for n in range(4)},
o_Q0 = pads.dm[i]
o_Q0 = pads.dm[i],
o_Q1 = Open()
)

# DQ -----------------------------------------------------------------------------------
Expand Down

0 comments on commit 895b653

Please sign in to comment.