aboutsummaryrefslogtreecommitdiffstats
path: root/generic/viaduct/example/example.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 /generic/viaduct/example/example.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 'generic/viaduct/example/example.cc')
-rw-r--r--generic/viaduct/example/example.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/viaduct/example/example.cc b/generic/viaduct/example/example.cc
index 3d1c201c..49b36792 100644
--- a/generic/viaduct/example/example.cc
+++ b/generic/viaduct/example/example.cc
@@ -253,10 +253,10 @@ struct ExampleImpl : ViaductAPI
CellInfo *ci = cell.second.get();
auto &fc = fast_cell_info.at(ci->flat_index);
if (ci->type == id_LUT4) {
- fc.lut_f = get_net_or_empty(ci, id_F);
- fc.lut_i3_used = (get_net_or_empty(ci, ctx->id(stringf("I[%d]", K - 1))) != nullptr);
+ fc.lut_f = ci->getPort(id_F);
+ fc.lut_i3_used = (ci->getPort(ctx->id(stringf("I[%d]", K - 1))) != nullptr);
} else if (ci->type == id_DFF) {
- fc.ff_d = get_net_or_empty(ci, id_D);
+ fc.ff_d = ci->getPort(id_D);
}
}
}