Commit 649dcea1 authored by Leonardo Solis's avatar Leonardo Solis

#34, xilinx174 - simplfied turnoff on LS kernels

parent 33298887
......@@ -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];
......
......@@ -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];
......
......@@ -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];
......
......@@ -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];
......
......@@ -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) {
......
......@@ -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];
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment