Commit e8563a12 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

reduce width channel actmode igl2conf2ie2ia


Former-commit-id: 1d589f8a
parent 6d15f72f
......@@ -80,12 +80,19 @@ while(active) {
)) loc_coords [MAX_NUM_OF_ATOMS];
#endif
#if 0
char2 actmode = read_channel_altera(chan_IGL2Conform_actmode);
#endif
char actmode = read_channel_altera(chan_IGL2Conform_actmode);
mem_fence(CLK_CHANNEL_MEM_FENCE);
#if 0
active = actmode.x;
mode = actmode.y;
#endif
active = actmode;
mode = actmode;
//printf("Conform: %u\n", mode);
#if defined (FIXED_POINT_CONFORM)
......@@ -433,12 +440,16 @@ while(active) {
for (uchar pipe_cnt=0; pipe_cnt<DockConst_num_of_atoms; pipe_cnt+=2) {
if (pipe_cnt == 0) {
#if 0
char active_tmp = active;
char mode_tmp = mode;
char2 actmode = {active_tmp, mode_tmp};
write_channel_altera(chan_Conf2Intere_actmode, actmode);
write_channel_altera(chan_Conf2Intrae_actmode, actmode);
#endif
write_channel_altera(chan_Conf2Intere_actmode, mode);
write_channel_altera(chan_Conf2Intrae_actmode, mode);
}
mem_fence(CLK_CHANNEL_MEM_FENCE);
......
......@@ -30,9 +30,18 @@ channel float chan_LS2Conf_LS9_genotype __attribute__((depth(CHAN_DEPTH_G
// Send ligand-atom positions from Conform to InterE & IntraE
channel float8 chan_Conf2Intere_xyz __attribute__((depth(CHAN_DEPTH_ATOMXYZ)));
#if 0
channel char2 chan_Conf2Intere_actmode;
#endif
channel char chan_Conf2Intere_actmode;
channel float8 chan_Conf2Intrae_xyz __attribute__((depth(CHAN_DEPTH_ATOMXYZ)));
#if 0
channel char2 chan_Conf2Intrae_actmode;
#endif
channel char chan_Conf2Intrae_actmode;
// Send energy values from InterE & IntraE to genotype-senders (IC, GG, LSs)
channel float chan_Intere2StoreIC_intere __attribute__((depth(2)));
......@@ -157,7 +166,11 @@ channel bool chan_GA2LS_Off9_active;
// Send genotype-producer-channel selector and genotype
// from IGL_Arbiter to Conform
#if 0
channel char2 chan_IGL2Conform_actmode __attribute__((depth(9))); // active, mode
#endif
channel char chan_IGL2Conform_actmode __attribute__((depth(9))); // active, mode
channel float chan_IGL2Conform_genotype __attribute__((depth(9*CHAN_DEPTH_GENOTYPE)));
// Turn-off signal to IGL_Arbiter, Conform, InterE, IntraE
......
......@@ -1309,9 +1309,13 @@ while(active) {
// Send "mode" to Conform
for (uchar j=0; j<bound; j++) {
#if 0
char mode_tmp = Off_valid? 0x00: IC_valid? 'I': GG_valid? 'G': mode[j];
char2 actmode = {active, mode_tmp};
write_channel_altera(chan_IGL2Conform_actmode, actmode);
#endif
char mode_tmp = Off_valid? 0x00: IC_valid? 'I': GG_valid? 'G': mode[j];
write_channel_altera(chan_IGL2Conform_actmode, mode_tmp);
#if defined (DEBUG_KRNL_IGL_ARBITER)
printf("bound: %u, mode: %u\n", bound, mode_tmp);
......
......@@ -68,11 +68,19 @@ while(active) {
// Wait for ligand atomic coordinates in channel
// --------------------------------------------------------------
#if 0
char2 actmode = read_channel_altera(chan_Conf2Intere_actmode);
#endif
char actmode = read_channel_altera(chan_Conf2Intere_actmode);
mem_fence(CLK_CHANNEL_MEM_FENCE);
#if 0
active = actmode.x;
mode = actmode.y;
#endif
active = actmode;
mode = actmode;
for (uchar pipe_cnt=0; pipe_cnt<DockConst_num_of_atoms; pipe_cnt+=2) {
float8 tmp = read_channel_altera(chan_Conf2Intere_xyz);
......
......@@ -64,11 +64,18 @@ while(active) {
// Wait for ligand atomic coordinates in channel
// --------------------------------------------------------------
#if 0
char2 actmode = read_channel_altera(chan_Conf2Intrae_actmode);
#endif
char actmode = read_channel_altera(chan_Conf2Intrae_actmode);
mem_fence(CLK_CHANNEL_MEM_FENCE);
#if 0
active = actmode.x;
mode = actmode.y;
#endif
active = actmode;
mode = actmode;
for (uchar pipe_cnt=0; pipe_cnt<DockConst_num_of_atoms; pipe_cnt+=2) {
float8 tmp = read_channel_altera(chan_Conf2Intrae_xyz);
......
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