[core] code format
This commit is contained in:
parent
f009180bbf
commit
c52610959c
|
@ -293,13 +293,12 @@ static int route_spine_taps(
|
||||||
return CMD_EXEC_SUCCESS;
|
return CMD_EXEC_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
* Recursively route a clock spine on an existing routing resource graph
|
* Recursively route a clock spine on an existing routing resource graph
|
||||||
*******************************************************************/
|
*******************************************************************/
|
||||||
static int route_spine_intermediate_drivers(
|
static int route_spine_intermediate_drivers(
|
||||||
VprRoutingAnnotation& vpr_routing_annotation,
|
VprRoutingAnnotation& vpr_routing_annotation, const RRGraphView& rr_graph,
|
||||||
const RRGraphView& rr_graph, const RRClockSpatialLookup& clk_rr_lookup,
|
const RRClockSpatialLookup& clk_rr_lookup,
|
||||||
const vtr::vector<RRNodeId, ClusterNetId>& rr_node_gnets,
|
const vtr::vector<RRNodeId, ClusterNetId>& rr_node_gnets,
|
||||||
const std::map<ClockTreePinId, ClusterNetId>& tree2clk_pin_map,
|
const std::map<ClockTreePinId, ClusterNetId>& tree2clk_pin_map,
|
||||||
const ClockNetwork& clk_ntwk, const ClockTreeId& clk_tree,
|
const ClockNetwork& clk_ntwk, const ClockTreeId& clk_tree,
|
||||||
|
@ -321,10 +320,9 @@ static int route_spine_intermediate_drivers(
|
||||||
.spine_intermediate_drivers_by_routing_track(curr_spine, des_coord)
|
.spine_intermediate_drivers_by_routing_track(curr_spine, des_coord)
|
||||||
.empty() &&
|
.empty() &&
|
||||||
tree2clk_pin_map.find(curr_pin) != tree2clk_pin_map.end()) {
|
tree2clk_pin_map.find(curr_pin) != tree2clk_pin_map.end()) {
|
||||||
VTR_LOGV(verbose,
|
VTR_LOGV(
|
||||||
"Finding intermediate drivers at (%d, %d) for spine '%s'\n",
|
verbose, "Finding intermediate drivers at (%d, %d) for spine '%s'\n",
|
||||||
des_coord.x(), des_coord.y(),
|
des_coord.x(), des_coord.y(), clk_ntwk.spine_name(curr_spine).c_str());
|
||||||
clk_ntwk.spine_name(curr_spine).c_str());
|
|
||||||
for (RREdgeId cand_edge : rr_graph.node_in_edges(des_node)) {
|
for (RREdgeId cand_edge : rr_graph.node_in_edges(des_node)) {
|
||||||
RRNodeId opin_node = rr_graph.edge_src_node(cand_edge);
|
RRNodeId opin_node = rr_graph.edge_src_node(cand_edge);
|
||||||
if (OPIN != rr_graph.node_type(opin_node)) {
|
if (OPIN != rr_graph.node_type(opin_node)) {
|
||||||
|
@ -495,9 +493,10 @@ static int rec_expand_and_route_clock_spine(
|
||||||
if (icoord == spine_coords.size() - 1) {
|
if (icoord == spine_coords.size() - 1) {
|
||||||
vtr::Point<int> des_coord = spine_coords[icoord];
|
vtr::Point<int> des_coord = spine_coords[icoord];
|
||||||
|
|
||||||
int use_int_driver = route_spine_intermediate_drivers(vpr_routing_annotation,
|
int use_int_driver = route_spine_intermediate_drivers(
|
||||||
rr_graph, clk_rr_lookup, rr_node_gnets, tree2clk_pin_map,
|
vpr_routing_annotation, rr_graph, clk_rr_lookup, rr_node_gnets,
|
||||||
clk_ntwk, clk_tree, curr_spine, curr_pin, des_coord, verbose);
|
tree2clk_pin_map, clk_ntwk, clk_tree, curr_spine, curr_pin, des_coord,
|
||||||
|
verbose);
|
||||||
if (use_int_driver > 1) {
|
if (use_int_driver > 1) {
|
||||||
return CMD_EXEC_FATAL_ERROR;
|
return CMD_EXEC_FATAL_ERROR;
|
||||||
}
|
}
|
||||||
|
@ -528,9 +527,10 @@ static int rec_expand_and_route_clock_spine(
|
||||||
* any defined and related rr_node found as incoming edges. If the
|
* any defined and related rr_node found as incoming edges. If the
|
||||||
* global net is mapped to the internal driver, use it as the previous
|
* global net is mapped to the internal driver, use it as the previous
|
||||||
* node */
|
* node */
|
||||||
int use_int_driver = route_spine_intermediate_drivers(vpr_routing_annotation,
|
int use_int_driver = route_spine_intermediate_drivers(
|
||||||
rr_graph, clk_rr_lookup, rr_node_gnets, tree2clk_pin_map,
|
vpr_routing_annotation, rr_graph, clk_rr_lookup, rr_node_gnets,
|
||||||
clk_ntwk, clk_tree, curr_spine, curr_pin, des_coord, verbose);
|
tree2clk_pin_map, clk_ntwk, clk_tree, curr_spine, curr_pin, des_coord,
|
||||||
|
verbose);
|
||||||
if (use_int_driver > 1) {
|
if (use_int_driver > 1) {
|
||||||
return CMD_EXEC_FATAL_ERROR;
|
return CMD_EXEC_FATAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue