@@ -640,7 +640,7 @@ static void clustering_xml_blocks_from_netlist(pugi::xml_node& block_node,
640
640
/* This routine dumps out the output netlist in a format suitable for *
641
641
* input to vpr. This routine also dumps out the internal structure of *
642
642
* the cluster, in essentially a graph based format. */
643
- void output_clustering (ClusterLegalizer* cluster_legalizer_ptr, bool global_clocks, const std::unordered_set<AtomNetId>& is_clock, const std::string& architecture_id, const char * out_fname, bool skip_clustering, bool from_legalizer) {
643
+ void output_clustering (ClusterLegalizer* cluster_legalizer_ptr, const std::unordered_set<AtomNetId>& is_clock, const std::string& architecture_id, const char * out_fname, bool skip_clustering, bool from_legalizer) {
644
644
const DeviceContext& device_ctx = g_vpr_ctx.device ();
645
645
const AtomNetlist& atom_nlist = g_vpr_ctx.atom ().netlist ();
646
646
@@ -689,17 +689,15 @@ void output_clustering(ClusterLegalizer* cluster_legalizer_ptr, bool global_cloc
689
689
block_node.append_child (" inputs" ).text ().set (vtr::join (inputs.begin (), inputs.end (), " " ).c_str ());
690
690
block_node.append_child (" outputs" ).text ().set (vtr::join (outputs.begin (), outputs.end (), " " ).c_str ());
691
691
692
- if (global_clocks) {
693
- std::vector<std::string> clocks;
694
- for (auto net_id : atom_nlist.nets ()) {
695
- if (is_clock.count (net_id)) {
696
- clocks.push_back (atom_nlist.net_name (net_id));
697
- }
692
+ std::vector<std::string> clocks;
693
+ for (auto net_id : atom_nlist.nets ()) {
694
+ if (is_clock.count (net_id)) {
695
+ clocks.push_back (atom_nlist.net_name (net_id));
698
696
}
699
-
700
- block_node.append_child (" clocks" ).text ().set (vtr::join (clocks.begin (), clocks.end (), " " ).c_str ());
701
697
}
702
698
699
+ block_node.append_child (" clocks" ).text ().set (vtr::join (clocks.begin (), clocks.end (), " " ).c_str ());
700
+
703
701
if (skip_clustering == false ) {
704
702
if (from_legalizer) {
705
703
VTR_ASSERT (cluster_legalizer_ptr != nullptr );
@@ -724,15 +722,13 @@ void output_clustering(ClusterLegalizer* cluster_legalizer_ptr, bool global_cloc
724
722
* As such, this function is expected to be a standard API
725
723
* which can be called anytime and anywhere after packing is finished.
726
724
********************************************************************/
727
- void write_packing_results_to_xml (const bool & global_clocks,
728
- const std::string& architecture_id,
725
+ void write_packing_results_to_xml (const std::string& architecture_id,
729
726
const char * out_fname) {
730
727
std::unordered_set<AtomNetId> is_clock = alloc_and_load_is_clock ();
731
728
732
729
// Since the cluster legalizer is not being used to output the clustering
733
730
// (from_legalizer is false), passing in nullptr.
734
731
output_clustering (nullptr ,
735
- global_clocks,
736
732
is_clock,
737
733
architecture_id,
738
734
out_fname,
0 commit comments