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
556e6865
Commit
556e6865
authored
Jul 20, 2018
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename the name of main function in hls
parent
bfc0be24
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
175 additions
and
175 deletions
+175
-175
router.cpp
hls/lines256_length128/router.cpp
+162
-162
router.hpp
hls/lines256_length128/router.hpp
+13
-13
No files found.
hls/lines256_length128/router.cpp
View file @
556e6865
This diff is collapsed.
Click to expand it.
hls/lines256_length128/router.hpp
View file @
556e6865
...
@@ -13,33 +13,33 @@
...
@@ -13,33 +13,33 @@
#include <ap_int.h>
#include <ap_int.h>
#endif
#endif
//#define DEBUG_PRINT //
いろいろ表示する
//#define DEBUG_PRINT //
���낢��\������
#define USE_ASTAR // A*
探索を使う
#define USE_ASTAR // A*
�T�����g��
#define USE_MOD_CALC //
ターゲットラインの選択に剰余演算を用いる
#define USE_MOD_CALC //
�^�[�Q�b�g���C���̑I���ɏ�]���Z��p����
using
namespace
std
;
using
namespace
std
;
//
各種設定値
//
�e��ݒ�l
#define MAX_WIDTH 72 // X, Y
の最大値 (7ビットで収まる
)
#define MAX_WIDTH 72 // X, Y
�̍ő�l (7�r�b�g�Ŏ��܂�)
#define BITWIDTH_XY 13
#define BITWIDTH_XY 13
#define BITMASK_XY 65528 // 1111 1111 1111 1000
#define BITMASK_XY 65528 // 1111 1111 1111 1000
#define MAX_LAYER 8 // Z
の最大値 (3ビット
)
#define MAX_LAYER 8 // Z
�̍ő�l (3�r�b�g)
#define BITWIDTH_Z 3
#define BITWIDTH_Z 3
#define BITMASK_Z 7 // 0000 0000 0000 0111
#define BITMASK_Z 7 // 0000 0000 0000 0111
#define MAX_CELLS 41472 //
セルの総数 =72*72*8 (16ビットで収まる
)
#define MAX_CELLS 41472 //
�Z���̑��� =72*72*8 (16�r�b�g�Ŏ��܂�)
#define MAX_LINES 256 //
ライン数の最大値 (7ビット
)
#define MAX_LINES 256 //
���C�����̍ő�l (7�r�b�g)
#define MAX_PATH 128 // 1
つのラインが対応するセル数の最大値 (8ビット
)
#define MAX_PATH 128 // 1
�̃��C�����Ή�����Z�����̍ő�l (8�r�b�g)
#define MAX_PQ 4096 //
探索時のプライオリティ・キューの最大サイズ (12ビット) 足りないかも?
#define MAX_PQ 4096 //
�T�����̃v���C�I���e�B�E�L���[�̍ő�T�C�Y (12�r�b�g) ����Ȃ������H
#define PQ_PRIORITY_WIDTH 16
#define PQ_PRIORITY_WIDTH 16
#define PQ_PRIORITY_MASK 65535 // 0000 0000 0000 0000 1111 1111 1111 1111
#define PQ_PRIORITY_MASK 65535 // 0000 0000 0000 0000 1111 1111 1111 1111
#define PQ_DATA_WIDTH 16
#define PQ_DATA_WIDTH 16
#define PQ_DATA_MASK 4294901760 // 1111 1111 1111 1111 0000 0000 0000 0000
#define PQ_DATA_MASK 4294901760 // 1111 1111 1111 1111 0000 0000 0000 0000
#define MAX_WEIGHT 255 //
重みの最大値 (8ビットで収まる
)
#define MAX_WEIGHT 255 //
�d�݂̍ő�l (8�r�b�g�Ŏ��܂�)
#define BOARDSTR_SIZE 41472 //
ボードストリングの最大文字数 (セル数 72*72*8 あれば良い
)
#define BOARDSTR_SIZE 41472 //
�{�[�h�X�g�����O�̍ő啶���� (�Z���� 72*72*8 ����Ηǂ�)
void
lfsr_random_init
(
ap_uint
<
32
>
seed
);
void
lfsr_random_init
(
ap_uint
<
32
>
seed
);
...
@@ -48,7 +48,7 @@ ap_uint<32> lfsr_random();
...
@@ -48,7 +48,7 @@ ap_uint<32> lfsr_random();
//ap_uint<32> lfsr_random_uint32_0(ap_uint<32> b);
//ap_uint<32> lfsr_random_uint32_0(ap_uint<32> b);
ap_uint
<
8
>
new_weight
(
ap_uint
<
16
>
x
);
ap_uint
<
8
>
new_weight
(
ap_uint
<
16
>
x
);
bool
pynqrouter
(
char
boardstr
[
BOARDSTR_SIZE
],
ap_uint
<
32
>
seed
,
ap_int
<
32
>
*
status
);
bool
pynqrouter
_256x128
(
char
boardstr
[
BOARDSTR_SIZE
],
ap_uint
<
32
>
seed
,
ap_int
<
32
>
*
status
);
#ifdef USE_ASTAR
#ifdef USE_ASTAR
ap_uint
<
7
>
abs_uint7
(
ap_uint
<
7
>
a
,
ap_uint
<
7
>
b
);
ap_uint
<
7
>
abs_uint7
(
ap_uint
<
7
>
a
,
ap_uint
<
7
>
b
);
...
...
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