aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/io.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-28 19:52:17 +0000
committerEddie Hung <eddie.hung+gitlab@gmail.com>2018-07-28 19:52:17 +0000
commit7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57 (patch)
tree6f21160deed301364cd866adf9d8dd2244e7c995 /ecp5/io.cc
parent48b9d05d85dd2192b194cc7f931dfd2ac7663778 (diff)
parent0eaa92bd6a160696c2f221501d610c99d9231bef (diff)
downloadnextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.tar.gz
nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.tar.bz2
nextpnr-7c1a7e7596cfdf1718e8c479cb281a3cedf0ec57.zip
Merge branch 'redist_slack' into 'redist_slack'
Redist slack See merge request eddiehung/nextpnr!13
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;
}