質問編集履歴

1

ソースコードの追加

2019/01/19 13:05

投稿

hello_whats_up
hello_whats_up

スコア57

test CHANGED
File without changes
test CHANGED
@@ -4,6 +4,62 @@
4
4
 
5
5
  ```エラーコード
6
6
 
7
- ERROR: [XFORM 203-733] An internal stream 'out[0].V' (main.cpp:220) with default size is used in a non-dataflow region, which may result in deadlock. Please consider to resize the stream using the directive 'set_directive_stream' or the 'HLS stream' pragma.
7
+ ERROR: [XFORM 203-733] An internal stream 'list[0].V' (main.cpp:220) with default size is used in a non-dataflow region, which may result in deadlock. Please consider to resize the stream using the directive 'set_directive_stream' or the 'HLS stream' pragma.
8
8
 
9
9
  ```
10
+
11
+
12
+
13
+ ```C
14
+
15
+ void Count_top(hls::stream<int>& in,hls::stream<int>& out)
16
+
17
+ {
18
+
19
+ hls::stream<int> list[CON_NUM + 1];
20
+
21
+
22
+
23
+ int tri[CON_NUM], squ[CON_NUM];
24
+
25
+
26
+
27
+ int tri_sum = 0, squ_sum = 0;
28
+
29
+
30
+
31
+ streamControl(in,list[0]);
32
+
33
+
34
+
35
+ Count_top_label3:for(int i = 0; i < CON_NUM-1; i++)
36
+
37
+ {
38
+
39
+ triangleCount(i, list[i], list[i+1], tri[i], squ[i]);
40
+
41
+ }
42
+
43
+ triangleCountFinal(CON_NUM - 1, list[CON_NUM-1], tri[CON_NUM-1], squ[CON_NUM-1]);
44
+
45
+
46
+
47
+ for(int i = 0; i < CON_NUM; i++)
48
+
49
+ {
50
+
51
+ tri_sum += tri[i];
52
+
53
+ squ_sum += squ[i];
54
+
55
+ }
56
+
57
+
58
+
59
+ out.write(tri_sum);
60
+
61
+ out.write(squ_sum);
62
+
63
+ }
64
+
65
+ ```