Commit 4cedb0ea authored by Leonardo Solis's avatar Leonardo Solis

#43, lga-sdx174: all pipes renamed with alphanumeric lowercase characters

parent b766abad
......@@ -63,7 +63,7 @@ while(active) {
float3 loc_coords [MAX_NUM_OF_ATOMS];
char actmode;
read_pipe_block(chan_IGL2Conform_actmode, &actmode);
read_pipe_block(pipe00igl2conform00actmode, &actmode);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -79,17 +79,17 @@ while(active) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float fl_tmp;
switch (mode) {
case 'I': read_pipe_block(chan_IC2Conf_genotype, &fl_tmp); break;
case 'G': read_pipe_block(chan_GG2Conf_genotype, &fl_tmp); break;
case 0x01: read_pipe_block(chan_LS2Conf_LS1_genotype, &fl_tmp); break;
case 0x02: read_pipe_block(chan_LS2Conf_LS2_genotype, &fl_tmp); break;
case 0x03: read_pipe_block(chan_LS2Conf_LS3_genotype, &fl_tmp); break;
case 0x04: read_pipe_block(chan_LS2Conf_LS4_genotype, &fl_tmp); break;
case 0x05: read_pipe_block(chan_LS2Conf_LS5_genotype, &fl_tmp); break;
case 0x06: read_pipe_block(chan_LS2Conf_LS6_genotype, &fl_tmp); break;
case 0x07: read_pipe_block(chan_LS2Conf_LS7_genotype, &fl_tmp); break;
case 0x08: read_pipe_block(chan_LS2Conf_LS8_genotype, &fl_tmp); break;
case 0x09: read_pipe_block(chan_LS2Conf_LS9_genotype, &fl_tmp); break;
case 'I': read_pipe_block(pipe00ic2conf00genotype, &fl_tmp); break;
case 'G': read_pipe_block(pipe00gg2conf00genotype, &fl_tmp); break;
case 0x01: read_pipe_block(pipe00ls2conf00ls100genotype, &fl_tmp); break;
case 0x02: read_pipe_block(pipe00ls2conf00ls200genotype, &fl_tmp); break;
case 0x03: read_pipe_block(pipe00ls2conf00ls300genotype, &fl_tmp); break;
case 0x04: read_pipe_block(pipe00ls2conf00ls400genotype, &fl_tmp); break;
case 0x05: read_pipe_block(pipe00ls2conf00ls500genotype, &fl_tmp); break;
case 0x06: read_pipe_block(pipe00ls2conf00ls600genotype, &fl_tmp); break;
case 0x07: read_pipe_block(pipe00ls2conf00ls700genotype, &fl_tmp); break;
case 0x08: read_pipe_block(pipe00ls2conf00ls800genotype, &fl_tmp); break;
case 0x09: read_pipe_block(pipe00ls2conf00ls900genotype, &fl_tmp); break;
}
if (i > 2) {
......@@ -247,8 +247,8 @@ while(active) {
LOOP_FOR_CONFORM_WRITE_XYZ:
for (uchar pipe_cnt=0; pipe_cnt<DockConst_num_of_atoms; pipe_cnt+=2) {
if (pipe_cnt == 0) {
write_pipe_block(chan_Conf2Intere_actmode, &mode);
write_pipe_block(chan_Conf2Intrae_actmode, &mode);
write_pipe_block(pipe00conf2intere00actmode, &mode);
write_pipe_block(pipe00conf2intrae00actmode, &mode);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
......@@ -267,8 +267,8 @@ while(active) {
tmp.s0 = tmp_coords[0].x; tmp.s1 = tmp_coords[0].y; tmp.s2 = tmp_coords[0].z; //tmp.s3
tmp.s4 = tmp_coords[1].x; tmp.s5 = tmp_coords[1].y; tmp.s6 = tmp_coords[1].z; //tmp.s7
write_pipe_block(chan_Conf2Intere_xyz, &tmp);
write_pipe_block(chan_Conf2Intrae_xyz, &tmp);
write_pipe_block(pipe00conf2intere00xyz, &tmp);
write_pipe_block(pipe00conf2intrae00xyz, &tmp);
}
// --------------------------------------------------------------
......
This diff is collapsed.
......@@ -79,18 +79,18 @@ void Krnl_IGL_Arbiter(/*unsigned char DockConst_num_of_genes*/
(LS8_end_valid != PIPE_STATUS_SUCCESS) &&
(LS9_end_valid != PIPE_STATUS_SUCCESS)
){
Off_valid = read_pipe(chan_IGLArbiter_Off, &Off_active);
IC_valid = read_pipe(chan_GA2IGL_IC_active, &IC_active);
GG_valid = read_pipe(chan_GA2IGL_GG_active, &GG_active);
LS1_end_valid = read_pipe(chan_LS2Arbiter_LS1_end, &LS1_end_active);
LS2_end_valid = read_pipe(chan_LS2Arbiter_LS2_end, &LS2_end_active);
LS3_end_valid = read_pipe(chan_LS2Arbiter_LS3_end, &LS3_end_active);
LS4_end_valid = read_pipe(chan_LS2Arbiter_LS4_end, &LS4_end_active);
LS5_end_valid = read_pipe(chan_LS2Arbiter_LS5_end, &LS5_end_active);
LS6_end_valid = read_pipe(chan_LS2Arbiter_LS6_end, &LS6_end_active);
LS7_end_valid = read_pipe(chan_LS2Arbiter_LS7_end, &LS7_end_active);
LS8_end_valid = read_pipe(chan_LS2Arbiter_LS8_end, &LS8_end_active);
LS9_end_valid = read_pipe(chan_LS2Arbiter_LS9_end, &LS9_end_active);
Off_valid = read_pipe(pipe00iglarbiter00off, &Off_active);
IC_valid = read_pipe(pipe00ga2igl00ic00active, &IC_active);
GG_valid = read_pipe(pipe00ga2igl00gg00active, &GG_active);
LS1_end_valid = read_pipe(pipe00ls2arbiter00ls100end, &LS1_end_active);
LS2_end_valid = read_pipe(pipe00ls2arbiter00ls200end, &LS2_end_active);
LS3_end_valid = read_pipe(pipe00ls2arbiter00ls300end, &LS3_end_active);
LS4_end_valid = read_pipe(pipe00ls2arbiter00ls400end, &LS4_end_active);
LS5_end_valid = read_pipe(pipe00ls2arbiter00ls500end, &LS5_end_active);
LS6_end_valid = read_pipe(pipe00ls2arbiter00ls600end, &LS6_end_active);
LS7_end_valid = read_pipe(pipe00ls2arbiter00ls700end, &LS7_end_active);
LS8_end_valid = read_pipe(pipe00ls2arbiter00ls800end, &LS8_end_active);
LS9_end_valid = read_pipe(pipe00ls2arbiter00ls900end, &LS9_end_active);
}
active = (Off_valid == PIPE_STATUS_SUCCESS)? 0x00 : 0x01;
......@@ -152,7 +152,7 @@ void Krnl_IGL_Arbiter(/*unsigned char DockConst_num_of_genes*/
}
if (enable_write_channel == true) {
write_pipe_block(chan_IGL2Conform_actmode, &mode_tmp);
write_pipe_block(pipe00igl2conform00actmode, &mode_tmp);
}
} // End for (uchar j=0; j<9; j++)
......
......@@ -51,7 +51,7 @@ while(active) {
// --------------------------------------------------------------
char actmode;
read_pipe_block(chan_Conf2Intere_actmode, &actmode);
read_pipe_block(pipe00conf2intere00actmode, &actmode);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -62,7 +62,7 @@ while(active) {
LOOP_FOR_INTERE_READ_XYZ:
for (uchar pipe_cnt=0; pipe_cnt<DockConst_num_of_atoms; pipe_cnt+=2) {
float8 tmp;
read_pipe_block(chan_Conf2Intere_xyz, &tmp);
read_pipe_block(pipe00conf2intere00xyz, &tmp);
float3 tmp1 = {tmp.s0, tmp.s1, tmp.s2};
float3 tmp2 = {tmp.s4, tmp.s5, tmp.s6};
......@@ -290,17 +290,17 @@ while(active) {
float final_interE = interE;
switch (mode) {
case 'I': write_pipe_block(chan_Intere2StoreIC_intere, &final_interE); break;
case 'G': write_pipe_block(chan_Intere2StoreGG_intere, &final_interE); break;
case 0x01: write_pipe_block(chan_Intere2StoreLS_LS1_intere, &final_interE); break;
case 0x02: write_pipe_block(chan_Intere2StoreLS_LS2_intere, &final_interE); break;
case 0x03: write_pipe_block(chan_Intere2StoreLS_LS3_intere, &final_interE); break;
case 0x04: write_pipe_block(chan_Intere2StoreLS_LS4_intere, &final_interE); break;
case 0x05: write_pipe_block(chan_Intere2StoreLS_LS5_intere, &final_interE); break;
case 0x06: write_pipe_block(chan_Intere2StoreLS_LS6_intere, &final_interE); break;
case 0x07: write_pipe_block(chan_Intere2StoreLS_LS7_intere, &final_interE); break;
case 0x08: write_pipe_block(chan_Intere2StoreLS_LS8_intere, &final_interE); break;
case 0x09: write_pipe_block(chan_Intere2StoreLS_LS9_intere, &final_interE); break;
case 'I': write_pipe_block(pipe00intere2storeic00intere, &final_interE); break;
case 'G': write_pipe_block(pipe00intere2storegg00intere, &final_interE); break;
case 0x01: write_pipe_block(pipe00intere2storels00ls100intere, &final_interE); break;
case 0x02: write_pipe_block(pipe00intere2storels00ls200intere, &final_interE); break;
case 0x03: write_pipe_block(pipe00intere2storels00ls300intere, &final_interE); break;
case 0x04: write_pipe_block(pipe00intere2storels00ls400intere, &final_interE); break;
case 0x05: write_pipe_block(pipe00intere2storels00ls500intere, &final_interE); break;
case 0x06: write_pipe_block(pipe00intere2storels00ls600intere, &final_interE); break;
case 0x07: write_pipe_block(pipe00intere2storels00ls700intere, &final_interE); break;
case 0x08: write_pipe_block(pipe00intere2storels00ls800intere, &final_interE); break;
case 0x09: write_pipe_block(pipe00intere2storels00ls900intere, &final_interE); break;
}
// --------------------------------------------------------------
......
......@@ -73,7 +73,7 @@ while(active) {
// --------------------------------------------------------------
char actmode;
read_pipe_block(chan_Conf2Intrae_actmode, &actmode);
read_pipe_block(pipe00conf2intrae00actmode, &actmode);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -84,7 +84,7 @@ while(active) {
LOOP_FOR_INTRAE_READ_XYZ:
for (uchar pipe_cnt=0; pipe_cnt<DockConst_num_of_atoms; pipe_cnt+=2) {
float8 tmp;
read_pipe_block(chan_Conf2Intrae_xyz, &tmp);
read_pipe_block(pipe00conf2intrae00xyz, &tmp);
float3 tmp1 = {tmp.s0, tmp.s1, tmp.s2};
float3 tmp2 = {tmp.s4, tmp.s5, tmp.s6};
......@@ -237,17 +237,17 @@ while(active) {
// Send intramolecular energy to channel
// --------------------------------------------------------------
switch (mode) {
case 'I': write_pipe_block(chan_Intrae2StoreIC_intrae, &intraE); break;
case 'G': write_pipe_block(chan_Intrae2StoreGG_intrae, &intraE); break;
case 0x01: write_pipe_block(chan_Intrae2StoreLS_LS1_intrae, &intraE); break;
case 0x02: write_pipe_block(chan_Intrae2StoreLS_LS2_intrae, &intraE); break;
case 0x03: write_pipe_block(chan_Intrae2StoreLS_LS3_intrae, &intraE); break;
case 0x04: write_pipe_block(chan_Intrae2StoreLS_LS4_intrae, &intraE); break;
case 0x05: write_pipe_block(chan_Intrae2StoreLS_LS5_intrae, &intraE); break;
case 0x06: write_pipe_block(chan_Intrae2StoreLS_LS6_intrae, &intraE); break;
case 0x07: write_pipe_block(chan_Intrae2StoreLS_LS7_intrae, &intraE); break;
case 0x08: write_pipe_block(chan_Intrae2StoreLS_LS8_intrae, &intraE); break;
case 0x09: write_pipe_block(chan_Intrae2StoreLS_LS9_intrae, &intraE); break;
case 'I': write_pipe_block(pipe00intrae2storeic00intrae, &intraE); break;
case 'G': write_pipe_block(pipe00intrae2storegg00intrae, &intraE); break;
case 0x01: write_pipe_block(pipe00intrae2storels00ls100intrae, &intraE); break;
case 0x02: write_pipe_block(pipe00intrae2storels00ls200intrae, &intraE); break;
case 0x03: write_pipe_block(pipe00intrae2storels00ls300intrae, &intraE); break;
case 0x04: write_pipe_block(pipe00intrae2storels00ls400intrae, &intraE); break;
case 0x05: write_pipe_block(pipe00intrae2storels00ls500intrae, &intraE); break;
case 0x06: write_pipe_block(pipe00intrae2storels00ls600intrae, &intraE); break;
case 0x07: write_pipe_block(pipe00intrae2storels00ls700intrae, &intraE); break;
case 0x08: write_pipe_block(pipe00intrae2storels00ls800intrae, &intraE); break;
case 0x09: write_pipe_block(pipe00intrae2storels00ls900intrae, &intraE); break;
}
// --------------------------------------------------------------
......
......@@ -44,8 +44,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_WHILE_LS_ACTIVE:
while( (valid_active != PIPE_STATUS_SUCCESS) && (valid_energy != PIPE_STATUS_SUCCESS)) {
valid_active = read_pipe(chan_GA2LS_Off1_active, &active);
valid_energy = read_pipe(chan_GA2LS_LS1_energy, &current_energy);
valid_active = read_pipe(pipe00ga2ls00off100active, &active);
valid_energy = read_pipe(pipe00ga2ls00ls100energy, &current_energy);
}
// (active == 1) means stop LS
......@@ -62,7 +62,7 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS_READ_INPUT_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
read_pipe_block(chan_GA2LS_LS1_genotype, &genotype [i]);
read_pipe_block(pipe00ga2ls00ls100genotype, &genotype [i]);
}
float rho = 1.0f;
......@@ -106,7 +106,7 @@ while(valid) {
// Not completely strict as the (iteration_cnt < DockConst_max_num_of_iters) is ignored
// In practice, rho condition dominates most of the cases
int tmp_int = (rho < DockConst_rho_lower_bound)?0:1;
write_pipe_block(chan_LS2Arbiter_LS1_end, &tmp_int);
write_pipe_block(pipe00ls2arbiter00ls100end, &tmp_int);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
......@@ -118,7 +118,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_PRNG2LS_float_prng, &tmp_prng);
read_pipe_block(pipe00prng2ls00float00prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -146,7 +146,7 @@ while(valid) {
else { tmp3 = map_angle_360(tmp3); }}
entity_possible_new_genotype [i] = tmp3;
write_pipe_block(chan_LS2Conf_LS1_genotype, &tmp3);
write_pipe_block(pipe00ls2conf00ls100genotype, &tmp3);
#if defined (DEBUG_KRNL_LS1)
printf("LS1_genotype sent\n");
......@@ -166,10 +166,10 @@ while(valid) {
while( (intra_valid != PIPE_STATUS_SUCCESS) || (inter_valid != PIPE_STATUS_SUCCESS)) {
if (intra_valid != PIPE_STATUS_SUCCESS) {
intra_valid = read_pipe(chan_Intrae2StoreLS_LS1_intrae, &energyIA_LS_rx);
intra_valid = read_pipe(pipe00intrae2storels00ls100intrae, &energyIA_LS_rx);
}
else if (inter_valid != PIPE_STATUS_SUCCESS) {
inter_valid = read_pipe(chan_Intere2StoreLS_LS1_intere, &energyIE_LS_rx);
inter_valid = read_pipe(pipe00intere2storels00ls100intere, &energyIE_LS_rx);
}
}
......@@ -223,13 +223,13 @@ while(valid) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
if (i == 0) {
float2 evalenergy = {*(float*)&LS_eval, current_energy};
write_pipe_block(chan_LS2GA_LS1_evalenergy, &evalenergy);
write_pipe_block(pipe00ls2ga00ls100evalenergy, &evalenergy);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
write_pipe_block(chan_LS2GA_LS1_genotype, &genotype [i]);
write_pipe_block(pipe00ls2ga00ls100genotype, &genotype [i]);
}
} // End of if (valid)
......
......@@ -43,8 +43,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_WHILE_LS2_ACTIVE:
while( (valid_active != PIPE_STATUS_SUCCESS) && (valid_energy != PIPE_STATUS_SUCCESS)) {
valid_active = read_pipe(chan_GA2LS_Off2_active, &active);
valid_energy = read_pipe(chan_GA2LS_LS2_energy, &current_energy);
valid_active = read_pipe(pipe00ga2ls00off200active, &active);
valid_energy = read_pipe(pipe00ga2ls00ls200energy, &current_energy);
}
// (active == 1) means stop LS
......@@ -60,7 +60,7 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS2_READ_INPUT_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
read_pipe_block(chan_GA2LS_LS2_genotype, &genotype [i]);
read_pipe_block(pipe00ga2ls00ls200genotype, &genotype [i]);
}
#if defined (DEBUG_KRNL_LS2)
......@@ -108,7 +108,7 @@ while(valid) {
// Not completely strict as the (iteration_cnt < DockConst_max_num_of_iters) is ignored
// In practice, rho condition dominates most of the cases
int tmp_int = (rho < DockConst_rho_lower_bound)?0:1;
write_pipe_block(chan_LS2Arbiter_LS2_end, &tmp_int);
write_pipe_block(pipe00ls2arbiter00ls200end, &tmp_int);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -119,7 +119,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_PRNG2LS2_float_prng, &tmp_prng);
read_pipe_block(pipe00prng2ls200float00prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -146,7 +146,7 @@ while(valid) {
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
write_pipe_block(chan_LS2Conf_LS2_genotype, &tmp3);
write_pipe_block(pipe00ls2conf00ls200genotype, &tmp3);
#if defined (DEBUG_KRNL_LS2)
printf("LS2_genotype sent: %u\n", i);
......@@ -166,10 +166,10 @@ while(valid) {
while( (intra_valid != PIPE_STATUS_SUCCESS) || (inter_valid != PIPE_STATUS_SUCCESS)) {
if (intra_valid != PIPE_STATUS_SUCCESS) {
intra_valid = read_pipe(chan_Intrae2StoreLS_LS2_intrae, &energyIA_LS_rx);
intra_valid = read_pipe(pipe00intrae2storels00ls200intrae, &energyIA_LS_rx);
}
else if (inter_valid != PIPE_STATUS_SUCCESS) {
inter_valid = read_pipe(chan_Intere2StoreLS_LS2_intere, &energyIE_LS_rx);
inter_valid = read_pipe(pipe00intere2storels00ls200intere, &energyIE_LS_rx);
}
}
......@@ -226,13 +226,13 @@ while(valid) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
if (i == 0) {
float2 evalenergy = {*(float*)&LS_eval, current_energy};
write_pipe_block(chan_LS2GA_LS2_evalenergy, &evalenergy);
write_pipe_block(pipe00ls2ga00ls200evalenergy, &evalenergy);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
write_pipe_block(chan_LS2GA_LS2_genotype, &genotype [i]);
write_pipe_block(pipe00ls2ga00ls200genotype, &genotype [i]);
}
} // End of if (valid)
......
......@@ -43,8 +43,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_WHILE_LS3_ACTIVE:
while( (valid_active != PIPE_STATUS_SUCCESS) && (valid_energy != PIPE_STATUS_SUCCESS)) {
valid_active = read_pipe(chan_GA2LS_Off3_active, &active);
valid_energy = read_pipe(chan_GA2LS_LS3_energy, &current_energy);
valid_active = read_pipe(pipe00ga2ls00off300active, &active);
valid_energy = read_pipe(pipe00ga2ls00ls300energy, &current_energy);
}
// (active == 1) means stop LS
......@@ -60,7 +60,7 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS3_READ_INPUT_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
read_pipe_block(chan_GA2LS_LS3_genotype, &genotype [i]);
read_pipe_block(pipe00ga2ls00ls300genotype, &genotype [i]);
}
#if defined (DEBUG_KRNL_LS3)
......@@ -108,7 +108,7 @@ while(valid) {
// Not completely strict as the (iteration_cnt < DockConst_max_num_of_iters) is ignored
// In practice, rho condition dominates most of the cases
int tmp_int = (rho < DockConst_rho_lower_bound)?0:1;
write_pipe_block(chan_LS2Arbiter_LS3_end, &tmp_int);
write_pipe_block(pipe00ls2arbiter00ls300end, &tmp_int);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -119,7 +119,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_PRNG2LS3_float_prng, &tmp_prng);
read_pipe_block(pipe00prng2ls300float00prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -146,7 +146,7 @@ while(valid) {
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
write_pipe_block(chan_LS2Conf_LS3_genotype, &tmp3);
write_pipe_block(pipe00ls2conf00ls300genotype, &tmp3);
#if defined (DEBUG_KRNL_LS3)
printf("LS3_genotype sent: %u\n", i);
......@@ -166,10 +166,10 @@ while(valid) {
while( (intra_valid != PIPE_STATUS_SUCCESS) || (inter_valid != PIPE_STATUS_SUCCESS)) {
if (intra_valid != PIPE_STATUS_SUCCESS) {
intra_valid = read_pipe(chan_Intrae2StoreLS_LS3_intrae, &energyIA_LS_rx);
intra_valid = read_pipe(pipe00intrae2storels00ls300intrae, &energyIA_LS_rx);
}
else if (inter_valid != PIPE_STATUS_SUCCESS) {
inter_valid = read_pipe(chan_Intere2StoreLS_LS3_intere, &energyIE_LS_rx);
inter_valid = read_pipe(pipe00intere2storels00ls300intere, &energyIE_LS_rx);
}
}
......@@ -225,12 +225,12 @@ while(valid) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
if (i == 0) {
float2 evalenergy = {*(float*)&LS_eval, current_energy};
write_pipe_block(chan_LS2GA_LS3_evalenergy, &evalenergy);
write_pipe_block(pipe00ls2ga00ls300evalenergy, &evalenergy);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
write_pipe_block(chan_LS2GA_LS3_genotype, &genotype [i]);
write_pipe_block(pipe00ls2ga00ls300genotype, &genotype [i]);
}
} // End of if (valid)
......
......@@ -43,8 +43,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_WHILE_LS4_ACTIVE:
while( (valid_active != PIPE_STATUS_SUCCESS) && (valid_energy != PIPE_STATUS_SUCCESS)) {
valid_active = read_pipe(chan_GA2LS_Off4_active, &active);
valid_energy = read_pipe(chan_GA2LS_LS4_energy, &current_energy);
valid_active = read_pipe(pipe00ga2ls00off400active, &active);
valid_energy = read_pipe(pipe00ga2ls00ls400energy, &current_energy);
}
// (active == 1) means stop LS
......@@ -60,7 +60,7 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS4_READ_INPUT_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
read_pipe_block(chan_GA2LS_LS4_genotype, &genotype [i]);
read_pipe_block(pipe00ga2ls00ls400genotype, &genotype [i]);
}
#if defined (DEBUG_KRNL_LS4)
......@@ -109,7 +109,7 @@ while(valid) {
// Not completely strict as the (iteration_cnt < DockConst_max_num_of_iters) is ignored
// In practice, rho condition dominates most of the cases
int tmp_int = (rho < DockConst_rho_lower_bound)?0:1;
write_pipe_block(chan_LS2Arbiter_LS4_end, &tmp_int);
write_pipe_block(pipe00ls2arbiter00ls400end, &tmp_int);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
......@@ -121,7 +121,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_PRNG2LS4_float_prng, &tmp_prng);
read_pipe_block(pipe00prng2ls400float00prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -148,7 +148,7 @@ while(valid) {
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
write_pipe_block(chan_LS2Conf_LS4_genotype, &tmp3);
write_pipe_block(pipe00ls2conf00ls400genotype, &tmp3);
#if defined (DEBUG_KRNL_LS4)
printf("LS4_genotype sent: %u\n", i);
......@@ -168,10 +168,10 @@ while(valid) {
while( (intra_valid != PIPE_STATUS_SUCCESS) || (inter_valid != PIPE_STATUS_SUCCESS)) {
if (intra_valid != PIPE_STATUS_SUCCESS) {
intra_valid = read_pipe(chan_Intrae2StoreLS_LS4_intrae, &energyIA_LS_rx);
intra_valid = read_pipe(pipe00intrae2storels00ls400intrae, &energyIA_LS_rx);
}
else if (inter_valid != PIPE_STATUS_SUCCESS) {
inter_valid = read_pipe(chan_Intere2StoreLS_LS4_intere, &energyIE_LS_rx);
inter_valid = read_pipe(pipe00intere2storels00ls400intere, &energyIE_LS_rx);
}
}
......@@ -228,13 +228,13 @@ while(valid) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
if (i == 0) {
float2 evalenergy = {*(float*)&LS_eval, current_energy};
write_pipe_block(chan_LS2GA_LS4_evalenergy, &evalenergy);
write_pipe_block(pipe00ls2ga00ls400evalenergy, &evalenergy);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
write_pipe_block(chan_LS2GA_LS4_genotype, &genotype [i]);
write_pipe_block(pipe00ls2ga00ls400genotype, &genotype [i]);
}
} // End of if (valid)
......
......@@ -43,8 +43,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_WHILE_LS5_ACTIVE:
while( (valid_active != PIPE_STATUS_SUCCESS) && (valid_energy != PIPE_STATUS_SUCCESS)) {
valid_active = read_pipe(chan_GA2LS_Off5_active, &active);
valid_energy = read_pipe(chan_GA2LS_LS5_energy, &current_energy);
valid_active = read_pipe(pipe00ga2ls00off500active, &active);
valid_energy = read_pipe(pipe00ga2ls00ls500energy, &current_energy);
}
// (active == 1) means stop LS
......@@ -61,7 +61,7 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS5_READ_INPUT_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
read_pipe_block(chan_GA2LS_LS5_genotype, &genotype [i]);
read_pipe_block(pipe00ga2ls00ls500genotype, &genotype [i]);
}
#if defined (DEBUG_KRNL_LS5)
......@@ -109,7 +109,7 @@ while(valid) {
// Not completely strict as the (iteration_cnt < DockConst_max_num_of_iters) is ignored
// In practice, rho condition dominates most of the cases
int tmp_int = (rho < DockConst_rho_lower_bound)?0:1;
write_pipe_block(chan_LS2Arbiter_LS5_end, &tmp_int);
write_pipe_block(pipe00ls2arbiter00ls500end, &tmp_int);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -119,7 +119,7 @@ while(valid) {
LOOP_FOR_LS5_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2LS5_float_prng, &tmp_prng);
read_pipe_block(pipe00prng2ls500float00prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -146,7 +146,7 @@ while(valid) {
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
write_pipe_block(chan_LS2Conf_LS5_genotype, &tmp3);
write_pipe_block(pipe00ls2conf00ls500genotype, &tmp3);
#if defined (DEBUG_KRNL_LS5)
printf("LS5_genotype sent: %u\n", i);
......@@ -166,10 +166,10 @@ while(valid) {
while( (intra_valid != PIPE_STATUS_SUCCESS) || (inter_valid != PIPE_STATUS_SUCCESS)) {
if (intra_valid != PIPE_STATUS_SUCCESS) {
intra_valid = read_pipe(chan_Intrae2StoreLS_LS5_intrae, &energyIA_LS_rx);
intra_valid = read_pipe(pipe00intrae2storels00ls500intrae, &energyIA_LS_rx);
}
else if (inter_valid != PIPE_STATUS_SUCCESS) {
inter_valid = read_pipe(chan_Intere2StoreLS_LS5_intere, &energyIE_LS_rx);
inter_valid = read_pipe(pipe00intere2storels00ls500intere, &energyIE_LS_rx);
}
}
......@@ -226,12 +226,12 @@ while(valid) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
if (i == 0) {
float2 evalenergy = {*(float*)&LS_eval, current_energy};
write_pipe_block(chan_LS2GA_LS5_evalenergy, &evalenergy);
write_pipe_block(pipe00ls2ga00ls500evalenergy, &evalenergy);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
write_pipe_block(chan_LS2GA_LS5_genotype, &genotype [i]);
write_pipe_block(pipe00ls2ga00ls500genotype, &genotype [i]);
}
} // End of if (valid)
......
......@@ -43,8 +43,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_WHILE_LS6_ACTIVE:
while( (valid_active != PIPE_STATUS_SUCCESS) && (valid_energy != PIPE_STATUS_SUCCESS)) {
valid_active = read_pipe(chan_GA2LS_Off6_active, &active);
valid_energy = read_pipe(chan_GA2LS_LS6_energy, &current_energy);
valid_active = read_pipe(pipe00ga2ls00off600active, &active);
valid_energy = read_pipe(pipe00ga2ls00ls600energy, &current_energy);
}
// (active == 1) means stop LS
......@@ -60,7 +60,7 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS6_READ_INPUT_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
read_pipe_block(chan_GA2LS_LS6_genotype, &genotype [i]);
read_pipe_block(pipe00ga2ls00ls600genotype, &genotype [i]);
}
#if defined (DEBUG_KRNL_LS6)
......@@ -109,7 +109,7 @@ while(valid) {
// Not completely strict as the (iteration_cnt < DockConst_max_num_of_iters) is ignored
// In practice, rho condition dominates most of the cases
int tmp_int = (rho < DockConst_rho_lower_bound)?0:1;
write_pipe_block(chan_LS2Arbiter_LS6_end, &tmp_int);
write_pipe_block(pipe00ls2arbiter00ls600end, &tmp_int);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -120,7 +120,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_PRNG2LS6_float_prng, &tmp_prng);
read_pipe_block(pipe00prng2ls600float00prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......@@ -147,7 +147,7 @@ while(valid) {
else { tmp3 = map_angle_360(tmp3);}}
entity_possible_new_genotype [i] = tmp3;
write_pipe_block(chan_LS2Conf_LS6_genotype, &tmp3);
write_pipe_block(pipe00ls2conf00ls600genotype, &tmp3);
#if defined (DEBUG_KRNL_LS6)
printf("LS6_genotype sent: %u\n", i);
......@@ -167,10 +167,10 @@ while(valid) {
while( (intra_valid != PIPE_STATUS_SUCCESS) || (inter_valid != PIPE_STATUS_SUCCESS)) {
if (intra_valid != PIPE_STATUS_SUCCESS) {
intra_valid = read_pipe(chan_Intrae2StoreLS_LS6_intrae, &energyIA_LS_rx);
intra_valid = read_pipe(pipe00intrae2storels00ls600intrae, &energyIA_LS_rx);
}
else if (inter_valid != PIPE_STATUS_SUCCESS) {
inter_valid = read_pipe(chan_Intere2StoreLS_LS6_intere, &energyIE_LS_rx);
inter_valid = read_pipe(pipe00intere2storels00ls600intere, &energyIE_LS_rx);
}
}
......@@ -226,12 +226,12 @@ while(valid) {
for (uchar i=0; i<DockConst_num_of_genes; i++) {
if (i == 0) {
float2 evalenergy = {*(float*)&LS_eval, current_energy};
write_pipe_block(chan_LS2GA_LS6_evalenergy, &evalenergy);
write_pipe_block(pipe00ls2ga00ls600evalenergy, &evalenergy);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
write_pipe_block(chan_LS2GA_LS6_genotype, &genotype [i]);
write_pipe_block(pipe00ls2ga00ls600genotype, &genotype [i]);
}
} // End of if (valid)
......