diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2019-04-17 16:05:48 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2019-04-17 16:07:16 +0200 |
commit | c4cb0c5e4951f832f1d416013add1177face3900 (patch) | |
tree | 2a56dce1323697d5b178fbf93d52d42d8d2bc706 /ice40 | |
parent | 037e13b8839ba2112fba6bfade7d282335a93a4a (diff) | |
download | nextpnr-c4cb0c5e4951f832f1d416013add1177face3900.tar.gz nextpnr-c4cb0c5e4951f832f1d416013add1177face3900.tar.bz2 nextpnr-c4cb0c5e4951f832f1d416013add1177face3900.zip |
ice40: In assignCellInfo get PIN_TYPE/NEG_TRIGGER from params and not attrs
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index bfcadc0b..d536ad35 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -1221,8 +1221,8 @@ void Arch::assignCellInfo(CellInfo *cell) } else if (cell->type == id_SB_IO) { cell->ioInfo.lvds = str_or_default(cell->params, id_IO_STANDARD, "SB_LVCMOS") == "SB_LVDS_INPUT"; cell->ioInfo.global = bool_or_default(cell->attrs, this->id("GLOBAL")); - cell->ioInfo.pintype = int_or_default(cell->attrs, this->id("PIN_TYPE")); - cell->ioInfo.negtrig = bool_or_default(cell->attrs, this->id("NEG_TRIGGER")); + cell->ioInfo.pintype = int_or_default(cell->params, this->id("PIN_TYPE")); + cell->ioInfo.negtrig = bool_or_default(cell->params, this->id("NEG_TRIGGER")); } else if (cell->type == id_SB_GB) { cell->gbInfo.forPadIn = bool_or_default(cell->attrs, this->id("FOR_PAD_IN")); |