diff --git a/hls_2018/README.md b/hls_2018/README.md index dac65166c41f9bb446030aa1e01ffae6e225d383..eb409d8a02454f3d47187a75104ebb5b4da058c0 100644 --- a/hls_2018/README.md +++ b/hls_2018/README.md @@ -27,41 +27,41 @@ Options: * Input/Output: boardstr(8bit\*41472), seed(32bit), &status(32bit), return(1bit) ## Results -|Q|heap(seed:0)|c-array(seed:0)| -|:---|:---|:---| -|01|1|1| -|02|1|1| -|03|1|1| -|04|1|1| -|05|1|1| -|06|1|1| -|07|1|1| -|08|0|1| -|09|1|1| -|10|1|1| -|11|1|1| -|12|1|1| -|13|1|1| -|14|0|1| -|15|1|1| -|16|1|1| -|17|0|0| -|18|1|1| -|19|0|0| -|20|1|1| -|21|0|0| -|22|1|1| -|23|1|0| -|24|0|0| -|25|0|0| -|26|1|1| -|27|1|0| -|28|1|1| -|29|0|0| -|30|0|0| -|31|0|0| -|32|1|1| -|33|0|0| -|34|0|0| -|Total|22|22| +|Q|heap(seed:0)|c-array(seed:0)|OR| +|:---|:---|:---|:---| +|01|1|1|1| +|02|1|1|1| +|03|1|1|1| +|04|1|1|1| +|05|1|1|1| +|06|1|1|1| +|07|1|1|1| +|08|0|1|1| +|09|1|1|1| +|10|1|1|1| +|11|1|1|1| +|12|1|1|1| +|13|1|1|1| +|14|0|1|1| +|15|1|1|1| +|16|1|1|1| +|17|0|0|0| +|18|1|1|1| +|19|0|0|0| +|20|1|1|1| +|21|0|0|0| +|22|1|1|1| +|23|1|0|1| +|24|0|0|0| +|25|0|0|0| +|26|1|1|1| +|27|1|0|1| +|28|1|1|1| +|29|0|0|0| +|30|0|0|0| +|31|0|0|0| +|32|1|1|1| +|33|0|0|0| +|34|0|0|0| +|Total|22|22|24| diff --git a/hls_2018/auto/auto_compile.c b/hls_2018/auto/auto_compile.c new file mode 100755 index 0000000000000000000000000000000000000000..66f672e29a097e52976ff062d92eb78e4f0ecf8c --- /dev/null +++ b/hls_2018/auto/auto_compile.c @@ -0,0 +1,30 @@ +#include +#include + +#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; +} + diff --git a/hls_2018/router_03/router.cpp b/hls_2018/router_03/router.cpp index 0a21b172b60691bf1a51eaa348cde97c6c96d381..772d42031ab677e2e928d88dddfb153d1de5c5ef 100755 --- a/hls_2018/router_03/router.cpp +++ b/hls_2018/router_03/router.cpp @@ -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; #ifdef DEBUG_PRINT - cout << "(round " << round << ") LINE #" << (int)(target + 1); - cout << " -> " << pointer << endl; + //cout << "(round " << round << ") LINE #" << (int)(target + 1); + //cout << " -> " << pointer << endl; #endif #ifdef DEBUG_PRINT int buffer_length = pointer - s_idx[target];