formulate file name, module name and instance name to be consistent
This commit is contained in:
parent
fefcd88f14
commit
be5966475e
|
@ -238,7 +238,7 @@ std::string generate_routing_block_netlist_name(const std::string& prefix,
|
||||||
std::string generate_routing_block_netlist_name(const std::string& prefix,
|
std::string generate_routing_block_netlist_name(const std::string& prefix,
|
||||||
const vtr::Point<size_t>& coordinate,
|
const vtr::Point<size_t>& coordinate,
|
||||||
const std::string& postfix) {
|
const std::string& postfix) {
|
||||||
return std::string( prefix + std::to_string(coordinate.x()) + std::string("_") + std::to_string(coordinate.y()) + postfix );
|
return std::string( prefix + std::to_string(coordinate.x()) + std::string("__") + std::to_string(coordinate.y()) + std::string("_") + postfix );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
@ -1183,8 +1183,9 @@ std::string generate_grid_block_instance_name(const std::string& prefix,
|
||||||
module_name += generate_grid_block_netlist_name(block_name, is_block_io, io_side, std::string());
|
module_name += generate_grid_block_netlist_name(block_name, is_block_io, io_side, std::string());
|
||||||
module_name += std::string("_");
|
module_name += std::string("_");
|
||||||
module_name += std::to_string(grid_coord.x());
|
module_name += std::to_string(grid_coord.x());
|
||||||
module_name += std::string("_");
|
module_name += std::string("__");
|
||||||
module_name += std::to_string(grid_coord.y());
|
module_name += std::to_string(grid_coord.y());
|
||||||
|
module_name += std::string("_");
|
||||||
|
|
||||||
return module_name;
|
return module_name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -270,7 +270,7 @@ void print_verilog_physical_tile_netlist(NetlistManager& netlist_manager,
|
||||||
/* Give a name to the Verilog netlist */
|
/* Give a name to the Verilog netlist */
|
||||||
/* Create the file name for Verilog */
|
/* Create the file name for Verilog */
|
||||||
std::string verilog_fname(subckt_dir
|
std::string verilog_fname(subckt_dir
|
||||||
+ generate_grid_block_netlist_name(std::string(phy_block_type->name),
|
+ generate_grid_block_netlist_name(std::string(GRID_MODULE_NAME_PREFIX) + std::string(phy_block_type->name),
|
||||||
is_io_type(phy_block_type),
|
is_io_type(phy_block_type),
|
||||||
border_side,
|
border_side,
|
||||||
std::string(VERILOG_NETLIST_FILE_POSTFIX))
|
std::string(VERILOG_NETLIST_FILE_POSTFIX))
|
||||||
|
|
Loading…
Reference in New Issue