include ../scsn_ids.tcs include chip_def.tcs // clear the ni-input in FPGA write fpga1, 0x6002, 0 // number of words expect fpga1, 0x6002, 0 // number of parity errors expect fpga1, 0x6003, 0 // pretrigger pretrigger 1 //write fpga2, 0x4008, 1 nop nop nop nop expect dut, 0x0A04, 0x300002a0 // clear, necessary only if the chip is bad write fpga2, 0x4008, 2 // next data to send by the CPUs //read dut, 0x0C00 //read dut, 0x0C08 //read dut, 0x0C10 //read dut, 0x0C18 // number of 16-bit words const nw16_fpga = 2*(nchips*(nwords+1)*4+2+2)-1+oase_mode; expect fpga1, 0x6002, nw16_fpga | (nw16_fpga << 12); expect fpga1, 0x6003, 0 //readseq fpga1, 0x6800, nw16_fpga >> 1 expect dut, 0x0A04, 0x300002a0 // clear the ni-input in FPGA write fpga1, 0x6002, 0