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.
|
# Tristates.
|
||||||
# ----------
|
# ----------
|
||||||
dq = self.add_tristate(pads.dq) if not hasattr(pads.dq, "oe") else pads.dq
|
dq = self.add_tristate(pads.dq, register=False) if not hasattr(pads.dq, "oe") else pads.dq
|
||||||
rwds = self.add_tristate(pads.rwds) if not hasattr(pads.rwds, "oe") else pads.rwds
|
rwds = self.add_tristate(pads.rwds, register=False) if not hasattr(pads.rwds, "oe") else pads.rwds
|
||||||
self.comb += [
|
self.comb += [
|
||||||
# DQ.
|
# DQ.
|
||||||
dq.o.eq( dq_o),
|
dq.o.eq( dq_o),
|
||||||
|
@ -357,10 +357,11 @@ class HyperRAM(LiteXModule):
|
||||||
t = TristatePads(len(pad))
|
t = TristatePads(len(pad))
|
||||||
if register:
|
if register:
|
||||||
for n in range(len(pad)):
|
for n in range(len(pad)):
|
||||||
self.specials += SDRTristate(pad,
|
self.specials += SDRTristate(pad[n],
|
||||||
o = t.o[n],
|
o = t.o[n],
|
||||||
oe = t.oe,
|
oe = t.oe,
|
||||||
i = t.i[n],
|
i = t.i[n],
|
||||||
|
clk = ClockSignal("sys"),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.specials += Tristate(pad,
|
self.specials += Tristate(pad,
|
||||||
|
|
Loading…
Reference in New Issue