From a172ac00c9acc80953702abdd0a6af7308c8549e Mon Sep 17 00:00:00 2001 From: Kazushi Kawamura Date: Sat, 25 Aug 2018 12:30:32 +0900 Subject: [PATCH] Add description --- hls_2018/router_02/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 hls_2018/router_02/README.md diff --git a/hls_2018/router_02/README.md b/hls_2018/router_02/README.md new file mode 100644 index 0000000..000e60f --- /dev/null +++ b/hls_2018/router_02/README.md @@ -0,0 +1,13 @@ +# 並列度の変更 (変更箇所) +優先度キューに要素を挿入する際,要素の移動を並列して実行できる +コードにいくつかの変更を加えることで並列度を変更可能 + +## router.hpp +* #define PP **32** <-- 並列度 +* #define LOG_PP **5** <-- 並列度のlog2 + +## router.cpp +* (in search func.) #pragma HLS ARRAY_PARTITION variable=pq_nodes cyclic factor=**32** dim=1 <-- 並列度 +* (in pq_push func.) #pragma HLS LOOP_TRIPCOUNT min=0 max=**31** <-- 並列度-1 (計3箇所) +* (in pq_push func.) #pragma HLS LOOP_TRIPCOUNT min=0 max=**255** <-- キューの最大要素数/並列度-1 + -- 2.22.0