Skip to content
GitLab
Menu
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
baa87eb8
Commit
baa87eb8
authored
Nov 15, 2018
by
Leonardo Solis
Browse files
#34, xilinx174 - simplfied turnoff on LS kernels
Former-commit-id:
649dcea1
parent
c9988b79
Changes
9
Hide whitespace changes
Inline
Side-by-side
ofdock_taskpar_xl/device/Krnl_LS.cl
View file @
baa87eb8
...
...
@@ -27,13 +27,15 @@ void Krnl_LS(
printf
(
"LS: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS_MAIN:
while
(
valid
)
{
int
active
;
/*int
active
;*/
int
active
=
0
;
nb_pipe_status
valid_active
=
PIPE_STATUS_FAILURE
;
float
current_energy
;
...
...
@@ -47,7 +49,12 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
/*valid = ! ((valid_active == PIPE_STATUS_SUCCESS) && (active == 1)) || (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
float genotype [ACTUAL_GENOTYPE_LENGTH];
...
...
ofdock_taskpar_xl/device/Krnl_LS2.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS2(
printf
(
"LS2: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS2_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
float genotype [ACTUAL_GENOTYPE_LENGTH];
...
...
ofdock_taskpar_xl/device/Krnl_LS3.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS3(
printf
(
"LS3: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS3_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
float genotype [ACTUAL_GENOTYPE_LENGTH];
...
...
ofdock_taskpar_xl/device/Krnl_LS4.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS4(
printf
(
"LS4: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS4_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
float genotype [ACTUAL_GENOTYPE_LENGTH];
...
...
ofdock_taskpar_xl/device/Krnl_LS5.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS5(
printf
(
"LS5: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS5_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
...
...
ofdock_taskpar_xl/device/Krnl_LS6.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS6(
printf
(
"LS6: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS6_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
float genotype [ACTUAL_GENOTYPE_LENGTH];
...
...
ofdock_taskpar_xl/device/Krnl_LS7.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS7(
printf
(
"LS7: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS7_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
...
...
ofdock_taskpar_xl/device/Krnl_LS8.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS8(
printf
(
"LS8: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS8_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
...
...
ofdock_taskpar_xl/device/Krnl_LS9.cl
View file @
baa87eb8
...
...
@@ -27,7 +27,8 @@ void Krnl_LS9(
printf
(
"LS9: DockConst_cons_limit: %u\n"
,
DockConst_cons_limit
)
;
#
endif
bool
valid
=
true
;
/*bool
valid
=
true
;*/
char
valid
=
0x01
;
__attribute__
((
xcl_pipeline_loop
))
LOOP_WHILE_LS9_MAIN:
...
...
@@ -47,7 +48,11 @@ while(valid) {
}
//
(
active
==
1
)
means
stop
LS
valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);
/*valid
=
(
active
!=
1
)
|
| (valid_energy == PIPE_STATUS_SUCCESS);*/
// Received something on pipe: chan_GA2LS_Off_active?
// If so, then turn this kernel off
valid = (valid_active == PIPE_STATUS_SUCCESS)? 0x00:0x01;
if (valid) {
...
...
Write
Preview
Supports
Markdown
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