soc/cores/hyperbus: Fix build with SDRTristate (to prepare tests with it).
This commit is contained in:
parent
3a53a92bb2
commit
8f5c2dfbca
|
@ -89,8 +89,8 @@ class HyperRAM(LiteXModule):
|
|||
|
||||
# Tristates.
|
||||
# ----------
|
||||
dq = self.add_tristate(pads.dq) if not hasattr(pads.dq, "oe") else pads.dq
|
||||
rwds = self.add_tristate(pads.rwds) if not hasattr(pads.rwds, "oe") else pads.rwds
|
||||
dq = self.add_tristate(pads.dq, register=False) if not hasattr(pads.dq, "oe") else pads.dq
|
||||
rwds = self.add_tristate(pads.rwds, register=False) if not hasattr(pads.rwds, "oe") else pads.rwds
|
||||
self.comb += [
|
||||
# DQ.
|
||||
dq.o.eq( dq_o),
|
||||
|
@ -357,10 +357,11 @@ class HyperRAM(LiteXModule):
|
|||
t = TristatePads(len(pad))
|
||||
if register:
|
||||
for n in range(len(pad)):
|
||||
self.specials += SDRTristate(pad,
|
||||
self.specials += SDRTristate(pad[n],
|
||||
o = t.o[n],
|
||||
oe = t.oe,
|
||||
i = t.i[n],
|
||||
clk = ClockSignal("sys"),
|
||||
)
|
||||
else:
|
||||
self.specials += Tristate(pad,
|
||||
|
|
Loading…
Reference in New Issue