From 97193794c41077acd5cd6d6b00de4bc51084cba0 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Thu, 24 Oct 2019 21:27:42 -0600 Subject: [PATCH] correct bugs in organizing child modules in top-level module --- .../SRC/fpga_x2p/module_builder/build_top_module_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vpr7_x2p/vpr/SRC/fpga_x2p/module_builder/build_top_module_memory.cpp b/vpr7_x2p/vpr/SRC/fpga_x2p/module_builder/build_top_module_memory.cpp index 2566286da..39bf029ad 100644 --- a/vpr7_x2p/vpr/SRC/fpga_x2p/module_builder/build_top_module_memory.cpp +++ b/vpr7_x2p/vpr/SRC/fpga_x2p/module_builder/build_top_module_memory.cpp @@ -233,12 +233,12 @@ void organize_top_module_memory_modules(ModuleManager& module_manager, } /* TOP side I/Os */ - for (size_t ix = 1; ix < device_size.x() - 1; ++ix) { + for (size_t ix = device_size.x() - 2; ix >= 1; --ix) { io_coords[TOP].push_back(vtr::Point(ix, device_size.y() - 1)); } /* LEFT side I/Os */ - for (size_t iy = 1; iy < device_size.y() - 1; ++iy) { + for (size_t iy = device_size.y() - 2; iy >= 1; --iy) { io_coords[LEFT].push_back(vtr::Point(0, iy)); }