Commit 4c4a8f61 authored by kazushi.kawamura's avatar kazushi.kawamura

Change comment out

parent 04549b4c
...@@ -27,41 +27,41 @@ Options: ...@@ -27,41 +27,41 @@ Options:
* Input/Output: boardstr(8bit\*41472), seed(32bit), &status(32bit), return(1bit) * Input/Output: boardstr(8bit\*41472), seed(32bit), &status(32bit), return(1bit)
## Results ## Results
|Q|heap(seed:0)|c-array(seed:0)| |Q|heap(seed:0)|c-array(seed:0)|OR|
|:---|:---|:---| |:---|:---|:---|:---|
|01|1|1| |01|1|1|1|
|02|1|1| |02|1|1|1|
|03|1|1| |03|1|1|1|
|04|1|1| |04|1|1|1|
|05|1|1| |05|1|1|1|
|06|1|1| |06|1|1|1|
|07|1|1| |07|1|1|1|
|08|0|1| |08|0|1|1|
|09|1|1| |09|1|1|1|
|10|1|1| |10|1|1|1|
|11|1|1| |11|1|1|1|
|12|1|1| |12|1|1|1|
|13|1|1| |13|1|1|1|
|14|0|1| |14|0|1|1|
|15|1|1| |15|1|1|1|
|16|1|1| |16|1|1|1|
|17|0|0| |17|0|0|0|
|18|1|1| |18|1|1|1|
|19|0|0| |19|0|0|0|
|20|1|1| |20|1|1|1|
|21|0|0| |21|0|0|0|
|22|1|1| |22|1|1|1|
|23|1|0| |23|1|0|1|
|24|0|0| |24|0|0|0|
|25|0|0| |25|0|0|0|
|26|1|1| |26|1|1|1|
|27|1|0| |27|1|0|1|
|28|1|1| |28|1|1|1|
|29|0|0| |29|0|0|0|
|30|0|0| |30|0|0|0|
|31|0|0| |31|0|0|0|
|32|1|1| |32|1|1|1|
|33|0|0| |33|0|0|0|
|34|0|0| |34|0|0|0|
|Total|22|22| |Total|22|22|24|
#include <stdio.h>
#include <stdlib.h>
#define STRLEN 65536
int main(void){
char q[STRLEN], command[STRLEN];
char dir[64] = "../router_01";
FILE *fp;
fp = fopen("b.txt", "r");
if(fp == NULL){
printf("File does not exist.\n");
exit(1);
}
int counter = 1;
while(1){
if(fscanf(fp, "%s", q) == EOF) break;
printf("Q. %d\n", counter++);
sprintf(command, "./%s/sim.exe %s", dir, q);
//printf("(command) %s\n", command);
int ret = system(command);
printf("ret: %d\n", ret);
}
fclose(fp);
return 0;
}
...@@ -171,8 +171,8 @@ bool pynqrouter(char boardstr[BOARDSTR_SIZE], ap_uint<32> seed, ap_int<32> *stat ...@@ -171,8 +171,8 @@ bool pynqrouter(char boardstr[BOARDSTR_SIZE], ap_uint<32> seed, ap_int<32> *stat
if (next_target == line_num) next_target = 0; if (next_target == line_num) next_target = 0;
#ifdef DEBUG_PRINT #ifdef DEBUG_PRINT
cout << "(round " << round << ") LINE #" << (int)(target + 1); //cout << "(round " << round << ") LINE #" << (int)(target + 1);
cout << " -> " << pointer << endl; //cout << " -> " << pointer << endl;
#endif #endif
#ifdef DEBUG_PRINT #ifdef DEBUG_PRINT
int buffer_length = pointer - s_idx[target]; int buffer_length = pointer - s_idx[target];
......
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