Trace collected at: 2010-12-06 15:38:04.129000 ---------------------------------------------------------------------- ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[12]: set_output_location('CMP_Module_') ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[14]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[15]: log('******* CMP MODULE TEST *********', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[16]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[18]: SET_RSTCTR( 0 ) #Clear Reset Counter ../../GSEOS_scripts\util.py[118]: POKE( 0xDDFF, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[19]: wait(APID_267, lambda: APID_267.RSTCTR==0, flTimeout=12) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[19]: wait(APID_267, lambda: APID_267.RSTCTR==0, flTimeout=12) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[20]: RESETCPU() ../../GSEOS_scripts\util.py[121]: cmd.EFW_RESET() ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[21]: wait(APID_267, lambda: APID_267.RSTCTR==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[21]: wait(APID_267, lambda: APID_267.RSTCTR==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[23]: SET_RSTCTR( 0 ) #Clear Reset Counter ../../GSEOS_scripts\util.py[118]: POKE( 0xDDFF, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[24]: cmd.EFW_CLEAR() ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[25]: wait(APID_267, lambda: APID_267.ERRCODE==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[25]: wait(APID_267, lambda: APID_267.ERRCODE==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[26]: vers = APID_267.FSW_HIGH ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[27]: vers = vers + APID_267.FSW_LOW/100.0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[28]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[29]: log('******* FSW VERSION %5.2f *********'% vers, color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[30]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[32]: errcnt=0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[33]: errcnt += tryscript("TEST_CMP_2") ../../GSEOS_scripts\util.py[208]: try: ../../GSEOS_scripts\util.py[209]: pf = startscript( script ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[9]: """ ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[11]: from efw import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[12]: from util import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[13]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[16]: def main(): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[9]: """ ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[11]: from efw import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[12]: from util import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[13]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[16]: def main(): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[17]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[18]: log('CMP_2 - CMD TIME ALLOCATION < 2msec ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[19]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[20]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[21]: DVP = 0x111 # Duration Verification Point ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[22]: RST5= 0xEF # Restart 5 Instruction ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[23]: NOP = 0x00 # No Operation ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[25]: log('1. Increasing TM Rate, Clear Start ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[26]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[27]: SET_TESTVALUE0( 0 ) ../../GSEOS_scripts\util.py[112]: POKE( 0XDDF9, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[28]: SET_TESTVALUE1( 0 ) ../../GSEOS_scripts\util.py[115]: POKE( 0XDDFa, byte ) ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[29]: wait(APID_267, lambda: APID_267.TESTVALUE == 0 , flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[29]: wait(APID_267, lambda: APID_267.TESTVALUE == 0 , flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[31]: log('1.1 Enabling SRAM loading, Disable Scan ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[32]: cmd.EFW_SRMWRTCTL( 0 ) # Enable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[33]: cmd.EFW_DISARM(3) # Disable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[35]: log('2.1 Verifying BKG Duration Point ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[36]: DUMPADR( DVP ) ../../GSEOS_scripts\util.py[65]: cmd.EFW_DUMPADRX( (addr >> 24 )& 0xff ) ../../GSEOS_scripts\util.py[66]: cmd.EFW_DUMPADRE( (addr >> 16 )& 0xff ) ../../GSEOS_scripts\util.py[67]: cmd.EFW_DUMPADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[68]: cmd.EFW_DUMPADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[69]: cmd.EFW_TMDUMPCTR(255) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[37]: wait(APID_266, lambda: APID_266.DUMPADR == DVP, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[37]: wait(APID_266, lambda: APID_266.DUMPADR == DVP, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[38]: wait(APID_266, lambda: APID_266.Data[0] == NOP, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[38]: wait(APID_266, lambda: APID_266.Data[0] == NOP, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[39]: log('2.2 Installing BKG ISR Timing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[40]: POKE( DVP, RST5 ) #BKG[addr] = RST 5 ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[41]: sleep(8) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[43]: log('2.3 Measuring BKG ISR (w/No commands) ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[44]: wait(APID_267, lambda: True , flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[44]: wait(APID_267, lambda: True , flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[45]: intnum = APID_267.TESTVALUE / 256 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[46]: inttime= APID_267.TESTVALUE & 255 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[47]: fmsec = (1000.0/65536.0) * inttime ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[48]: log('Maximum Interrupt Service Time is %2.3f msec' % fmsec) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[49]: log('Percent of Interrupt at 256 Hz is %2.3f percent' % (fmsec*100.0/3.90625) ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[50]: log('Maximum Interrupt Service Routine= %x hex' %intnum) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[51]: log('Requirement for ISR Duration < 2 msec : %s' % PF[fmsec < 2.0] ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[53]: log('3. Commanding CMP ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[54]: log('Note: CMP Module no longer has commands', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[55]: sleep(2) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[57]: wait(APID_267, lambda: True , flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[44]: wait(APID_267, lambda: True , flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[58]: intnum2 = APID_267.TESTVALUE / 256 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[59]: inttime2= APID_267.TESTVALUE & 255 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[60]: fmsec2 = (1000.0/65536.0) * inttime2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[61]: log('Maximum Interrupt Service Time is %2.3f msec' % fmsec2) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[62]: log('Percent of Interrupt at 256 Hz is %2.3f percent' % (fmsec2*100.0/3.90625) ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[63]: log('Maximum Interrupt Service Routine= %x hex' %intnum2) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[65]: log('Change in MAX ISR : %5.3f' % (fmsec2-fmsec) ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[66]: log('Requirement for DEP CMD Duration < 2 msec : %s' % PF[fmsec2 < 2.0] ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[68]: log('4.0 Removing Vectors ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[69]: POKE( DVP, NOP ) #BKG[addr] = NOP ../../GSEOS_scripts\util.py[102]: cmd.EFW_ADRH( (addr >> 8 )& 0xff ) ../../GSEOS_scripts\util.py[103]: cmd.EFW_ADRL( addr & 0xff ) ../../GSEOS_scripts\util.py[104]: cmd.EFW_LOAD( byte ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[70]: cmd.EFW_SRMWRTCTL( 1 ) # Disable Writing to the SRAM ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[71]: cmd.EFW_DISARM(3) # Enable SRAM Scanner ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[73]: log('================END=====================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_2.py[74]: return(0) ../../GSEOS_scripts\util.py[212]: return(pf) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[34]: errcnt += tryscript("TEST_CMP_3") ../../GSEOS_scripts\util.py[208]: try: ../../GSEOS_scripts\util.py[209]: pf = startscript( script ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[22]: """ ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[24]: from efw import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[25]: from UTIL import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: def load_test_pattern(tab15, apid, config, reps, delta): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: def log_pkt243(): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[108]: def test_patterns( table15 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[147]: def test_errors( table15 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[187]: def main(): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[22]: """ ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[24]: from efw import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[25]: from UTIL import * ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[26]: from __main__ import * # required for access to APID_nnn telemetry blocks ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[28]: def load_test_pattern(tab15, apid, config, reps, delta): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[79]: def log_pkt243(): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[108]: def test_patterns( table15 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[147]: def test_errors( table15 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[187]: def main(): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[188]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[189]: log('CMP_3 - Compression Testing ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[190]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[191]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[193]: log('1. Increasing TM Rate, Compression Off ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[194]: cmd.EFW_TMPKTRATE( 0, 1 ) #Set APID 263 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[195]: cmd.EFW_TMPKTRATE( 4, 1 ) #Set APID 267 to 1Hz ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[196]: cmd.EFW_DFBDMA( 0 ) #Disable DFB DMA channels ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[197]: cmd.EFW_DISARM( 2 ) #Compression Disabled ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[199]: cmd.EFW_CMPCTR( 0 ) #Reset Compression Counter ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[201]: log('1.1 Viewing Table 15', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[202]: cmd.EFW_DUMPTABL( 15, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[203]: cmd.EFW_TMDUMPCTR( 255 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[204]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[205]: wait(APID_266, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[205]: wait(APID_266, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[206]: table15 = APID_266.DUMPADR ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[208]: test_patterns( table15 ) #All DM Codes Used ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[109]: log('2.1 Generating Raw Test Patterns', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[111]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[112]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[113]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[110]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[115]: log('2.2 Generating Spacer', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[116]: log("Exponent %2d, Delta of %6d " % (0,0), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[117]: load_test_pattern(table15, 0x243, 0x5007, 512, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[119]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[120]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[118]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[122]: log('2.3 Verifying Compression Marker Zero', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[123]: wait(APID_243, lambda: APID_243.COMPRESSION==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[123]: wait(APID_243, lambda: APID_243.COMPRESSION==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[125]: log('3.1 Generating & Compressing', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[126]: cmd.EFW_ARM( 2 ) #Arm Compression ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[127]: wait(APID_267, lambda: APID_267.ENA_CMP==1, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[85]: log("FSW.CMP-4 Type : RAW", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[86]: return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[129]: log("Exponent %2d, Delta of %6d " % (i,2**i-1), color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[130]: load_test_pattern(table15, 0x243, 0x5007, 512, 2**i-1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[131]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[132]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[128]: for i in range(16): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[134]: log('3.2 Generating Spacer', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[135]: log("Exponent %2d, Delta of %6d " % (0,0), color=BLUE, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[136]: load_test_pattern(table15, 0x243, 0x5007, 512, 0 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[29]: 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[30]: smp=range(10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[32]: select = config & eomsk[ apid&15 ] #Figure out how many qtys ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[33]: qtys = 0 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[34]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[36]: if( bit & select ): qtys = qtys+1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[37]: bit = bit * 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[35]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[38]: pktlng = reps*qtys*2 + 9 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[39]: if (pktlng > 3088 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[43]: cmd.EFW_CMDS( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[44]: wait(APID_263, lambda: APID_263.CMDFLAG==1, flTimeout=20) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[46]: adstr = "0000" + hex(0x10000+tab15+2)[3:7] #Load Table 15 byte 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[47]: bytes = " " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[49]: bytes = bytes + hex( 0x100+(apid&0xff))[-2:]+" " #APID Low Byte ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[50]: bytes = bytes + "C0 00 " #Sequence Count ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[51]: bytes = bytes + hex( 0x100+((pktlng>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[52]: bytes = bytes + hex( 0x100+(pktlng&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[53]: bytes = bytes + "12 34 " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[54]: bytes = bytes + hex( 0x100+((config>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[55]: bytes = bytes + hex( 0x100+(config&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[57]: bytes = bytes + hex( 0x1000+(reps/2))[-2:]+" " #REPEAT COUNT words ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[58]: bytes = bytes + hex( 0x1000+(qtys*4))[-2:]+" " #PATTERN LENGTH 12 bytes ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[60]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[63]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[64]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[62]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[65]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[61]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[67]: bit = 1 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[71]: bytes = bytes + hex( 0x100+(smp[i]&0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[72]: bytes = bytes + hex( 0x100+((smp[i]>>8)& 0xff))[-2:]+" " ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[69]: smp[i] = smp[i] + delta ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[70]: if( bit & select): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[73]: bit = bit*2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[68]: for i in range(10): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[75]: efw.idpu_load(adstr, bytes) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[76]: wait(APID_263, lambda: APID_263.CMDFLAG==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[77]: return(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[137]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[139]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[140]: log_pkt243() ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[80]: PF=("FAIL","PASS") ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[81]: 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[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[82]: wait(APID_243, lambda: True, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[83]: log("APID 243 #%5x " % APID_243.CCSDS_SeqCnt, color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[84]: if(APID_243.COMPRESSION == 0): #FSW.CMP-4 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[88]: log("FSW.CMP-4 Type : COMPRESSED", color=BROWN, attr=BOLD) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[90]: codeinx = APID_243.CCSDS_PacketLen - 5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[91]: code = APID_243.CCSDS_Data[codeinx] /16 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[92]: 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[93]: if(code != 1): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[95]: origlng = (APID_243.CCSDS_Data[codeinx]&15)*256 + (APID_243.CCSDS_Data[codeinx+1]&0xfc) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[96]: log("FSW.CMP-8 Format: %s" % PF[origlng==0x0c00], color=BROWN, attr=BOLD) #FSW.CMP-8 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[97]: if(origlng != 0x0c00): return(-1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[99]: spacers = (APID_243.CCSDS_Data[codeinx+1]&0x03) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[100]: keycnt = origlng / 64 / 2 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[101]: keyinx = codeinx - spacers - keycnt ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[102]: width = APID_243.CCSDS_Data[keyinx]&0x0F ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[103]: cratio = 1.0 * origlng / (APID_243.CCSDS_PacketLen - 9 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[104]: log("FSW.CMP-6 CRatio: %5.2f " % cratio, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[105]: log("FSW.CMP-6 Width : %5d " % width, color=BROWN, attr=BOLD) #FSW.CMP-6 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[106]: 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[138]: for i in range( 8 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[142]: log('3.3 Verifying Engineering Counter Not Zero', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[143]: if(APID_263.CMPCTR==0): ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[210]: test_errors( table15 ) #All Error Codes Used ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[148]: log('4.1 Verifying Function Error (Alg#)', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[149]: cmd.EFW_ARM( 2 ) #Arm Compression ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[150]: cmd.EFW_TABLE( 2, 3 ) #TABLE 2 [apid 243]= ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[151]: cmd.EFW_LOAD( 2 ) # function code 2 FSW.CMP-5 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[153]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[154]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[152]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[155]: wait(APID_267, lambda: APID_267.ERRCODE==0x22, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[155]: wait(APID_267, lambda: APID_267.ERRCODE==0x22, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[156]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[157]: cmd.EFW_TABLE( 2, 3 ) #TABLE 2 [apid 243]= ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[158]: cmd.EFW_LOAD( 1 ) # function code 1 (Dmod) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[159]: log('4.2 Verified Function Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[161]: log('4.3 Verifying No Samples Error ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[162]: cmd.EFW_TABLE(15,10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[163]: cmd.EFW_LOAD(0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[165]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[166]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[164]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[167]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[167]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[167]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[167]: wait(APID_267, lambda: APID_267.ERRCODE==0x23, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[168]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[169]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[170]: cmd.EFW_TABLE(15,10) #Repair the packet header ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[171]: cmd.EFW_LOAD(7) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[172]: log('4.4 Verified Sample# Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[174]: log('4.5 Verifying Header Error ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[175]: cmd.EFW_TABLE(15,1) #Make the 0a into 00 ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[176]: cmd.EFW_LOAD(0) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[178]: cmd.EFW_TMSIM( 1 ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[179]: sleep(1) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[177]: for i in range( 4 ): # generate an error message ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[180]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[180]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[180]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[180]: wait(APID_267, lambda: APID_267.ERRCODE==0x21, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[181]: sleep(5) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[182]: cmd.EFW_CLEAR() #Clear the error ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[183]: cmd.EFW_TABLE(15,1) #Repair it ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[184]: cmd.EFW_LOAD(0x0a) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[185]: log('4.6 Verified Header Error : PASS', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[212]: log('5.0 Cleanup', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[213]: cmd.EFW_DISARM( 2 ) #Compression Disabled ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[214]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[198]: wait(APID_267, lambda: APID_267.ENA_CMP==0, flTimeout=10) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[216]: log('CMP_3 - Compression Testing Complete ', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[217]: log('================END=====================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP_3.py[218]: return(0) ../../GSEOS_scripts\util.py[212]: return(pf) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[36]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[37]: if( errcnt == 0 ): ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[38]: log('******* CMP Module PASS ******' , color=GREEN, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[41]: log('========================================', color=BLUE, attr=BOLD ) ../../GSEOS_scripts/FSW_scripts\TEST_CMP.py[42]: return( errcnt )