Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock-fpga
Commits
213dfb45
Commit
213dfb45
authored
Sep 13, 2018
by
Leonardo Solis
Browse files
renamed pipes
parent
cf094e98
Changes
11
Hide whitespace changes
Inline
Side-by-side
ofdock_taskpar_xl/device/Krnl_GA.cl
View file @
213dfb45
...
...
@@ -77,6 +77,7 @@ pipe float8 chan_PRNG2GA_BT_ushort_float_prng __attribute__((xcl_reqd_pipe_dep
pipe
uchar2
chan_PRNG2GA_GG_uchar_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
pipe
float
chan_PRNG2GA_GG_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
ushort16
chan_PRNG2GA_LS123_ushort_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_16
)))
;
/*
pipe
float
chan_PRNG2GA_LS_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS2_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS3_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
...
...
@@ -86,6 +87,16 @@ pipe float chan_PRNG2GA_LS6_float_prng __attribute__((xcl_reqd_pipe_depth
pipe
float
chan_PRNG2GA_LS7_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS8_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2GA_LS9_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
*/
pipe
float
chan_PRNG2LS_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS2_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS3_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS4_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS5_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS6_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS7_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS8_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
pipe
float
chan_PRNG2LS9_float_prng
__attribute__
((
xcl_reqd_pipe_depth
(
PIPE_DEPTH_64
)))
;
//
Turn-off
signals
to
PRNG
generators
...
...
ofdock_taskpar_xl/device/Krnl_LS.cl
View file @
213dfb45
...
...
@@ -162,7 +162,7 @@ while(valid) {
LOOP_FOR_LS_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS2.cl
View file @
213dfb45
...
...
@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS2_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS2_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS2_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS3.cl
View file @
213dfb45
...
...
@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS3_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS3_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS3_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS4.cl
View file @
213dfb45
...
...
@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS4_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS4_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS4_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS5.cl
View file @
213dfb45
...
...
@@ -164,11 +164,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS5_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
/*
float tmp_prng = read_channel_altera(chan_PRNG2GA_LS5_float_prng);
*/
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS5_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS5_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS6.cl
View file @
213dfb45
...
...
@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS6_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS6_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS6_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS7.cl
View file @
213dfb45
...
...
@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS7_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS7_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS7_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS8.cl
View file @
213dfb45
...
...
@@ -165,7 +165,7 @@ while(valid) {
LOOP_FOR_LS8_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS8_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS8_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_LS9.cl
View file @
213dfb45
...
...
@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS9_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2
GA_
LS9_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS9_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
...
...
ofdock_taskpar_xl/device/Krnl_PRNG.cl
View file @
213dfb45
...
...
@@ -326,11 +326,11 @@ void Krnl_Prng_LS_float(
#
if
defined
(
FIXED_POINT_LS1
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -381,11 +381,11 @@ void Krnl_Prng_LS2_float(
#
if
defined
(
FIXED_POINT_LS2
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS2_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS2_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS2_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS2_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -436,12 +436,12 @@ void Krnl_Prng_LS3_float(
#
if
defined
(
FIXED_POINT_LS3
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS3_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS3_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS3_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS3_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -492,11 +492,11 @@ void Krnl_Prng_LS4_float(
#
if
defined
(
FIXED_POINT_LS4
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS4_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS4_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS4_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS4_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -547,11 +547,11 @@ void Krnl_Prng_LS5_float(
#
if
defined
(
FIXED_POINT_LS5
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS5_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS5_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS5_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS5_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -603,11 +603,11 @@ void Krnl_Prng_LS6_float(
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS6_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS6_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS6_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS6_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -658,11 +658,11 @@ void Krnl_Prng_LS7_float(
#
if
defined
(
FIXED_POINT_LS7
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS7_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS7_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS7_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS7_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -713,11 +713,11 @@ void Krnl_Prng_LS8_float(
#
if
defined
(
FIXED_POINT_LS8
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS8_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS8_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS8_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS8_float_prng,
&tmp
)
;
}
#
endif
}
...
...
@@ -768,11 +768,11 @@ void Krnl_Prng_LS9_float(
#
if
defined
(
FIXED_POINT_LS9
)
fixedpt
fixpt_tmp
=
fixedpt_fromfloat
(
tmp
)
;
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS9_float_prng,
(
float*
)
&fixpt_tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS9_float_prng,
(
float*
)
&fixpt_tmp
)
;
}
#
else
if
(
valid
!=
PIPE_STATUS_SUCCESS
)
{
success
=
write_pipe
(
chan_PRNG2
GA_
LS9_float_prng,
&tmp
)
;
success
=
write_pipe
(
chan_PRNG2LS9_float_prng,
&tmp
)
;
}
#
endif
}
...
...
Leonardo Solis
@solis
mentioned in commit
470c4b60
·
Jan 04, 2021
mentioned in commit
470c4b60
mentioned in commit 470c4b60b72ee481c1809c104fb89a1b6ac02a90
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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