include chip_def.tcs // clear the ni-input in FPGA write fpga2, 0x4480, 0 // pretrigger write fpga2, 0x4008, 1 nop nop nop nop // clear write fpga2, 0x4008, 2 // number of 16-bit words const nw16_fpga = 2*(nchips*(nwords+1)*4+2+2)-1+oase_mode; expect fpga2, 0x4480, nw16_fpga | (nw16_fpga << 12); expect fpga2, 0x4481, 0 read dut, 0xF03E read dut, 0xF03F read dut, 0xF07E read dut, 0xF07F read dut, 0xF0BE read dut, 0xF0BF read dut, 0xF0FE read dut, 0xF0FF