We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 449d58a commit 34a8180Copy full SHA for 34a8180
floogen/model/network.py
@@ -513,8 +513,8 @@ def gen_xy_routing_info(self):
513
max_y = max(ni.id.y for ni in ni_nodes)
514
max_address = max(ni.addr_range.end for ni in ni_sbr_nodes)
515
xy_routing_info = {}
516
- xy_routing_info["num_x_bits"] = clog2(max_x - min_x)
517
- xy_routing_info["num_y_bits"] = clog2(max_y - min_y)
+ xy_routing_info["num_x_bits"] = clog2(max_x - min_x + 1)
+ xy_routing_info["num_y_bits"] = clog2(max_y - min_y + 1)
518
xy_routing_info["addr_offset_bits"] = clog2(max_address)
519
xy_routing_info["id_offset"] = Coord(x=min_x, y=min_y)
520
return xy_routing_info
0 commit comments