Skip to content

Commit c1f0b34

Browse files
committed
Fix merge errors that made symbiflow tests fail
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 8f72291 commit c1f0b34

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,8 @@ static void ProcessMode(pugi::xml_node Parent, t_mode* mode, const bool timing_e
16081608
map<string, int> pb_type_names;
16091609
pair<map<string, int>::iterator, bool> ret_pb_types;
16101610

1611-
if (0 == strcmp(Parent.name(), "pb_type")) {
1611+
bool implied_mode = 0 == strcmp(Parent.name(), "pb_type");
1612+
if (implied_mode) {
16121613
/* implied mode */
16131614
mode->name = vtr::strdup("default");
16141615
} else {
@@ -1646,7 +1647,11 @@ static void ProcessMode(pugi::xml_node Parent, t_mode* mode, const bool timing_e
16461647
/* Allocate power structure */
16471648
mode->mode_power = (t_mode_power*)vtr::calloc(1, sizeof(t_mode_power));
16481649

1649-
mode->meta = ProcessMetadata(Parent, loc_data);
1650+
if (!implied_mode) {
1651+
// Implied mode metadata is attached to the pb_type, rather than
1652+
// the t_mode object.
1653+
mode->meta = ProcessMetadata(Parent, loc_data);
1654+
}
16501655

16511656
/* Clear STL map used for duplicate checks */
16521657
pb_type_names.clear();

vpr/src/route/route_tree_timing.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ bool verify_route_tree_recurr(t_rt_node* node, std::set<int>& seen_nodes);
6161

6262
t_rt_node* prune_route_tree_recurr(t_rt_node* node, CBRR& connections_inf, bool congested);
6363

64-
t_rt_node* traceback_to_route_tree(t_trace* head);
6564
static t_trace* traceback_to_route_tree_branch(t_trace* trace, std::map<int, t_rt_node*>& rr_node_to_rt);
6665

6766
static std::pair<t_trace*, t_trace*> traceback_from_route_tree_recurr(t_trace* head, t_trace* tail, const t_rt_node* node);

0 commit comments

Comments
 (0)