diff options
| -rw-r--r-- | ecp5/arch.cc | 6 | ||||
| -rw-r--r-- | ecp5/bitstream.cc | 8 | 
2 files changed, 9 insertions, 5 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index b674e1b7..1be76c07 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -79,9 +79,11 @@ Arch::Arch(ArchArgs args) : args(args)  #else      if (args.type == ArchArgs::LFE5U_25F || args.type == ArchArgs::LFE5UM_25F || args.type == ArchArgs::LFE5UM5G_25F) {          chip_info = get_chip_info(reinterpret_cast<const RelPtr<ChipInfoPOD> *>(chipdb_blob_25k)); -    } else if (args.type == ArchArgs::LFE5U_45F || args.type == ArchArgs::LFE5UM_45F || args.type == ArchArgs::LFE5UM5G_45F) { +    } else if (args.type == ArchArgs::LFE5U_45F || args.type == ArchArgs::LFE5UM_45F || +               args.type == ArchArgs::LFE5UM5G_45F) {          chip_info = get_chip_info(reinterpret_cast<const RelPtr<ChipInfoPOD> *>(chipdb_blob_45k)); -    } else if (args.type == ArchArgs::LFE5U_85F || args.type == ArchArgs::LFE5UM_85F || args.type == ArchArgs::LFE5UM5G_85F) { +    } else if (args.type == ArchArgs::LFE5U_85F || args.type == ArchArgs::LFE5UM_85F || +               args.type == ArchArgs::LFE5UM5G_85F) {          chip_info = get_chip_info(reinterpret_cast<const RelPtr<ChipInfoPOD> *>(chipdb_blob_85k));      } else {          log_error("Unsupported ECP5 chip type.\n"); diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc index 7f4e8052..29b12c86 100644 --- a/ecp5/bitstream.cc +++ b/ecp5/bitstream.cc @@ -279,10 +279,12 @@ std::vector<std::string> get_bram_tiles(Context *ctx, BelId bel)      return tiles;  } -void fix_tile_names(Context *ctx, ChipConfig &cc) { +void fix_tile_names(Context *ctx, ChipConfig &cc) +{      // Remove the V prefix/suffix on certain tiles if device is a SERDES variant -    if (ctx->args.type == ArchArgs::LFE5UM_25F || ctx->args.type == ArchArgs::LFE5UM_45F || ctx->args.type == ArchArgs::LFE5UM_85F || -    ctx->args.type == ArchArgs::LFE5UM5G_25F || ctx->args.type == ArchArgs::LFE5UM5G_45F || ctx->args.type == ArchArgs::LFE5UM5G_85F) { +    if (ctx->args.type == ArchArgs::LFE5UM_25F || ctx->args.type == ArchArgs::LFE5UM_45F || +        ctx->args.type == ArchArgs::LFE5UM_85F || ctx->args.type == ArchArgs::LFE5UM5G_25F || +        ctx->args.type == ArchArgs::LFE5UM5G_45F || ctx->args.type == ArchArgs::LFE5UM5G_85F) {          std::map<std::string, std::string> tiletype_xform;          for (const auto &tile : cc.tiles) {              std::string newname = tile.first;  | 
