aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc33
-rw-r--r--generic/main.cc10
2 files changed, 12 insertions, 31 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 1e1434d3..ec2443f2 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -109,25 +109,13 @@ void Arch::addBelInout(IdString bel, IdString name, IdString wire)
wires.at(wire).downhill_bel_pins.push_back(BelPin{bel, name});
}
-void Arch::addGroupBel(IdString group, IdString bel)
-{
- groups[group].bels.push_back(bel);
-}
+void Arch::addGroupBel(IdString group, IdString bel) { groups[group].bels.push_back(bel); }
-void Arch::addGroupWire(IdString group, IdString wire)
-{
- groups[group].wires.push_back(wire);
-}
+void Arch::addGroupWire(IdString group, IdString wire) { groups[group].wires.push_back(wire); }
-void Arch::addGroupPip(IdString group, IdString pip)
-{
- groups[group].pips.push_back(pip);
-}
+void Arch::addGroupPip(IdString group, IdString pip) { groups[group].pips.push_back(pip); }
-void Arch::addGroupGroup(IdString group, IdString grp)
-{
- groups[group].groups.push_back(grp);
-}
+void Arch::addGroupGroup(IdString group, IdString grp) { groups[group].groups.push_back(grp); }
void Arch::addDecalGraphic(DecalId decal, const GraphicElement &graphic)
{
@@ -330,7 +318,8 @@ GroupId Arch::getGroupByName(IdString name) const { return name; }
IdString Arch::getGroupName(GroupId group) const { return group; }
-std::vector<GroupId> Arch::getGroups() const {
+std::vector<GroupId> Arch::getGroups() const
+{
std::vector<GroupId> ret;
for (auto &it : groups)
ret.push_back(it.first);
@@ -365,15 +354,9 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const
// ---------------------------------------------------------------
-bool Arch::place()
-{
- return placer1(getCtx());
-}
+bool Arch::place() { return placer1(getCtx()); }
-bool Arch::route()
-{
- return router1(getCtx());
-}
+bool Arch::route() { return router1(getCtx()); }
// ---------------------------------------------------------------
diff --git a/generic/main.cc b/generic/main.cc
index d025d8d4..6f4774d1 100644
--- a/generic/main.cc
+++ b/generic/main.cc
@@ -75,18 +75,16 @@ int main(int argc, char *argv[])
}
if (vm.count("help") || argc == 1) {
- std::cout << boost::filesystem::basename(argv[0])
- << " -- Next Generation Place and Route (git "
- "sha1 " GIT_COMMIT_HASH_STR ")\n";
+ std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
+ "sha1 " GIT_COMMIT_HASH_STR ")\n";
std::cout << "\n";
std::cout << options << "\n";
return argc != 1;
}
if (vm.count("version")) {
- std::cout << boost::filesystem::basename(argv[0])
- << " -- Next Generation Place and Route (git "
- "sha1 " GIT_COMMIT_HASH_STR ")\n";
+ std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
+ "sha1 " GIT_COMMIT_HASH_STR ")\n";
return 1;
}