ported tb_checkerboard_write_rw