Skip to content

Commit

Permalink
build: common: make sure Signal lenght is right
Browse files Browse the repository at this point in the history
make sure the the lenght of the o2 Signal is
the same lenght of o1, when a DDRImput implementation is used
for a SDRInput. This is needed for multibit io.

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg committed Jan 22, 2025
1 parent 666c9b4 commit a019fd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions litex/build/altera/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def lower(dr):
class AlteraSDRInput:
@staticmethod
def lower(dr):
return AlteraDDRInputImpl(dr.i, dr.o, Signal(), dr.clk)
return AlteraDDRInputImpl(dr.i, dr.o, Signal(len(dr.o)), dr.clk)

# Special Overrides --------------------------------------------------------------------------------

Expand Down Expand Up @@ -225,7 +225,7 @@ def lower(dr):
class Agilex5SDRInput:
@staticmethod
def lower(dr):
return Agilex5DDRInputImpl(dr.i, dr.o, Signal(), dr.clk)
return Agilex5DDRInputImpl(dr.i, dr.o, Signal(len(dr.o)), dr.clk)

# Agilex5 SDRTristate ------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion litex/build/lattice/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def lower(dr):
class LatticeiCE40SDRInput:
@staticmethod
def lower(dr):
return LatticeiCE40DDRInputImpl(dr.i, dr.o, Signal(), dr.clk)
return LatticeiCE40DDRInputImpl(dr.i, dr.o, Signal(len(dr.o)), dr.clk)

# iCE40 SDR Tristate -------------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions litex/build/xilinx/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def lower(dr):
class XilinxSDRInputS6:
@staticmethod
def lower(dr):
return XilinxDDRInputImplS6(dr.i, dr.o, Signal(), dr.clk)
return XilinxDDRInputImplS6(dr.i, dr.o, Signal(len(dr.o)), dr.clk)

# Spartan6 Special Overrides -----------------------------------------------------------------------

Expand Down Expand Up @@ -323,7 +323,7 @@ def lower(dr):
class XilinxSDRInputS7:
@staticmethod
def lower(dr):
return XilinxDDRInputImplS7(dr.i, dr.o, Signal(), dr.clk)
return XilinxDDRInputImplS7(dr.i, dr.o, Signal(len(dr.o)), dr.clk)

# 7-Series Special Overrides -----------------------------------------------------------------------

Expand Down

0 comments on commit a019fd4

Please sign in to comment.