diff options
author | D. Shah <dave@ds0.me> | 2021-02-03 10:21:45 +0000 |
---|---|---|
committer | D. Shah <dave@ds0.me> | 2021-02-03 10:46:12 +0000 |
commit | a09a62bc4a03ca1c673a254d1fa4d6cb576e83c8 (patch) | |
tree | 3b93748ba92396bd418003a0466f72a59064f5b6 /ice40/pack.cc | |
parent | 9a79163eab89e6351cd06c37d5916174acdfc754 (diff) | |
download | nextpnr-a09a62bc4a03ca1c673a254d1fa4d6cb576e83c8.tar.gz nextpnr-a09a62bc4a03ca1c673a254d1fa4d6cb576e83c8.tar.bz2 nextpnr-a09a62bc4a03ca1c673a254d1fa4d6cb576e83c8.zip |
ice40: Use snake case for arch-specific functions
This makes the difference clearer between the general arch API that
everyone must implement; and helper functions specific to one arch.
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r-- | ice40/pack.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc index a909b08b..18bc90aa 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -639,7 +639,7 @@ static void promote_globals(Context *ctx) std::map<IdString, int> clock_count, reset_count, cen_count, logic_count; for (auto net : sorted(ctx->nets)) { NetInfo *ni = net.second; - if (ni->driver.cell != nullptr && !ctx->isGlobalNet(ni)) { + if (ni->driver.cell != nullptr && !ctx->is_global_net(ni)) { clock_count[net.first] = 0; reset_count[net.first] = 0; cen_count[net.first] = 0; @@ -667,7 +667,7 @@ static void promote_globals(Context *ctx) if (cell.second->attrs.find(ctx->id("BEL")) != cell.second->attrs.end()) { /* If the SB_GB is locked, doesn't matter what it drives */ BelId bel = ctx->getBelByNameStr(cell.second->attrs[ctx->id("BEL")].as_string()); - int glb_id = ctx->getDrivenGlobalNetwork(bel); + int glb_id = ctx->get_driven_glb_netwk(bel); if ((glb_id % 2) == 0) resets_available--; else if ((glb_id % 2) == 1) @@ -766,11 +766,11 @@ static void place_plls(Context *ctx) for (auto bel : ctx->getBels()) { if (ctx->getBelType(bel) != id_ICESTORM_PLL) continue; - if (ctx->isBelLocked(bel)) + if (ctx->is_bel_locked(bel)) continue; - auto io_a_pin = ctx->getIOBSharingPLLPin(bel, id_PLLOUT_A); - auto io_b_pin = ctx->getIOBSharingPLLPin(bel, id_PLLOUT_B); + auto io_a_pin = ctx->get_iob_sharing_pll_pin(bel, id_PLLOUT_A); + auto io_b_pin = ctx->get_iob_sharing_pll_pin(bel, id_PLLOUT_B); auto gb_a = find_padin_gbuf(ctx, bel, id_PLLOUT_A_GLOBAL); auto gb_b = find_padin_gbuf(ctx, bel, id_PLLOUT_B_GLOBAL); @@ -1064,7 +1064,7 @@ static BelId cell_place_unique(Context *ctx, CellInfo *ci) for (auto bel : ctx->getBels()) { if (ctx->getBelType(bel) != ci->type) continue; - if (ctx->isBelLocked(bel)) + if (ctx->is_bel_locked(bel)) continue; IdStringList bel_name = ctx->getBelName(bel); ci->attrs[ctx->id("BEL")] = bel_name.str(ctx); |