Skip to content

Commit dcc5353

Browse files
committed
place: added few comments and removed compile warning
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent dfbd894 commit dcc5353

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

libs/libarchfpga/src/physical_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,6 @@ struct t_physical_tile_port {
652652
int index;
653653
int absolute_first_pin_index;
654654
int port_index_by_type;
655-
int tile_type_index;
656655
};
657656

658657
/* Describes the type for a logical block

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,6 @@ static std::pair<int, int> ProcessPinString(pugi::xml_node Locations,
878878
VTR_ASSERT(port != nullptr);
879879
int abs_first_pin_idx = port->absolute_first_pin_index;
880880

881-
std::pair<int, int> pins;
882-
883881
token_index++;
884882

885883
// All the pins of the port are taken or the port has a single pin
@@ -3245,7 +3243,7 @@ static void ProcessEquivalentSiteDirects(pugi::xml_node Parent,
32453243

32463244
if (count_children(Parent, "direct", loc_data) < 1) {
32473245
archfpga_throw(loc_data.filename_c_str(), loc_data.line(Parent),
3248-
"There are no direct pin mappings between site %s and tile %s.\n", site_name, PhysicalTileType->name);
3246+
"There are no direct pin mappings between site %s and tile %s.\n", site_name.c_str(), PhysicalTileType->name);
32493247
}
32503248

32513249
std::unordered_map<int, int> directs_map;
@@ -3257,10 +3255,12 @@ static void ProcessEquivalentSiteDirects(pugi::xml_node Parent,
32573255
expect_only_attributes(CurDirect, {"from", "to"}, loc_data);
32583256

32593257
std::string from, to;
3258+
// `from` attribute is relative to the physical tile pins
32603259
from = std::string(get_attribute(CurDirect, "from", loc_data).value());
3260+
3261+
// `to` attribute is relative to the logical block pins
32613262
to = std::string(get_attribute(CurDirect, "to", loc_data).value());
32623263

3263-
// XXX
32643264
auto from_pins = ProcessPinString<t_physical_tile_type_ptr>(CurDirect, PhysicalTileType, from.c_str(), loc_data);
32653265
auto to_pins = ProcessPinString<t_logical_block_type_ptr>(CurDirect, LogicalBlockType, to.c_str(), loc_data);
32663266

vpr/src/base/clustered_netlist.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,10 @@ class ClusteredNetlist : public Netlist<ClusterBlockId, ClusterPortId, ClusterPi
255255
//Pins
256256
vtr::vector_map<ClusterPinId, int> pin_physical_index_; //The physical pin index (i.e. pin index
257257
//in t_physical_tile_type) corresponding
258-
//to the logical pin
259-
vtr::vector_map<ClusterPinId, int> pin_logical_index_; //The logical pin index of this block
258+
//to the clustered pin
259+
vtr::vector_map<ClusterPinId, int> pin_logical_index_; //The logical pin index of this block (i.e. pin index
260+
//in t_logical_block_type) corresponding
261+
//to the clustered pin
260262

261263
//Nets
262264
vtr::vector_map<ClusterNetId, bool> net_is_ignored_; //Boolean mapping indicating if the net is ignored

0 commit comments

Comments
 (0)