Skip to content

Commit

Permalink
Intel altiobuf_ requires oe with the same with as data lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
schwigi committed Jan 8, 2020
1 parent 63902dd commit 7ce75b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nmigen/vendor/intel.py
Expand Up @@ -221,8 +221,10 @@ def get_oneg(o):

@staticmethod
def _get_oereg(m, pin):
# altiobuf_ requires an output enable signal for each pin, nmigen is generating
# only one output enable for a multi bit io pin
if pin.xdr == 0:
return pin.oe
return Repl(pin.oe, pin.width)
elif pin.xdr in (1, 2):
oe_reg = Signal(pin.width, name="{}_oe_reg".format(pin.name))
oe_reg.attrs["useioff"] = "1"
Expand Down

0 comments on commit 7ce75b8

Please sign in to comment.