ported tb_checkerboard_write_ce2