Directlist extension bug fix

This commit is contained in:
AurelienUoU 2020-03-04 09:09:06 -07:00
parent 9f13d3bc23
commit aed3b01800
1 changed files with 7 additions and 7 deletions

View File

@ -285,9 +285,9 @@ vtr::Point<size_t> find_intra_direct_destination_coordinate(const vtr::Point<siz
* +------+
* | Grid | ny
* +------+
* ^ .
* | .
* | .
* v .
* +------+
* | Grid | 1
* +------+
@ -301,14 +301,14 @@ vtr::Point<size_t> find_intra_direct_destination_coordinate(const vtr::Point<siz
* +------+
* | Grid | ny
* +------+
* ^ .
* | .
* | .
* v .
* +------+
* | Grid | 1
* +------+
*/
if (NEGATIVE_DIR == direct.y_dir) {
if (POSITIVE_DIR == direct.y_dir) {
std::reverse(second_search_space.begin(), second_search_space.end());
}
}
@ -361,7 +361,7 @@ vtr::Point<size_t> find_intra_direct_destination_coordinate(const vtr::Point<siz
*
* 1 ... nx
* +------+ +------+
* | Grid |------>| Grid |
* | Grid |<------| Grid |
* +------+ +------+
*/
for (size_t ix = 1 ; ix < device_size.x() - 1; ++ix) {
@ -373,10 +373,10 @@ vtr::Point<size_t> find_intra_direct_destination_coordinate(const vtr::Point<siz
*
* 1 ... nx
* +------+ +------+
* | Grid |<------| Grid |
* | Grid |------>| Grid |
* +------+ +------+
*/
if (NEGATIVE_DIR == direct.x_dir) {
if (POSITIVE_DIR == direct.x_dir) {
std::reverse(second_search_space.begin(), second_search_space.end());
}
}
@ -472,7 +472,7 @@ void add_top_module_nets_inter_clb2clb_direct_connections(ModuleManager& module_
next_col_src_grid_coords.push_back(vtr::Point<size_t>(ix, iy));
}
/* For positive y- direction, we should start from y = 1 */
if (POSITIVE_DIR == direct.y_dir) {
if (NEGATIVE_DIR == direct.y_dir) {
std::reverse(next_col_src_grid_coords.begin(), next_col_src_grid_coords.end());
}
vtr::Point<size_t> src_clb_coord = find_grid_coordinate_given_type(device_size, grids, next_col_src_grid_coords, direct.from_clb_type);