Skip to content

Commit

Permalink
Merge pull request #2167 from VOGL-electronic/fix_sinals_for_multibit_io
Browse files Browse the repository at this point in the history
build: common: make sure Signal lenght is right
  • Loading branch information
enjoy-digital authored Jan 22, 2025
2 parents 666c9b4 + a019fd4 commit ad5d7d3
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 ad5d7d3

Please sign in to comment.