aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2022-02-18 10:52:37 +0000
committergatecat <gatecat@ds0.me>2022-02-18 11:13:18 +0000
commit6a32aca4ac8705b637943c236cedd2f36422fb21 (patch)
tree28483964fb3c92bc104ab6162d1c9196651ced26 /ice40/arch.cc
parent61d1db16be2c68cf6ae8b4d2ff3266b5c7086ad2 (diff)
downloadnextpnr-6a32aca4ac8705b637943c236cedd2f36422fb21.tar.gz
nextpnr-6a32aca4ac8705b637943c236cedd2f36422fb21.tar.bz2
nextpnr-6a32aca4ac8705b637943c236cedd2f36422fb21.zip
refactor: New member functions to replace design_utils
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index cf7e99a5..b36c82d5 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -1219,17 +1219,17 @@ void Arch::assignCellInfo(CellInfo *cell)
cell->lcInfo.dffEnable = bool_or_default(cell->params, id_DFF_ENABLE);
cell->lcInfo.carryEnable = bool_or_default(cell->params, id_CARRY_ENABLE);
cell->lcInfo.negClk = bool_or_default(cell->params, id_NEG_CLK);
- cell->lcInfo.clk = get_net_or_empty(cell, id_CLK);
- cell->lcInfo.cen = get_net_or_empty(cell, id_CEN);
- cell->lcInfo.sr = get_net_or_empty(cell, id_SR);
+ cell->lcInfo.clk = cell->getPort(id_CLK);
+ cell->lcInfo.cen = cell->getPort(id_CEN);
+ cell->lcInfo.sr = cell->getPort(id_SR);
cell->lcInfo.inputCount = 0;
- if (get_net_or_empty(cell, id_I0))
+ if (cell->getPort(id_I0))
cell->lcInfo.inputCount++;
- if (get_net_or_empty(cell, id_I1))
+ if (cell->getPort(id_I1))
cell->lcInfo.inputCount++;
- if (get_net_or_empty(cell, id_I2))
+ if (cell->getPort(id_I2))
cell->lcInfo.inputCount++;
- if (get_net_or_empty(cell, id_I3))
+ if (cell->getPort(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";