2020-02-17 18:57:43 -06:00
|
|
|
/********************************************************************
|
|
|
|
* This file includes functions to compress the hierachy of routing architecture
|
|
|
|
*******************************************************************/
|
|
|
|
/* Headers from vtrutil library */
|
|
|
|
#include "vtr_time.h"
|
|
|
|
#include "vtr_log.h"
|
|
|
|
|
|
|
|
#include "verilog_api.h"
|
|
|
|
#include "repack.h"
|
|
|
|
#include "openfpga_repack.h"
|
|
|
|
|
|
|
|
/* Include global variables of VPR */
|
|
|
|
#include "globals.h"
|
|
|
|
|
|
|
|
/* begin namespace openfpga */
|
|
|
|
namespace openfpga {
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* A wrapper function to call the fabric_verilog function of FPGA-Verilog
|
|
|
|
*******************************************************************/
|
|
|
|
void repack(OpenfpgaContext& openfpga_ctx,
|
|
|
|
const Command& cmd, const CommandContext& cmd_context) {
|
|
|
|
|
|
|
|
CommandOptionId opt_verbose = cmd.option("verbose");
|
|
|
|
|
|
|
|
pack_physical_pbs(g_vpr_ctx.device(),
|
2020-02-20 21:26:20 -06:00
|
|
|
g_vpr_ctx.atom(),
|
|
|
|
g_vpr_ctx.clustering(),
|
2020-02-20 14:24:34 -06:00
|
|
|
openfpga_ctx.mutable_vpr_device_annotation(),
|
2020-02-17 18:57:43 -06:00
|
|
|
openfpga_ctx.mutable_vpr_clustering_annotation(),
|
|
|
|
cmd_context.option_enable(cmd, opt_verbose));
|
|
|
|
}
|
|
|
|
|
|
|
|
} /* end namespace openfpga */
|