bug fix for root node builder by including ptc_num!!

This commit is contained in:
tangxifan 2020-02-04 21:54:03 -07:00
parent e2f408cc2d
commit 7092ddbde6
1 changed files with 5 additions and 0 deletions

View File

@ -98,6 +98,11 @@ RRNodeId RoutingToClockConnection::create_virtual_clock_network_sink_node(
float C = 0.;
rr_graph.set_node_rc_data_index(node_index, find_create_rr_rc_data(R, C));
/* Set a ptc_num here as RRGraph object does need it to build fast look-up
* Legacy codes fail to do this!
*/
rr_graph.set_node_ptc_num(node_index, device_ctx.grid[x][y].type->num_class);
return node_index;
}