(hls backend) increment read and write indexes at the end of the action