aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/io.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-27 18:56:19 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-27 18:56:19 +0200
commitb9d774041b9e41adc6055e721f90fc6077b75a0d (patch)
treeef93829a7014eff4b9150d2a5a1312e47805e5c5 /ecp5/io.cc
parent32559638d3beb4c0c04c420d4ce456ad6ec8d874 (diff)
downloadnextpnr-b9d774041b9e41adc6055e721f90fc6077b75a0d.tar.gz
nextpnr-b9d774041b9e41adc6055e721f90fc6077b75a0d.tar.bz2
nextpnr-b9d774041b9e41adc6055e721f90fc6077b75a0d.zip
ecp5: Fix typo
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/io.cc')
-rw-r--r--ecp5/io.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/io.cc b/ecp5/io.cc
index e86c84f6..908caaba 100644
--- a/ecp5/io.cc
+++ b/ecp5/io.cc
@@ -209,7 +209,7 @@ bool valid_loc_for_io(IOType type, PortType dir, IOSide side, int z)
return false;
if (is_differential(type) && (!is_lr || ((z % 2) == 1)))
return false;
- if ((type == IOType::LVCMOS18D || type == IOType::LVDS) && (dir == PORT_OUT || PORT_INOUT) && z != 0)
+ if ((type == IOType::LVCMOS18D || type == IOType::LVDS) && (dir == PORT_OUT || dir == PORT_INOUT) && z != 0)
return false;
return true;
}