diff --git a/litedram/dfii.py b/litedram/dfii.py index a52f716..075eeab 100644 --- a/litedram/dfii.py +++ b/litedram/dfii.py @@ -17,12 +17,12 @@ class PhaseInjector(Module, AutoCSR): self.comb += [ If(self._command_issue.re, - phase.cs_n.eq(~self._command.storage[0]), + phase.cs_n.eq(Replicate(~self._command.storage[0], len(phase.cs_n))), phase.we_n.eq(~self._command.storage[1]), phase.cas_n.eq(~self._command.storage[2]), phase.ras_n.eq(~self._command.storage[3]) ).Else( - phase.cs_n.eq(1), + phase.cs_n.eq(Replicate(1, len(phase.cs_n))), phase.we_n.eq(1), phase.cas_n.eq(1), phase.ras_n.eq(1)