From f05d024666ba4ece6d37d49d7168f47c3ae2b51f Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Wed, 3 Feb 2021 10:33:06 +0000 Subject: ecp5: 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 --- ecp5/arch_place.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ecp5/arch_place.cc') diff --git a/ecp5/arch_place.cc b/ecp5/arch_place.cc index c5330694..668b3141 100644 --- a/ecp5/arch_place.cc +++ b/ecp5/arch_place.cc @@ -33,7 +33,7 @@ inline NetInfo *port_or_nullptr(const CellInfo *cell, IdString name) return found->second.net; } -bool Arch::slicesCompatible(const std::vector &cells) const +bool Arch::slices_compatible(const std::vector &cells) const { // TODO: allow different LSR/CLK and MUX/SRMODE settings once // routing details are worked out @@ -79,7 +79,7 @@ bool Arch::isBelLocationValid(BelId bel) const } if (getBoundBelCell(bel) != nullptr && getBoundBelCell(bel)->sliceInfo.has_l6mux && ((bel_loc.z % 2) == 1)) return false; - return slicesCompatible(bel_cells); + return slices_compatible(bel_cells); } else { CellInfo *cell = getBoundBelCell(bel); if (cell == nullptr) @@ -108,7 +108,7 @@ bool Arch::isValidBelForCell(CellInfo *cell, BelId bel) const } bel_cells.push_back(cell); - return slicesCompatible(bel_cells); + return slices_compatible(bel_cells); } else if (cell->type == id_DCUA || cell->type == id_EXTREFB || cell->type == id_PCSCLKDIV) { return args.type != ArchArgs::LFE5U_25F && args.type != ArchArgs::LFE5U_45F && args.type != ArchArgs::LFE5U_85F; } else { @@ -196,7 +196,7 @@ void Arch::permute_luts() } } -void Arch::setupWireLocations() +void Arch::setup_wire_locations() { wire_loc_overrides.clear(); for (auto cell : sorted(cells)) { -- cgit v1.2.3