Commit 213dfb45 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

renamed pipes

parent cf094e98
......@@ -77,6 +77,7 @@ pipe float8 chan_PRNG2GA_BT_ushort_float_prng __attribute__((xcl_reqd_pipe_dep
pipe uchar2 chan_PRNG2GA_GG_uchar_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_16)));
pipe float chan_PRNG2GA_GG_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe ushort16 chan_PRNG2GA_LS123_ushort_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_16)));
/*
pipe float chan_PRNG2GA_LS_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2GA_LS2_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2GA_LS3_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
......@@ -86,6 +87,16 @@ pipe float chan_PRNG2GA_LS6_float_prng __attribute__((xcl_reqd_pipe_depth
pipe float chan_PRNG2GA_LS7_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2GA_LS8_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2GA_LS9_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
*/
pipe float chan_PRNG2LS_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS2_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS3_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS4_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS5_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS6_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS7_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS8_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
pipe float chan_PRNG2LS9_float_prng __attribute__((xcl_reqd_pipe_depth(PIPE_DEPTH_64)));
// Turn-off signals to PRNG generators
......
......@@ -162,7 +162,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_PRNG2GA_LS_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -166,7 +166,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_PRNG2GA_LS2_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS2_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -166,7 +166,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_PRNG2GA_LS3_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS3_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -166,7 +166,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_PRNG2GA_LS4_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS4_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -164,11 +164,8 @@ while(valid) {
__attribute__((xcl_pipeline_loop))
LOOP_FOR_LS5_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
/*
float tmp_prng = read_channel_altera(chan_PRNG2GA_LS5_float_prng);
*/
float tmp_prng;
read_pipe_block(chan_PRNG2GA_LS5_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS5_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -166,7 +166,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_PRNG2GA_LS6_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS6_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS7_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2GA_LS7_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS7_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -165,7 +165,7 @@ while(valid) {
LOOP_FOR_LS8_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2GA_LS8_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS8_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -166,7 +166,7 @@ while(valid) {
LOOP_FOR_LS9_WRITE_GENOTYPE:
for (uchar i=0; i<DockConst_num_of_genes; i++) {
float tmp_prng;
read_pipe_block(chan_PRNG2GA_LS9_float_prng, &tmp_prng);
read_pipe_block(chan_PRNG2LS9_float_prng, &tmp_prng);
/*
mem_fence(CLK_CHANNEL_MEM_FENCE);
*/
......
......@@ -326,11 +326,11 @@ void Krnl_Prng_LS_float(
#if defined (FIXED_POINT_LS1)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS_float_prng, &tmp);
}
#endif
}
......@@ -381,11 +381,11 @@ void Krnl_Prng_LS2_float(
#if defined (FIXED_POINT_LS2)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS2_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS2_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS2_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS2_float_prng, &tmp);
}
#endif
}
......@@ -436,12 +436,12 @@ void Krnl_Prng_LS3_float(
#if defined (FIXED_POINT_LS3)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS3_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS3_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS3_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS3_float_prng, &tmp);
}
#endif
}
......@@ -492,11 +492,11 @@ void Krnl_Prng_LS4_float(
#if defined (FIXED_POINT_LS4)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS4_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS4_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS4_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS4_float_prng, &tmp);
}
#endif
}
......@@ -547,11 +547,11 @@ void Krnl_Prng_LS5_float(
#if defined (FIXED_POINT_LS5)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS5_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS5_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS5_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS5_float_prng, &tmp);
}
#endif
}
......@@ -603,11 +603,11 @@ void Krnl_Prng_LS6_float(
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS6_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS6_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS6_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS6_float_prng, &tmp);
}
#endif
}
......@@ -658,11 +658,11 @@ void Krnl_Prng_LS7_float(
#if defined (FIXED_POINT_LS7)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS7_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS7_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS7_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS7_float_prng, &tmp);
}
#endif
}
......@@ -713,11 +713,11 @@ void Krnl_Prng_LS8_float(
#if defined (FIXED_POINT_LS8)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS8_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS8_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS8_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS8_float_prng, &tmp);
}
#endif
}
......@@ -768,11 +768,11 @@ void Krnl_Prng_LS9_float(
#if defined (FIXED_POINT_LS9)
fixedpt fixpt_tmp = fixedpt_fromfloat(tmp);
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS9_float_prng, (float*) &fixpt_tmp);
success = write_pipe(chan_PRNG2LS9_float_prng, (float*) &fixpt_tmp);
}
#else
if(valid != PIPE_STATUS_SUCCESS) {
success = write_pipe(chan_PRNG2GA_LS9_float_prng, &tmp);
success = write_pipe(chan_PRNG2LS9_float_prng, &tmp);
}
#endif
}
......
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