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/arch_place.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/arch_place.cc')
-rw-r--r-- | ice40/arch_place.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc index e4f302fd..a450a7df 100644 --- a/ice40/arch_place.cc +++ b/ice40/arch_place.cc @@ -27,7 +27,7 @@ NEXTPNR_NAMESPACE_BEGIN -bool Arch::logicCellsCompatible(const CellInfo **it, const size_t size) const +bool Arch::logic_cells_compatible(const CellInfo **it, const size_t size) const { bool dffs_exist = false, dffs_neg = false; const NetInfo *cen = nullptr, *clk = nullptr, *sr = nullptr; @@ -81,7 +81,7 @@ bool Arch::isBelLocationValid(BelId bel) const if (ci_other != nullptr) bel_cells[num_cells++] = ci_other; } - return logicCellsCompatible(bel_cells.data(), num_cells); + return logic_cells_compatible(bel_cells.data(), num_cells); } else { CellInfo *ci = getBoundBelCell(bel); if (ci == nullptr) @@ -119,7 +119,7 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const } bel_cells[num_cells++] = cell; - return logicCellsCompatible(bel_cells.data(), num_cells); + return logic_cells_compatible(bel_cells.data(), num_cells); } else if (cell->type == id_SB_IO) { // Do not allow placement of input SB_IOs on blocks where there a PLL is outputting to. @@ -195,13 +195,13 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const } } - return getBelPackagePin(bel) != ""; + return get_bel_package_pin(bel) != ""; } else if (cell->type == id_SB_GB) { if (cell->gbInfo.forPadIn) return true; NPNR_ASSERT(cell->ports.at(id_GLOBAL_BUFFER_OUTPUT).net != nullptr); const NetInfo *net = cell->ports.at(id_GLOBAL_BUFFER_OUTPUT).net; - int glb_id = getDrivenGlobalNetwork(bel); + int glb_id = get_driven_glb_netwk(bel); if (net->is_reset && net->is_enable) return false; else if (net->is_reset) |