rankbits = log2_int(nranks)
if hasattr(phase, "reset_n"):
m.d.comb += phase.reset_n.eq(1)
- m.d.comb += phase.cke.eq(Repl(Signal(reset=1), nranks))
+ m.d.comb += phase.clk_en.eq(Repl(Signal(reset=1), nranks))
if hasattr(phase, "odt"):
# FIXME: add dynamic drive for multi-rank (will be needed for high frequencies)
m.d.comb += phase.odt.eq(Repl(Signal(reset=1), nranks))
self.slave = dfi.Interface(addressbits, bankbits, nranks, databits, nphases)
self.master = dfi.Interface(addressbits, bankbits, nranks, databits, nphases)
- self._control = csr_bank.csr(4, "w") # sel, cke, odt, reset_n
+ self._control = csr_bank.csr(4, "w") # sel, clk_en, odt, reset_n
self._phases = []
for n, phase in enumerate(self._inti.phases):
m.d.comb += self._inti.connect(self.master)
for i in range(self._nranks):
- m.d.comb += [phase.cke[i].eq(self._control.w_data[1])
+ m.d.comb += [phase.clk_en[i].eq(self._control.w_data[1])
for phase in self._inti.phases]
m.d.comb += [phase.odt[i].eq(self._control.w_data[2])
for phase in self._inti.phases if hasattr(phase, "odt")]
("cs_n", nranks, DIR_FANOUT),
("ras_n", 1, DIR_FANOUT),
("we_n", 1, DIR_FANOUT),
- ("cke", nranks, DIR_FANOUT),
+ ("clk_en", nranks, DIR_FANOUT),
("odt", nranks, DIR_FANOUT),
("reset_n", 1, DIR_FANOUT),
("act_n", 1, DIR_FANOUT),
Resource("ddr3", 0,
Subsignal("clk", Pins("H3", dir="o")),
#Subsignal("clk", DiffPairs("H3", "J3", dir="o"), Attrs(IO_TYPE="SSTL135D_I")),
- Subsignal("cke", Pins("P1", dir="o")),
+ Subsignal("clk_en", Pins("P1", dir="o")),
Subsignal("we_n", Pins("R3", dir="o")),
Subsignal("ras_n", Pins("T3", dir="o")),
Subsignal("cas_n", Pins("P2", dir="o")),