Skip to content

Commit

Permalink
Fixed rrgraph index
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshgore committed Jan 20, 2025
1 parent b5d202a commit 0aeaf1c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/OpenFPGA_basic/06_generate_rrgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ def main():
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# Create edges
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# for X, Y in product(range(1, FPGA_GRID_X), range(1, FPGA_GRID_Y)):
for X, Y in ((2, 2),):
for X, Y in product(range(1, FPGA_GRID_X), range(1, FPGA_GRID_Y)):
# for X, Y in ((2, 2),):
sw_name = f"SB_{X}__{Y}_"
sb_patt = [key for key in SB_MAPS.keys() if fnmatch(sw_name, key)]
# Skip is pattern is not found
Expand Down
Binary file modified examples/OpenFPGA_basic/baseline_l4/switchbox_bottom.xlsx
Binary file not shown.
Binary file modified examples/OpenFPGA_basic/baseline_l4/switchbox_left.xlsx
Binary file not shown.
Binary file modified examples/OpenFPGA_basic/baseline_l4/switchbox_main.xlsx
Binary file not shown.
Binary file modified examples/OpenFPGA_basic/baseline_l4/switchbox_right.xlsx
Binary file not shown.
Binary file modified examples/OpenFPGA_basic/baseline_l4/switchbox_top.xlsx
Binary file not shown.
10 changes: 5 additions & 5 deletions spydrnet_physical/util/rrgraph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ def create_channels(self):
rr = self.rrgraph_bin
rr.channels = rr_capnp.Channels.new_message()
rr.channels.channel = rr_capnp.Channel.new_message(
xMax=max(self.channels["X"]),
xMin=min(self.channels["X"]),
yMax=max(self.channels["Y"]),
yMin=min(self.channels["Y"]),
chanWidthMax=max(self.channels["X"] + self.channels["Y"]),
xMax=max(self.channels["X"]) * 2,
xMin=min(self.channels["X"]) * 2,
yMax=max(self.channels["Y"]) * 2,
yMin=min(self.channels["Y"]) * 2,
chanWidthMax=max(self.channels["X"] + self.channels["Y"]) * 2,
)
x_lists, y_lists = [], []
for indx, chan in enumerate(self.channels["X"]):
Expand Down

0 comments on commit 0aeaf1c

Please sign in to comment.