Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
4c4a8f61
Commit
4c4a8f61
authored
Aug 24, 2018
by
kazushi.kawamura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change comment out
parent
04549b4c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
39 deletions
+69
-39
README.md
hls_2018/README.md
+37
-37
auto_compile.c
hls_2018/auto/auto_compile.c
+30
-0
router.cpp
hls_2018/router_03/router.cpp
+2
-2
No files found.
hls_2018/README.md
View file @
4c4a8f61
...
@@ -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|
hls_2018/auto/auto_compile.c
0 → 100755
View file @
4c4a8f61
#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
;
}
hls_2018/router_03/router.cpp
View file @
4c4a8f61
...
@@ -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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment