[core] format
This commit is contained in:
parent
c1c24b6be1
commit
2ff3ad61ce
|
@ -505,8 +505,9 @@ static void add_rr_graph_block_clock_edges(
|
||||||
for (size_t ipin = 0; ipin < num_pins / 2; ++ipin) {
|
for (size_t ipin = 0; ipin < num_pins / 2; ++ipin) {
|
||||||
for (auto node_dir : {Direction::INC, Direction::DEC}) {
|
for (auto node_dir : {Direction::INC, Direction::DEC}) {
|
||||||
/* find the driver clock node through lookup */
|
/* find the driver clock node through lookup */
|
||||||
RRNodeId src_node = clk_rr_lookup.find_node(
|
RRNodeId src_node =
|
||||||
chan_coord.x(), chan_coord.y(), itree, ilvl, ClockTreePinId(ipin), node_dir);
|
clk_rr_lookup.find_node(chan_coord.x(), chan_coord.y(), itree, ilvl,
|
||||||
|
ClockTreePinId(ipin), node_dir);
|
||||||
VTR_LOGV(verbose,
|
VTR_LOGV(verbose,
|
||||||
"Try to find node '%lu' from clock node lookup (x='%lu' "
|
"Try to find node '%lu' from clock node lookup (x='%lu' "
|
||||||
"y='%lu' tree='%lu' level='%lu' pin='%lu' direction='%s')\n",
|
"y='%lu' tree='%lu' level='%lu' pin='%lu' direction='%s')\n",
|
||||||
|
@ -526,7 +527,8 @@ static void add_rr_graph_block_clock_edges(
|
||||||
clk_ntwk.default_switch());
|
clk_ntwk.default_switch());
|
||||||
edge_count++;
|
edge_count++;
|
||||||
}
|
}
|
||||||
VTR_LOGV(verbose, "\tWill add %lu edges to other clock nodes\n", edge_count - curr_edge_count);
|
VTR_LOGV(verbose, "\tWill add %lu edges to other clock nodes\n",
|
||||||
|
edge_count - curr_edge_count);
|
||||||
}
|
}
|
||||||
/* If this is the clock node at the last level of the tree,
|
/* If this is the clock node at the last level of the tree,
|
||||||
* should drive some grid IPINs which are clocks */
|
* should drive some grid IPINs which are clocks */
|
||||||
|
@ -541,7 +543,8 @@ static void add_rr_graph_block_clock_edges(
|
||||||
clk_ntwk.default_switch());
|
clk_ntwk.default_switch());
|
||||||
edge_count++;
|
edge_count++;
|
||||||
}
|
}
|
||||||
VTR_LOGV(verbose, "\tWill add %lu edges to other IPIN\n", edge_count - curr_edge_count);
|
VTR_LOGV(verbose, "\tWill add %lu edges to other IPIN\n",
|
||||||
|
edge_count - curr_edge_count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,10 +108,10 @@ int link_arch_template(T& openfpga_ctx, const Command& cmd,
|
||||||
VTR_LOG("Built %ld incoming edges for routing resource graph\n",
|
VTR_LOG("Built %ld incoming edges for routing resource graph\n",
|
||||||
g_vpr_ctx.device().rr_graph.in_edges_count());
|
g_vpr_ctx.device().rr_graph.in_edges_count());
|
||||||
VTR_ASSERT(g_vpr_ctx.device().rr_graph.validate_in_edges());
|
VTR_ASSERT(g_vpr_ctx.device().rr_graph.validate_in_edges());
|
||||||
annotate_device_rr_gsb(g_vpr_ctx.device(),
|
annotate_device_rr_gsb(
|
||||||
openfpga_ctx.mutable_device_rr_gsb(),
|
g_vpr_ctx.device(), openfpga_ctx.mutable_device_rr_gsb(),
|
||||||
!openfpga_ctx.clock_arch().empty(), /* FIXME: consider to be more robust! */
|
!openfpga_ctx.clock_arch().empty(), /* FIXME: consider to be more robust! */
|
||||||
cmd_context.option_enable(cmd, opt_verbose));
|
cmd_context.option_enable(cmd, opt_verbose));
|
||||||
|
|
||||||
if (true == cmd_context.option_enable(cmd, opt_sort_edge)) {
|
if (true == cmd_context.option_enable(cmd, opt_sort_edge)) {
|
||||||
sort_device_rr_gsb_chan_node_in_edges(
|
sort_device_rr_gsb_chan_node_in_edges(
|
||||||
|
|
|
@ -232,7 +232,11 @@ MuxLibrary build_device_mux_library(const DeviceContext& vpr_device_ctx,
|
||||||
mux_lib.muxes().size());
|
mux_lib.muxes().size());
|
||||||
VTR_LOG("Maximum multiplexer size is %lu.\n", mux_lib.max_mux_size());
|
VTR_LOG("Maximum multiplexer size is %lu.\n", mux_lib.max_mux_size());
|
||||||
for (auto mux_id : mux_lib.muxes()) {
|
for (auto mux_id : mux_lib.muxes()) {
|
||||||
VTR_LOG("\tmodel '%s', input_size='%lu'\n", openfpga_ctx.arch().circuit_lib.model_name(mux_lib.mux_circuit_model(mux_id)).c_str(), mux_lib.mux_graph(mux_id).num_inputs());
|
VTR_LOG("\tmodel '%s', input_size='%lu'\n",
|
||||||
|
openfpga_ctx.arch()
|
||||||
|
.circuit_lib.model_name(mux_lib.mux_circuit_model(mux_id))
|
||||||
|
.c_str(),
|
||||||
|
mux_lib.mux_graph(mux_id).num_inputs());
|
||||||
}
|
}
|
||||||
|
|
||||||
return mux_lib;
|
return mux_lib;
|
||||||
|
|
Loading…
Reference in New Issue