Skip to content

Commit fa7a625

Browse files
committed
Fix invert for port wiring
1 parent 95f8261 commit fa7a625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chipflow_lib/steps/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _wire_up_ports(m: Module, top, platform):
6060
if hasattr(wire, 'i'):
6161
m.d.comb += wire.i.eq(port.i ^ inv_mask)
6262
if hasattr(wire, 'o'):
63-
m.d.comb += port.o.eq(wire.o)^ inv_mask
63+
m.d.comb += port.o.eq(wire.o ^ inv_mask)
6464
if hasattr(wire, 'oe'):
65-
m.d.comb += port.oe.eq(wire.oe)^ inv_mask
65+
m.d.comb += port.oe.eq(wire.oe)
6666

0 commit comments

Comments
 (0)