From e3682ac9556dc2d2d982e87c1e346f062e64f347 Mon Sep 17 00:00:00 2001 From: ubuntu Date: Wed, 22 Nov 2023 01:15:55 -0800 Subject: [PATCH] reformate the code --- openfpga/src/repack/repack.cpp | 4 ++-- openfpga/src/repack/repack_option.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openfpga/src/repack/repack.cpp b/openfpga/src/repack/repack.cpp index 23955ba63..35f45d7a1 100644 --- a/openfpga/src/repack/repack.cpp +++ b/openfpga/src/repack/repack.cpp @@ -575,13 +575,13 @@ static void add_lb_router_nets( /* Only for global net which should be ignored, cache the sink nodes */ BasicPort curr_pin(std::string(source_pb_pin->port->name), source_pb_pin->pin_number, source_pb_pin->pin_number); -if ((clustering_ctx.clb_nlist.net_is_ignored(cluster_net_id) && + if ((clustering_ctx.clb_nlist.net_is_ignored(cluster_net_id) && clustering_ctx.clb_nlist.net_is_global(cluster_net_id) && options.is_pin_ignore_global_nets(std::string(lb_type->pb_type->name), curr_pin)) || (options.net_is_specified_to_be_ignored( atom_ctx.nlist.net_name(pb_pin_mapped_nets[source_pb_pin]), - std::string(lb_type->pb_type->name), curr_pin))){ + std::string(lb_type->pb_type->name), curr_pin))) { /* Find the net mapped to this pin in clustering results*/ AtomNetId atom_net_id = pb_pin_mapped_nets[source_pb_pin]; diff --git a/openfpga/src/repack/repack_option.h b/openfpga/src/repack/repack_option.h index f5ff09bef..76868a83e 100644 --- a/openfpga/src/repack/repack_option.h +++ b/openfpga/src/repack/repack_option.h @@ -25,9 +25,9 @@ class RepackOption { /* Identify if a pin should ignore all the global nets */ bool is_pin_ignore_global_nets(const std::string& pb_type_name, const BasicPort& pin) const; - bool net_is_specified_to_be_ignored( - std::string cluster_net_name, std::string pb_type_name, - const BasicPort& port) const; + bool net_is_specified_to_be_ignored(std::string cluster_net_name, + std::string pb_type_name, + const BasicPort& port) const; bool verbose_output() const; public: /* Public mutators */