aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/fasm.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 /nexus/fasm.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 'nexus/fasm.cc')
-rw-r--r--nexus/fasm.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/nexus/fasm.cc b/nexus/fasm.cc
index 4aaecdf4..c460e14b 100644
--- a/nexus/fasm.cc
+++ b/nexus/fasm.cc
@@ -421,7 +421,7 @@ struct NexusFasmWriter
BelId bel = cell->bel;
used_io.insert(bel);
push_bel(bel);
- const NetInfo *t = get_net_or_empty(cell, id_T);
+ const NetInfo *t = cell->getPort(id_T);
auto tmux = ctx->get_cell_pinmux(cell, id_T);
bool is_input = false, is_output = false;
if (tmux == PINMUX_0) {
@@ -444,7 +444,7 @@ struct NexusFasmWriter
used_io.insert(bel);
push_bel(bel);
push("SEIO18");
- const NetInfo *t = get_net_or_empty(cell, id_T);
+ const NetInfo *t = cell->getPort(id_T);
auto tmux = ctx->get_cell_pinmux(cell, id_T);
bool is_input = false, is_output = false;
if (tmux == PINMUX_0) {
@@ -481,7 +481,7 @@ struct NexusFasmWriter
bank.diff_used = true;
- const NetInfo *t = get_net_or_empty(cell, id_T);
+ const NetInfo *t = cell->getPort(id_T);
auto tmux = ctx->get_cell_pinmux(cell, id_T);
bool is_input = false, is_output = false;
if (tmux == PINMUX_0) {
@@ -843,7 +843,7 @@ struct NexusFasmWriter
if (!ci->attrs.count(id_IO_TYPE))
continue;
// VccO only concerns outputs
- const NetInfo *t = get_net_or_empty(ci, id_T);
+ const NetInfo *t = ci->getPort(id_T);
auto tmux = ctx->get_cell_pinmux(ci, id_T);
if (tmux == PINMUX_1 || (tmux != PINMUX_0 && t == nullptr))
continue;