Commit eae29f6f authored by kazushi.kawamura's avatar kazushi.kawamura

change parameter name

parent 2df006bf
...@@ -90,7 +90,7 @@ int router(short int size_x, short int size_y, short int line_num, short int boa ...@@ -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; cout << "rip-up routing ..." << endl;
short int last_target = -1; short int last_target = -1;
ap_uint<16> round; 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; short int target = lfsr_random() % line_num;
if(adjacents[target]) continue; if(adjacents[target]) continue;
if(target == last_target) continue; if(target == last_target) continue;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
using namespace std; 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_BOARD
//#define PRINT_SEARCH // for router debug //#define PRINT_SEARCH // for router debug
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment