correct how to calculate cell_offset, and add judgement if rd_reg0 is needed under state RE_DIS_WAIT1.