aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch_place.cc
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-02-03 10:33:06 +0000
committerD. Shah <dave@ds0.me>2021-02-03 10:53:08 +0000
commitf05d024666ba4ece6d37d49d7168f47c3ae2b51f (patch)
tree17386ed301aa3c5083f2314bbe7d9789d2a46a31 /ecp5/arch_place.cc
parenta09a62bc4a03ca1c673a254d1fa4d6cb576e83c8 (diff)
downloadnextpnr-f05d024666ba4ece6d37d49d7168f47c3ae2b51f.tar.gz
nextpnr-f05d024666ba4ece6d37d49d7168f47c3ae2b51f.tar.bz2
nextpnr-f05d024666ba4ece6d37d49d7168f47c3ae2b51f.zip
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 <dave@ds0.me>
Diffstat (limited to 'ecp5/arch_place.cc')
-rw-r--r--ecp5/arch_place.cc8
1 files changed, 4 insertions, 4 deletions
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<const CellInfo *> &cells) const
+bool Arch::slices_compatible(const std::vector<const CellInfo *> &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)) {