Fix warning
This commit is contained in:
parent
efe75c21d6
commit
4f6cde54e5
|
@ -86,8 +86,8 @@ static bool extract_pb_data(std::fstream& fp, const AtomContext& atom_ctx,
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
static void extract_grid_none_fabric_bitstream(
|
static void extract_grid_none_fabric_bitstream(
|
||||||
std::fstream& fp, const VprContext& vpr_ctx,
|
std::fstream& fp, const VprContext& vpr_ctx,
|
||||||
const OpenfpgaContext& openfpga_ctx, const ClusterBlockId& cluster_block_id,
|
const ClusterBlockId& cluster_block_id, const t_pb_type* target_pb_type,
|
||||||
const t_pb_type* target_pb_type, const NoneFabricBitstreamPBSetting setting) {
|
const NoneFabricBitstreamPBSetting setting) {
|
||||||
const ClusteringContext& clustering_ctx = vpr_ctx.clustering();
|
const ClusteringContext& clustering_ctx = vpr_ctx.clustering();
|
||||||
const AtomContext& atom_ctx = vpr_ctx.atom();
|
const AtomContext& atom_ctx = vpr_ctx.atom();
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ static void extract_grid_none_fabric_bitstream(
|
||||||
static void extract_device_none_fabric_pb_bitstream(
|
static void extract_device_none_fabric_pb_bitstream(
|
||||||
std::fstream& fp, const NoneFabricBitstreamPBSetting setting,
|
std::fstream& fp, const NoneFabricBitstreamPBSetting setting,
|
||||||
const std::string& target_parent_pb_name, const t_pb_type* target_pb_type,
|
const std::string& target_parent_pb_name, const t_pb_type* target_pb_type,
|
||||||
const VprContext& vpr_ctx, const OpenfpgaContext& openfpga_ctx) {
|
const VprContext& vpr_ctx) {
|
||||||
const DeviceContext& device_ctx = vpr_ctx.device();
|
const DeviceContext& device_ctx = vpr_ctx.device();
|
||||||
const PlacementContext& placement_ctx = vpr_ctx.placement();
|
const PlacementContext& placement_ctx = vpr_ctx.placement();
|
||||||
const DeviceGrid& grids = device_ctx.grid;
|
const DeviceGrid& grids = device_ctx.grid;
|
||||||
|
@ -163,8 +163,8 @@ static void extract_device_none_fabric_pb_bitstream(
|
||||||
fp << " {\n";
|
fp << " {\n";
|
||||||
fp << " \"x\" : " << (uint32_t)(ix) << ",\n";
|
fp << " \"x\" : " << (uint32_t)(ix) << ",\n";
|
||||||
fp << " \"y\" : " << (uint32_t)(iy);
|
fp << " \"y\" : " << (uint32_t)(iy);
|
||||||
extract_grid_none_fabric_bitstream(
|
extract_grid_none_fabric_bitstream(fp, vpr_ctx, cluster_blk_id,
|
||||||
fp, vpr_ctx, openfpga_ctx, cluster_blk_id, target_pb_type, setting);
|
target_pb_type, setting);
|
||||||
fp << "\n }";
|
fp << "\n }";
|
||||||
grid_count++;
|
grid_count++;
|
||||||
}
|
}
|
||||||
|
@ -236,8 +236,7 @@ void extract_device_none_fabric_bitstream(const VprContext& vpr_ctx,
|
||||||
fp << " \"" << setting.name.c_str() << "\" : [\n";
|
fp << " \"" << setting.name.c_str() << "\" : [\n";
|
||||||
if (setting.name == PRINT_LAYOUT_NAME) {
|
if (setting.name == PRINT_LAYOUT_NAME) {
|
||||||
extract_device_none_fabric_pb_bitstream(
|
extract_device_none_fabric_pb_bitstream(
|
||||||
fp, NoneFabricBitstreamPBSetting{}, setting.name, nullptr, vpr_ctx,
|
fp, NoneFabricBitstreamPBSetting{}, setting.name, nullptr, vpr_ctx);
|
||||||
openfpga_ctx);
|
|
||||||
} else {
|
} else {
|
||||||
int pb_count = 0;
|
int pb_count = 0;
|
||||||
// Extract each needed PB data
|
// Extract each needed PB data
|
||||||
|
@ -264,8 +263,7 @@ void extract_device_none_fabric_bitstream(const VprContext& vpr_ctx,
|
||||||
if (target_pb_type != nullptr &&
|
if (target_pb_type != nullptr &&
|
||||||
is_primitive_pb_type(target_pb_type)) {
|
is_primitive_pb_type(target_pb_type)) {
|
||||||
extract_device_none_fabric_pb_bitstream(
|
extract_device_none_fabric_pb_bitstream(
|
||||||
fp, pb_setting, setting.name, target_pb_type, vpr_ctx,
|
fp, pb_setting, setting.name, target_pb_type, vpr_ctx);
|
||||||
openfpga_ctx);
|
|
||||||
}
|
}
|
||||||
fp << "\n }";
|
fp << "\n }";
|
||||||
pb_count++;
|
pb_count++;
|
||||||
|
|
Loading…
Reference in New Issue