Go to the source code of this file.
int seg_index_of_cblock |
( |
t_rr_type |
from_rr_type, |
|
|
int |
to_node |
|
) |
| |
int seg_index_of_sblock |
( |
int |
from_node, |
|
|
int |
to_node |
|
) |
| |
Definition at line 52 of file rr_graph_util.c.
66 if (from_rr_type ==
CHANX) {
67 if (to_rr_type ==
CHANY) {
69 }
else if (to_rr_type ==
CHANX) {
71 return (
rr_node[from_node].xhigh);
73 return (
rr_node[to_node].xhigh);
76 vpr_printf(TIO_MESSAGE_ERROR,
"in seg_index_of_sblock: to_node %d is of type %d.\n",
82 else if (from_rr_type ==
CHANY) {
83 if (to_rr_type ==
CHANX) {
85 }
else if (to_rr_type ==
CHANY) {
87 return (
rr_node[from_node].yhigh);
89 return (
rr_node[to_node].yhigh);
92 vpr_printf(TIO_MESSAGE_ERROR,
"in seg_index_of_sblock: to_node %d is of type %d.\n",
99 vpr_printf(TIO_MESSAGE_ERROR,
"in seg_index_of_sblock: from_node %d is of type %d.\n",
100 from_node, from_rr_type);