OpenFPGA/openfpga/src/repack/repack.cpp

39 lines
1.5 KiB
C++
Raw Normal View History

2020-02-17 18:57:43 -06:00
/***************************************************************************************
* This file includes functions that are used to redo packing for physical pbs
***************************************************************************************/
/* Headers from vtrutil library */
#include "vtr_log.h"
#include "vtr_assert.h"
#include "vtr_time.h"
#include "build_physical_lb_rr_graph.h"
2020-02-17 18:57:43 -06:00
#include "repack.h"
/* begin namespace openfpga */
namespace openfpga {
/***************************************************************************************
* Top-level function to pack physical pb_graph
* This function will do :
* - create physical lb_rr_graph for each pb_graph considering physical modes only
* the lb_rr_graph will be added to device annotation
2020-02-17 18:57:43 -06:00
* - annotate nets to be routed for each clustered block from operating modes of pb_graph
* to physical modes of pb_graph
* - rerun the routing for each clustered block
* - store the packing results to clustering annotation
***************************************************************************************/
void pack_physical_pbs(const DeviceContext& device_ctx,
VprDeviceAnnotation& device_annotation,
2020-02-17 18:57:43 -06:00
VprClusteringAnnotation& clustering_annotation,
const VprRoutingAnnotation& routing_annotation,
const bool& verbose) {
build_physical_lb_rr_graphs(device_ctx,
device_annotation,
verbose);
2020-02-17 18:57:43 -06:00
}
} /* end namespace openfpga */