aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-09-24 15:14:28 +0100
committerDavid Shah <davey1576@gmail.com>2018-09-24 15:14:28 +0100
commitd5d9fb27a66604c89b7a2746e7ca9749b62aec91 (patch)
tree9d0a406da4bcd0c0dd351eaa0f510fa861fef39b /ice40/arch.cc
parent9834b68041f8bc015d0195303b81636047d86b1c (diff)
downloadnextpnr-d5d9fb27a66604c89b7a2746e7ca9749b62aec91.tar.gz
nextpnr-d5d9fb27a66604c89b7a2746e7ca9749b62aec91.tar.bz2
nextpnr-d5d9fb27a66604c89b7a2746e7ca9749b62aec91.zip
ice40: Validity check for LVDS IO
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 7ce967ec..43a3dec2 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -975,6 +975,8 @@ void Arch::assignCellInfo(CellInfo *cell)
cell->lcInfo.inputCount++;
if (get_net_or_empty(cell, id_I3))
cell->lcInfo.inputCount++;
+ } else if (cell->type == id_SB_IO) {
+ cell->ioInfo.lvds = str_or_default(cell->params, id_IO_STANDARD, "SB_LVCMOS") == "SB_LVDS_INPUT";
}
}