diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-06-27 13:20:16 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-06-27 13:20:16 +0200 |
commit | 7a95629aff3fac96067fba8cddd9743289dcca2d (patch) | |
tree | 4641ec8fe70262e880fab18d905b2d6e6989d7b3 /ice40 | |
parent | 901ad4e91782575e2121b5122c68445c02ded879 (diff) | |
download | nextpnr-7a95629aff3fac96067fba8cddd9743289dcca2d.tar.gz nextpnr-7a95629aff3fac96067fba8cddd9743289dcca2d.tar.bz2 nextpnr-7a95629aff3fac96067fba8cddd9743289dcca2d.zip |
Fix clangformat and execute it
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/arch.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc index cdef91df..52246001 100644 --- a/ice40/arch.cc +++ b/ice40/arch.cc @@ -21,10 +21,10 @@ #include <algorithm> #include <cmath> #include "cells.h" +#include "embed.h" #include "gfx.h" #include "log.h" #include "nextpnr.h" -#include "embed.h" #include "placer1.h" #include "placer_heap.h" #include "router1.h" @@ -44,7 +44,8 @@ void IdString::initialize_arch(const BaseCtx *ctx) // ----------------------------------------------------------------------- -static const ChipInfoPOD *get_chip_info(ArchArgs::ArchArgsTypes chip) { +static const ChipInfoPOD *get_chip_info(ArchArgs::ArchArgsTypes chip) +{ std::string chipdb; if (chip == ArchArgs::LP384) { chipdb = "ice40/chipdb-384.bin"; @@ -66,10 +67,7 @@ static const ChipInfoPOD *get_chip_info(ArchArgs::ArchArgsTypes chip) { return ptr->get(); } -bool Arch::isAvailable(ArchArgs::ArchArgsTypes chip) -{ - return get_chip_info(chip) != nullptr; -} +bool Arch::isAvailable(ArchArgs::ArchArgsTypes chip) { return get_chip_info(chip) != nullptr; } std::vector<std::string> Arch::getSupportedPackages(ArchArgs::ArchArgsTypes chip) { |