Commit 9a5e4c45 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

cleaned comments


Former-commit-id: e05e3c97
parent 82421a31
......@@ -27,100 +27,46 @@ void Krnl_IGL_Arbiter(/*unsigned char DockConst_num_of_genes*/) {
uint LS3_eval = 0;
*/
while(active) {
bool Off_valid = false;
bool IC_valid = false;
bool GG_valid = false;
bool Off_active;
bool IC_active;
bool GG_active;
while (
(Off_valid == false) &&
(IC_valid == false) &&
(GG_valid == false)
){
Off_active = read_channel_nb_altera(chan_IGLArbiter_Off, &Off_valid);
IC_active = read_channel_nb_altera(chan_GA2IGL_IC_active, &IC_valid);
GG_active = read_channel_nb_altera(chan_GA2IGL_GG_active, &GG_valid);
}
#if 0
uchar bound_tmp = 0;
#endif
#if 0
active = Off_valid ? 0x00 : 0x01;
#endif
// "active" carries mode info too
active = Off_valid ? 0x00: IC_valid? 'I': 'G';
#if 0
// Determine "mode" value
// This considers all possible cases as all LS could be
// potentially producing genotypes simultaneously.
// Be careful modifying the nested conditional-statements below,
// as even a litle mistake may be undetectable in emulation.
if (active == 0x01) {
if (IC_valid == true) {
bound_tmp++;
}
else if (GG_valid == true) {
bound_tmp++;
while(active) {
bool Off_valid = false;
bool IC_valid = false;
bool GG_valid = false;
bool Off_active;
bool IC_active;
bool GG_active;
while (
(Off_valid == false) &&
(IC_valid == false) &&
(GG_valid == false)
){
Off_active = read_channel_nb_altera(chan_IGLArbiter_Off, &Off_valid);
IC_active = read_channel_nb_altera(chan_GA2IGL_IC_active, &IC_valid);
GG_active = read_channel_nb_altera(chan_GA2IGL_GG_active, &GG_valid);
}
} // End if (active == true)
#endif
#if 0
uchar bound = active ? bound_tmp : 1;
#endif
#if 0
// Send "mode" to Conform
for (uchar j=0; j<bound; j++) {
#endif
#if 0
char mode_tmp = Off_valid? 0x00: IC_valid? 'I': 'G';
#endif
// "active" carries mode info too
active = Off_valid ? 0x00: IC_valid? 'I': 'G';
#if 0
char2 actmode = {active, mode_tmp};
#endif
write_channel_altera(chan_IGL2Conform_actmode, /*actmode*/ /*mode_tmp*/ active);
write_channel_altera(chan_IGL2Conform_actmode, active);
#if 0
#if defined (DEBUG_KRNL_IGL_ARBITER)
printf("bound: %u, mode: %u\n", bound, mode_tmp);
#endif
#endif
#if 0
}
#endif
// Only for debugging
/*
if (LS1_end_active == true) {
LS1_eval = 0;
}
// Only for debugging
/*
if (LS1_end_active == true) {
LS1_eval = 0;
}
if (LS2_end_active == true) {
LS2_eval = 0;
}
if (LS2_end_active == true) {
LS2_eval = 0;
}
if (LS3_end_active == true) {
LS3_eval = 0;
}
*/
if (LS3_end_active == true) {
LS3_eval = 0;
}
*/
} // End of while (active)
} // End of while (active)
}
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
Supports Markdown
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