AMF-Placer  2.0
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
strPrint.cc File Reference
#include "strPrint.h"
#include <chrono>
#include <ios>
#include <stdio.h>
#include <stdlib.h>
#include <string>
Include dependency graph for strPrint.cc:

Go to the source code of this file.

Macros

#define PBSTR   "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
 
#define PBWIDTH   60
 

Functions

void print_cmd (std::string tmp_string)
 
void print_info (std::string tmp_string)
 
void print_status (std::string tmp_string)
 
void print_error (std::string tmp_string)
 
void print_warning (std::string tmp_string)
 
std::string to_string_align3 (int __val)
 
void printProgress (double percentage)
 

Variables

std::chrono::time_point< std::chrono::steady_clock > oriTime
 

Detailed Description

Author
Tingyuan LIANG (tlian.nosp@m.g@co.nosp@m.nnect.nosp@m..ust.nosp@m..hk)
Version
0.1
Date
2021-10-02

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file strPrint.cc.

Macro Definition Documentation

◆ PBSTR

#define PBSTR   "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"

Definition at line 68 of file strPrint.cc.

◆ PBWIDTH

#define PBWIDTH   60

Definition at line 69 of file strPrint.cc.

Function Documentation

◆ print_cmd()

void print_cmd ( std::string  tmp_string)

Definition at line 34 of file strPrint.cc.

Referenced by ExternalProcessFunc::execute().

Here is the caller graph for this function:

◆ print_error()

◆ print_info()

void print_info ( std::string  tmp_string)

Definition at line 39 of file strPrint.cc.

Referenced by WirelengthOptimizer::addPseudoNet2LoctionForAllPUs(), WirelengthOptimizer::addPseudoNetForMacros(), PlacementInfo::checkClockUtilization(), ClusterPlacer::clockBasedPartitioning(), GlobalPlacer::clusterPlacement(), PlacementInfo::CompatiblePlacementTable::CompatiblePlacementTable(), ClusterPlacer::creaeClusterNets(), ClusterPlacer::createClockBasedClusterUnits(), ClusterPlacer::createLongPathClusterUnits(), ClusterPlacer::createUserDefinedClusterBasedClusterUnits(), DesignInfo::DesignInfo(), DeviceInfo::DeviceInfo(), ParallelCLBPacker::dumpFinalPacking(), ParallelCLBPacker::exceptionHandling(), IncrementalBELPacker::FFPairing(), CLBLegalizer::finalLegalizeBasedOnDP(), InitialPacker::findBRAMMacros(), InitialPacker::findCARRYMacros(), InitialPacker::findDSPMacros(), InitialPacker::findLUTRAMMacros(), InitialPacker::findMuxMacros(), PlacementTimingInfo::TimingGraph< nodeType >::forwardLevelization(), PlacementTimingOptimizer::getSlackThr(), GlobalPlacer::GlobalPlacement_CLBElements(), GlobalPlacer::GlobalPlacement_fixedCLB(), ClusterPlacer::isClustersToLarges(), DeviceInfo::loadBELType2FalseBELType(), DesignInfo::loadClocks(), InitialPacker::loadOtherCLBMacros(), DesignInfo::loadUserDefinedClusterNets(), IncrementalBELPacker::LUTFFPairing(), InitialPacker::LUTFFPairing(), GlobalPlacer::macroLegalize(), MinCostBipartiteMatcher::MinCostBipartiteMatcher(), GraphPartitioner< std::vector< PlacementInfo::ClusterUnit * >, std::vector< PlacementInfo::ClusterNet * > >::minCutBipartition(), InitialPacker::pack(), GlobalPlacer::printPlacedUnits(), DeviceInfo::printStat(), DesignInfo::printStat(), PlacementInfo::printStat(), ClusterPlacer::refineClustersWithPredefinedClusters(), PlacementInfo::reloadNets(), AMFPlacer::run(), SAPlacer::solve(), GeneralSpreader::spreadPlacementUnits(), GlobalPlacer::updatePseudoNetWeight(), CLBLegalizer::updatePUMatchingLocation(), and MacroLegalizer::updatePUMatchingLocation().

Here is the caller graph for this function:

◆ print_status()

void print_status ( std::string  tmp_string)

Definition at line 44 of file strPrint.cc.

Referenced by WirelengthOptimizer::addPseudoNet_SlackBased(), PlacementInfo::adjustLUTFFUtilization(), PlacementInfo::adjustLUTFFUtilization_Clocking(), PlacementInfo::adjustLUTFFUtilization_Packablity(), PlacementInfo::adjustLUTFFUtilization_Routability(), PlacementInfo::adjustLUTFFUtilization_Routability_Reset(), PlacementTimingInfo::TimingGraph< nodeType >::backwardLevelization(), PlacementTimingInfo::buildSimpleTimingGraph(), ClusterPlacer::ClusterPlacement(), ClusterPlacer::clusterPlacementUnits(), PlacementInfo::CompatiblePlacementTable::CompatiblePlacementTable(), PlacementTimingOptimizer::conductStaticTimingAnalysis(), PlacementInfo::createGridBins(), ClusterPlacer::createLongPathClusterUnits(), DesignInfo::DesignInfo(), DeviceInfo::DeviceInfo(), GlobalPlacer::dumpAllCellsCoordinate(), ParallelCLBPacker::dumpAllCellsCoordinate(), GlobalPlacer::dumpBRAMCoordinate(), GlobalPlacer::dumpCARRYCoordinate(), PlacementTimingOptimizer::dumpClockRegionClusters(), ClusterPlacer::dumpClusters(), PlacementInfo::dumpCongestion(), GlobalPlacer::dumpDSPCoordinate(), GlobalPlacer::dumpFFCoordinate(), ParallelCLBPacker::dumpFinalPacking(), GlobalPlacer::dumpLUTCoordinate(), GeneralSpreader::dumpLUTFFCoordinate(), GlobalPlacer::dumpLUTFFCoordinate(), MacroLegalizer::dumpMatching(), CLBLegalizer::dumpMatching(), IncrementalBELPacker::dumpPairedLUTFF(), PlacementInfo::dumpPlacementUnitInformation(), GeneralSpreader::dumpSiteGridDensity(), PlacementInfo::dumpVivadoPlacementTclWithPULegalizationInfo(), ParallelCLBPacker::exceptionHandling(), IncrementalBELPacker::FFPairing(), MacroLegalizer::finalLegalizeBasedOnDP(), InitialPacker::findBRAMMacros(), InitialPacker::findCARRYMacros(), InitialPacker::findDSPMacros(), InitialPacker::findLUTRAMMacros(), InitialPacker::findMuxMacros(), MacroLegalizer::findPossibleLegalLocation(), PlacementTimingInfo::TimingGraph< nodeType >::forwardLevelization(), GlobalPlacer::GlobalPlacement_CLBElements(), GlobalPlacer::GlobalPlacement_fixedCLB(), WirelengthOptimizer::GlobalPlacementQPSolve(), PlacementTimingOptimizer::incrementalStaticTimingAnalysis_forPUWithLocation(), MacroLegalizer::legalize(), CLBLegalizer::legalize(), InitialPacker::loadOtherCLBMacros(), PlacementInfo::loadPlacementUnitInformation(), DesignInfo::loadUserDefinedClusterNets(), IncrementalBELPacker::LUTFFPairing(), InitialPacker::LUTFFPairing(), WirelengthOptimizer::LUTLUTPairing_TimingDriven(), GlobalPlacer::macroLegalize(), InitialPacker::pack(), ParallelCLBPacker::packCLBs(), ParallelCLBPacker::ParallelCLBPacker(), ClusterPlacer::placeClusters(), PlacementInfo::PlacementInfo(), QPSolverWrapper::QPSolve(), PlacementInfo::reloadNets(), AMFPlacer::run(), PlacementInfo::CompatiblePlacementTable::setBELTypeForCells(), PlacementTimingInfo::setDSPInnerDelay(), GeneralSpreader::spreadPlacementUnits(), ParallelCLBPacker::timingDrivenDetailedPlacement_LUTFFPairReloacationAfterSlotMapping(), ParallelCLBPacker::timingDrivenDetailedPlacement_shortestPath(), GlobalPlacer::timingDrivenDetailedPlacement_shortestPath_intermediate(), ParallelCLBPacker::timingDrivenDetailedPlacement_shortestPath_intermediate(), ParallelCLBPacker::timingDrivenDetailedPlacement_swap(), WirelengthOptimizer::updateB2BNetWeight(), PlacementInfo::updateLongPaths(), ParallelCLBPacker::updatePackedMacro(), GlobalPlacer::updatePseudoNetWeight(), and PlacementInfo::verifyDeviceForDesign().

◆ print_warning()

◆ printProgress()

void printProgress ( double  percentage)

Definition at line 70 of file strPrint.cc.

Referenced by SAPlacer::solve().

Here is the caller graph for this function:

◆ to_string_align3()

std::string to_string_align3 ( int  __val)

Definition at line 62 of file strPrint.cc.

Referenced by GlobalPlacer::GlobalPlacement_CLBElements().

Here is the caller graph for this function:

Variable Documentation

◆ oriTime

std::chrono::time_point<std::chrono::steady_clock> oriTime

Definition at line 32 of file strPrint.cc.

Referenced by AMFPlacer::AMFPlacer(), and print_status().