diff --git a/router/router.cpp b/router/router.cpp index 82ed9b6d056d420c09db94132e0bbcfbbe8be9dc..a1f46399906b44e58fabd65cdaadb9d9ef5d9358 100644 --- a/router/router.cpp +++ b/router/router.cpp @@ -90,7 +90,7 @@ int router(short int size_x, short int size_y, short int line_num, short int boa cout << "rip-up routing ..." << endl; short int last_target = -1; ap_uint<16> round; - for(round = 1; round <= ROUND_END; round++) { + for(round = 1; round <= ROUND_LIMIT; round++) { short int target = lfsr_random() % line_num; if(adjacents[target]) continue; if(target == last_target) continue; diff --git a/router/router.hpp b/router/router.hpp index 718e0482c4f46ad04366db9467cdabdcebf6b43d..0adcbb7b7a5b3eaf40fc232b3d0164e50755506e 100644 --- a/router/router.hpp +++ b/router/router.hpp @@ -11,7 +11,7 @@ using namespace std; -#define ROUND_END 32768 // Max=65534(=2^16-2) +#define ROUND_LIMIT 32768 // Max=65534(=2^16-2) #define PRINT_BOARD //#define PRINT_SEARCH // for router debug