Skip to content

Commit c189588

Browse files
committed
migrate last traceback users to RTIterator, reorg
1 parent 11303fe commit c189588

21 files changed

+947
-1295
lines changed

utils/fasm/test/test_fasm.cpp

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "route_common.h"
55
#include "route_tree_timing.h"
6-
#include "t_trace.h"
76
#include "vpr_api.h"
87
#include "vtr_util.h"
98
#include "rr_metadata.h"
@@ -592,22 +591,14 @@ TEST_CASE("fasm_integration_test", "[fasm]") {
592591
if(!root)
593592
continue;
594593

595-
t_trace* head = traceback_from_route_tree_recurr(NULL, NULL, root.value()).first;
596-
t_trace* tptr = head;
597-
while(tptr != nullptr) {
598-
t_trace* next = tptr->next;
599-
600-
if(next != nullptr && tptr->iswitch != OPEN) {
601-
const auto next_inode = next->index;
602-
auto iter = routing_edges.find(std::make_tuple(tptr->index, next_inode, tptr->iswitch));
594+
for(auto& rt_node: root.value()) {
595+
for(auto& child_node: rt_node.child_nodes()){
596+
auto iter = routing_edges.find(std::make_tuple(size_t(rt_node.inode), size_t(child_node.inode), size_t(child_node.parent_switch)));
603597
if (iter == routing_edges.end()) {
604-
FAIL_CHECK("source: " << tptr->index << " sink: " << next_inode << " switch:" << tptr->iswitch);
598+
FAIL_CHECK("source: " << size_t(rt_node.inode) << " sink: " << size_t(child_node.inode) << " switch:" << size_t(child_node.parent_switch));
605599
}
606600
}
607-
608-
tptr = next;
609601
}
610-
free_traceback(head);
611602
}
612603

613604
// Verify CLB crossbar mux features against routed pin features.

0 commit comments

Comments
 (0)