Commit 47d8b66f authored by Leonardo Solis's avatar Leonardo Solis
Browse files

reduced width channel actmode igl2conf2ie2ia


Former-commit-id: 424fab08
parent 5133d21d
......@@ -92,14 +92,21 @@ while(active) {
/*
char2 actmode = read_channel_altera(chan_IGL2Conform_actmode);
*/
#if 0
char2 actmode;
read_pipe_block(chan_IGL2Conform_actmode, &actmode);
#endif
char actmode;
read_pipe_block(chan_IGL2Conform_actmode, &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);
......@@ -461,6 +468,7 @@ 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};
......@@ -470,6 +478,9 @@ while(active) {
*/
write_pipe_block(chan_Conf2Intere_actmode, &actmode);
write_pipe_block(chan_Conf2Intrae_actmode, &actmode);
#endif
write_pipe_block(chan_Conf2Intere_actmode, &mode);
write_pipe_block(chan_Conf2Intrae_actmode, &mode);
}
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
......
......@@ -63,9 +63,16 @@ pipe float8 chan_Conf2Intrae_xyz __attribute__((xcl_reqd_pipe_depth(C
pipe char2 chan_Conf2Intrae_actmode;
*/
pipe float8 chan_Conf2Intere_xyz __attribute__((xcl_reqd_pipe_depth(64)));
#if 0
pipe char2 chan_Conf2Intere_actmode __attribute__((xcl_reqd_pipe_depth(16)));
#endif
pipe char chan_Conf2Intere_actmode __attribute__((xcl_reqd_pipe_depth(16)));
pipe float8 chan_Conf2Intrae_xyz __attribute__((xcl_reqd_pipe_depth(64)));
#if 0
pipe char2 chan_Conf2Intrae_actmode __attribute__((xcl_reqd_pipe_depth(16)));
#endif
pipe char chan_Conf2Intrae_actmode __attribute__((xcl_reqd_pipe_depth(16)));
// Send energy values from InterE & IntraE to genotype-senders (IC, GG, LSs)
// Resized to valid SDAccel depths: 16, 32, ...
......
......@@ -1372,16 +1372,19 @@ 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];
*/
char mode_tmp = (Off_valid == 0)? 0x00: (IC_valid == 0)? 'I': (GG_valid == 0)? 'G': mode[j];
char2 actmode = {active, mode_tmp};
/*
write_channel_altera(chan_IGL2Conform_actmode, actmode);
*/
write_pipe_block(chan_IGL2Conform_actmode, &actmode);
#endif
char mode_tmp = (Off_valid == 0)? 0x00: (IC_valid == 0)? 'I': (GG_valid == 0)? 'G': mode[j];
write_pipe_block(chan_IGL2Conform_actmode, &mode_tmp);
#if defined (DEBUG_KRNL_IGL_ARBITER)
printf("bound: %u, mode: %u\n", bound, mode_tmp);
......
......@@ -77,14 +77,20 @@ while(active) {
/*
char2 actmode = read_channel_altera(chan_Conf2Intere_actmode);
*/
#if 0
char2 actmode;
#endif
char actmode;
read_pipe_block(chan_Conf2Intere_actmode, &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) {
/*
......
......@@ -72,14 +72,20 @@ while(active) {
/*
char2 actmode = read_channel_altera(chan_Conf2Intrae_actmode);
*/
#if 0
char2 actmode;
#endif
char actmode;
read_pipe_block(chan_Conf2Intrae_actmode, &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) {
/*
......
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