[engine] update vtr and enable more debugging info
This commit is contained in:
parent
83c233022f
commit
e9d6e7e38a
|
@ -143,7 +143,7 @@ void annotate_rr_node_previous_nodes(const DeviceContext& device_ctx,
|
||||||
|
|
||||||
/* Only update mapped nodes */
|
/* Only update mapped nodes */
|
||||||
if (prev_node) {
|
if (prev_node) {
|
||||||
vpr_routing_annotation.set_rr_node_prev_node(rr_node, prev_node);
|
vpr_routing_annotation.set_rr_node_prev_node(device_ctx.rr_graph, rr_node, prev_node);
|
||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,15 +52,18 @@ void VprRoutingAnnotation::set_rr_node_net(const RRNodeId& rr_node,
|
||||||
rr_node_nets_[rr_node] = net_id;
|
rr_node_nets_[rr_node] = net_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VprRoutingAnnotation::set_rr_node_prev_node(const RRNodeId& rr_node,
|
void VprRoutingAnnotation::set_rr_node_prev_node(const RRGraphView& rr_graph,
|
||||||
|
const RRNodeId& rr_node,
|
||||||
const RRNodeId& prev_node) {
|
const RRNodeId& prev_node) {
|
||||||
/* Ensure that the node_id is in the list */
|
/* Ensure that the node_id is in the list */
|
||||||
VTR_ASSERT(size_t(rr_node) < rr_node_nets_.size());
|
VTR_ASSERT(size_t(rr_node) < rr_node_nets_.size());
|
||||||
/* Warn any override attempt */
|
/* Warn any override attempt */
|
||||||
if ( (RRNodeId::INVALID() != rr_node_prev_nodes_[rr_node])
|
if ( (RRNodeId::INVALID() != rr_node_prev_nodes_[rr_node])
|
||||||
&& (prev_node != rr_node_prev_nodes_[rr_node])) {
|
&& (prev_node != rr_node_prev_nodes_[rr_node])) {
|
||||||
VTR_LOG_WARN("Override the previous node '%ld' by previous node '%ld' for node '%ld' with in routing context annotation!\n",
|
VTR_LOG_WARN("Override the previous node '%s' by previous node '%s' for node '%s' with in routing context annotation!\n",
|
||||||
size_t(rr_node_prev_nodes_[rr_node]), size_t(prev_node), size_t(rr_node));
|
rr_graph.node_coordinate_to_string(rr_node_prev_nodes_[rr_node]).c_str(),
|
||||||
|
rr_graph.node_coordinate_to_string(prev_node).c_str(),
|
||||||
|
rr_graph.node_coordinate_to_string(rr_node).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
rr_node_prev_nodes_[rr_node] = prev_node;
|
rr_node_prev_nodes_[rr_node] = prev_node;
|
||||||
|
|
|
@ -33,7 +33,8 @@ class VprRoutingAnnotation {
|
||||||
void init(const RRGraphView& rr_graph);
|
void init(const RRGraphView& rr_graph);
|
||||||
void set_rr_node_net(const RRNodeId& rr_node,
|
void set_rr_node_net(const RRNodeId& rr_node,
|
||||||
const ClusterNetId& net_id);
|
const ClusterNetId& net_id);
|
||||||
void set_rr_node_prev_node(const RRNodeId& rr_node,
|
void set_rr_node_prev_node(const RRGraphView& rr_graph,
|
||||||
|
const RRNodeId& rr_node,
|
||||||
const RRNodeId& prev_node);
|
const RRNodeId& prev_node);
|
||||||
private: /* Internal data */
|
private: /* Internal data */
|
||||||
/* Clustered net ids mapped to each rr_node */
|
/* Clustered net ids mapped to each rr_node */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Run VPR for the 'and' design
|
# Run VPR for the 'and' design
|
||||||
#--write_rr_graph example_rr_graph.xml
|
#--write_rr_graph example_rr_graph.xml
|
||||||
vpr ${VPR_ARCH_FILE} ${VPR_TESTBENCH_BLIF} --clock_modeling route --circuit_format ${OPENFPGA_VPR_CIRCUIT_FORMAT}
|
vpr ${VPR_ARCH_FILE} ${VPR_TESTBENCH_BLIF} --clock_modeling route --circuit_format ${OPENFPGA_VPR_CIRCUIT_FORMAT} --skip_sync_clustering_and_routing_results on
|
||||||
|
|
||||||
# Read OpenFPGA architecture definition
|
# Read OpenFPGA architecture definition
|
||||||
read_openfpga_arch -f ${OPENFPGA_ARCH_FILE}
|
read_openfpga_arch -f ${OPENFPGA_ARCH_FILE}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit f0cf714da1048671841b4bbfa0c457e2cd36ea9e
|
Subproject commit b5d4f8ca41bc65ce35eae6ef3ec8ce1bf7f6a5a3
|
Loading…
Reference in New Issue