// for simulation purposes - to force CTRL_AF_RDEN low during reset
// for simulation purposes - to force CTRL_AF_RDEN low during reset
if(rst_r1)
if(rst_r1)
rd_af_flag_r <=1'd0;
rd_af_flag_r <=1'd0;
elseif(rd_af_flag_r)// jb - probably should find a way to stop this toggling all the time
elseif(rd_af_flag_r)// jb - probably should find a way
// to stop this toggling all the time
rd_af_flag_r <=0;// jb
rd_af_flag_r <=0;// jb
elseif((ctrl_af_rden_r)||
elseif((ctrl_af_rden_r)||
(/*rd_af_flag_r &&*/(af_valid_r || af_valid_r1)))// Fixed bug where third addresses would get lost (pulled off fifo and then clobbered by other value later, thus ignored/skipped) - just make sure we don't get too excited and pull too many off at once - jb
(/*rd_af_flag_r &&*/(af_valid_r || af_valid_r1)))
// Fixed bug where third addresses would get lost (pulled off fifo and
// then clobbered by other value later, thus ignored/skipped) - just
// make sure we don't get too excited and pull too many off at once - jb