|
Algorithm 1 XYX Routing |
-
1:
procedure xyx routing
-
2:
-
3:
-
4:
-
5:
-
6:
-
7:
-
8:
For each router (Xi, Yi) neighbors to removed columns or rows:
-
9:
if then //destination in the same Row
-
10:
follow Yi.
-
11:
close;
-
12:
else if then //destination in different Row
-
13:
then follow Xi.
-
14:
close;
-
15:
else if then //destination in the same Column
-
16:
then follow Xi.
-
17:
close;
-
18:
else if then //destination in different column
-
19:
then follow Yi.
-
20:
close;
-
21:
end if
-
22:
end procedure
|