change valid bit to big endian to match with test5/testbench_TOE_init