Trace collected at: 2010-11-12 10:54:22.402000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[187]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[188]: log('CMP_3 - Compression Testing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[189]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[190]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[192]: log('1. Increasing TM Rate, Compression Off ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[193]: cmd.EFW_TMPKTRATE( 0, 1 ) #Set APID 263 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[194]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[195]: cmd.EFW_DFBDMA( 0 ) #Disable DFB DMA channels ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[196]: cmd.EFW_DISARM( 2 ) #Compression Disabled ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: cmd.EFW_CMPCTR( 0 ) #Reset Compression Counter ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[200]: log('1.1 Viewing Table 15', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[201]: cmd.EFW_DUMPTABL( 15, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[202]: cmd.EFW_TMDUMPCTR( 255 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[203]: wait(APID_266, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[203]: wait(APID_266, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[204]: table15 = APID_266.DUMPADR ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[206]: test_patterns( table15 ) #All DM Codes Used ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[108]: log('2.1 Generating Raw Test Patterns', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[114]: log('2.2 Generating Spacer', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[115]: log("Exponent %2d, Delta of %6d " % (0,0), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[116]: load_test_pattern(table15, 0x243, 0x5007, 512, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[121]: log('2.3 Verifying Compression Marker Zero', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[122]: wait(APID_243, lambda: APID_243.COMPRESSION==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[122]: wait(APID_243, lambda: APID_243.COMPRESSION==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[124]: log('3.1 Generating & Compressing', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[125]: cmd.EFW_ARM( 2 ) #Arm Compression ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: log("FSW.CMP-4 Type : RAW", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[85]: return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[133]: log('3.2 Generating Spacer', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[134]: log("Exponent %2d, Delta of %6d " % (0,0), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[135]: load_test_pattern(table15, 0x243, 0x5007, 512, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[136]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[141]: log('3.3 Verifying Engineering Counter Not Zero', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[142]: if(APID_263.CMPCTR==0): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[208]: test_errors( table15 ) #All Error Codes Used ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[147]: log('4.1 Verifying Function Error (Alg#)', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[148]: cmd.EFW_ARM( 2 ) #Arm Compression ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[149]: cmd.EFW_TABLE( 2, 3 ) #TABLE 2 [apid 243]= ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[150]: cmd.EFW_LOAD( 2 ) # function code 2 FSW.CMP-5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: wait(APID_267, lambda: APID_267.ERRCODE==0x22, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: wait(APID_267, lambda: APID_267.ERRCODE==0x22, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[155]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[156]: cmd.EFW_TABLE( 2, 3 ) #TABLE 2 [apid 243]= ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[157]: cmd.EFW_LOAD( 1 ) # function code 1 (Dmod) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[158]: log('4.2 Verified Function Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[160]: log('4.3 Verifying No Samples Error ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[161]: cmd.EFW_TABLE(15,10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[162]: cmd.EFW_LOAD(0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[167]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[168]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[169]: cmd.EFW_TABLE(15,10) #Repair the packet header ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[170]: cmd.EFW_LOAD(7) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[171]: log('4.4 Verified Sample# Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[173]: log('4.5 Verifying Header Error ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[174]: cmd.EFW_TABLE(15,1) #Make the 0a into 00 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[175]: cmd.EFW_LOAD(0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[180]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[181]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[182]: cmd.EFW_TABLE(15,1) #Repair it ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[183]: cmd.EFW_LOAD(0x0a) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[184]: log('4.6 Verified Header Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[210]: log('5.0 Cleanup', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[211]: cmd.EFW_DISARM( 2 ) #Compression Disabled ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[212]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[214]: log('CMP_3 - Compression Testing Complete ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[215]: log('================END=====================', color=BLUE, attr=BOLD ) Trace collected at: 2010-11-12 11:11:35.261000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[187]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[188]: log('CMP_3 - Compression Testing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[189]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[190]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[192]: log('1. Increasing TM Rate, Compression Off ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[193]: cmd.EFW_TMPKTRATE( 0, 1 ) #Set APID 263 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[194]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[195]: cmd.EFW_DFBDMA( 0 ) #Disable DFB DMA channels ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[196]: cmd.EFW_DISARM( 2 ) #Compression Disabled ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: cmd.EFW_CMPCTR( 0 ) #Reset Compression Counter ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[200]: log('1.1 Viewing Table 15', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[201]: cmd.EFW_DUMPTABL( 15, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[202]: cmd.EFW_TMDUMPCTR( 255 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[203]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[204]: wait(APID_266, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[204]: wait(APID_266, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[205]: table15 = APID_266.DUMPADR ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[207]: test_patterns( table15 ) #All DM Codes Used ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[108]: log('2.1 Generating Raw Test Patterns', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[114]: log('2.2 Generating Spacer', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[115]: log("Exponent %2d, Delta of %6d " % (0,0), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[116]: load_test_pattern(table15, 0x243, 0x5007, 512, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[121]: log('2.3 Verifying Compression Marker Zero', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[122]: wait(APID_243, lambda: APID_243.COMPRESSION==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[122]: wait(APID_243, lambda: APID_243.COMPRESSION==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[124]: log('3.1 Generating & Compressing', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[125]: cmd.EFW_ARM( 2 ) #Arm Compression ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: log("FSW.CMP-4 Type : RAW", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[85]: return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[133]: log('3.2 Generating Spacer', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[134]: log("Exponent %2d, Delta of %6d " % (0,0), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[135]: load_test_pattern(table15, 0x243, 0x5007, 512, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: eomsk=(0,0,0,0x07,0x3f,0x07,0x07,0x3f,0x07,0x3FF,0x3f,0x1f,0,0,0,0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[31]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[42]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[45]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[48]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[56]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[59]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[66]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[74]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[136]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: explng=(325, 517, 709, 901,1093,1285,1477,1621,1813,2005,2197,2389,2581,2773,2965,3109) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[87]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[89]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: log("FSW.CMP-7 Code %d: %s" % (code, PF[code==1]), color=BROWN, attr=BOLD) #FSW.CMP-7 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[94]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[98]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Length: %5d : %s" % (APID_243.CCSDS_PacketLen, PF[explng[width]==APID_243.CCSDS_PacketLen]),color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[141]: log('3.3 Verifying Engineering Counter Not Zero', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[142]: if(APID_263.CMPCTR==0): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[209]: test_errors( table15 ) #All Error Codes Used ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[147]: log('4.1 Verifying Function Error (Alg#)', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[148]: cmd.EFW_ARM( 2 ) #Arm Compression ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[149]: cmd.EFW_TABLE( 2, 3 ) #TABLE 2 [apid 243]= ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[150]: cmd.EFW_LOAD( 2 ) # function code 2 FSW.CMP-5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: wait(APID_267, lambda: APID_267.ERRCODE==0x22, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: wait(APID_267, lambda: APID_267.ERRCODE==0x22, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[155]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[156]: cmd.EFW_TABLE( 2, 3 ) #TABLE 2 [apid 243]= ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[157]: cmd.EFW_LOAD( 1 ) # function code 1 (Dmod) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[158]: log('4.2 Verified Function Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[160]: log('4.3 Verifying No Samples Error ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[161]: cmd.EFW_TABLE(15,10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[162]: cmd.EFW_LOAD(0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[167]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[168]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[169]: cmd.EFW_TABLE(15,10) #Repair the packet header ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[170]: cmd.EFW_LOAD(7) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[171]: log('4.4 Verified Sample# Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[173]: log('4.5 Verifying Header Error ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[174]: cmd.EFW_TABLE(15,1) #Make the 0a into 00 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[175]: cmd.EFW_LOAD(0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[180]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[181]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[182]: cmd.EFW_TABLE(15,1) #Repair it ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[183]: cmd.EFW_LOAD(0x0a) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[184]: log('4.6 Verified Header Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[211]: log('5.0 Cleanup', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[212]: cmd.EFW_DISARM( 2 ) #Compression Disabled ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[213]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[215]: log('CMP_3 - Compression Testing Complete ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[216]: log('================END=====================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[217]: return(0)